@vesium/parser 1.0.1-beta.57 → 1.0.1-beta.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +9 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.iife.js +9 -6
- package/dist/index.iife.js.map +1 -1
- package/dist/index.iife.min.js +1 -1
- package/dist/index.iife.min.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.mjs +1 -1
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
## Documentation
|
|
34
34
|
|
|
35
|
-
To view the documentation, visit <a href="https://vesium.
|
|
35
|
+
To view the documentation, visit <a href="https://vesium.js.org" target="__blank">vesium.js.org</a>
|
|
36
36
|
|
|
37
37
|
## Features
|
|
38
38
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let cesium = require("cesium");
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
let vesium = require("vesium");
|
|
4
|
-
let
|
|
4
|
+
let _vueuse_core = require("@vueuse/core");
|
|
5
5
|
|
|
6
6
|
//#region src/ArcType.ts
|
|
7
7
|
const strings$10 = [
|
|
@@ -568,11 +568,14 @@ function MaterialPropertyZodSchema() {
|
|
|
568
568
|
* Convert `Cesium.MaterialProperty` instance to JSON
|
|
569
569
|
*/
|
|
570
570
|
function MaterialPropertyToJSON(instance) {
|
|
571
|
-
if (!(0,
|
|
571
|
+
if (!(0, _vueuse_core.notNullish)(instance)) return;
|
|
572
572
|
const program = [..._programs.values()].find((item) => item.predicate(instance));
|
|
573
573
|
if (program) return {
|
|
574
|
-
|
|
575
|
-
|
|
574
|
+
parser: "MaterialProperty",
|
|
575
|
+
value: {
|
|
576
|
+
name: program.programName,
|
|
577
|
+
content: program.toJSON(instance)
|
|
578
|
+
}
|
|
576
579
|
};
|
|
577
580
|
}
|
|
578
581
|
/**
|
|
@@ -580,7 +583,7 @@ function MaterialPropertyToJSON(instance) {
|
|
|
580
583
|
* @param json - A JSON containing instance data
|
|
581
584
|
*/
|
|
582
585
|
function MaterialPropertyFromJSON(json) {
|
|
583
|
-
if (!(0,
|
|
586
|
+
if (!(0, _vueuse_core.notNullish)(json)) return;
|
|
584
587
|
const program = [..._programs.values()].find((item) => item.programName === json.value.name);
|
|
585
588
|
if (program) return program.fromJSON(json.value.content);
|
|
586
589
|
}
|
|
@@ -1142,7 +1145,7 @@ function ConstantPositionPropertyZodSchema() {
|
|
|
1142
1145
|
* Convert `Cesium.ConstantPositionProperty` instance to JSON
|
|
1143
1146
|
*/
|
|
1144
1147
|
function ConstantPositionPropertyToJSON(instance, time) {
|
|
1145
|
-
if (!(0,
|
|
1148
|
+
if (!(0, _vueuse_core.notNullish)(instance)) return;
|
|
1146
1149
|
return {
|
|
1147
1150
|
parser: "ConstantPositionProperty",
|
|
1148
1151
|
value: Cartesian3ToJSON(instance.getValue(time))?.value
|