@configura/web-core 2.1.0-alpha.2 → 2.1.0-alpha.3
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/.eslintrc.json +5 -5
- package/LICENSE +201 -201
- package/README.md +1 -1
- package/dist/cm/basic/Color.d.ts +16 -16
- package/dist/cm/basic/Color.js +18 -18
- package/dist/cm/basic/ColorF.d.ts +9 -9
- package/dist/cm/basic/ColorF.js +10 -10
- package/dist/cm/basic/boolean.d.ts +2 -2
- package/dist/cm/basic/boolean.js +11 -11
- package/dist/cm/basic/number.d.ts +3 -3
- package/dist/cm/basic/number.js +18 -18
- package/dist/cm/basic/string.d.ts +2 -2
- package/dist/cm/basic/string.js +11 -11
- package/dist/cm/core3D/ATriMeshF.d.ts +96 -96
- package/dist/cm/core3D/ATriMeshF.js +197 -197
- package/dist/cm/core3D/GMaterial3D.d.ts +62 -62
- package/dist/cm/core3D/GMaterial3D.js +112 -112
- package/dist/cm/core3D/GMaterialClassic.d.ts +55 -55
- package/dist/cm/core3D/GMaterialClassic.js +171 -171
- package/dist/cm/core3D/GMaterialPBR.d.ts +73 -73
- package/dist/cm/core3D/GMaterialPBR.js +314 -314
- package/dist/cm/core3D/MultiGMaterial3D.d.ts +8 -8
- package/dist/cm/core3D/MultiGMaterial3D.js +17 -17
- package/dist/cm/core3D/uvmapper/UVMapEnv.d.ts +19 -19
- package/dist/cm/core3D/uvmapper/UVMapEnv.js +47 -47
- package/dist/cm/core3D/uvmapper/UVMapper.d.ts +41 -41
- package/dist/cm/core3D/uvmapper/UVMapper.js +94 -94
- package/dist/cm/core3D/uvmapper/UVMapperBox.d.ts +4 -4
- package/dist/cm/core3D/uvmapper/UVMapperBox.js +181 -181
- package/dist/cm/core3D/uvmapper/UVMapperCylinder.d.ts +9 -9
- package/dist/cm/core3D/uvmapper/UVMapperCylinder.js +96 -96
- package/dist/cm/core3D/uvmapper/UVMapperPlane.d.ts +3 -3
- package/dist/cm/core3D/uvmapper/UVMapperPlane.js +84 -84
- package/dist/cm/core3D/uvmapper/UVTransformer.d.ts +5 -5
- package/dist/cm/core3D/uvmapper/UVTransformer.js +5 -5
- package/dist/cm/core3D/uvmapper/instantiateUVMapper.d.ts +3 -3
- package/dist/cm/core3D/uvmapper/instantiateUVMapper.js +4 -4
- package/dist/cm/format/cmsym/InvalidationEnv.d.ts +9 -9
- package/dist/cm/format/cmsym/InvalidationEnv.js +13 -13
- package/dist/cm/format/cmsym/SymImportEnv.d.ts +9 -9
- package/dist/cm/format/cmsym/SymImportEnv.js +9 -9
- package/dist/cm/format/cmsym/SymInv.d.ts +8 -8
- package/dist/cm/format/cmsym/SymInv.js +17 -17
- package/dist/cm/format/cmsym/SymNode.d.ts +94 -94
- package/dist/cm/format/cmsym/SymNode.js +652 -652
- package/dist/cm/format/cmsym/components/SymBox.d.ts +15 -15
- package/dist/cm/format/cmsym/components/SymBox.js +39 -39
- package/dist/cm/format/cmsym/components/SymComponent.d.ts +29 -29
- package/dist/cm/format/cmsym/components/SymComponent.js +56 -56
- package/dist/cm/format/cmsym/components/SymConnector.d.ts +5 -5
- package/dist/cm/format/cmsym/components/SymConnector.js +10 -10
- package/dist/cm/format/cmsym/components/SymDexObj.d.ts +11 -11
- package/dist/cm/format/cmsym/components/SymDexObj.js +10 -10
- package/dist/cm/format/cmsym/components/SymGFX.d.ts +11 -11
- package/dist/cm/format/cmsym/components/SymGFX.js +20 -20
- package/dist/cm/format/cmsym/components/SymGMaterial.d.ts +19 -19
- package/dist/cm/format/cmsym/components/SymGMaterial.js +88 -88
- package/dist/cm/format/cmsym/components/SymGMaterialSelector.d.ts +17 -17
- package/dist/cm/format/cmsym/components/SymGMaterialSelector.js +22 -22
- package/dist/cm/format/cmsym/components/SymGetMeshEnv.d.ts +9 -9
- package/dist/cm/format/cmsym/components/SymGetMeshEnv.js +9 -9
- package/dist/cm/format/cmsym/components/SymLODGroup.d.ts +9 -9
- package/dist/cm/format/cmsym/components/SymLODGroup.js +13 -13
- package/dist/cm/format/cmsym/components/SymLight.d.ts +8 -8
- package/dist/cm/format/cmsym/components/SymLight.js +10 -10
- package/dist/cm/format/cmsym/components/SymLines2D.d.ts +5 -5
- package/dist/cm/format/cmsym/components/SymLines2D.js +7 -7
- package/dist/cm/format/cmsym/components/SymMeasure.d.ts +33 -33
- package/dist/cm/format/cmsym/components/SymMeasure.js +149 -149
- package/dist/cm/format/cmsym/components/SymMesh.d.ts +29 -29
- package/dist/cm/format/cmsym/components/SymMesh.js +130 -130
- package/dist/cm/format/cmsym/components/SymMeshLight.d.ts +8 -8
- package/dist/cm/format/cmsym/components/SymMeshLight.js +10 -10
- package/dist/cm/format/cmsym/components/SymMultiSelector.d.ts +13 -13
- package/dist/cm/format/cmsym/components/SymMultiSelector.js +48 -48
- package/dist/cm/format/cmsym/components/SymParams.d.ts +16 -16
- package/dist/cm/format/cmsym/components/SymParams.js +58 -58
- package/dist/cm/format/cmsym/components/SymPlane.d.ts +15 -15
- package/dist/cm/format/cmsym/components/SymPlane.js +30 -30
- package/dist/cm/format/cmsym/components/SymPlaneDivider.d.ts +4 -4
- package/dist/cm/format/cmsym/components/SymPlaneDivider.js +7 -7
- package/dist/cm/format/cmsym/components/SymPrimitive2D.d.ts +3 -3
- package/dist/cm/format/cmsym/components/SymPrimitive2D.js +3 -3
- package/dist/cm/format/cmsym/components/SymProgs.d.ts +32 -32
- package/dist/cm/format/cmsym/components/SymProgs.js +120 -120
- package/dist/cm/format/cmsym/components/SymProps.d.ts +54 -54
- package/dist/cm/format/cmsym/components/SymProps.js +171 -171
- package/dist/cm/format/cmsym/components/SymRep.d.ts +13 -13
- package/dist/cm/format/cmsym/components/SymRep.js +28 -28
- package/dist/cm/format/cmsym/components/SymReps.d.ts +36 -36
- package/dist/cm/format/cmsym/components/SymReps.js +230 -230
- package/dist/cm/format/cmsym/components/SymShape.d.ts +10 -10
- package/dist/cm/format/cmsym/components/SymShape.js +17 -17
- package/dist/cm/format/cmsym/components/SymSphere.d.ts +18 -18
- package/dist/cm/format/cmsym/components/SymSphere.js +33 -33
- package/dist/cm/format/cmsym/components/SymSpotlight.d.ts +8 -8
- package/dist/cm/format/cmsym/components/SymSpotlight.js +10 -10
- package/dist/cm/format/cmsym/components/SymTags.d.ts +11 -11
- package/dist/cm/format/cmsym/components/SymTags.js +20 -20
- package/dist/cm/format/cmsym/components/SymText2D.d.ts +5 -5
- package/dist/cm/format/cmsym/components/SymText2D.js +8 -8
- package/dist/cm/format/cmsym/components/SymText3D.d.ts +5 -5
- package/dist/cm/format/cmsym/components/SymText3D.js +8 -8
- package/dist/cm/format/cmsym/components/SymTransform.d.ts +23 -23
- package/dist/cm/format/cmsym/components/SymTransform.js +101 -101
- package/dist/cm/format/cmsym/components/SymUVMapper.d.ts +13 -13
- package/dist/cm/format/cmsym/components/SymUVMapper.js +50 -50
- package/dist/cm/format/cmsym/components/instantiate.d.ts +2 -2
- package/dist/cm/format/cmsym/components/instantiate.js +121 -121
- package/dist/cm/format/cmsym/components/legacy.d.ts +7 -7
- package/dist/cm/format/cmsym/components/legacy.js +27 -27
- package/dist/cm/format/cmsym/components/mesh.d.ts +8 -8
- package/dist/cm/format/cmsym/components/mesh.js +28 -28
- package/dist/cm/format/cmsym/invalidation.d.ts +4 -4
- package/dist/cm/format/cmsym/invalidation.js +72 -72
- package/dist/cm/format/dex/DexIRef.d.ts +9 -9
- package/dist/cm/format/dex/DexIRef.js +18 -18
- package/dist/cm/format/dex/DexInt.d.ts +11 -11
- package/dist/cm/format/dex/DexInt.js +18 -18
- package/dist/cm/format/dex/DexInternalizedXRef.d.ts +19 -19
- package/dist/cm/format/dex/DexInternalizedXRef.js +65 -65
- package/dist/cm/format/dex/DexLoader.d.ts +8 -8
- package/dist/cm/format/dex/DexLoader.js +12 -12
- package/dist/cm/format/dex/DexManager.d.ts +20 -20
- package/dist/cm/format/dex/DexManager.js +78 -78
- package/dist/cm/format/dex/DexObj.d.ts +15 -15
- package/dist/cm/format/dex/DexObj.js +86 -86
- package/dist/cm/format/dex/DexReader.d.ts +90 -90
- package/dist/cm/format/dex/DexReader.js +532 -532
- package/dist/cm/format/dex/DexRef.d.ts +6 -6
- package/dist/cm/format/dex/DexRef.js +8 -8
- package/dist/cm/format/dex/DexReplacedXRefs.d.ts +9 -9
- package/dist/cm/format/dex/DexReplacedXRefs.js +22 -22
- package/dist/cm/format/dex/DexURL.d.ts +4 -4
- package/dist/cm/format/dex/DexURL.js +5 -5
- package/dist/cm/format/dex/DexVersion.d.ts +15 -15
- package/dist/cm/format/dex/DexVersion.js +53 -53
- package/dist/cm/format/dex/DexXRef.d.ts +18 -18
- package/dist/cm/format/dex/DexXRef.js +51 -51
- package/dist/cm/format/dex/DexXRefTargetFilter.d.ts +4 -4
- package/dist/cm/format/dex/DexXRefTargetFilter.js +5 -5
- package/dist/cm/geometry/Angle.d.ts +9 -9
- package/dist/cm/geometry/Angle.js +18 -18
- package/dist/cm/geometry/AngleF.d.ts +5 -5
- package/dist/cm/geometry/AngleF.js +8 -8
- package/dist/cm/geometry/Box.d.ts +7 -7
- package/dist/cm/geometry/Box.js +9 -9
- package/dist/cm/geometry/DetailMask.d.ts +37 -37
- package/dist/cm/geometry/DetailMask.js +114 -114
- package/dist/cm/geometry/LayerExpr.d.ts +2 -2
- package/dist/cm/geometry/LayerExpr.js +2 -2
- package/dist/cm/geometry/Matrix22.d.ts +7 -7
- package/dist/cm/geometry/Matrix22.js +9 -9
- package/dist/cm/geometry/Matrix33.d.ts +42 -42
- package/dist/cm/geometry/Matrix33.js +124 -124
- package/dist/cm/geometry/Orientation.d.ts +7 -7
- package/dist/cm/geometry/Orientation.js +7 -7
- package/dist/cm/geometry/Plane.d.ts +8 -8
- package/dist/cm/geometry/Plane.js +14 -14
- package/dist/cm/geometry/Point.d.ts +21 -21
- package/dist/cm/geometry/Point.js +65 -65
- package/dist/cm/geometry/Point2D.d.ts +9 -9
- package/dist/cm/geometry/Point2D.js +23 -23
- package/dist/cm/geometry/PointF.d.ts +11 -11
- package/dist/cm/geometry/PointF.js +27 -27
- package/dist/cm/geometry/Transform.d.ts +11 -11
- package/dist/cm/geometry/Transform.js +61 -61
- package/dist/cm/geometry/Transform2D.d.ts +7 -7
- package/dist/cm/geometry/Transform2D.js +6 -6
- package/dist/cm/io/Semver.d.ts +18 -18
- package/dist/cm/io/Semver.js +61 -61
- package/dist/index.js +1 -1
- package/package.json +4 -4
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
import { SymBox } from "./SymBox.js";
|
|
2
|
-
import { SymComponent } from "./SymComponent.js";
|
|
3
|
-
import { SymConnector } from "./SymConnector.js";
|
|
4
|
-
import { SymGFX } from "./SymGFX.js";
|
|
5
|
-
import { SymGMaterial } from "./SymGMaterial.js";
|
|
6
|
-
import { SymGMaterialSelector } from "./SymGMaterialSelector.js";
|
|
7
|
-
import { SymLight } from "./SymLight.js";
|
|
8
|
-
import { SymLines2D } from "./SymLines2D.js";
|
|
9
|
-
import { SymLODGroup } from "./SymLODGroup.js";
|
|
10
|
-
import { SymMeasure } from "./SymMeasure.js";
|
|
11
|
-
import { SymMesh } from "./SymMesh.js";
|
|
12
|
-
import { SymMeshLight } from "./SymMeshLight.js";
|
|
13
|
-
import { SymParams } from "./SymParams.js";
|
|
14
|
-
import { SymPlane } from "./SymPlane.js";
|
|
15
|
-
import { SymPlaneDivider } from "./SymPlaneDivider.js";
|
|
16
|
-
import { SymProgs } from "./SymProgs.js";
|
|
17
|
-
import { SymProps } from "./SymProps.js";
|
|
18
|
-
import { SymReps } from "./SymReps.js";
|
|
19
|
-
import { SymShape } from "./SymShape.js";
|
|
20
|
-
import { SymSphere } from "./SymSphere.js";
|
|
21
|
-
import { SymSpotlight } from "./SymSpotlight.js";
|
|
22
|
-
import { SymTags } from "./SymTags.js";
|
|
23
|
-
import { SymText2D } from "./SymText2D.js";
|
|
24
|
-
import { SymText3D } from "./SymText3D.js";
|
|
25
|
-
import { SymTransform } from "./SymTransform.js";
|
|
26
|
-
import { SymUVMapper } from "./SymUVMapper.js";
|
|
27
|
-
export function instantiate(key) {
|
|
28
|
-
switch (key) {
|
|
29
|
-
case "symBox":
|
|
30
|
-
case "SymBox":
|
|
31
|
-
return new SymBox();
|
|
32
|
-
case "symSphere":
|
|
33
|
-
case "SymSphere":
|
|
34
|
-
return new SymSphere();
|
|
35
|
-
case "symConnector":
|
|
36
|
-
case "SymConnector":
|
|
37
|
-
return new SymConnector();
|
|
38
|
-
case "symGfx":
|
|
39
|
-
case "SymGfx":
|
|
40
|
-
return new SymGFX();
|
|
41
|
-
case "symGMaterial":
|
|
42
|
-
case "SymGMaterial":
|
|
43
|
-
return new SymGMaterial();
|
|
44
|
-
case "symGMaterialSelector":
|
|
45
|
-
case "SymGMaterialSelector":
|
|
46
|
-
return new SymGMaterialSelector();
|
|
47
|
-
case "symMesh":
|
|
48
|
-
case "SymMesh":
|
|
49
|
-
return new SymMesh();
|
|
50
|
-
case "symReps":
|
|
51
|
-
case "SymReps":
|
|
52
|
-
return new SymReps();
|
|
53
|
-
case "symProps":
|
|
54
|
-
case "SymProps":
|
|
55
|
-
return new SymProps();
|
|
56
|
-
case "symLines2D":
|
|
57
|
-
case "SymLines2D":
|
|
58
|
-
return new SymLines2D();
|
|
59
|
-
case "symText2D":
|
|
60
|
-
case "SymText2D":
|
|
61
|
-
return new SymText2D();
|
|
62
|
-
case "symText3D":
|
|
63
|
-
case "SymText3D":
|
|
64
|
-
return new SymText3D();
|
|
65
|
-
case "symLODGroup":
|
|
66
|
-
case "SymLODGroup":
|
|
67
|
-
return new SymLODGroup();
|
|
68
|
-
case "symShape":
|
|
69
|
-
case "SymShape":
|
|
70
|
-
return new SymShape();
|
|
71
|
-
case "SymTags":
|
|
72
|
-
return new SymTags();
|
|
73
|
-
case "symTransform":
|
|
74
|
-
case "SymTransform":
|
|
75
|
-
return new SymTransform();
|
|
76
|
-
case "symParams":
|
|
77
|
-
case "SymParams":
|
|
78
|
-
// TODO: replace with real implementation
|
|
79
|
-
return new SymParams();
|
|
80
|
-
case "symMeasure":
|
|
81
|
-
case "SymMeasure":
|
|
82
|
-
return new SymMeasure();
|
|
83
|
-
case "symProgs":
|
|
84
|
-
case "SymProgs":
|
|
85
|
-
// TODO: replace with real implementation
|
|
86
|
-
return new SymProgs();
|
|
87
|
-
case "symPlane":
|
|
88
|
-
case "SymPlane":
|
|
89
|
-
return new SymPlane();
|
|
90
|
-
case "symPlaneDivider":
|
|
91
|
-
case "SymPlaneDivider":
|
|
92
|
-
// TODO: replace with real implementation
|
|
93
|
-
return new SymPlaneDivider();
|
|
94
|
-
case "symUVMapper":
|
|
95
|
-
case "SymUVMapper":
|
|
96
|
-
return new SymUVMapper();
|
|
97
|
-
case "symPoints":
|
|
98
|
-
case "SymPoints":
|
|
99
|
-
// SymPoints isn't necessary for Web Configurator
|
|
100
|
-
return new SymComponent("symPoints");
|
|
101
|
-
case "flags":
|
|
102
|
-
case "Flags":
|
|
103
|
-
// TODO: replace with real implementation
|
|
104
|
-
return new SymComponent("flags");
|
|
105
|
-
case "symLight":
|
|
106
|
-
case "SymLight":
|
|
107
|
-
// TODO: replace with real implementation
|
|
108
|
-
return new SymLight();
|
|
109
|
-
case "symMeshLight":
|
|
110
|
-
case "SymMeshLight":
|
|
111
|
-
// TODO: replace with real implementation
|
|
112
|
-
return new SymMeshLight();
|
|
113
|
-
case "symSpotlight":
|
|
114
|
-
case "SymSpotlight":
|
|
115
|
-
// TODO: replace with real implementation
|
|
116
|
-
return new SymSpotlight();
|
|
117
|
-
default:
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
throw Error("[instantiate] not implemented for " + key);
|
|
121
|
-
}
|
|
1
|
+
import { SymBox } from "./SymBox.js";
|
|
2
|
+
import { SymComponent } from "./SymComponent.js";
|
|
3
|
+
import { SymConnector } from "./SymConnector.js";
|
|
4
|
+
import { SymGFX } from "./SymGFX.js";
|
|
5
|
+
import { SymGMaterial } from "./SymGMaterial.js";
|
|
6
|
+
import { SymGMaterialSelector } from "./SymGMaterialSelector.js";
|
|
7
|
+
import { SymLight } from "./SymLight.js";
|
|
8
|
+
import { SymLines2D } from "./SymLines2D.js";
|
|
9
|
+
import { SymLODGroup } from "./SymLODGroup.js";
|
|
10
|
+
import { SymMeasure } from "./SymMeasure.js";
|
|
11
|
+
import { SymMesh } from "./SymMesh.js";
|
|
12
|
+
import { SymMeshLight } from "./SymMeshLight.js";
|
|
13
|
+
import { SymParams } from "./SymParams.js";
|
|
14
|
+
import { SymPlane } from "./SymPlane.js";
|
|
15
|
+
import { SymPlaneDivider } from "./SymPlaneDivider.js";
|
|
16
|
+
import { SymProgs } from "./SymProgs.js";
|
|
17
|
+
import { SymProps } from "./SymProps.js";
|
|
18
|
+
import { SymReps } from "./SymReps.js";
|
|
19
|
+
import { SymShape } from "./SymShape.js";
|
|
20
|
+
import { SymSphere } from "./SymSphere.js";
|
|
21
|
+
import { SymSpotlight } from "./SymSpotlight.js";
|
|
22
|
+
import { SymTags } from "./SymTags.js";
|
|
23
|
+
import { SymText2D } from "./SymText2D.js";
|
|
24
|
+
import { SymText3D } from "./SymText3D.js";
|
|
25
|
+
import { SymTransform } from "./SymTransform.js";
|
|
26
|
+
import { SymUVMapper } from "./SymUVMapper.js";
|
|
27
|
+
export function instantiate(key) {
|
|
28
|
+
switch (key) {
|
|
29
|
+
case "symBox":
|
|
30
|
+
case "SymBox":
|
|
31
|
+
return new SymBox();
|
|
32
|
+
case "symSphere":
|
|
33
|
+
case "SymSphere":
|
|
34
|
+
return new SymSphere();
|
|
35
|
+
case "symConnector":
|
|
36
|
+
case "SymConnector":
|
|
37
|
+
return new SymConnector();
|
|
38
|
+
case "symGfx":
|
|
39
|
+
case "SymGfx":
|
|
40
|
+
return new SymGFX();
|
|
41
|
+
case "symGMaterial":
|
|
42
|
+
case "SymGMaterial":
|
|
43
|
+
return new SymGMaterial();
|
|
44
|
+
case "symGMaterialSelector":
|
|
45
|
+
case "SymGMaterialSelector":
|
|
46
|
+
return new SymGMaterialSelector();
|
|
47
|
+
case "symMesh":
|
|
48
|
+
case "SymMesh":
|
|
49
|
+
return new SymMesh();
|
|
50
|
+
case "symReps":
|
|
51
|
+
case "SymReps":
|
|
52
|
+
return new SymReps();
|
|
53
|
+
case "symProps":
|
|
54
|
+
case "SymProps":
|
|
55
|
+
return new SymProps();
|
|
56
|
+
case "symLines2D":
|
|
57
|
+
case "SymLines2D":
|
|
58
|
+
return new SymLines2D();
|
|
59
|
+
case "symText2D":
|
|
60
|
+
case "SymText2D":
|
|
61
|
+
return new SymText2D();
|
|
62
|
+
case "symText3D":
|
|
63
|
+
case "SymText3D":
|
|
64
|
+
return new SymText3D();
|
|
65
|
+
case "symLODGroup":
|
|
66
|
+
case "SymLODGroup":
|
|
67
|
+
return new SymLODGroup();
|
|
68
|
+
case "symShape":
|
|
69
|
+
case "SymShape":
|
|
70
|
+
return new SymShape();
|
|
71
|
+
case "SymTags":
|
|
72
|
+
return new SymTags();
|
|
73
|
+
case "symTransform":
|
|
74
|
+
case "SymTransform":
|
|
75
|
+
return new SymTransform();
|
|
76
|
+
case "symParams":
|
|
77
|
+
case "SymParams":
|
|
78
|
+
// TODO: replace with real implementation
|
|
79
|
+
return new SymParams();
|
|
80
|
+
case "symMeasure":
|
|
81
|
+
case "SymMeasure":
|
|
82
|
+
return new SymMeasure();
|
|
83
|
+
case "symProgs":
|
|
84
|
+
case "SymProgs":
|
|
85
|
+
// TODO: replace with real implementation
|
|
86
|
+
return new SymProgs();
|
|
87
|
+
case "symPlane":
|
|
88
|
+
case "SymPlane":
|
|
89
|
+
return new SymPlane();
|
|
90
|
+
case "symPlaneDivider":
|
|
91
|
+
case "SymPlaneDivider":
|
|
92
|
+
// TODO: replace with real implementation
|
|
93
|
+
return new SymPlaneDivider();
|
|
94
|
+
case "symUVMapper":
|
|
95
|
+
case "SymUVMapper":
|
|
96
|
+
return new SymUVMapper();
|
|
97
|
+
case "symPoints":
|
|
98
|
+
case "SymPoints":
|
|
99
|
+
// SymPoints isn't necessary for Web Configurator
|
|
100
|
+
return new SymComponent("symPoints");
|
|
101
|
+
case "flags":
|
|
102
|
+
case "Flags":
|
|
103
|
+
// TODO: replace with real implementation
|
|
104
|
+
return new SymComponent("flags");
|
|
105
|
+
case "symLight":
|
|
106
|
+
case "SymLight":
|
|
107
|
+
// TODO: replace with real implementation
|
|
108
|
+
return new SymLight();
|
|
109
|
+
case "symMeshLight":
|
|
110
|
+
case "SymMeshLight":
|
|
111
|
+
// TODO: replace with real implementation
|
|
112
|
+
return new SymMeshLight();
|
|
113
|
+
case "symSpotlight":
|
|
114
|
+
case "SymSpotlight":
|
|
115
|
+
// TODO: replace with real implementation
|
|
116
|
+
return new SymSpotlight();
|
|
117
|
+
default:
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
throw Error("[instantiate] not implemented for " + key);
|
|
121
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Logger } from "@configura/web-utilities";
|
|
2
|
-
import { DexObj } from "../../dex/DexObj.js";
|
|
3
|
-
import { SymImportEnv } from "../SymImportEnv.js";
|
|
4
|
-
import { SymNode } from "../SymNode.js";
|
|
5
|
-
import { DexObjKey, SymComponentKey } from "./SymComponent.js";
|
|
6
|
-
export declare function loadLegacyComponent(logger: Logger, node: SymNode, key: SymComponentKey | DexObjKey, obj: DexObj, env: SymImportEnv, force: boolean): boolean;
|
|
7
|
-
export declare function loadSymCache(logger: Logger, node: SymNode, key: SymComponentKey | DexObjKey, obj: DexObj, env: SymImportEnv, force: boolean): void;
|
|
1
|
+
import { Logger } from "@configura/web-utilities";
|
|
2
|
+
import { DexObj } from "../../dex/DexObj.js";
|
|
3
|
+
import { SymImportEnv } from "../SymImportEnv.js";
|
|
4
|
+
import { SymNode } from "../SymNode.js";
|
|
5
|
+
import { DexObjKey, SymComponentKey } from "./SymComponent.js";
|
|
6
|
+
export declare function loadLegacyComponent(logger: Logger, node: SymNode, key: SymComponentKey | DexObjKey, obj: DexObj, env: SymImportEnv, force: boolean): boolean;
|
|
7
|
+
export declare function loadSymCache(logger: Logger, node: SymNode, key: SymComponentKey | DexObjKey, obj: DexObj, env: SymImportEnv, force: boolean): void;
|
|
8
8
|
//# sourceMappingURL=legacy.d.ts.map
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { Semver } from "../../../io/Semver.js";
|
|
2
|
-
import { SymProps } from "./SymProps.js";
|
|
3
|
-
export function loadLegacyComponent(logger, node, key, obj, env, force) {
|
|
4
|
-
if (obj.type === "SymText" && env.fileVersion.lte(new Semver(1, 1, 0))) {
|
|
5
|
-
throw logger.errorAsObject("[loadLegacyComponent] loadSymText(z, key, dex);");
|
|
6
|
-
}
|
|
7
|
-
if (obj.type === "SymPoint" && env.fileVersion.lte(new Semver(1, 2, 0))) {
|
|
8
|
-
throw logger.errorAsObject("[loadLegacyComponent] loadSymPoint(z, key, dex);");
|
|
9
|
-
}
|
|
10
|
-
if (obj.type === "SymLine" && env.fileVersion.lte(new Semver(1, 2, 0))) {
|
|
11
|
-
throw logger.errorAsObject("[loadLegacyComponent] loadSymLine(z, key, dex);");
|
|
12
|
-
}
|
|
13
|
-
if (obj.type === "SymCache" && env.fileVersion.lte(new Semver(1, 2, 1))) {
|
|
14
|
-
loadSymCache(logger, node, key, obj, env, force);
|
|
15
|
-
return true;
|
|
16
|
-
}
|
|
17
|
-
if (obj.type === "SymLines" && env.fileVersion.lte(new Semver(1, 2, 2))) {
|
|
18
|
-
throw logger.errorAsObject("[loadLegacyComponent] loadSymLines(z, key, dex, env, force);");
|
|
19
|
-
}
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
export function loadSymCache(logger, node, key, obj, env, force) {
|
|
23
|
-
const props = new SymProps();
|
|
24
|
-
props.load(logger, obj, env, force);
|
|
25
|
-
node.addComponent(props, false);
|
|
26
|
-
node.components.delete(key);
|
|
27
|
-
}
|
|
1
|
+
import { Semver } from "../../../io/Semver.js";
|
|
2
|
+
import { SymProps } from "./SymProps.js";
|
|
3
|
+
export function loadLegacyComponent(logger, node, key, obj, env, force) {
|
|
4
|
+
if (obj.type === "SymText" && env.fileVersion.lte(new Semver(1, 1, 0))) {
|
|
5
|
+
throw logger.errorAsObject("[loadLegacyComponent] loadSymText(z, key, dex);");
|
|
6
|
+
}
|
|
7
|
+
if (obj.type === "SymPoint" && env.fileVersion.lte(new Semver(1, 2, 0))) {
|
|
8
|
+
throw logger.errorAsObject("[loadLegacyComponent] loadSymPoint(z, key, dex);");
|
|
9
|
+
}
|
|
10
|
+
if (obj.type === "SymLine" && env.fileVersion.lte(new Semver(1, 2, 0))) {
|
|
11
|
+
throw logger.errorAsObject("[loadLegacyComponent] loadSymLine(z, key, dex);");
|
|
12
|
+
}
|
|
13
|
+
if (obj.type === "SymCache" && env.fileVersion.lte(new Semver(1, 2, 1))) {
|
|
14
|
+
loadSymCache(logger, node, key, obj, env, force);
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
if (obj.type === "SymLines" && env.fileVersion.lte(new Semver(1, 2, 2))) {
|
|
18
|
+
throw logger.errorAsObject("[loadLegacyComponent] loadSymLines(z, key, dex, env, force);");
|
|
19
|
+
}
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
export function loadSymCache(logger, node, key, obj, env, force) {
|
|
23
|
+
const props = new SymProps();
|
|
24
|
+
props.load(logger, obj, env, force);
|
|
25
|
+
node.addComponent(props, false);
|
|
26
|
+
node.components.delete(key);
|
|
27
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Logger } from "@configura/web-utilities";
|
|
2
|
-
import { DetailLevel } from "../../../geometry/DetailMask.js";
|
|
3
|
-
import { SymNode } from "../SymNode.js";
|
|
4
|
-
export interface TaggedNode {
|
|
5
|
-
node: SymNode;
|
|
6
|
-
tags: string[];
|
|
7
|
-
}
|
|
8
|
-
export declare function findMeshNodes(logger: Logger, node: SymNode, detail: DetailLevel, tags: string[], meshNodes: TaggedNode[]): TaggedNode[];
|
|
1
|
+
import { Logger } from "@configura/web-utilities";
|
|
2
|
+
import { DetailLevel } from "../../../geometry/DetailMask.js";
|
|
3
|
+
import { SymNode } from "../SymNode.js";
|
|
4
|
+
export interface TaggedNode {
|
|
5
|
+
node: SymNode;
|
|
6
|
+
tags: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare function findMeshNodes(logger: Logger, node: SymNode, detail: DetailLevel, tags: string[], meshNodes: TaggedNode[]): TaggedNode[];
|
|
9
9
|
//# sourceMappingURL=mesh.d.ts.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { SymGfxMode } from "./SymComponent.js";
|
|
2
|
-
export function findMeshNodes(logger, node, detail, tags, meshNodes) {
|
|
3
|
-
const symTags = node.symTags();
|
|
4
|
-
if (symTags !== undefined && symTags.main !== undefined) {
|
|
5
|
-
tags = tags.slice();
|
|
6
|
-
tags.push(symTags.main);
|
|
7
|
-
}
|
|
8
|
-
const symMesh = node.symMesh();
|
|
9
|
-
if (symMesh !== undefined) {
|
|
10
|
-
const symReps = node.symReps();
|
|
11
|
-
if (symReps !== undefined && symReps._details !== undefined) {
|
|
12
|
-
const lod = symReps._details.get(SymGfxMode.x3D);
|
|
13
|
-
if (lod !== undefined && lod.includes(detail)) {
|
|
14
|
-
meshNodes.push({ node, tags });
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
meshNodes.push({ node, tags });
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
const children = node.children(logger, false, true);
|
|
22
|
-
if (children && children.size > 0) {
|
|
23
|
-
for (const child of children.values()) {
|
|
24
|
-
meshNodes = findMeshNodes(logger, child, detail, tags, meshNodes);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return meshNodes;
|
|
28
|
-
}
|
|
1
|
+
import { SymGfxMode } from "./SymComponent.js";
|
|
2
|
+
export function findMeshNodes(logger, node, detail, tags, meshNodes) {
|
|
3
|
+
const symTags = node.symTags();
|
|
4
|
+
if (symTags !== undefined && symTags.main !== undefined) {
|
|
5
|
+
tags = tags.slice();
|
|
6
|
+
tags.push(symTags.main);
|
|
7
|
+
}
|
|
8
|
+
const symMesh = node.symMesh();
|
|
9
|
+
if (symMesh !== undefined) {
|
|
10
|
+
const symReps = node.symReps();
|
|
11
|
+
if (symReps !== undefined && symReps._details !== undefined) {
|
|
12
|
+
const lod = symReps._details.get(SymGfxMode.x3D);
|
|
13
|
+
if (lod !== undefined && lod.includes(detail)) {
|
|
14
|
+
meshNodes.push({ node, tags });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
meshNodes.push({ node, tags });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const children = node.children(logger, false, true);
|
|
22
|
+
if (children && children.size > 0) {
|
|
23
|
+
for (const child of children.values()) {
|
|
24
|
+
meshNodes = findMeshNodes(logger, child, detail, tags, meshNodes);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return meshNodes;
|
|
28
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SymInv } from "./SymInv.js";
|
|
2
|
-
import { SymNode } from "./SymNode.js";
|
|
3
|
-
export declare function appendInvalidation(invalidation: SymInv[], node: SymNode, removed: boolean): void;
|
|
4
|
-
export declare function invalidate(node: SymNode, invalidation: SymInv[], xtrace?: boolean): void;
|
|
1
|
+
import { SymInv } from "./SymInv.js";
|
|
2
|
+
import { SymNode } from "./SymNode.js";
|
|
3
|
+
export declare function appendInvalidation(invalidation: SymInv[], node: SymNode, removed: boolean): void;
|
|
4
|
+
export declare function invalidate(node: SymNode, invalidation: SymInv[], xtrace?: boolean): void;
|
|
5
5
|
//# sourceMappingURL=invalidation.d.ts.map
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { InvalidationEnv } from "./InvalidationEnv.js";
|
|
2
|
-
export function appendInvalidation(invalidation, node, removed) {
|
|
3
|
-
for (const component of node.components.values()) {
|
|
4
|
-
const inv = component.invalidation(removed);
|
|
5
|
-
if (inv !== undefined) {
|
|
6
|
-
invalidation.push(...inv);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
// if (node.userCached && !node.symUCache) {
|
|
10
|
-
// invalidation.push(SymUCacheInv(node, removed));
|
|
11
|
-
// }
|
|
12
|
-
}
|
|
13
|
-
export function invalidate(node, invalidation, xtrace = false) {
|
|
14
|
-
if (invalidation.length === 0) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
if (xtrace) {
|
|
18
|
-
console.log(`invalidate(${node.id},${invalidation.length})`);
|
|
19
|
-
}
|
|
20
|
-
const stack = [new InvalidationEnv(node, invalidation)];
|
|
21
|
-
while (stack.length > 0) {
|
|
22
|
-
const env = stack.pop();
|
|
23
|
-
if (env === undefined) {
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
if (xtrace) {
|
|
27
|
-
env.dump();
|
|
28
|
-
}
|
|
29
|
-
const keep = [];
|
|
30
|
-
for (const inv of env.invalidation) {
|
|
31
|
-
if (inv.skip(env.node)) {
|
|
32
|
-
if (xtrace) {
|
|
33
|
-
console.log(`${" ".repeat(env.n + 1)}skip origin, ${env.node} ${inv}`);
|
|
34
|
-
}
|
|
35
|
-
keep.push(inv);
|
|
36
|
-
}
|
|
37
|
-
else if (inv.needToInvalidate(env.node)) {
|
|
38
|
-
if (xtrace) {
|
|
39
|
-
console.log(`${" ".repeat(env.n + 1)}invalidate, ${env.node} ${inv}`);
|
|
40
|
-
}
|
|
41
|
-
inv.invalidate(env.node);
|
|
42
|
-
if (inv.propagate()) {
|
|
43
|
-
keep.push(inv);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
if (xtrace) {
|
|
48
|
-
console.log(`${" ".repeat(env.n + 1)}skip, ${env.node} ${inv}`);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
const parents = env.node._parents;
|
|
53
|
-
if (keep.length > 0 && parents && parents.length > 0) {
|
|
54
|
-
if (xtrace) {
|
|
55
|
-
console.log(`${" ".repeat(env.n + 1)}keep, ${keep.length}`);
|
|
56
|
-
}
|
|
57
|
-
for (let i = 0; i < parents.length; i++) {
|
|
58
|
-
const parent = parents[i];
|
|
59
|
-
const inv = i > 0 ? keep.slice() : keep;
|
|
60
|
-
stack.push(new InvalidationEnv(parent, inv, env.n + 2));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
if (xtrace && keep.length === 0) {
|
|
65
|
-
console.log(`${" ".repeat(env.n + 1)}keep empty`);
|
|
66
|
-
}
|
|
67
|
-
if (xtrace && (parents === undefined || parents.length === 0)) {
|
|
68
|
-
console.log(`${" ".repeat(env.n + 1)}parents empty`);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
1
|
+
import { InvalidationEnv } from "./InvalidationEnv.js";
|
|
2
|
+
export function appendInvalidation(invalidation, node, removed) {
|
|
3
|
+
for (const component of node.components.values()) {
|
|
4
|
+
const inv = component.invalidation(removed);
|
|
5
|
+
if (inv !== undefined) {
|
|
6
|
+
invalidation.push(...inv);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
// if (node.userCached && !node.symUCache) {
|
|
10
|
+
// invalidation.push(SymUCacheInv(node, removed));
|
|
11
|
+
// }
|
|
12
|
+
}
|
|
13
|
+
export function invalidate(node, invalidation, xtrace = false) {
|
|
14
|
+
if (invalidation.length === 0) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
if (xtrace) {
|
|
18
|
+
console.log(`invalidate(${node.id},${invalidation.length})`);
|
|
19
|
+
}
|
|
20
|
+
const stack = [new InvalidationEnv(node, invalidation)];
|
|
21
|
+
while (stack.length > 0) {
|
|
22
|
+
const env = stack.pop();
|
|
23
|
+
if (env === undefined) {
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
if (xtrace) {
|
|
27
|
+
env.dump();
|
|
28
|
+
}
|
|
29
|
+
const keep = [];
|
|
30
|
+
for (const inv of env.invalidation) {
|
|
31
|
+
if (inv.skip(env.node)) {
|
|
32
|
+
if (xtrace) {
|
|
33
|
+
console.log(`${" ".repeat(env.n + 1)}skip origin, ${env.node} ${inv}`);
|
|
34
|
+
}
|
|
35
|
+
keep.push(inv);
|
|
36
|
+
}
|
|
37
|
+
else if (inv.needToInvalidate(env.node)) {
|
|
38
|
+
if (xtrace) {
|
|
39
|
+
console.log(`${" ".repeat(env.n + 1)}invalidate, ${env.node} ${inv}`);
|
|
40
|
+
}
|
|
41
|
+
inv.invalidate(env.node);
|
|
42
|
+
if (inv.propagate()) {
|
|
43
|
+
keep.push(inv);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
if (xtrace) {
|
|
48
|
+
console.log(`${" ".repeat(env.n + 1)}skip, ${env.node} ${inv}`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const parents = env.node._parents;
|
|
53
|
+
if (keep.length > 0 && parents && parents.length > 0) {
|
|
54
|
+
if (xtrace) {
|
|
55
|
+
console.log(`${" ".repeat(env.n + 1)}keep, ${keep.length}`);
|
|
56
|
+
}
|
|
57
|
+
for (let i = 0; i < parents.length; i++) {
|
|
58
|
+
const parent = parents[i];
|
|
59
|
+
const inv = i > 0 ? keep.slice() : keep;
|
|
60
|
+
stack.push(new InvalidationEnv(parent, inv, env.n + 2));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
if (xtrace && keep.length === 0) {
|
|
65
|
+
console.log(`${" ".repeat(env.n + 1)}keep empty`);
|
|
66
|
+
}
|
|
67
|
+
if (xtrace && (parents === undefined || parents.length === 0)) {
|
|
68
|
+
console.log(`${" ".repeat(env.n + 1)}parents empty`);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DexReader, DexSerializable } from "./DexReader.js";
|
|
2
|
-
import { DexRef } from "./DexRef.js";
|
|
3
|
-
export declare class DexIRef extends DexRef {
|
|
4
|
-
reader: DexReader;
|
|
5
|
-
pos: number;
|
|
6
|
-
constructor(reader: DexReader, pos: number);
|
|
7
|
-
load(key?: string): DexSerializable;
|
|
8
|
-
toString(): string;
|
|
9
|
-
}
|
|
1
|
+
import { DexReader, DexSerializable } from "./DexReader.js";
|
|
2
|
+
import { DexRef } from "./DexRef.js";
|
|
3
|
+
export declare class DexIRef extends DexRef {
|
|
4
|
+
reader: DexReader;
|
|
5
|
+
pos: number;
|
|
6
|
+
constructor(reader: DexReader, pos: number);
|
|
7
|
+
load(key?: string): DexSerializable;
|
|
8
|
+
toString(): string;
|
|
9
|
+
}
|
|
10
10
|
//# sourceMappingURL=DexIRef.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { DexRef } from "./DexRef.js";
|
|
2
|
-
export class DexIRef extends DexRef {
|
|
3
|
-
constructor(reader, pos) {
|
|
4
|
-
super(reader);
|
|
5
|
-
this.reader = reader;
|
|
6
|
-
this.pos = pos;
|
|
7
|
-
}
|
|
8
|
-
load(key) {
|
|
9
|
-
const obj = this.reader.readObjectFromPos(this.pos);
|
|
10
|
-
if (obj instanceof DexRef) {
|
|
11
|
-
return obj.load(key);
|
|
12
|
-
}
|
|
13
|
-
return obj;
|
|
14
|
-
}
|
|
15
|
-
toString() {
|
|
16
|
-
return `DexIRef(${this.reader},${this.pos})`;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
import { DexRef } from "./DexRef.js";
|
|
2
|
+
export class DexIRef extends DexRef {
|
|
3
|
+
constructor(reader, pos) {
|
|
4
|
+
super(reader);
|
|
5
|
+
this.reader = reader;
|
|
6
|
+
this.pos = pos;
|
|
7
|
+
}
|
|
8
|
+
load(key) {
|
|
9
|
+
const obj = this.reader.readObjectFromPos(this.pos);
|
|
10
|
+
if (obj instanceof DexRef) {
|
|
11
|
+
return obj.load(key);
|
|
12
|
+
}
|
|
13
|
+
return obj;
|
|
14
|
+
}
|
|
15
|
+
toString() {
|
|
16
|
+
return `DexIRef(${this.reader},${this.pos})`;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare class DexInt {
|
|
2
|
-
value: number;
|
|
3
|
-
constructor(value: number);
|
|
4
|
-
toString(): string;
|
|
5
|
-
}
|
|
6
|
-
export declare class DexInt64 {
|
|
7
|
-
private high;
|
|
8
|
-
private low;
|
|
9
|
-
constructor(high: number, low: number);
|
|
10
|
-
toString(): string;
|
|
11
|
-
}
|
|
1
|
+
export declare class DexInt {
|
|
2
|
+
value: number;
|
|
3
|
+
constructor(value: number);
|
|
4
|
+
toString(): string;
|
|
5
|
+
}
|
|
6
|
+
export declare class DexInt64 {
|
|
7
|
+
private high;
|
|
8
|
+
private low;
|
|
9
|
+
constructor(high: number, low: number);
|
|
10
|
+
toString(): string;
|
|
11
|
+
}
|
|
12
12
|
//# sourceMappingURL=DexInt.d.ts.map
|