vis-core 0.30.0-beta.63 → 0.30.0-beta.70
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/dist/index.d.ts +1776 -12
- package/dist/index.js +43117 -4888
- package/package.json +24 -21
- package/dist/accessToken.d.ts +0 -5
- package/dist/detect/Benchmark.d.ts +0 -17
- package/dist/detect/WebGL.d.ts +0 -23
- package/dist/detect/d/blocklistedGPUS.d.ts +0 -1
- package/dist/detect/d/tier0GPU.d.ts +0 -2
- package/dist/detect/d/types.d.ts +0 -1
- package/dist/detect/index.d.ts +0 -20
- package/dist/editor/command/AddMaterial.d.ts +0 -20
- package/dist/editor/command/AddObject.d.ts +0 -15
- package/dist/editor/command/AddVis.d.ts +0 -12
- package/dist/editor/command/Command.d.ts +0 -19
- package/dist/editor/command/Commands.d.ts +0 -24
- package/dist/editor/command/CopyMaterial.d.ts +0 -13
- package/dist/editor/command/CopyObject.d.ts +0 -16
- package/dist/editor/command/RemoveMaterial.d.ts +0 -13
- package/dist/editor/command/RemoveObject.d.ts +0 -13
- package/dist/editor/command/SetColor.d.ts +0 -12
- package/dist/editor/command/SetGeometry.d.ts +0 -13
- package/dist/editor/command/SetMaterial.d.ts +0 -12
- package/dist/editor/command/SetMaterialColor.d.ts +0 -14
- package/dist/editor/command/SetMaterialMap.d.ts +0 -17
- package/dist/editor/command/SetMaterialMapVector.d.ts +0 -15
- package/dist/editor/command/SetMaterialRange.d.ts +0 -14
- package/dist/editor/command/SetMaterialValue.d.ts +0 -14
- package/dist/editor/command/SetMaterialVector.d.ts +0 -14
- package/dist/editor/command/SetObjectMaterial.d.ts +0 -15
- package/dist/editor/command/SetPosition.d.ts +0 -12
- package/dist/editor/command/SetRotation.d.ts +0 -11
- package/dist/editor/command/SetScale.d.ts +0 -11
- package/dist/editor/command/SetSceenMap.d.ts +0 -4
- package/dist/editor/command/SetSetting.d.ts +0 -14
- package/dist/editor/command/SetTarget.d.ts +0 -12
- package/dist/editor/command/SetValue.d.ts +0 -14
- package/dist/editor/command/SetVector.d.ts +0 -14
- package/dist/editor/config.d.ts +0 -20
- package/dist/editor/helper.d.ts +0 -1
- package/dist/editor/history.d.ts +0 -77
- package/dist/editor/hooks.d.ts +0 -24
- package/dist/editor/index.d.ts +0 -94
- package/dist/editor/viewport.d.ts +0 -44
- package/dist/fix.d.ts +0 -0
- package/dist/getVisConfig.d.ts +0 -22
- package/dist/index.module.js +0 -146142
- package/dist/utils/animation.d.ts +0 -51
- package/dist/utils/base64ArrayBuffer.d.ts +0 -2
- package/dist/utils/compareVersion.d.ts +0 -2
- package/dist/utils/e.d.ts +0 -2
- package/dist/utils/fixVideoTexture.d.ts +0 -1
- package/dist/utils/jsonFetch.d.ts +0 -8
- package/dist/utils/observeScale.d.ts +0 -1
- package/dist/utils/png2webp.d.ts +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/vis/all/json/china/china.d.ts +0 -104
- package/dist/vis/all/json/continents/continents.d.ts +0 -210
- package/dist/vis/all/json/index.d.ts +0 -22
- package/dist/vis/all/json/world/world.d.ts +0 -42
- package/dist/vis/all/objects/Arc/index.d.ts +0 -43
- package/dist/vis/all/objects/Arc/utils.d.ts +0 -6
- package/dist/vis/all/objects/Box.d.ts +0 -4
- package/dist/vis/all/objects/Capsule.d.ts +0 -4
- package/dist/vis/all/objects/Circle.d.ts +0 -4
- package/dist/vis/all/objects/CrossPlane.d.ts +0 -12
- package/dist/vis/all/objects/Cylinder.d.ts +0 -4
- package/dist/vis/all/objects/Dodecahedron.d.ts +0 -4
- package/dist/vis/all/objects/Icosahedron.d.ts +0 -4
- package/dist/vis/all/objects/Lathe.d.ts +0 -4
- package/dist/vis/all/objects/Light.d.ts +0 -6
- package/dist/vis/all/objects/Model.d.ts +0 -68
- package/dist/vis/all/objects/Octahedron.d.ts +0 -4
- package/dist/vis/all/objects/Plane.d.ts +0 -4
- package/dist/vis/all/objects/PlaneShadow.d.ts +0 -4
- package/dist/vis/all/objects/Point.d.ts +0 -15
- package/dist/vis/all/objects/Ring.d.ts +0 -4
- package/dist/vis/all/objects/Sphere.d.ts +0 -8
- package/dist/vis/all/objects/Sprite.d.ts +0 -5
- package/dist/vis/all/objects/Tetrahedron.d.ts +0 -4
- package/dist/vis/all/objects/Torus.d.ts +0 -4
- package/dist/vis/all/objects/TorusKnot.d.ts +0 -4
- package/dist/vis/all/objects/Tube.d.ts +0 -13
- package/dist/vis/all/objects/index.d.ts +0 -77
- package/dist/vis/base/camera.d.ts +0 -24
- package/dist/vis/base/event.d.ts +0 -11
- package/dist/vis/base/index.d.ts +0 -127
- package/dist/vis/city/index.d.ts +0 -112
- package/dist/vis/city/objects/area/index.d.ts +0 -21
- package/dist/vis/city/objects/building/index.d.ts +0 -26
- package/dist/vis/city/objects/index.d.ts +0 -43
- package/dist/vis/city/objects/plane/Water.d.ts +0 -1
- package/dist/vis/city/objects/plane/Water2.d.ts +0 -68
- package/dist/vis/city/objects/plane/index.d.ts +0 -19
- package/dist/vis/city/objects/road/index.d.ts +0 -21
- package/dist/vis/city/objects/target/index.d.ts +0 -25
- package/dist/vis/earth/index.d.ts +0 -86
- package/dist/vis/earth/objects/SphereShadow.d.ts +0 -10
- package/dist/vis/earth/objects/earth/index.d.ts +0 -11
- package/dist/vis/earth/objects/index.d.ts +0 -39
- package/dist/vis/earth/styles/base.d.ts +0 -2
- package/dist/vis/earth/styles/chinaPlate.d.ts +0 -2
- package/dist/vis/earth/styles/countryPlate.d.ts +0 -2
- package/dist/vis/earth/styles/index.d.ts +0 -3
- package/dist/vis/index.d.ts +0 -4
- package/dist/vis/map/MapManager.d.ts +0 -132
- package/dist/vis/map/city.d.ts +0 -5
- package/dist/vis/map/el.d.ts +0 -1
- package/dist/vis/map/index.d.ts +0 -291
- package/dist/vis/map/objects/ContinentsBg.d.ts +0 -18
- package/dist/vis/map/objects/Mountain.d.ts +0 -30
- package/dist/vis/map/objects/PlaneMap.d.ts +0 -87
- package/dist/vis/map/objects/index.d.ts +0 -41
- package/dist/vis/map/styles/base.d.ts +0 -2
- package/dist/vis/map/styles/china.d.ts +0 -2
- package/dist/vis/map/styles/index.d.ts +0 -6
- package/dist/vis/map/styles/map2/base.d.ts +0 -2
- package/dist/vis/map/styles/map2/city350000.d.ts +0 -2
- package/dist/vis/map/styles/map2/cityOnMap.d.ts +0 -2
- package/dist/vis/map/styles/world.d.ts +0 -2
- package/dist/vis/map/styles/worldPacificCentre.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.30.0-beta.
|
|
3
|
+
"version": "0.30.0-beta.70",
|
|
4
4
|
"scripts": {
|
|
5
|
-
"start": "npm run version &&
|
|
6
|
-
"build:site": "npm run version &&
|
|
7
|
-
"build:lib": "npm run version &&
|
|
8
|
-
"build:type": "BUILD_LIBRARY=src/sdk/index.ts bundler-type",
|
|
9
|
-
"preview": "bundler-preview",
|
|
5
|
+
"start": "npm run version && vite preview",
|
|
6
|
+
"build:site": "npm run version && vite build",
|
|
7
|
+
"build:lib": "npm run version && BUILD_MODE=lib vite build",
|
|
10
8
|
"version": "node ./scripts/generate-version",
|
|
11
|
-
"gzip": "node ./scripts/gzip",
|
|
12
9
|
"pub": "npm publish --tag beta"
|
|
13
10
|
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"types": "dist/index.d.ts",
|
|
14
13
|
"main": "dist/index.js",
|
|
15
|
-
"module": "dist/index.
|
|
14
|
+
"module": "dist/index.js",
|
|
16
15
|
"files": [
|
|
17
16
|
"dist"
|
|
18
17
|
],
|
|
@@ -29,32 +28,37 @@
|
|
|
29
28
|
]
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
|
-
"@biomejs/biome": "^2.
|
|
31
|
+
"@biomejs/biome": "^2.3.11",
|
|
33
32
|
"@primeuix/themes": "^1.2.3",
|
|
34
|
-
"@tailwindcss/typography": "^0.5.
|
|
33
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
35
34
|
"@tweenjs/tween.js": "^23.1.2",
|
|
35
|
+
"@types/d3-geo": "^3.0.2",
|
|
36
36
|
"@types/events": "^3.0.0",
|
|
37
37
|
"@types/geojson": "^7946.0.10",
|
|
38
38
|
"@types/jsrsasign": "^10.5.14",
|
|
39
39
|
"@types/lodash-es": "^4.17.9",
|
|
40
|
-
"@types/node": "^
|
|
40
|
+
"@types/node": "^25.0.6",
|
|
41
41
|
"archiver": "^7.0.1",
|
|
42
42
|
"dayjs": "^1.11.12",
|
|
43
43
|
"esus": "^0.4.40",
|
|
44
|
+
"fe-stack": "^0.0.20",
|
|
44
45
|
"fs-extra": "^11.1.1",
|
|
45
46
|
"idb-keyval": "^6.2.1",
|
|
46
47
|
"jszip": "^3.10.1",
|
|
47
|
-
"pinia": "^
|
|
48
|
+
"pinia": "^3.0.4",
|
|
49
|
+
"prettier": "^3.7.4",
|
|
48
50
|
"primeicons": "^7.0.0",
|
|
49
51
|
"primevue": "^4.4.1",
|
|
50
|
-
"
|
|
52
|
+
"tailwindcss": "^4.1.18",
|
|
51
53
|
"three": "^0.182.0",
|
|
52
|
-
"
|
|
54
|
+
"typescript": "^5.9.3",
|
|
55
|
+
"vite": "^7.3.1",
|
|
56
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
57
|
+
"vite-plugin-externalize-deps": "^0.10.0",
|
|
58
|
+
"vite-plugin-glsl": "^1.5.5",
|
|
53
59
|
"vite-plugin-markdown": "^2.2.0",
|
|
54
|
-
"
|
|
55
|
-
"vue": "^
|
|
56
|
-
"vue-bundler": "^0.4.10",
|
|
57
|
-
"vue-router": "^4.4.5"
|
|
60
|
+
"vue": "^3.5.26",
|
|
61
|
+
"vue-router": "^4.6.4"
|
|
58
62
|
},
|
|
59
63
|
"dependencies": {
|
|
60
64
|
"@turf/turf": "^6.5.0",
|
|
@@ -64,9 +68,8 @@
|
|
|
64
68
|
"esus-lite": "^0.2.8",
|
|
65
69
|
"events": "^3.3.0",
|
|
66
70
|
"geojson-cn": "^0.2.5",
|
|
67
|
-
"gl-draw": "0.17.0-beta.
|
|
71
|
+
"gl-draw": "0.17.0-beta.54",
|
|
68
72
|
"jsrsasign": "^11.1.0",
|
|
69
73
|
"lodash-es": "^4.17.21"
|
|
70
|
-
}
|
|
71
|
-
"prettier": "prettier-config-bundler"
|
|
74
|
+
}
|
|
72
75
|
}
|
package/dist/accessToken.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export default class Benchmarks {
|
|
2
|
-
renderer: string;
|
|
3
|
-
constructor(renderer: string);
|
|
4
|
-
query(): {
|
|
5
|
-
tier: number;
|
|
6
|
-
gpu: string;
|
|
7
|
-
} | {
|
|
8
|
-
tier: number;
|
|
9
|
-
renderer: string;
|
|
10
|
-
};
|
|
11
|
-
getGpuType(): "intel" | "apple" | "amd" | "radeon" | "nvidia" | "geforce" | "adreno" | undefined;
|
|
12
|
-
getGPUVersion(): string;
|
|
13
|
-
queryFallback(): {
|
|
14
|
-
tier: number;
|
|
15
|
-
gpu: string;
|
|
16
|
-
};
|
|
17
|
-
}
|
package/dist/detect/WebGL.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare class WebGL {
|
|
2
|
-
rawRenderer: string;
|
|
3
|
-
renderer: string;
|
|
4
|
-
constructor();
|
|
5
|
-
private withWebGLContext;
|
|
6
|
-
private withCanvas;
|
|
7
|
-
getRawRenderer(): any;
|
|
8
|
-
getRenderer(): string;
|
|
9
|
-
query(): {
|
|
10
|
-
WebP: boolean;
|
|
11
|
-
WebGL: boolean;
|
|
12
|
-
WebGL2: boolean;
|
|
13
|
-
WebGL2RC: boolean;
|
|
14
|
-
isGPUAcceleratorEnabled: boolean;
|
|
15
|
-
};
|
|
16
|
-
isWebGLAvailable(): boolean;
|
|
17
|
-
isWebGL2Available(): boolean;
|
|
18
|
-
isWebGL2RenderingContextAvailable(): boolean;
|
|
19
|
-
isGPUAcceleratorAvailable(): boolean;
|
|
20
|
-
isColorSpaceAvailable(colorSpace: PredefinedColorSpace): boolean;
|
|
21
|
-
isWebPAvailable(): boolean;
|
|
22
|
-
}
|
|
23
|
-
export default WebGL;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const BLOCKLISTED_GPUS: string[];
|
package/dist/detect/d/types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const types: readonly ["intel", "apple", "amd", "radeon", "nvidia", "geforce", "adreno"];
|
package/dist/detect/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare const _default: () => {
|
|
2
|
-
tier: number;
|
|
3
|
-
gpu: string;
|
|
4
|
-
WebP: boolean;
|
|
5
|
-
WebGL: boolean;
|
|
6
|
-
WebGL2: boolean;
|
|
7
|
-
WebGL2RC: boolean;
|
|
8
|
-
isGPUAcceleratorEnabled: boolean;
|
|
9
|
-
} | {
|
|
10
|
-
tier: number;
|
|
11
|
-
renderer: string;
|
|
12
|
-
WebP: boolean;
|
|
13
|
-
WebGL: boolean;
|
|
14
|
-
WebGL2: boolean;
|
|
15
|
-
WebGL2RC: boolean;
|
|
16
|
-
isGPUAcceleratorEnabled: boolean;
|
|
17
|
-
} | {
|
|
18
|
-
tier: number;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import Editor from "..";
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
import { Command } from './Command';
|
|
4
|
-
import { SetObjectMaterial } from './SetObjectMaterial';
|
|
5
|
-
declare class AddMaterial extends Command {
|
|
6
|
-
materialType: string | Record<string, any>;
|
|
7
|
-
flag: boolean;
|
|
8
|
-
addObjectUuid: string | undefined;
|
|
9
|
-
fixMaterialType: Record<string, any> | null;
|
|
10
|
-
object?: THREE.Mesh<any, THREE.Material | THREE.Material[]>;
|
|
11
|
-
materialSlot?: number;
|
|
12
|
-
setMaterialCommand?: SetObjectMaterial;
|
|
13
|
-
constructor(editor: Editor, materialType: string | Record<string, any>, object?: THREE.Mesh, slot?: number);
|
|
14
|
-
execute(): Promise<void>;
|
|
15
|
-
undo(): Promise<void>;
|
|
16
|
-
toJSON(): any;
|
|
17
|
-
fromJSON(json: any): void;
|
|
18
|
-
fixJSON(): void;
|
|
19
|
-
}
|
|
20
|
-
export { AddMaterial };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Editor from "..";
|
|
2
|
-
import { Command } from './Command';
|
|
3
|
-
declare class AddObject extends Command {
|
|
4
|
-
objectType: string;
|
|
5
|
-
objectOptions: Record<string, any>;
|
|
6
|
-
obj: any;
|
|
7
|
-
addObjectUuid: string | undefined;
|
|
8
|
-
constructor(editor: Editor, objectType: string, options: Record<string, any>);
|
|
9
|
-
execute(): Promise<void>;
|
|
10
|
-
undo(): void;
|
|
11
|
-
toJSON(): any;
|
|
12
|
-
fromJSON(json: any): void;
|
|
13
|
-
fixJSON(): void;
|
|
14
|
-
}
|
|
15
|
-
export { AddObject };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Command } from './Command';
|
|
2
|
-
import Editor from "..";
|
|
3
|
-
declare class AddVis extends Command {
|
|
4
|
-
visType: string;
|
|
5
|
-
visOptions: Record<string, any>;
|
|
6
|
-
constructor(editor: Editor, visType: string, options: Record<string, any>);
|
|
7
|
-
execute(): Promise<void>;
|
|
8
|
-
undo(): boolean;
|
|
9
|
-
toJSON(): any;
|
|
10
|
-
fromJSON(json: any): void;
|
|
11
|
-
}
|
|
12
|
-
export { AddVis };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import Editor from "..";
|
|
2
|
-
declare class Command {
|
|
3
|
-
id: number;
|
|
4
|
-
updatable: boolean;
|
|
5
|
-
type: string;
|
|
6
|
-
name: string;
|
|
7
|
-
editor: Editor;
|
|
8
|
-
json: Record<string, any>;
|
|
9
|
-
constructor(editor: Editor);
|
|
10
|
-
toJSON(): {
|
|
11
|
-
type: string;
|
|
12
|
-
id: number;
|
|
13
|
-
name: string;
|
|
14
|
-
updatable: boolean;
|
|
15
|
-
};
|
|
16
|
-
fromJSON(json: Record<string, any>): void;
|
|
17
|
-
fixJSON(): void;
|
|
18
|
-
}
|
|
19
|
-
export { Command };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export { SetColor } from './SetColor.js';
|
|
2
|
-
export { SetMaterialColor } from './SetMaterialColor.js';
|
|
3
|
-
export { SetMaterial } from './SetMaterial.js';
|
|
4
|
-
export { SetMaterialMap } from './SetMaterialMap.js';
|
|
5
|
-
export { SetMaterialValue } from './SetMaterialValue.js';
|
|
6
|
-
export { SetMaterialVector } from './SetMaterialVector.js';
|
|
7
|
-
export { SetMaterialMapVector } from './SetMaterialMapVector.js';
|
|
8
|
-
export { SetPosition } from './SetPosition.js';
|
|
9
|
-
export { SetRotation } from './SetRotation.js';
|
|
10
|
-
export { SetScale } from './SetScale.js';
|
|
11
|
-
export { SetValue } from './SetValue.js';
|
|
12
|
-
export { SetVector } from './SetVector.js';
|
|
13
|
-
export { AddVis } from './AddVis';
|
|
14
|
-
export { AddObject } from './AddObject';
|
|
15
|
-
export { RemoveObject } from './RemoveObject';
|
|
16
|
-
export { CopyObject } from './CopyObject';
|
|
17
|
-
export { AddMaterial } from './AddMaterial';
|
|
18
|
-
export { CopyMaterial } from './CopyMaterial';
|
|
19
|
-
export { RemoveMaterial } from './RemoveMaterial';
|
|
20
|
-
export { SetObjectMaterial } from './SetObjectMaterial';
|
|
21
|
-
export { SetSetting } from './SetSetting';
|
|
22
|
-
export { SetTarget } from './SetTarget.js';
|
|
23
|
-
export { SetSceenMap } from './SetSceenMap.js';
|
|
24
|
-
export { SetGeometry } from './SetGeometry.js';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Command } from './Command';
|
|
2
|
-
import Editor from "..";
|
|
3
|
-
declare class CopyMaterial extends Command {
|
|
4
|
-
objectUuid: string;
|
|
5
|
-
copyObjectUuid: string;
|
|
6
|
-
constructor(editor: Editor, objectUuid: string);
|
|
7
|
-
execute(): Promise<void>;
|
|
8
|
-
undo(): Promise<void>;
|
|
9
|
-
toJSON(): any;
|
|
10
|
-
fromJSON(json: any): void;
|
|
11
|
-
fixJSON(): void;
|
|
12
|
-
}
|
|
13
|
-
export { CopyMaterial };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import Editor from "..";
|
|
2
|
-
import { BaseObject } from 'gl-draw';
|
|
3
|
-
import { Command } from './Command';
|
|
4
|
-
declare class CopyObject extends Command {
|
|
5
|
-
object: BaseObject;
|
|
6
|
-
copyObject: BaseObject | null;
|
|
7
|
-
copyObjectUuid: string | undefined;
|
|
8
|
-
cloneMaterial: boolean;
|
|
9
|
-
constructor(editor: Editor, object: BaseObject);
|
|
10
|
-
execute(): Promise<void>;
|
|
11
|
-
undo(): Promise<void>;
|
|
12
|
-
toJSON(): any;
|
|
13
|
-
fromJSON(json: any): void;
|
|
14
|
-
fixJSON(): void;
|
|
15
|
-
}
|
|
16
|
-
export { CopyObject };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Command } from './Command';
|
|
2
|
-
import Editor, { THREE } from "..";
|
|
3
|
-
declare class RemoveMaterial extends Command {
|
|
4
|
-
objectUuid: string;
|
|
5
|
-
material?: THREE.Material;
|
|
6
|
-
constructor(editor: Editor, objectUuid: string);
|
|
7
|
-
execute(): Promise<void>;
|
|
8
|
-
undo(): Promise<void>;
|
|
9
|
-
toJSON(): any;
|
|
10
|
-
fromJSON(json: any): void;
|
|
11
|
-
fixJSON(): void;
|
|
12
|
-
}
|
|
13
|
-
export { RemoveMaterial };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Editor from "..";
|
|
2
|
-
import { BaseObject } from 'gl-draw';
|
|
3
|
-
import { Command } from './Command';
|
|
4
|
-
declare class RemoveObject extends Command {
|
|
5
|
-
object: BaseObject;
|
|
6
|
-
objectUuid?: string;
|
|
7
|
-
constructor(editor: Editor, object: BaseObject);
|
|
8
|
-
execute(): void;
|
|
9
|
-
undo(): Promise<void>;
|
|
10
|
-
toJSON(): any;
|
|
11
|
-
fromJSON(json: any): void;
|
|
12
|
-
}
|
|
13
|
-
export { RemoveObject };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export class SetColor extends Command {
|
|
2
|
-
constructor(editor: any, object: any, attributeName: any, newValue: any);
|
|
3
|
-
object: any;
|
|
4
|
-
attributeName: any;
|
|
5
|
-
oldValue: any;
|
|
6
|
-
newValue: any;
|
|
7
|
-
execute(): void;
|
|
8
|
-
undo(): void;
|
|
9
|
-
update(cmd: any): void;
|
|
10
|
-
fromJSON(json: any): void;
|
|
11
|
-
}
|
|
12
|
-
import { Command } from './Command';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export class SetGeometry extends Command {
|
|
2
|
-
constructor(editor: any, object: null | undefined, newGeometry: any);
|
|
3
|
-
object: import("three").Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes, import("three").BufferGeometryEventMap>, import("three").Material | import("three").Material[], import("three").Object3DEventMap> | null | undefined;
|
|
4
|
-
oldGeometry: any;
|
|
5
|
-
newGeometry: any;
|
|
6
|
-
execute(): void;
|
|
7
|
-
undo(): void;
|
|
8
|
-
update(cmd: any): void;
|
|
9
|
-
geometryToJSON(geometry: any): any;
|
|
10
|
-
parseGeometry(data: any): import("three").BufferGeometry<import("three").NormalBufferAttributes, import("three").BufferGeometryEventMap> | undefined;
|
|
11
|
-
fromJSON(json: any): void;
|
|
12
|
-
}
|
|
13
|
-
import { Command } from './Command';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export class SetMaterial extends Command {
|
|
2
|
-
constructor(editor: any, object: any, newMaterial: any, materialSlot: any);
|
|
3
|
-
object: any;
|
|
4
|
-
materialSlot: any;
|
|
5
|
-
oldMaterial: import("three").Material | import("three").Material[] | undefined;
|
|
6
|
-
newMaterial: any;
|
|
7
|
-
execute(): void;
|
|
8
|
-
undo(): void;
|
|
9
|
-
fromJSON(json: any): void;
|
|
10
|
-
}
|
|
11
|
-
export function parseMaterial(json: any): import("three").Material | null;
|
|
12
|
-
import { Command } from './Command';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export class SetMaterialColor extends Command {
|
|
2
|
-
constructor(editor: any, object: any, attributeName: any, newValue: any, materialSlot: any);
|
|
3
|
-
object: any;
|
|
4
|
-
materialSlot: any;
|
|
5
|
-
material: import("three").Material | import("three").Material[] | undefined;
|
|
6
|
-
oldValue: any;
|
|
7
|
-
newValue: any;
|
|
8
|
-
attributeName: any;
|
|
9
|
-
execute(): void;
|
|
10
|
-
undo(): void;
|
|
11
|
-
update(cmd: any): void;
|
|
12
|
-
fromJSON(json: any): void;
|
|
13
|
-
}
|
|
14
|
-
import { Command } from './Command';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export class SetMaterialMap extends Command {
|
|
2
|
-
constructor(editor: any, object: any, mapName: any, newMap: any, materialSlot: any);
|
|
3
|
-
object: any;
|
|
4
|
-
materialSlot: any;
|
|
5
|
-
material: THREE.Material | THREE.Material[] | undefined;
|
|
6
|
-
oldMap: any;
|
|
7
|
-
newMap: any;
|
|
8
|
-
mapName: any;
|
|
9
|
-
execute(): void;
|
|
10
|
-
undo(): void;
|
|
11
|
-
playVideo(map: any): void;
|
|
12
|
-
fromJSON(json: any): void;
|
|
13
|
-
}
|
|
14
|
-
export function parseTexture(json: any): THREE.Texture<unknown> | null;
|
|
15
|
-
export function serializeMap(map: any): any;
|
|
16
|
-
import { Command } from './Command';
|
|
17
|
-
import * as THREE from 'three';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export class SetMaterialMapVector extends Command {
|
|
2
|
-
constructor(editor: any, object: any, attributeName: any, newValue: any, materialSlot: any, attributeName2?: string);
|
|
3
|
-
attributeName2: string;
|
|
4
|
-
object: any;
|
|
5
|
-
materialSlot: any;
|
|
6
|
-
material: any;
|
|
7
|
-
oldValue: any;
|
|
8
|
-
newValue: any;
|
|
9
|
-
attributeName: any;
|
|
10
|
-
execute(): void;
|
|
11
|
-
undo(): void;
|
|
12
|
-
update(cmd: any): void;
|
|
13
|
-
fromJSON(json: any): void;
|
|
14
|
-
}
|
|
15
|
-
import { Command } from './Command';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export class SetMaterialRange extends Command {
|
|
2
|
-
constructor(editor: any, object: any, attributeName: any, newMinValue: any, newMaxValue: any, materialSlot: any);
|
|
3
|
-
object: any;
|
|
4
|
-
materialSlot: any;
|
|
5
|
-
material: import("three").Material | import("three").Material[] | undefined;
|
|
6
|
-
oldRange: any[] | undefined;
|
|
7
|
-
newRange: any[];
|
|
8
|
-
attributeName: any;
|
|
9
|
-
execute(): void;
|
|
10
|
-
undo(): void;
|
|
11
|
-
update(cmd: any): void;
|
|
12
|
-
fromJSON(json: any): void;
|
|
13
|
-
}
|
|
14
|
-
import { Command } from './Command';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export class SetMaterialValue extends Command {
|
|
2
|
-
constructor(editor: any, object: any, attributeName: any, newValue: any, materialSlot: any);
|
|
3
|
-
object: any;
|
|
4
|
-
materialSlot: any;
|
|
5
|
-
material: import("three").Material | import("three").Material[] | undefined;
|
|
6
|
-
oldValue: any;
|
|
7
|
-
newValue: any;
|
|
8
|
-
attributeName: any;
|
|
9
|
-
execute(): void;
|
|
10
|
-
undo(): void;
|
|
11
|
-
update(cmd: any): void;
|
|
12
|
-
fromJSON(json: any): void;
|
|
13
|
-
}
|
|
14
|
-
import { Command } from './Command';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export class SetMaterialVector extends Command {
|
|
2
|
-
constructor(editor: any, object: any, attributeName: any, newValue: any, materialSlot: any);
|
|
3
|
-
object: any;
|
|
4
|
-
materialSlot: any;
|
|
5
|
-
material: import("three").Material | import("three").Material[] | undefined;
|
|
6
|
-
oldValue: any;
|
|
7
|
-
newValue: any;
|
|
8
|
-
attributeName: any;
|
|
9
|
-
execute(): void;
|
|
10
|
-
undo(): void;
|
|
11
|
-
update(cmd: any): void;
|
|
12
|
-
fromJSON(json: any): void;
|
|
13
|
-
}
|
|
14
|
-
import { Command } from './Command';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Editor, { THREE } from "..";
|
|
2
|
-
import { Command } from './Command';
|
|
3
|
-
declare class SetObjectMaterial extends Command {
|
|
4
|
-
object: THREE.Mesh;
|
|
5
|
-
newValue: string;
|
|
6
|
-
materialSlot: number;
|
|
7
|
-
oldMaterial: THREE.Material;
|
|
8
|
-
constructor(editor: Editor, object: THREE.Mesh, materialSlot: number, newType: string);
|
|
9
|
-
execute(): Promise<void>;
|
|
10
|
-
undo(): Promise<void>;
|
|
11
|
-
playVideo(material: THREE.Material): void;
|
|
12
|
-
toJSON(): any;
|
|
13
|
-
fromJSON(json: any): void;
|
|
14
|
-
}
|
|
15
|
-
export { SetObjectMaterial };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export class SetPosition extends Command {
|
|
2
|
-
constructor(editor: any, object: any, newPosition: any, optionalOldPosition: any, cameraControls: any);
|
|
3
|
-
cameraControls: any;
|
|
4
|
-
object: any;
|
|
5
|
-
oldPosition: any;
|
|
6
|
-
newPosition: any;
|
|
7
|
-
execute(): void;
|
|
8
|
-
undo(): void;
|
|
9
|
-
update(command: any): void;
|
|
10
|
-
fromJSON(json: any): void;
|
|
11
|
-
}
|
|
12
|
-
import { Command } from './Command';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export class SetRotation extends Command {
|
|
2
|
-
constructor(editor: any, object: any, newRotation: any, optionalOldRotation: any);
|
|
3
|
-
object: any;
|
|
4
|
-
oldRotation: any;
|
|
5
|
-
newRotation: any;
|
|
6
|
-
execute(): void;
|
|
7
|
-
undo(): void;
|
|
8
|
-
update(command: any): void;
|
|
9
|
-
fromJSON(json: any): void;
|
|
10
|
-
}
|
|
11
|
-
import { Command } from './Command';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export class SetScale extends Command {
|
|
2
|
-
constructor(editor: any, object: any, newScale: any, optionalOldScale: any);
|
|
3
|
-
object: any;
|
|
4
|
-
oldScale: any;
|
|
5
|
-
newScale: any;
|
|
6
|
-
execute(): void;
|
|
7
|
-
undo(): void;
|
|
8
|
-
update(command: any): void;
|
|
9
|
-
fromJSON(json: any): void;
|
|
10
|
-
}
|
|
11
|
-
import { Command } from './Command';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Command } from './Command';
|
|
2
|
-
import Editor from "..";
|
|
3
|
-
declare class SetSetting extends Command {
|
|
4
|
-
attributeName: string;
|
|
5
|
-
newValue: string;
|
|
6
|
-
oldValue: string;
|
|
7
|
-
constructor(editor: Editor, name: string, newValue: string);
|
|
8
|
-
execute(): Promise<void>;
|
|
9
|
-
undo(): Promise<void>;
|
|
10
|
-
update(command: any): void;
|
|
11
|
-
toJSON(): any;
|
|
12
|
-
fromJSON(json: any): void;
|
|
13
|
-
}
|
|
14
|
-
export { SetSetting };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export class SetTarget extends Command {
|
|
2
|
-
constructor(editor: any, object: any, newPosition: any, optionalOldPosition: any, cameraControls: any);
|
|
3
|
-
cameraControls: any;
|
|
4
|
-
object: any;
|
|
5
|
-
oldPosition: any;
|
|
6
|
-
newPosition: any;
|
|
7
|
-
execute(): void;
|
|
8
|
-
undo(): void;
|
|
9
|
-
update(command: any): void;
|
|
10
|
-
fromJSON(json: any): void;
|
|
11
|
-
}
|
|
12
|
-
import { Command } from './Command';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export class SetValue extends Command {
|
|
2
|
-
constructor(editor: any, object: any, attributeName: any, newValue: any, properties: any);
|
|
3
|
-
object: any;
|
|
4
|
-
properties: any;
|
|
5
|
-
attributeName: any;
|
|
6
|
-
oldValue: any;
|
|
7
|
-
newValue: any;
|
|
8
|
-
execute(): Promise<void>;
|
|
9
|
-
fixObj(): void;
|
|
10
|
-
undo(): Promise<void>;
|
|
11
|
-
update(cmd: any): void;
|
|
12
|
-
fromJSON(json: any): void;
|
|
13
|
-
}
|
|
14
|
-
import { Command } from './Command';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export class SetVector extends Command {
|
|
2
|
-
constructor(editor: any, object: any, attributeName: any, newValue: any, properties: any);
|
|
3
|
-
object: any;
|
|
4
|
-
properties: any;
|
|
5
|
-
attributeName: any;
|
|
6
|
-
oldValue: any;
|
|
7
|
-
newValue: any;
|
|
8
|
-
execute(): void;
|
|
9
|
-
fixObj(): void;
|
|
10
|
-
undo(): void;
|
|
11
|
-
update(cmd: any): void;
|
|
12
|
-
fromJSON(json: any): void;
|
|
13
|
-
}
|
|
14
|
-
import { Command } from './Command';
|
package/dist/editor/config.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import Editor from "./";
|
|
2
|
-
declare class Config {
|
|
3
|
-
editor: Editor;
|
|
4
|
-
meta: {
|
|
5
|
-
name: string;
|
|
6
|
-
key: string;
|
|
7
|
-
open: boolean;
|
|
8
|
-
jsonVersion: string;
|
|
9
|
-
sdkVersion: string;
|
|
10
|
-
__template: string;
|
|
11
|
-
};
|
|
12
|
-
constructor(editor: Editor);
|
|
13
|
-
setConfig<K extends keyof Config['meta']>(key: K, value: Config['meta'][K]): void;
|
|
14
|
-
fromJSON(json: any): void;
|
|
15
|
-
compareVersion(): void;
|
|
16
|
-
toJSON(): {
|
|
17
|
-
version: string;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export default Config;
|
package/dist/editor/helper.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const fixJSON: (json: any) => any;
|