vis-core 0.23.3 → 0.23.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/dist/editor/command/SetMaterial.d.ts +1 -0
- package/dist/editor/{scripts.d.ts → hooks.d.ts} +3 -3
- package/dist/editor/index.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +61 -61
- package/dist/index.module.js +17370 -17357
- package/dist/version.d.ts +1 -1
- package/dist/vis/base/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Editor from "./";
|
|
2
|
-
declare class
|
|
2
|
+
declare class Hooks {
|
|
3
3
|
editor: Editor;
|
|
4
4
|
events: {
|
|
5
5
|
beforeSetVisOptions: Function[];
|
|
@@ -18,6 +18,6 @@ declare class Scripts {
|
|
|
18
18
|
fromJSON(source: string): void;
|
|
19
19
|
toJSON(): string;
|
|
20
20
|
clear(): void;
|
|
21
|
-
dispatch(type: keyof
|
|
21
|
+
dispatch(type: keyof Hooks['events'], ...args: any[]): any;
|
|
22
22
|
}
|
|
23
|
-
export default
|
|
23
|
+
export default Hooks;
|
package/dist/editor/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'events';
|
|
|
4
4
|
import Pencil, { BaseObject } from 'gl-draw';
|
|
5
5
|
import History from './history';
|
|
6
6
|
import Viewport from './viewport';
|
|
7
|
-
import
|
|
7
|
+
import Hooks from './hooks';
|
|
8
8
|
import Config from './config';
|
|
9
9
|
import Arc from "../vis/all/objects/Arc";
|
|
10
10
|
import Sprite from "../vis/all/objects/Sprite";
|
|
@@ -41,7 +41,7 @@ export default class Editor {
|
|
|
41
41
|
events: EventEmitter;
|
|
42
42
|
history: History;
|
|
43
43
|
viewport: Viewport;
|
|
44
|
-
|
|
44
|
+
hooks: Hooks;
|
|
45
45
|
config: Config;
|
|
46
46
|
pencil: Pencil;
|
|
47
47
|
on: (eventName: string | symbol, listener: (...args: any[]) => void) => EventEmitter;
|
|
@@ -68,7 +68,7 @@ export default class Editor {
|
|
|
68
68
|
baseObject?: BaseObject;
|
|
69
69
|
}[]) => void>;
|
|
70
70
|
execute(cmd: any, optionalName?: string): Promise<void>;
|
|
71
|
-
fromJSON(jsonOrUrl: Record<string, any> | string,
|
|
71
|
+
fromJSON(jsonOrUrl: Record<string, any> | string, hooks?: Record<string, any>): Promise<Record<string, any>>;
|
|
72
72
|
toJSON(): {};
|
|
73
73
|
select(...args: any[]): void;
|
|
74
74
|
select2(...args: any[]): void;
|
package/dist/index.d.ts
CHANGED