Commit f7f9e15f authored by iSergio's avatar iSergio
Browse files

Color object and constructor through JsObject of style.

parent 6ab84664
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package org.cesiumjs.cs.scene;
import jsinterop.annotations.JsConstructor;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
import org.cesiumjs.cs.js.JsObject;
import org.cesiumjs.cs.promise.Promise;

/**
@@ -37,7 +38,13 @@ public class Cesium3DTileStyle {
     * property. The expression must return a Color.
     */
    @JsProperty
    public StyleExpression color;
    public String color;
    /**
     * Gets or sets the StyleExpression object used to evaluate the style's color
     * property. The expression must return a Color.
     */
    @JsProperty(name = "color")
    public JsObject colorObject;
    /**
     * Gets or sets the object containing application-specific expression that can
     * be explicitly evaluated, e.g., for display in a UI.
@@ -68,6 +75,9 @@ public class Cesium3DTileStyle {
    public Cesium3DTileStyle(String style) {
    }

    @JsConstructor
    public Cesium3DTileStyle(JsObject style) {}

    /**
     * When true, the style is ready and its expressions can be evaluated. When a
     * style is constructed with an object, as opposed to a url, this is true