Commit 766b3f6b authored by iSergio's avatar iSergio
Browse files

Fix example - TimeDynamicWheels

parent 3113cf7e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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>
+10 −1
Original line number Diff line number Diff line
@@ -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;
@@ -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()}
+7 −0
Original line number Diff line number Diff line
@@ -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;
@@ -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
@@ -47,6 +50,10 @@ public class NodeTransformationProperty<T extends TranslationRotationScale> exte
    @JsProperty
    public Property<Cartesian3> translation;

    @JsConstructor
    public NodeTransformationProperty() {}

    @JsConstructor
    public NodeTransformationProperty(NodeTransformationPropertyOptions options) {
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -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>
+1 −1
Original line number Diff line number Diff line
@@ -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