Loading README.md +4 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,10 @@ # GWT Cesium Wrapper [CesiumJS](http://cesiumjs.org) GWT Wrapper based on JsInterop 1.0.2 for [GWT 2.8.x](http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_2). Showcase: - [Release](https://gis4fun.org/cesiumjs4gwt-showcase/) - [Develop](https://gis4fun.org/cesiumjs4gwt-showcase-snapshot/) Java API looks like as JavaScript. What was done: - [x] CesiumJS API like as native JavaScript. Based on CesiumJS source code 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.87.0</version> <version>1.81.1-SNAPSHOT</version> </parent> <name>CesiumJS GWT Wrapper</name> Loading cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/Cesium.java +28 −0 Original line number Diff line number Diff line Loading @@ -474,4 +474,32 @@ public class Cesium { return options; } } /** * Flags to enable experimental features in CesiumJS. Stability and performance * may not be optimal when these are enabled. Experimental features are subject * to change without Cesium's standard deprecation policy. * <p> * Experimental features must still uphold Cesium's quality standards. Here * are some guidelines: * </p> * <ul> * <li>Experimental features must have high unit test coverage like any other feature.</li> * <li>Experimental features are intended for large features where there is benefit of merging some of the * code sooner (e.g. to avoid long-running staging branches)</li> * <li>Experimental flags should be short-lived. Make it clear in the PR what it would take to promote the * feature to a regular feature.</li> * <li>To avoid cluttering the code, check the flag in as few places as possible. Ideally this would be a single place.</li> * </ul> * * experimental: This feature is using part of the 3D Tiles spec that is not final and is subject to change * without Cesium's standard deprecation policy. */ @JsType(isNative = true, namespace = "Cesium", name = "ExperimentalFeatures") public static class ExperimentalFeatures { /** * Toggles the usage of the ModelExperimental class. */ public static boolean enableModelExperimental; } } cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/scene/Cesium3DTileset.java +10 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import org.cesiumjs.cs.js.JsObject; import org.cesiumjs.cs.promise.Promise; import org.cesiumjs.cs.scene.enums.Cesium3DTileColorBlendMode; import org.cesiumjs.cs.scene.enums.ClassificationType; import org.cesiumjs.cs.scene.experimental.CustomShader; import org.cesiumjs.cs.scene.options.Cesium3DTilesetOptions; /** Loading Loading @@ -134,6 +135,15 @@ public class Cesium3DTileset { */ @JsProperty public double cullRequestsWhileMovingMultiplier; /** * A custom shader to apply to all tiles in the tileset. Only used for contents that use ModelExperimental. Using * custom shaders with a Cesium3DTileStyle may lead to undefined behavior. * To enable ModelExperimental, set ExperimentalFeatures.enableModelExperimental to true. * * Default: undefined */ @JsProperty public CustomShader customShader; /** * For debugging only. Determines if only the tiles from last frame should be * used for rendering. Defaule: false; Loading cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/scene/enums/Axis.java 0 → 100644 +42 −0 Original line number Diff line number Diff line /* * Copyright 2021 iserge, Gis4Fun. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.cesiumjs.cs.scene.enums; import jsinterop.annotations.JsProperty; import jsinterop.annotations.JsType; /** * An enum describing the x, y, and z axes and helper conversion functions. */ @JsType(isNative = true, namespace = "Cesium", name = "Axis") public class Axis { /** * Denotes the x-axis. */ @JsProperty(name = "X") public native Number X(); /** * Denotes the y-axis. */ @JsProperty(name = "Y") public native Number Y(); /** * Denotes the z-axis. */ @JsProperty(name = "Z") public native Number Z(); } Loading
README.md +4 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,10 @@ # GWT Cesium Wrapper [CesiumJS](http://cesiumjs.org) GWT Wrapper based on JsInterop 1.0.2 for [GWT 2.8.x](http://www.gwtproject.org/release-notes.html#Release_Notes_2_8_2). Showcase: - [Release](https://gis4fun.org/cesiumjs4gwt-showcase/) - [Develop](https://gis4fun.org/cesiumjs4gwt-showcase-snapshot/) Java API looks like as JavaScript. What was done: - [x] CesiumJS API like as native JavaScript. Based on CesiumJS source code 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.87.0</version> <version>1.81.1-SNAPSHOT</version> </parent> <name>CesiumJS GWT Wrapper</name> Loading
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/Cesium.java +28 −0 Original line number Diff line number Diff line Loading @@ -474,4 +474,32 @@ public class Cesium { return options; } } /** * Flags to enable experimental features in CesiumJS. Stability and performance * may not be optimal when these are enabled. Experimental features are subject * to change without Cesium's standard deprecation policy. * <p> * Experimental features must still uphold Cesium's quality standards. Here * are some guidelines: * </p> * <ul> * <li>Experimental features must have high unit test coverage like any other feature.</li> * <li>Experimental features are intended for large features where there is benefit of merging some of the * code sooner (e.g. to avoid long-running staging branches)</li> * <li>Experimental flags should be short-lived. Make it clear in the PR what it would take to promote the * feature to a regular feature.</li> * <li>To avoid cluttering the code, check the flag in as few places as possible. Ideally this would be a single place.</li> * </ul> * * experimental: This feature is using part of the 3D Tiles spec that is not final and is subject to change * without Cesium's standard deprecation policy. */ @JsType(isNative = true, namespace = "Cesium", name = "ExperimentalFeatures") public static class ExperimentalFeatures { /** * Toggles the usage of the ModelExperimental class. */ public static boolean enableModelExperimental; } }
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/scene/Cesium3DTileset.java +10 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,7 @@ import org.cesiumjs.cs.js.JsObject; import org.cesiumjs.cs.promise.Promise; import org.cesiumjs.cs.scene.enums.Cesium3DTileColorBlendMode; import org.cesiumjs.cs.scene.enums.ClassificationType; import org.cesiumjs.cs.scene.experimental.CustomShader; import org.cesiumjs.cs.scene.options.Cesium3DTilesetOptions; /** Loading Loading @@ -134,6 +135,15 @@ public class Cesium3DTileset { */ @JsProperty public double cullRequestsWhileMovingMultiplier; /** * A custom shader to apply to all tiles in the tileset. Only used for contents that use ModelExperimental. Using * custom shaders with a Cesium3DTileStyle may lead to undefined behavior. * To enable ModelExperimental, set ExperimentalFeatures.enableModelExperimental to true. * * Default: undefined */ @JsProperty public CustomShader customShader; /** * For debugging only. Determines if only the tiles from last frame should be * used for rendering. Defaule: false; Loading
cesiumjs4gwt-main/src/main/java/org/cesiumjs/cs/scene/enums/Axis.java 0 → 100644 +42 −0 Original line number Diff line number Diff line /* * Copyright 2021 iserge, Gis4Fun. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.cesiumjs.cs.scene.enums; import jsinterop.annotations.JsProperty; import jsinterop.annotations.JsType; /** * An enum describing the x, y, and z axes and helper conversion functions. */ @JsType(isNative = true, namespace = "Cesium", name = "Axis") public class Axis { /** * Denotes the x-axis. */ @JsProperty(name = "X") public native Number X(); /** * Denotes the y-axis. */ @JsProperty(name = "Y") public native Number Y(); /** * Denotes the z-axis. */ @JsProperty(name = "Z") public native Number Z(); }