vis-core 0.17.4 → 0.18.0
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/{command → editor/command}/AddObject.d.ts +1 -1
- package/dist/{command → editor/command}/AddVis.d.ts +1 -1
- package/dist/{command → editor/command}/Command.d.ts +1 -1
- package/dist/{command → editor/command}/CopyObject.d.ts +1 -1
- package/dist/{command → editor/command}/RemoveObject.d.ts +1 -1
- package/dist/{command → editor/command}/SetSetting.d.ts +1 -1
- package/dist/{history.d.ts → editor/history.d.ts} +1 -1
- package/dist/editor/index.d.ts +71 -0
- package/dist/{viewport.d.ts → editor/viewport.d.ts} +8 -8
- package/dist/index.d.ts +5 -80
- package/dist/index.js +212 -212
- package/dist/index.module.js +21499 -21500
- package/dist/version.d.ts +1 -1
- package/dist/vis/all/objects/Model.d.ts +11 -0
- package/dist/vis/all/objects/index.d.ts +2 -0
- package/dist/vis/base/event.d.ts +11 -0
- package/dist/vis/{Base.d.ts → base/index.d.ts} +48 -34
- package/dist/vis/city/config.d.ts +0 -1
- package/dist/vis/city/index.d.ts +5 -5
- package/dist/vis/city/objects/index.d.ts +1 -0
- package/dist/vis/earth/index.d.ts +6 -8
- package/dist/vis/earth/objects/index.d.ts +3 -0
- package/dist/vis/earth/styles/chinaPlate.d.ts +2 -0
- package/dist/vis/earth/styles/countryPlate.d.ts +2 -0
- package/dist/vis/earth/styles/index.d.ts +2 -0
- package/dist/vis/earth2/index.d.ts +5 -6
- package/dist/vis/earth2/objects/index.d.ts +1 -0
- package/dist/vis/index.d.ts +2 -2
- package/dist/vis/map/index.d.ts +8 -7
- package/dist/vis/map/objects/index.d.ts +1 -0
- package/dist/vis/map/styles/base.d.ts +2 -0
- package/dist/vis/map/styles/china.d.ts +2 -0
- package/dist/vis/map/styles/index.d.ts +4 -0
- package/dist/vis/map/styles/world.d.ts +2 -0
- package/dist/vis/map/styles/worldPacificCentre.d.ts +2 -0
- package/dist/vis/map2/city.d.ts +1 -0
- package/dist/vis/map2/index.d.ts +1 -2
- package/dist/vis/map2/map.d.ts +6 -4
- package/dist/vis/map2/objects/index.d.ts +1 -0
- package/dist/vis/map2/styles/base.d.ts +2 -0
- package/dist/vis/map2/styles/city350000.d.ts +2 -0
- package/dist/vis/map2/styles/cityOnMap.d.ts +2 -0
- package/dist/vis/map2/styles/index.d.ts +4 -0
- package/dist/vis/map2/styles/map350000.d.ts +2 -0
- package/package.json +2 -2
- package/dist/vis/earth/utils/animation.d.ts +0 -1
- package/dist/vis/earth/utils/index.d.ts +0 -2
- package/dist/vis/earth3/config.d.ts +0 -7
- package/dist/vis/earth3/index.d.ts +0 -41
- package/dist/vis/earth3/objects/index.d.ts +0 -38
- package/dist/vis/earth3/utils/animation.d.ts +0 -1
- package/dist/vis/earth3/utils/index.d.ts +0 -2
- package/dist/vis/map/mapWorld.d.ts +0 -2
- package/dist/vis/map2/city350000.d.ts +0 -2
- package/dist/vis/map2/map350000.d.ts +0 -2
- package/dist/vis/map2/mapOnCity.d.ts +0 -2
- /package/dist/{command → editor/command}/Commands.d.ts +0 -0
- /package/dist/{command → editor/command}/SetColor.d.ts +0 -0
- /package/dist/{command → editor/command}/SetMaterial.d.ts +0 -0
- /package/dist/{command → editor/command}/SetMaterialColor.d.ts +0 -0
- /package/dist/{command → editor/command}/SetMaterialMap.d.ts +0 -0
- /package/dist/{command → editor/command}/SetMaterialMapVector.d.ts +0 -0
- /package/dist/{command → editor/command}/SetMaterialRange.d.ts +0 -0
- /package/dist/{command → editor/command}/SetMaterialValue.d.ts +0 -0
- /package/dist/{command → editor/command}/SetMaterialVector.d.ts +0 -0
- /package/dist/{command → editor/command}/SetPosition.d.ts +0 -0
- /package/dist/{command → editor/command}/SetRotation.d.ts +0 -0
- /package/dist/{command → editor/command}/SetScale.d.ts +0 -0
- /package/dist/{command → editor/command}/SetSceenMap.d.ts +0 -0
- /package/dist/{command → editor/command}/SetTarget.d.ts +0 -0
- /package/dist/{command → editor/command}/SetValue.d.ts +0 -0
- /package/dist/{helper.d.ts → editor/helper.d.ts} +0 -0
- /package/dist/vis/{earth3 → earth}/objects/SphereShadow.d.ts +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import '@/styles/vis.css';
|
|
2
|
+
import * as THREE from 'three';
|
|
3
|
+
import { EventEmitter } from 'events';
|
|
4
|
+
import Pencil, { BaseObject } from 'gl-draw';
|
|
5
|
+
import History from './history';
|
|
6
|
+
import Viewport from './viewport';
|
|
7
|
+
import Arc from "../vis/all/objects/Arc";
|
|
8
|
+
export * as THREE from 'three';
|
|
9
|
+
export { MeshLineMaterial } from 'gl-draw/dist/objects';
|
|
10
|
+
import Base from "../vis/base";
|
|
11
|
+
interface SelectedMeta {
|
|
12
|
+
name: string;
|
|
13
|
+
object: THREE.Mesh;
|
|
14
|
+
uuid: string;
|
|
15
|
+
fixUuid?: string;
|
|
16
|
+
baseObject?: BaseObject;
|
|
17
|
+
remove?: boolean;
|
|
18
|
+
parent?: THREE.Mesh;
|
|
19
|
+
}
|
|
20
|
+
export interface Options {
|
|
21
|
+
visFactories?: Base;
|
|
22
|
+
assetsPrefix?: string;
|
|
23
|
+
}
|
|
24
|
+
export default class Editor {
|
|
25
|
+
selected: any;
|
|
26
|
+
playing: boolean;
|
|
27
|
+
currentMaterialSlot: number;
|
|
28
|
+
events: EventEmitter;
|
|
29
|
+
history: History;
|
|
30
|
+
viewport: Viewport;
|
|
31
|
+
pencil: Pencil;
|
|
32
|
+
on: (eventName: string | symbol, listener: (...args: any[]) => void) => EventEmitter;
|
|
33
|
+
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
34
|
+
sdkVersion: string;
|
|
35
|
+
jsonVersion: string | undefined;
|
|
36
|
+
key: string;
|
|
37
|
+
name: string;
|
|
38
|
+
open: boolean;
|
|
39
|
+
fixBufferGeometry: THREE.BufferGeometry;
|
|
40
|
+
fixMeshMap: Map<any, any>;
|
|
41
|
+
options: Options;
|
|
42
|
+
constructor(options: Options);
|
|
43
|
+
getObjectMaterial(object?: THREE.Mesh | null, slot?: number): THREE.Material | THREE.Material[] | undefined;
|
|
44
|
+
setObjectMaterial(object: THREE.Mesh, slot: number, newMaterial: THREE.Material): void;
|
|
45
|
+
uuidByObject(object: THREE.Object3D): string | undefined;
|
|
46
|
+
objectByUuid(uuid: string): THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap> | undefined;
|
|
47
|
+
uuidByBaseObject(object: BaseObject): string | undefined;
|
|
48
|
+
baseObjectByUuid(uuid: `arc${string}`): Arc;
|
|
49
|
+
baseObjectByUuid(uuid: string): BaseObject;
|
|
50
|
+
changeSelectOption(): void;
|
|
51
|
+
selectOption: SelectedMeta[];
|
|
52
|
+
checkSelectOption: import("lodash-es").DebouncedFunc<(res: {
|
|
53
|
+
name: string;
|
|
54
|
+
object: THREE.Mesh;
|
|
55
|
+
uuid: string;
|
|
56
|
+
baseObject?: BaseObject;
|
|
57
|
+
}[]) => void>;
|
|
58
|
+
execute(cmd: any, optionalName?: string): Promise<void>;
|
|
59
|
+
fromJSON(jsonOrUrl: Record<string, any> | string, extendVisOptions?: (json: any) => any): Promise<Record<string, any>>;
|
|
60
|
+
toJSON(): {};
|
|
61
|
+
select(...args: any[]): void;
|
|
62
|
+
setViewportVis(...args: any[]): void;
|
|
63
|
+
setConfig(c: Partial<{
|
|
64
|
+
name: string;
|
|
65
|
+
key: string;
|
|
66
|
+
version: string;
|
|
67
|
+
open: boolean;
|
|
68
|
+
}>): void;
|
|
69
|
+
getDataURL(): string;
|
|
70
|
+
dispose(): void;
|
|
71
|
+
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import Base from "
|
|
2
|
-
import Editor from "./
|
|
1
|
+
import Base from "../vis/base";
|
|
2
|
+
import Editor from "./";
|
|
3
|
+
interface Options {
|
|
4
|
+
visFactories?: Base;
|
|
5
|
+
}
|
|
3
6
|
export default class {
|
|
4
7
|
editor: Editor;
|
|
5
8
|
vis?: Base;
|
|
6
|
-
container: HTMLElement;
|
|
7
9
|
extendsOptions: Record<string, any>;
|
|
8
10
|
delLoadObj?: string[];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
constructor(editor: Editor);
|
|
11
|
+
options: Options;
|
|
12
|
+
constructor(editor: Editor, options: Options);
|
|
13
13
|
setSaveCamera(): void;
|
|
14
|
-
initContainer(dom: HTMLElement): void;
|
|
15
14
|
addVis(type: string, options?: Record<string, any>): Promise<void>;
|
|
16
15
|
setVis(type: string, options?: Record<string, any>): Promise<void>;
|
|
17
16
|
fitToBoxGroup(): void;
|
|
@@ -29,3 +28,4 @@ export default class {
|
|
|
29
28
|
setTransformControlsModal(modal: 'translate' | 'rotate' | 'scale'): void;
|
|
30
29
|
dispose(): void;
|
|
31
30
|
}
|
|
31
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,82 +1,7 @@
|
|
|
1
1
|
import '@/styles/vis.css';
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
import { EventEmitter } from 'events';
|
|
4
|
-
import Pencil, { BaseObject } from 'gl-draw';
|
|
5
|
-
import { Map, City, Earth, Earth2, Earth3, Map2 } from "./vis/index";
|
|
6
|
-
import Base from "./vis/Base";
|
|
7
|
-
import History from './history';
|
|
8
|
-
import Viewport from './viewport';
|
|
9
|
-
import Arc from "./vis/all/objects/Arc";
|
|
10
2
|
export * as THREE from 'three';
|
|
11
|
-
export
|
|
12
|
-
export *
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
uuid: string;
|
|
17
|
-
fixUuid?: string;
|
|
18
|
-
baseObject?: BaseObject;
|
|
19
|
-
remove?: boolean;
|
|
20
|
-
parent?: THREE.Mesh;
|
|
21
|
-
}
|
|
22
|
-
export interface Options {
|
|
23
|
-
container?: HTMLElement;
|
|
24
|
-
assetsPrefix?: string;
|
|
25
|
-
css2DContainer?: HTMLElement;
|
|
26
|
-
}
|
|
27
|
-
export default class Editor {
|
|
28
|
-
selected: any;
|
|
29
|
-
playing: boolean;
|
|
30
|
-
currentMaterialSlot: number;
|
|
31
|
-
events: EventEmitter;
|
|
32
|
-
history: History;
|
|
33
|
-
viewport: Viewport;
|
|
34
|
-
pencil: Pencil;
|
|
35
|
-
on: (eventName: string | symbol, listener: (...args: any[]) => void) => EventEmitter;
|
|
36
|
-
emit: (eventName: string | symbol, ...args: any[]) => boolean;
|
|
37
|
-
sdkVersion: string;
|
|
38
|
-
jsonVersion: string | undefined;
|
|
39
|
-
key: string;
|
|
40
|
-
name: string;
|
|
41
|
-
open: boolean;
|
|
42
|
-
assetsPrefix: string;
|
|
43
|
-
css2DContainer?: HTMLElement;
|
|
44
|
-
getVis(name: 'base'): Base;
|
|
45
|
-
getVis(name: 'map'): Map;
|
|
46
|
-
getVis(name: 'map2'): Map2;
|
|
47
|
-
getVis(name: 'city'): City;
|
|
48
|
-
getVis(name: 'earth'): Earth;
|
|
49
|
-
getVis(name: 'earth2'): Earth2;
|
|
50
|
-
getVis(name: 'earth3'): Earth3;
|
|
51
|
-
fixBufferGeometry: THREE.BufferGeometry;
|
|
52
|
-
fixMeshMap: globalThis.Map<any, any>;
|
|
53
|
-
constructor(options?: Options);
|
|
54
|
-
use(visFactoriesMap: Record<string, any>): void;
|
|
55
|
-
getObjectMaterial(object?: THREE.Mesh | null, slot?: number): THREE.Material | THREE.Material[] | undefined;
|
|
56
|
-
setObjectMaterial(object: THREE.Mesh, slot: number, newMaterial: THREE.Material): void;
|
|
57
|
-
uuidByObject(object: THREE.Object3D): string | undefined;
|
|
58
|
-
objectByUuid(uuid: string): THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap> | undefined;
|
|
59
|
-
uuidByBaseObject(object: BaseObject): string | undefined;
|
|
60
|
-
baseObjectByUuid(uuid: `arc${string}`): Arc;
|
|
61
|
-
baseObjectByUuid(uuid: string): BaseObject;
|
|
62
|
-
changeSelectOption(): void;
|
|
63
|
-
selectOption: SelectedMeta[];
|
|
64
|
-
checkSelectOption: import("lodash-es").DebouncedFunc<(res: {
|
|
65
|
-
name: string;
|
|
66
|
-
object: THREE.Mesh;
|
|
67
|
-
uuid: string;
|
|
68
|
-
baseObject?: BaseObject;
|
|
69
|
-
}[]) => void>;
|
|
70
|
-
execute(cmd: any, optionalName?: string): Promise<void>;
|
|
71
|
-
fromJSON(jsonOrUrl: Record<string, any> | string, extendVisOptions?: (json: any) => any): Promise<Record<string, any>>;
|
|
72
|
-
toJSON(): {};
|
|
73
|
-
select(...args: any[]): void;
|
|
74
|
-
setConfig(c: Partial<{
|
|
75
|
-
name: string;
|
|
76
|
-
key: string;
|
|
77
|
-
version: string;
|
|
78
|
-
open: boolean;
|
|
79
|
-
}>): void;
|
|
80
|
-
getDataURL(): string;
|
|
81
|
-
dispose(): void;
|
|
82
|
-
}
|
|
3
|
+
export * as TWEEN from '@tweenjs/tween.js';
|
|
4
|
+
export * from "./vis/index";
|
|
5
|
+
export declare const exported: {
|
|
6
|
+
accessToken: undefined;
|
|
7
|
+
};
|