Loading cesiumjs4gwt-main/pom.xml +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ <parent> <artifactId>cesiumjs4gwt</artifactId> <groupId>org.cesiumjs</groupId> <version>1.94.0</version> <version>1.94.1</version> </parent> <name>CesiumJS GWT Wrapper</name> Loading cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/datasources/graphics/options/ModelGraphicsOptions.java +10 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ import jsinterop.annotations.JsProperty; import jsinterop.annotations.JsType; import org.cesiumjs.cs.core.Color; import org.cesiumjs.cs.datasources.properties.Property; import org.cesiumjs.cs.datasources.properties.PropertyBag; import org.cesiumjs.cs.js.JsObject; import org.cesiumjs.cs.scene.enums.ColorBlendMode; import org.cesiumjs.cs.scene.enums.HeightReference; import org.cesiumjs.cs.scene.enums.ShadowMode; Loading Loading @@ -81,7 +83,14 @@ public class ModelGraphicsOptions { * that node. */ @JsProperty public Property nodeTransformations; public PropertyBag nodeTransformations; /** * An object, where keys are names of nodes, and values are * TranslationRotationScale Properties describing the transformation to apply to * that node. */ @JsProperty(name = "nodeTransformations") public JsObject nodeTransformationsObject; /** * An enum Property specifying whether the model casts or receives shadows from * each light source. Default: {@link ShadowMode#ENABLED()} Loading cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/datasources/properties/NodeTransformationProperty.java +7 −0 Original line number Diff line number Diff line Loading @@ -16,7 +16,9 @@ package org.cesiumjs.cs.datasources.properties; import jsinterop.annotations.JsConstructor; import jsinterop.annotations.JsProperty; import jsinterop.annotations.JsType; import org.cesiumjs.cs.core.Cartesian3; import org.cesiumjs.cs.core.Quaternion; import org.cesiumjs.cs.core.TranslationRotationScale; Loading @@ -27,6 +29,7 @@ import org.cesiumjs.cs.datasources.properties.options.NodeTransformationProperty * * @author Serge Silaev aka iSergio */ @JsType(isNative = true, namespace = "Cesium", name = "NodeTransformationProperty") public class NodeTransformationProperty<T extends TranslationRotationScale> extends Property<T> { /** * Gets or sets the Quaternion Property specifying the (x, y, z, w) rotation to Loading @@ -47,6 +50,10 @@ public class NodeTransformationProperty<T extends TranslationRotationScale> exte @JsProperty public Property<Cartesian3> translation; @JsConstructor public NodeTransformationProperty() {} @JsConstructor public NodeTransformationProperty(NodeTransformationPropertyOptions options) { } } cesiumjs4gwt-showcase/pom.xml +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ <parent> <artifactId>cesiumjs4gwt</artifactId> <groupId>org.cesiumjs</groupId> <version>1.94.0</version> <version>1.94.1</version> </parent> <name>CesiumJS GWT Showcase</name> Loading cesiumjs4gwt-showcase/src/main/java/org/cleanlogic/cesiumjs4gwt/showcase/examples/ManuallyControlledAnimation.java +1 −1 Original line number Diff line number Diff line Loading @@ -111,7 +111,7 @@ public class ManuallyControlledAnimation extends AbstractExample { // Automatically set the model's orientation to the direction it's facing. entityOptions.orientation = new VelocityOrientationProperty(position); LabelGraphicsOptions labelOptions = new LabelGraphicsOptions(); labelOptions.text = new CallbackProperty(this::updateSpeedLabel, false); labelOptions.text = new CallbackProperty<>(this::updateSpeedLabel, false); labelOptions.font = new ConstantProperty<>( "20px sans-serif"); labelOptions.showBackground = new ConstantProperty<>(true); labelOptions.distanceDisplayCondition = new ConstantProperty<>(new DistanceDisplayCondition(0.0, 100.0)); Loading Loading
cesiumjs4gwt-main/pom.xml +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ <parent> <artifactId>cesiumjs4gwt</artifactId> <groupId>org.cesiumjs</groupId> <version>1.94.0</version> <version>1.94.1</version> </parent> <name>CesiumJS GWT Wrapper</name> Loading
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/datasources/graphics/options/ModelGraphicsOptions.java +10 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ import jsinterop.annotations.JsProperty; import jsinterop.annotations.JsType; import org.cesiumjs.cs.core.Color; import org.cesiumjs.cs.datasources.properties.Property; import org.cesiumjs.cs.datasources.properties.PropertyBag; import org.cesiumjs.cs.js.JsObject; import org.cesiumjs.cs.scene.enums.ColorBlendMode; import org.cesiumjs.cs.scene.enums.HeightReference; import org.cesiumjs.cs.scene.enums.ShadowMode; Loading Loading @@ -81,7 +83,14 @@ public class ModelGraphicsOptions { * that node. */ @JsProperty public Property nodeTransformations; public PropertyBag nodeTransformations; /** * An object, where keys are names of nodes, and values are * TranslationRotationScale Properties describing the transformation to apply to * that node. */ @JsProperty(name = "nodeTransformations") public JsObject nodeTransformationsObject; /** * An enum Property specifying whether the model casts or receives shadows from * each light source. Default: {@link ShadowMode#ENABLED()} Loading
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/datasources/properties/NodeTransformationProperty.java +7 −0 Original line number Diff line number Diff line Loading @@ -16,7 +16,9 @@ package org.cesiumjs.cs.datasources.properties; import jsinterop.annotations.JsConstructor; import jsinterop.annotations.JsProperty; import jsinterop.annotations.JsType; import org.cesiumjs.cs.core.Cartesian3; import org.cesiumjs.cs.core.Quaternion; import org.cesiumjs.cs.core.TranslationRotationScale; Loading @@ -27,6 +29,7 @@ import org.cesiumjs.cs.datasources.properties.options.NodeTransformationProperty * * @author Serge Silaev aka iSergio */ @JsType(isNative = true, namespace = "Cesium", name = "NodeTransformationProperty") public class NodeTransformationProperty<T extends TranslationRotationScale> extends Property<T> { /** * Gets or sets the Quaternion Property specifying the (x, y, z, w) rotation to Loading @@ -47,6 +50,10 @@ public class NodeTransformationProperty<T extends TranslationRotationScale> exte @JsProperty public Property<Cartesian3> translation; @JsConstructor public NodeTransformationProperty() {} @JsConstructor public NodeTransformationProperty(NodeTransformationPropertyOptions options) { } }
cesiumjs4gwt-showcase/pom.xml +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ <parent> <artifactId>cesiumjs4gwt</artifactId> <groupId>org.cesiumjs</groupId> <version>1.94.0</version> <version>1.94.1</version> </parent> <name>CesiumJS GWT Showcase</name> Loading
cesiumjs4gwt-showcase/src/main/java/org/cleanlogic/cesiumjs4gwt/showcase/examples/ManuallyControlledAnimation.java +1 −1 Original line number Diff line number Diff line Loading @@ -111,7 +111,7 @@ public class ManuallyControlledAnimation extends AbstractExample { // Automatically set the model's orientation to the direction it's facing. entityOptions.orientation = new VelocityOrientationProperty(position); LabelGraphicsOptions labelOptions = new LabelGraphicsOptions(); labelOptions.text = new CallbackProperty(this::updateSpeedLabel, false); labelOptions.text = new CallbackProperty<>(this::updateSpeedLabel, false); labelOptions.font = new ConstantProperty<>( "20px sans-serif"); labelOptions.showBackground = new ConstantProperty<>(true); labelOptions.distanceDisplayCondition = new ConstantProperty<>(new DistanceDisplayCondition(0.0, 100.0)); Loading