@vesium/parser 1.0.1-beta.57 → 1.0.1-beta.61

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 CHANGED
@@ -32,7 +32,7 @@
32
32
 
33
33
  ## Documentation
34
34
 
35
- To view the documentation, visit <a href="https://vesium.geovue.org" target="__blank">cesium.geovue.org</a>
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 __vueuse_core = require("@vueuse/core");
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, __vueuse_core.notNullish)(instance)) return;
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
- name: program.programName,
575
- content: program.toJSON(instance)
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, __vueuse_core.notNullish)(json)) return;
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, __vueuse_core.notNullish)(instance)) return;
1148
+ if (!(0, _vueuse_core.notNullish)(instance)) return;
1146
1149
  return {
1147
1150
  parser: "ConstantPositionProperty",
1148
1151
  value: Cartesian3ToJSON(instance.getValue(time))?.value