@configura/web-core 1.3.0-alpha.4 → 1.3.0-alpha.5
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/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 -90
- package/dist/cm/core3D/ATriMeshF.js +197 -193
- package/dist/cm/core3D/GMaterial3D.d.ts +62 -58
- 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 +71 -71
- package/dist/cm/core3D/GMaterialPBR.js +300 -288
- package/dist/cm/core3D/MultiGMaterial3D.d.ts +8 -8
- package/dist/cm/core3D/MultiGMaterial3D.js +17 -17
- package/dist/cm/core3D/{UVMapEnv.d.ts → uvmapper/UVMapEnv.d.ts} +19 -17
- package/dist/cm/core3D/{UVMapEnv.js → uvmapper/UVMapEnv.js} +47 -35
- package/dist/cm/core3D/uvmapper/UVMapper.d.ts +42 -0
- package/dist/cm/core3D/uvmapper/UVMapper.js +94 -0
- package/dist/cm/core3D/uvmapper/UVMapperBox.d.ts +5 -0
- package/dist/cm/core3D/uvmapper/UVMapperBox.js +181 -0
- package/dist/cm/core3D/uvmapper/UVMapperCylinder.d.ts +10 -0
- package/dist/cm/core3D/uvmapper/UVMapperCylinder.js +96 -0
- package/dist/cm/core3D/uvmapper/UVMapperPlane.d.ts +4 -0
- package/dist/cm/core3D/uvmapper/UVMapperPlane.js +84 -0
- package/dist/cm/core3D/uvmapper/UVTransformer.d.ts +6 -0
- package/dist/cm/core3D/{UVTransformer.js → uvmapper/UVTransformer.js} +5 -5
- package/dist/cm/core3D/uvmapper/instantiateUVMapper.d.ts +4 -0
- package/dist/cm/core3D/uvmapper/instantiateUVMapper.js +4 -0
- 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 +15 -15
- package/dist/cm/format/cmsym/SymNode.d.ts +93 -85
- package/dist/cm/format/cmsym/SymNode.js +652 -577
- package/dist/cm/format/cmsym/components/SymBox.d.ts +15 -14
- package/dist/cm/format/cmsym/components/SymBox.js +39 -34
- package/dist/cm/format/cmsym/components/SymComponent.d.ts +29 -29
- package/dist/cm/format/cmsym/components/SymComponent.js +54 -54
- 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 -12
- package/dist/cm/format/cmsym/components/SymGMaterialSelector.js +22 -20
- 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 +11 -11
- 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 -34
- package/dist/cm/format/cmsym/components/SymMeasure.js +149 -158
- 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 -49
- package/dist/cm/format/cmsym/components/SymParams.d.ts +16 -4
- package/dist/cm/format/cmsym/components/SymParams.js +58 -7
- package/dist/cm/format/cmsym/components/SymPlane.d.ts +14 -14
- package/dist/cm/format/cmsym/components/SymPlane.js +30 -27
- 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 -4
- package/dist/cm/format/cmsym/components/SymProgs.js +120 -7
- package/dist/cm/format/cmsym/components/SymProps.d.ts +54 -54
- package/dist/cm/format/cmsym/components/SymProps.js +170 -170
- 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 +229 -229
- package/dist/cm/format/cmsym/components/SymShape.d.ts +10 -10
- package/dist/cm/format/cmsym/components/SymShape.js +17 -14
- package/dist/cm/format/cmsym/components/SymSphere.d.ts +18 -16
- package/dist/cm/format/cmsym/components/SymSphere.js +33 -30
- 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 -4
- package/dist/cm/format/cmsym/components/SymText2D.js +8 -8
- package/dist/cm/format/cmsym/components/SymText3D.d.ts +5 -4
- 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 +64 -64
- 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 -86
- package/dist/cm/format/dex/DexReader.js +532 -492
- 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 +8 -8
- 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 -32
- package/dist/cm/geometry/DetailMask.js +114 -112
- 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 -6
- package/dist/cm/geometry/Matrix22.js +9 -6
- 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 -18
- package/dist/cm/geometry/Point.js +65 -56
- package/dist/cm/geometry/Point2D.d.ts +9 -8
- package/dist/cm/geometry/Point2D.js +23 -20
- 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 -17
- package/dist/cm/io/Semver.js +61 -58
- package/dist/index.js +1 -1
- package/package.json +4 -4
- package/dist/cm/core3D/DummyUVMapper.d.ts +0 -7
- package/dist/cm/core3D/DummyUVMapper.js +0 -6
- package/dist/cm/core3D/UVTransformer.d.ts +0 -6
- package/dist/cm/core3D/instantiateUVMapper.d.ts +0 -4
- package/dist/cm/core3D/instantiateUVMapper.js +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DexReader, DexSerializable } from "./DexReader.js";
|
|
2
|
-
export declare class DexRef {
|
|
3
|
-
reader: DexReader;
|
|
4
|
-
constructor(reader: DexReader);
|
|
5
|
-
load(key?: string): DexSerializable | Error;
|
|
6
|
-
}
|
|
1
|
+
import { DexReader, DexSerializable } from "./DexReader.js";
|
|
2
|
+
export declare class DexRef {
|
|
3
|
+
reader: DexReader;
|
|
4
|
+
constructor(reader: DexReader);
|
|
5
|
+
load(key?: string): DexSerializable | Error;
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=DexRef.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export class DexRef {
|
|
2
|
-
constructor(reader) {
|
|
3
|
-
this.reader = reader;
|
|
4
|
-
}
|
|
5
|
-
load(key) {
|
|
6
|
-
throw Error("DexRef.load called on base class");
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
export class DexRef {
|
|
2
|
+
constructor(reader) {
|
|
3
|
+
this.reader = reader;
|
|
4
|
+
}
|
|
5
|
+
load(key) {
|
|
6
|
+
throw Error("DexRef.load called on base class");
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DexSerializable } from "./DexReader.js";
|
|
2
|
-
import { DexXRef } from "./DexXRef.js";
|
|
3
|
-
export declare class DexReplacedXRefs {
|
|
4
|
-
xrefs: Map<DexSerializable, Map<string, DexXRef>>;
|
|
5
|
-
constructor();
|
|
6
|
-
get(obj: DexSerializable, k: string): DexXRef | undefined;
|
|
7
|
-
put(obj: DexSerializable, k: string, xref: DexXRef): void;
|
|
8
|
-
}
|
|
1
|
+
import { DexSerializable } from "./DexReader.js";
|
|
2
|
+
import { DexXRef } from "./DexXRef.js";
|
|
3
|
+
export declare class DexReplacedXRefs {
|
|
4
|
+
xrefs: Map<DexSerializable, Map<string, DexXRef>>;
|
|
5
|
+
constructor();
|
|
6
|
+
get(obj: DexSerializable, k: string): DexXRef | undefined;
|
|
7
|
+
put(obj: DexSerializable, k: string, xref: DexXRef): void;
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=DexReplacedXRefs.d.ts.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export class DexReplacedXRefs {
|
|
2
|
-
constructor() {
|
|
3
|
-
this.xrefs = new Map();
|
|
4
|
-
}
|
|
5
|
-
get(obj, k) {
|
|
6
|
-
const refs = this.xrefs.get(obj);
|
|
7
|
-
if (refs !== undefined) {
|
|
8
|
-
return refs.get(k);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
put(obj, k, xref) {
|
|
12
|
-
let refs = this.xrefs.get(obj);
|
|
13
|
-
if (refs !== undefined) {
|
|
14
|
-
refs.set(k, xref);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
refs = new Map();
|
|
18
|
-
refs.set(k, xref);
|
|
19
|
-
this.xrefs.set(obj, refs);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
export class DexReplacedXRefs {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.xrefs = new Map();
|
|
4
|
+
}
|
|
5
|
+
get(obj, k) {
|
|
6
|
+
const refs = this.xrefs.get(obj);
|
|
7
|
+
if (refs !== undefined) {
|
|
8
|
+
return refs.get(k);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
put(obj, k, xref) {
|
|
12
|
+
let refs = this.xrefs.get(obj);
|
|
13
|
+
if (refs !== undefined) {
|
|
14
|
+
refs.set(k, xref);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
refs = new Map();
|
|
18
|
+
refs.set(k, xref);
|
|
19
|
+
this.xrefs.set(obj, refs);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare class DexURL {
|
|
2
|
-
value: string;
|
|
3
|
-
constructor(value: string);
|
|
4
|
-
}
|
|
1
|
+
export declare class DexURL {
|
|
2
|
+
value: string;
|
|
3
|
+
constructor(value: string);
|
|
4
|
+
}
|
|
5
5
|
//# sourceMappingURL=DexURL.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export class DexURL {
|
|
2
|
-
constructor(value) {
|
|
3
|
-
this.value = value;
|
|
4
|
-
}
|
|
5
|
-
}
|
|
1
|
+
export class DexURL {
|
|
2
|
+
constructor(value) {
|
|
3
|
+
this.value = value;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Semver } from "../../io/Semver.js";
|
|
2
|
-
export declare class DexVersion {
|
|
3
|
-
private major;
|
|
4
|
-
private minor;
|
|
5
|
-
private patch;
|
|
6
|
-
constructor(major: number, minor: number, patch: number);
|
|
7
|
-
compare(version: DexVersion): 1 | 0 | -1;
|
|
8
|
-
eq(version: DexVersion): boolean;
|
|
9
|
-
gt(version: DexVersion): boolean;
|
|
10
|
-
gte(version: DexVersion): boolean;
|
|
11
|
-
lt(version: DexVersion): boolean;
|
|
12
|
-
lte(version: DexVersion): boolean;
|
|
13
|
-
toString(): string;
|
|
14
|
-
toSemver(): Semver;
|
|
15
|
-
}
|
|
1
|
+
import { Semver } from "../../io/Semver.js";
|
|
2
|
+
export declare class DexVersion {
|
|
3
|
+
private major;
|
|
4
|
+
private minor;
|
|
5
|
+
private patch;
|
|
6
|
+
constructor(major: number, minor: number, patch: number);
|
|
7
|
+
compare(version: DexVersion): 1 | 0 | -1;
|
|
8
|
+
eq(version: DexVersion): boolean;
|
|
9
|
+
gt(version: DexVersion): boolean;
|
|
10
|
+
gte(version: DexVersion): boolean;
|
|
11
|
+
lt(version: DexVersion): boolean;
|
|
12
|
+
lte(version: DexVersion): boolean;
|
|
13
|
+
toString(): string;
|
|
14
|
+
toSemver(): Semver;
|
|
15
|
+
}
|
|
16
16
|
//# sourceMappingURL=DexVersion.d.ts.map
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { Semver } from "../../io/Semver.js";
|
|
2
|
-
export class DexVersion {
|
|
3
|
-
constructor(major, minor, patch) {
|
|
4
|
-
this.major = major;
|
|
5
|
-
this.minor = minor;
|
|
6
|
-
this.patch = patch;
|
|
7
|
-
}
|
|
8
|
-
// 1 => this > version
|
|
9
|
-
// 0 => this == version
|
|
10
|
-
// -1 => this < version
|
|
11
|
-
compare(version) {
|
|
12
|
-
if (this.major > version.major) {
|
|
13
|
-
return 1;
|
|
14
|
-
}
|
|
15
|
-
else if (version.major > this.major) {
|
|
16
|
-
return -1;
|
|
17
|
-
}
|
|
18
|
-
else if (this.minor > version.minor) {
|
|
19
|
-
return 1;
|
|
20
|
-
}
|
|
21
|
-
else if (version.minor > this.minor) {
|
|
22
|
-
return -1;
|
|
23
|
-
}
|
|
24
|
-
else if (this.patch > version.patch) {
|
|
25
|
-
return 1;
|
|
26
|
-
}
|
|
27
|
-
else if (version.patch > this.patch) {
|
|
28
|
-
return -1;
|
|
29
|
-
}
|
|
30
|
-
return 0;
|
|
31
|
-
}
|
|
32
|
-
eq(version) {
|
|
33
|
-
return this.compare(version) === 0;
|
|
34
|
-
}
|
|
35
|
-
gt(version) {
|
|
36
|
-
return this.compare(version) === 1;
|
|
37
|
-
}
|
|
38
|
-
gte(version) {
|
|
39
|
-
return this.compare(version) !== -1;
|
|
40
|
-
}
|
|
41
|
-
lt(version) {
|
|
42
|
-
return this.compare(version) === -1;
|
|
43
|
-
}
|
|
44
|
-
lte(version) {
|
|
45
|
-
return this.compare(version) !== 1;
|
|
46
|
-
}
|
|
47
|
-
toString() {
|
|
48
|
-
return `DexVersion(${this.major},${this.minor},${this.patch})`;
|
|
49
|
-
}
|
|
50
|
-
toSemver() {
|
|
51
|
-
return new Semver(this.major, this.minor, this.patch);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
import { Semver } from "../../io/Semver.js";
|
|
2
|
+
export class DexVersion {
|
|
3
|
+
constructor(major, minor, patch) {
|
|
4
|
+
this.major = major;
|
|
5
|
+
this.minor = minor;
|
|
6
|
+
this.patch = patch;
|
|
7
|
+
}
|
|
8
|
+
// 1 => this > version
|
|
9
|
+
// 0 => this == version
|
|
10
|
+
// -1 => this < version
|
|
11
|
+
compare(version) {
|
|
12
|
+
if (this.major > version.major) {
|
|
13
|
+
return 1;
|
|
14
|
+
}
|
|
15
|
+
else if (version.major > this.major) {
|
|
16
|
+
return -1;
|
|
17
|
+
}
|
|
18
|
+
else if (this.minor > version.minor) {
|
|
19
|
+
return 1;
|
|
20
|
+
}
|
|
21
|
+
else if (version.minor > this.minor) {
|
|
22
|
+
return -1;
|
|
23
|
+
}
|
|
24
|
+
else if (this.patch > version.patch) {
|
|
25
|
+
return 1;
|
|
26
|
+
}
|
|
27
|
+
else if (version.patch > this.patch) {
|
|
28
|
+
return -1;
|
|
29
|
+
}
|
|
30
|
+
return 0;
|
|
31
|
+
}
|
|
32
|
+
eq(version) {
|
|
33
|
+
return this.compare(version) === 0;
|
|
34
|
+
}
|
|
35
|
+
gt(version) {
|
|
36
|
+
return this.compare(version) === 1;
|
|
37
|
+
}
|
|
38
|
+
gte(version) {
|
|
39
|
+
return this.compare(version) !== -1;
|
|
40
|
+
}
|
|
41
|
+
lt(version) {
|
|
42
|
+
return this.compare(version) === -1;
|
|
43
|
+
}
|
|
44
|
+
lte(version) {
|
|
45
|
+
return this.compare(version) !== 1;
|
|
46
|
+
}
|
|
47
|
+
toString() {
|
|
48
|
+
return `DexVersion(${this.major},${this.minor},${this.patch})`;
|
|
49
|
+
}
|
|
50
|
+
toSemver() {
|
|
51
|
+
return new Semver(this.major, this.minor, this.patch);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { DexReader } from "./DexReader.js";
|
|
2
|
-
export declare enum DexXRefStyle {
|
|
3
|
-
External = 0,
|
|
4
|
-
Internal = 1,
|
|
5
|
-
Anonymous = 2
|
|
6
|
-
}
|
|
7
|
-
export declare class DexXRef {
|
|
8
|
-
reader: DexReader;
|
|
9
|
-
url: string;
|
|
10
|
-
path?: string | undefined;
|
|
11
|
-
internalizedKey?: string | undefined;
|
|
12
|
-
style?: DexXRefStyle | undefined;
|
|
13
|
-
constructor(reader: DexReader, url: string, path?: string | undefined, internalizedKey?: string | undefined, style?: DexXRefStyle | undefined);
|
|
14
|
-
load(key: string): import("./DexReader.js").DexSerializable;
|
|
15
|
-
forwardSlashed(s: string): string;
|
|
16
|
-
relativeUrl(): boolean;
|
|
17
|
-
target(): string;
|
|
18
|
-
}
|
|
1
|
+
import { DexReader } from "./DexReader.js";
|
|
2
|
+
export declare enum DexXRefStyle {
|
|
3
|
+
External = 0,
|
|
4
|
+
Internal = 1,
|
|
5
|
+
Anonymous = 2
|
|
6
|
+
}
|
|
7
|
+
export declare class DexXRef {
|
|
8
|
+
reader: DexReader;
|
|
9
|
+
url: string;
|
|
10
|
+
path?: string | undefined;
|
|
11
|
+
internalizedKey?: string | undefined;
|
|
12
|
+
style?: DexXRefStyle | undefined;
|
|
13
|
+
constructor(reader: DexReader, url: string, path?: string | undefined, internalizedKey?: string | undefined, style?: DexXRefStyle | undefined);
|
|
14
|
+
load(key: string): import("./DexReader.js").DexSerializable;
|
|
15
|
+
forwardSlashed(s: string): string;
|
|
16
|
+
relativeUrl(): boolean;
|
|
17
|
+
target(): string;
|
|
18
|
+
}
|
|
19
19
|
//# sourceMappingURL=DexXRef.d.ts.map
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
export var DexXRefStyle;
|
|
2
|
-
(function (DexXRefStyle) {
|
|
3
|
-
DexXRefStyle[DexXRefStyle["External"] = 0] = "External";
|
|
4
|
-
DexXRefStyle[DexXRefStyle["Internal"] = 1] = "Internal";
|
|
5
|
-
DexXRefStyle[DexXRefStyle["Anonymous"] = 2] = "Anonymous";
|
|
6
|
-
})(DexXRefStyle || (DexXRefStyle = {}));
|
|
7
|
-
export class DexXRef {
|
|
8
|
-
constructor(reader, url, path, internalizedKey, style) {
|
|
9
|
-
this.reader = reader;
|
|
10
|
-
this.url = url;
|
|
11
|
-
this.path = path;
|
|
12
|
-
this.internalizedKey = internalizedKey;
|
|
13
|
-
this.style = style;
|
|
14
|
-
}
|
|
15
|
-
load(key) {
|
|
16
|
-
let localUrl = this.target();
|
|
17
|
-
const xref = this.internalizedKey
|
|
18
|
-
? this.reader.internalizedXRef(this.internalizedKey)
|
|
19
|
-
: undefined;
|
|
20
|
-
if (xref !== undefined) {
|
|
21
|
-
const filename = xref.createLocalFile(this.reader);
|
|
22
|
-
localUrl = this.forwardSlashed(filename);
|
|
23
|
-
}
|
|
24
|
-
const fileExtension = getFileExtension(localUrl);
|
|
25
|
-
const loader = this.reader.manager.loader(fileExtension);
|
|
26
|
-
if (loader === undefined) {
|
|
27
|
-
throw Error(`no loader for suffix: ${fileExtension}`);
|
|
28
|
-
}
|
|
29
|
-
const obj = loader.load(this.reader, localUrl, this.path);
|
|
30
|
-
this.reader.putReplaceXRef(obj, key, this);
|
|
31
|
-
return obj;
|
|
32
|
-
}
|
|
33
|
-
forwardSlashed(s) {
|
|
34
|
-
return s.replace("\\", "/");
|
|
35
|
-
}
|
|
36
|
-
relativeUrl() {
|
|
37
|
-
if (this.url === undefined) {
|
|
38
|
-
throw Error("[DexXRef.relativeUrl] this.url is not defined");
|
|
39
|
-
}
|
|
40
|
-
return this.url.startsWith("../");
|
|
41
|
-
}
|
|
42
|
-
target() {
|
|
43
|
-
const relativeUrl = this.relativeUrl();
|
|
44
|
-
return relativeUrl
|
|
45
|
-
? this.reader.expandRelativeUrl(this.url)
|
|
46
|
-
: this.reader.manager.expandRoot(this.url);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function getFileExtension(filename) {
|
|
50
|
-
return filename.toLowerCase().slice(filename.lastIndexOf(".") + 1);
|
|
51
|
-
}
|
|
1
|
+
export var DexXRefStyle;
|
|
2
|
+
(function (DexXRefStyle) {
|
|
3
|
+
DexXRefStyle[DexXRefStyle["External"] = 0] = "External";
|
|
4
|
+
DexXRefStyle[DexXRefStyle["Internal"] = 1] = "Internal";
|
|
5
|
+
DexXRefStyle[DexXRefStyle["Anonymous"] = 2] = "Anonymous";
|
|
6
|
+
})(DexXRefStyle || (DexXRefStyle = {}));
|
|
7
|
+
export class DexXRef {
|
|
8
|
+
constructor(reader, url, path, internalizedKey, style) {
|
|
9
|
+
this.reader = reader;
|
|
10
|
+
this.url = url;
|
|
11
|
+
this.path = path;
|
|
12
|
+
this.internalizedKey = internalizedKey;
|
|
13
|
+
this.style = style;
|
|
14
|
+
}
|
|
15
|
+
load(key) {
|
|
16
|
+
let localUrl = this.target();
|
|
17
|
+
const xref = this.internalizedKey
|
|
18
|
+
? this.reader.internalizedXRef(this.internalizedKey)
|
|
19
|
+
: undefined;
|
|
20
|
+
if (xref !== undefined) {
|
|
21
|
+
const filename = xref.createLocalFile(this.reader);
|
|
22
|
+
localUrl = this.forwardSlashed(filename);
|
|
23
|
+
}
|
|
24
|
+
const fileExtension = getFileExtension(localUrl);
|
|
25
|
+
const loader = this.reader.manager.loader(fileExtension);
|
|
26
|
+
if (loader === undefined) {
|
|
27
|
+
throw Error(`no loader for suffix: ${fileExtension}`);
|
|
28
|
+
}
|
|
29
|
+
const obj = loader.load(this.reader, localUrl, this.path);
|
|
30
|
+
this.reader.putReplaceXRef(obj, key, this);
|
|
31
|
+
return obj;
|
|
32
|
+
}
|
|
33
|
+
forwardSlashed(s) {
|
|
34
|
+
return s.replace("\\", "/");
|
|
35
|
+
}
|
|
36
|
+
relativeUrl() {
|
|
37
|
+
if (this.url === undefined) {
|
|
38
|
+
throw Error("[DexXRef.relativeUrl] this.url is not defined");
|
|
39
|
+
}
|
|
40
|
+
return this.url.startsWith("../");
|
|
41
|
+
}
|
|
42
|
+
target() {
|
|
43
|
+
const relativeUrl = this.relativeUrl();
|
|
44
|
+
return relativeUrl
|
|
45
|
+
? this.reader.expandRelativeUrl(this.url)
|
|
46
|
+
: this.reader.manager.expandRoot(this.url);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function getFileExtension(filename) {
|
|
50
|
+
return filename.toLowerCase().slice(filename.lastIndexOf(".") + 1);
|
|
51
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DexInternalizedXRef } from "./DexInternalizedXRef.js";
|
|
2
|
-
export declare class DexXRefTargetFilter {
|
|
3
|
-
target(obj: DexInternalizedXRef): string;
|
|
4
|
-
}
|
|
1
|
+
import { DexInternalizedXRef } from "./DexInternalizedXRef.js";
|
|
2
|
+
export declare class DexXRefTargetFilter {
|
|
3
|
+
target(obj: DexInternalizedXRef): string;
|
|
4
|
+
}
|
|
5
5
|
//# sourceMappingURL=DexXRefTargetFilter.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export class DexXRefTargetFilter {
|
|
2
|
-
target(obj) {
|
|
3
|
-
return obj.target();
|
|
4
|
-
}
|
|
5
|
-
}
|
|
1
|
+
export class DexXRefTargetFilter {
|
|
2
|
+
target(obj) {
|
|
3
|
+
return obj.target();
|
|
4
|
+
}
|
|
5
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Point2D } from "./Point2D.js";
|
|
2
|
-
export declare class Angle {
|
|
3
|
-
radians: number;
|
|
4
|
-
static fromPoint2D(p: Point2D): Angle;
|
|
5
|
-
static fromDegrees(d: number): Angle;
|
|
6
|
-
constructor(radians: number);
|
|
7
|
-
toString(): string;
|
|
8
|
-
sub(a: Angle): Angle;
|
|
9
|
-
}
|
|
1
|
+
import { Point2D } from "./Point2D.js";
|
|
2
|
+
export declare class Angle {
|
|
3
|
+
radians: number;
|
|
4
|
+
static fromPoint2D(p: Point2D): Angle;
|
|
5
|
+
static fromDegrees(d: number): Angle;
|
|
6
|
+
constructor(radians: number);
|
|
7
|
+
toString(): string;
|
|
8
|
+
sub(a: Angle): Angle;
|
|
9
|
+
}
|
|
10
10
|
//# sourceMappingURL=Angle.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export class Angle {
|
|
2
|
-
constructor(radians) {
|
|
3
|
-
this.radians = radians;
|
|
4
|
-
}
|
|
5
|
-
static fromPoint2D(p) {
|
|
6
|
-
return new
|
|
7
|
-
}
|
|
8
|
-
static fromDegrees(d) {
|
|
9
|
-
const rad = (d * Math.PI) / 180 + ((8 * 2 * Math.PI) % (2 * Math.PI));
|
|
10
|
-
return new
|
|
11
|
-
}
|
|
12
|
-
toString() {
|
|
13
|
-
return `Angle(${this.radians})`;
|
|
14
|
-
}
|
|
15
|
-
sub(a) {
|
|
16
|
-
return new Angle((this.radians - a.radians + 8 * 2 * Math.PI) % (2 * Math.PI));
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
export class Angle {
|
|
2
|
+
constructor(radians) {
|
|
3
|
+
this.radians = radians;
|
|
4
|
+
}
|
|
5
|
+
static fromPoint2D(p) {
|
|
6
|
+
return new this((Math.atan2(p.y, p.x) + 2 * Math.PI) % (2 * Math.PI));
|
|
7
|
+
}
|
|
8
|
+
static fromDegrees(d) {
|
|
9
|
+
const rad = (d * Math.PI) / 180 + ((8 * 2 * Math.PI) % (2 * Math.PI));
|
|
10
|
+
return new this(rad);
|
|
11
|
+
}
|
|
12
|
+
toString() {
|
|
13
|
+
return `Angle(${this.radians})`;
|
|
14
|
+
}
|
|
15
|
+
sub(a) {
|
|
16
|
+
return new Angle((this.radians - a.radians + 8 * 2 * Math.PI) % (2 * Math.PI));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class AngleF {
|
|
2
|
-
radians: number;
|
|
3
|
-
constructor(radians: number);
|
|
4
|
-
toString(): string;
|
|
5
|
-
}
|
|
1
|
+
export declare class AngleF {
|
|
2
|
+
radians: number;
|
|
3
|
+
constructor(radians: number);
|
|
4
|
+
toString(): string;
|
|
5
|
+
}
|
|
6
6
|
//# sourceMappingURL=AngleF.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export class AngleF {
|
|
2
|
-
constructor(radians) {
|
|
3
|
-
this.radians = radians;
|
|
4
|
-
}
|
|
5
|
-
toString() {
|
|
6
|
-
return `AngleF(${this.radians})`;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
export class AngleF {
|
|
2
|
+
constructor(radians) {
|
|
3
|
+
this.radians = radians;
|
|
4
|
+
}
|
|
5
|
+
toString() {
|
|
6
|
+
return `AngleF(${this.radians})`;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Point } from "./Point.js";
|
|
2
|
-
export declare class Box {
|
|
3
|
-
p0: Point;
|
|
4
|
-
p1: Point;
|
|
5
|
-
constructor(p0: Point, p1: Point);
|
|
6
|
-
toString(): string;
|
|
7
|
-
}
|
|
1
|
+
import { Point } from "./Point.js";
|
|
2
|
+
export declare class Box {
|
|
3
|
+
p0: Point;
|
|
4
|
+
p1: Point;
|
|
5
|
+
constructor(p0: Point, p1: Point);
|
|
6
|
+
toString(): string;
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=Box.d.ts.map
|
package/dist/cm/geometry/Box.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export class Box {
|
|
2
|
-
constructor(p0, p1) {
|
|
3
|
-
this.p0 = p0;
|
|
4
|
-
this.p1 = p1;
|
|
5
|
-
}
|
|
6
|
-
toString() {
|
|
7
|
-
return `Box(p0=${this.p0}, p1=${this.p1})`;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
1
|
+
export class Box {
|
|
2
|
+
constructor(p0, p1) {
|
|
3
|
+
this.p0 = p0;
|
|
4
|
+
this.p1 = p1;
|
|
5
|
+
}
|
|
6
|
+
toString() {
|
|
7
|
+
return `Box(p0=${this.p0}, p1=${this.p1})`;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,33 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
declare
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
static
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
/** The CmSym specification states that only low, medium, high, super and base are allowed. */
|
|
2
|
+
declare enum DetailLevel {
|
|
3
|
+
lousy = 0,
|
|
4
|
+
low = 1,
|
|
5
|
+
medium = 2,
|
|
6
|
+
high = 3,
|
|
7
|
+
super = 4,
|
|
8
|
+
outline = 5,
|
|
9
|
+
base = 10,
|
|
10
|
+
invisible = 254,
|
|
11
|
+
undefined = 255
|
|
12
|
+
}
|
|
13
|
+
export declare function detailLevelFromString(detailLevel: String): DetailLevel;
|
|
14
|
+
declare class DetailMask {
|
|
15
|
+
mask: number;
|
|
16
|
+
static withDetailSet(details: Set<DetailLevel>): DetailMask;
|
|
17
|
+
static allSymReps(): DetailMask;
|
|
18
|
+
constructor(mask?: number);
|
|
19
|
+
include(mask: DetailMask): void;
|
|
20
|
+
includeSet(details: Set<DetailLevel>): void;
|
|
21
|
+
set(level: DetailLevel): void;
|
|
22
|
+
intersects(other: DetailMask): boolean;
|
|
23
|
+
includes(level: DetailLevel): boolean;
|
|
24
|
+
low(): boolean;
|
|
25
|
+
medium(): boolean;
|
|
26
|
+
high(): boolean;
|
|
27
|
+
xsuper(): boolean;
|
|
28
|
+
base(): boolean;
|
|
29
|
+
detailSet(): Set<DetailLevel>;
|
|
30
|
+
/**
|
|
31
|
+
* Goes through the supplied DetailLevels and returns the first one that is included in this
|
|
32
|
+
* DetailMask. Returns undefined if no match was found.
|
|
33
|
+
*/
|
|
34
|
+
getBestMatch(levels: DetailLevel | DetailLevel[]): DetailLevel | undefined;
|
|
35
|
+
toString(): string;
|
|
36
|
+
}
|
|
37
|
+
export { DetailLevel, DetailMask };
|
|
33
38
|
//# sourceMappingURL=DetailMask.d.ts.map
|