vis-core 0.22.10 → 0.22.12
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/editor/history.d.ts +1 -1
- package/dist/editor/index.d.ts +7 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -19
- package/dist/index.module.js +31766 -27096
- package/dist/version.d.ts +1 -1
- package/dist/vis/all/MaterialList.d.ts +1 -0
- package/dist/vis/all/json/continents/continents.d.ts +144 -99
- package/dist/vis/all/json/world/world.d.ts +176 -136
- package/dist/vis/base/index.d.ts +2 -1
- package/dist/vis/map/index.d.ts +3 -3
- package/package.json +1 -1
package/dist/editor/history.d.ts
CHANGED
package/dist/editor/index.d.ts
CHANGED
|
@@ -9,6 +9,11 @@ import Sprite from "../vis/all/objects/Sprite";
|
|
|
9
9
|
import Base from "../vis/base";
|
|
10
10
|
export * as THREE from 'three';
|
|
11
11
|
export { MeshLineMaterial } from 'gl-draw/dist/objects';
|
|
12
|
+
export interface Hooks {
|
|
13
|
+
beforeSetVisOptions?: (json: any) => any;
|
|
14
|
+
beforeExecuteUndo?: (undo: any) => any;
|
|
15
|
+
afterExecuteUndo?: (undo: any) => any;
|
|
16
|
+
}
|
|
12
17
|
export interface IBaseObject extends BaseObject {
|
|
13
18
|
}
|
|
14
19
|
interface SelectedMeta {
|
|
@@ -48,6 +53,7 @@ export default class Editor {
|
|
|
48
53
|
name: string;
|
|
49
54
|
open: boolean;
|
|
50
55
|
options: Options;
|
|
56
|
+
hooks?: Hooks;
|
|
51
57
|
constructor(options: Options);
|
|
52
58
|
getObjectMaterial(object?: THREE.Mesh | null, slot?: number): THREE.Material | THREE.Material[] | undefined;
|
|
53
59
|
setObjectMaterial(object: THREE.Mesh, slot: number, newMaterial: THREE.Material): void;
|
|
@@ -69,12 +75,11 @@ export default class Editor {
|
|
|
69
75
|
baseObject?: BaseObject;
|
|
70
76
|
}[]) => void>;
|
|
71
77
|
execute(cmd: any, optionalName?: string): Promise<void>;
|
|
72
|
-
fromJSON(jsonOrUrl: Record<string, any> | string,
|
|
78
|
+
fromJSON(jsonOrUrl: Record<string, any> | string, hooks?: Hooks): Promise<Record<string, any>>;
|
|
73
79
|
toJSON(): {};
|
|
74
80
|
select(...args: any[]): void;
|
|
75
81
|
select2(...args: any[]): void;
|
|
76
82
|
setViewportVis(...args: any[]): void;
|
|
77
|
-
injectionModification(...args: any[]): void;
|
|
78
83
|
setConfig(c: Partial<{
|
|
79
84
|
name: string;
|
|
80
85
|
key: string;
|
package/dist/index.d.ts
CHANGED