Loading cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/scene/Cesium3DTileset.java +12 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,18 @@ public class Cesium3DTileset { */ @JsProperty public double baseScreenSpaceError; /** * Label of the feature ID set to use for picking and styling. * For EXT_mesh_features, this is the feature ID's label property, or "featureId_N" (where N is the index in the * featureIds array) when not specified. EXT_feature_metadata did not have a label field, so such feature ID sets * are always labeled "featureId_N" where N is the index in the list of all feature Ids, where feature ID attributes * are listed before feature ID textures. * <p> * If featureIdLabel is set to an integer N, it is converted to the string "featureId_N" automatically. If both * per-primitive and per-instance feature IDs are present, the instance feature IDs take priority. */ @JsProperty public int featureIdLabel; /** * Optimization option. Used when * {@link org.cesiumjs.cs.scene.Cesium3DTileset#foveatedScreenSpaceError} is Loading cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/scene/ConditionsExpression.java +6 −2 Original line number Diff line number Diff line Loading @@ -84,7 +84,8 @@ public class ConditionsExpression implements StyleExpression { * @return The result of evaluating the expression. */ @JsMethod public native Object evaluate(Cesium3DTileFeature feature); @Override public native JsObject evaluate(Cesium3DTileFeature feature); /** * Evaluates the result of an expression, optionally using the provided Loading @@ -102,7 +103,8 @@ public class ConditionsExpression implements StyleExpression { * @return The result of evaluating the expression. */ @JsMethod public native Object evaluate(Cesium3DTileFeature feature, Object result); @Override public native JsObject evaluate(Cesium3DTileFeature feature, JsObject result); /** * Evaluates the result of a Color expression, optionally using the provided Loading @@ -115,6 +117,7 @@ public class ConditionsExpression implements StyleExpression { * provided. */ @JsMethod @Override public native Color evaluateColor(Cesium3DTileFeature feature); /** Loading @@ -129,5 +132,6 @@ public class ConditionsExpression implements StyleExpression { * provided. */ @JsMethod @Override public native Color evaluateColor(Cesium3DTileFeature feature, Color result); } cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/scene/Expression.java +6 −2 Original line number Diff line number Diff line Loading @@ -83,7 +83,8 @@ public class Expression implements StyleExpression { * @return The result of evaluating the expression. */ @JsMethod public native Object evaluate(Cesium3DTileFeature feature); @Override public native JsObject evaluate(Cesium3DTileFeature feature); /** * Evaluates the result of an expression, optionally using the provided Loading @@ -101,7 +102,8 @@ public class Expression implements StyleExpression { * @return The result of evaluating the expression. */ @JsMethod public native Object evaluate(Cesium3DTileFeature feature, Object result); @Override public native JsObject evaluate(Cesium3DTileFeature feature, JsObject result); /** * Evaluates the result of a Color expression, optionally using the provided Loading @@ -114,6 +116,7 @@ public class Expression implements StyleExpression { * provided. */ @JsMethod @Override public native Color evaluateColor(Cesium3DTileFeature feature); /** Loading @@ -128,5 +131,6 @@ public class Expression implements StyleExpression { * provided. */ @JsMethod @Override public native Color evaluateColor(Cesium3DTileFeature feature, Color result); } cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/scene/StyleExpression.java +13 −0 Original line number Diff line number Diff line Loading @@ -16,7 +16,10 @@ package org.cesiumjs.cs.scene; import jsinterop.annotations.JsMethod; import jsinterop.annotations.JsType; import org.cesiumjs.cs.core.Color; import org.cesiumjs.cs.js.JsObject; /** * An expression for a style applied to a {@link Cesium3DTileset}. Loading @@ -32,4 +35,14 @@ import jsinterop.annotations.JsType; */ @JsType(isNative = true, namespace = "Cesium", name = "StyleExpression") public interface StyleExpression { JsObject evaluate(Cesium3DTileFeature feature); @JsMethod JsObject evaluate(Cesium3DTileFeature feature, JsObject result); @JsMethod Color evaluateColor(Cesium3DTileFeature feature); @JsMethod Color evaluateColor(Cesium3DTileFeature feature, Color result); } Loading
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/scene/Cesium3DTileset.java +12 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,18 @@ public class Cesium3DTileset { */ @JsProperty public double baseScreenSpaceError; /** * Label of the feature ID set to use for picking and styling. * For EXT_mesh_features, this is the feature ID's label property, or "featureId_N" (where N is the index in the * featureIds array) when not specified. EXT_feature_metadata did not have a label field, so such feature ID sets * are always labeled "featureId_N" where N is the index in the list of all feature Ids, where feature ID attributes * are listed before feature ID textures. * <p> * If featureIdLabel is set to an integer N, it is converted to the string "featureId_N" automatically. If both * per-primitive and per-instance feature IDs are present, the instance feature IDs take priority. */ @JsProperty public int featureIdLabel; /** * Optimization option. Used when * {@link org.cesiumjs.cs.scene.Cesium3DTileset#foveatedScreenSpaceError} is Loading
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/scene/ConditionsExpression.java +6 −2 Original line number Diff line number Diff line Loading @@ -84,7 +84,8 @@ public class ConditionsExpression implements StyleExpression { * @return The result of evaluating the expression. */ @JsMethod public native Object evaluate(Cesium3DTileFeature feature); @Override public native JsObject evaluate(Cesium3DTileFeature feature); /** * Evaluates the result of an expression, optionally using the provided Loading @@ -102,7 +103,8 @@ public class ConditionsExpression implements StyleExpression { * @return The result of evaluating the expression. */ @JsMethod public native Object evaluate(Cesium3DTileFeature feature, Object result); @Override public native JsObject evaluate(Cesium3DTileFeature feature, JsObject result); /** * Evaluates the result of a Color expression, optionally using the provided Loading @@ -115,6 +117,7 @@ public class ConditionsExpression implements StyleExpression { * provided. */ @JsMethod @Override public native Color evaluateColor(Cesium3DTileFeature feature); /** Loading @@ -129,5 +132,6 @@ public class ConditionsExpression implements StyleExpression { * provided. */ @JsMethod @Override public native Color evaluateColor(Cesium3DTileFeature feature, Color result); }
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/scene/Expression.java +6 −2 Original line number Diff line number Diff line Loading @@ -83,7 +83,8 @@ public class Expression implements StyleExpression { * @return The result of evaluating the expression. */ @JsMethod public native Object evaluate(Cesium3DTileFeature feature); @Override public native JsObject evaluate(Cesium3DTileFeature feature); /** * Evaluates the result of an expression, optionally using the provided Loading @@ -101,7 +102,8 @@ public class Expression implements StyleExpression { * @return The result of evaluating the expression. */ @JsMethod public native Object evaluate(Cesium3DTileFeature feature, Object result); @Override public native JsObject evaluate(Cesium3DTileFeature feature, JsObject result); /** * Evaluates the result of a Color expression, optionally using the provided Loading @@ -114,6 +116,7 @@ public class Expression implements StyleExpression { * provided. */ @JsMethod @Override public native Color evaluateColor(Cesium3DTileFeature feature); /** Loading @@ -128,5 +131,6 @@ public class Expression implements StyleExpression { * provided. */ @JsMethod @Override public native Color evaluateColor(Cesium3DTileFeature feature, Color result); }
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/scene/StyleExpression.java +13 −0 Original line number Diff line number Diff line Loading @@ -16,7 +16,10 @@ package org.cesiumjs.cs.scene; import jsinterop.annotations.JsMethod; import jsinterop.annotations.JsType; import org.cesiumjs.cs.core.Color; import org.cesiumjs.cs.js.JsObject; /** * An expression for a style applied to a {@link Cesium3DTileset}. Loading @@ -32,4 +35,14 @@ import jsinterop.annotations.JsType; */ @JsType(isNative = true, namespace = "Cesium", name = "StyleExpression") public interface StyleExpression { JsObject evaluate(Cesium3DTileFeature feature); @JsMethod JsObject evaluate(Cesium3DTileFeature feature, JsObject result); @JsMethod Color evaluateColor(Cesium3DTileFeature feature); @JsMethod Color evaluateColor(Cesium3DTileFeature feature, Color result); }