Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions libraries/network/network.ndbx
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,16 @@
<port name="json" range="value" type="string" value="{&quot;name&quot;: {&quot;firstName&quot;: &quot;Lois&quot;, &quot;lastName&quot;: &quot;Lane&quot;}}" description="The JSON data, as a string."/>
<port name="query" range="value" type="string" value="$.name.firstName" description="The JSON path query."/>
</node>
<node name="sockSendData" category="network" description="Send data to a remote server" function="network/socketClientSendData" outputType="string" position="2.00,1.00" >
<port name="JsonString" range="value" type="string" description="Json data to send over Websocket"/>
<port name="timeOut" range="value" type="int" value="2000" description="Amount of seconds allowed for server to return data."/>
</node>
<node description="Describe Geometry in Json format." function="network/geometrySuperToJson" image="group.png" name="geometryToJson" position="4.00,12.00" outputType="string" category="network">
<port name="shapes" range="list" type="geometry" widget="none" description="The list of shapes to group."/>
</node>
<node description="Describe Geometry in Json format." function="network/cookGraph" image="group.png" name="cookGraph" position="4.00,12.00" category="network">
<port name="shapes" range="list" type="geometry" widget="none" description="Pass through shapes."/>
<port name="graphInput" range="list" type="list" widget="none" description="Graph to be cooked"/>
</node>
</node>
</ndbx>
35 changes: 33 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,37 @@
<version>0.9.8</version>
</dependency>

<dependency>
<groupId>javax.websocket</groupId>
<artifactId>javax.websocket-client-api</artifactId>
<version>1.0</version>
</dependency>

<dependency>
<groupId>org.glassfish.tyrus</groupId>
<artifactId>tyrus-client</artifactId>
<version>1.1</version>
</dependency>

<dependency>
<groupId>org.glassfish.tyrus</groupId>
<artifactId>tyrus-container-grizzly</artifactId>
<version>1.1</version>
</dependency>

<dependency>
<groupId>javax.json</groupId>
<artifactId>javax.json-api</artifactId>
<version>1.0</version>
</dependency>

<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<version>1.0.1</version>
</dependency>


</dependencies>

<repositories>
Expand Down Expand Up @@ -136,8 +167,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/nodebox/client/AnimationBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void setFrame(double frame) {

public void stateChanged(ChangeEvent changeEvent) {
frame = frameNumber.getValue();
document.setFrame(frame);
document.setFrame((int)frame);
}

public void toggleAnimation() {
Expand Down
Loading