vis-core 0.23.3 → 0.23.4

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.
@@ -1,5 +1,5 @@
1
1
  import Editor from "./";
2
- declare class Scripts {
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 Scripts['events'], ...args: any[]): any;
21
+ dispatch(type: keyof Hooks['events'], ...args: any[]): any;
22
22
  }
23
- export default Scripts;
23
+ export default Hooks;
@@ -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 Scripts from './scripts';
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
- scripts: Scripts;
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, scripts?: Record<string, any>): Promise<Record<string, any>>;
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
@@ -8,4 +8,4 @@ export * from './getVisConfig';
8
8
  export declare const access: {
9
9
  token: string;
10
10
  };
11
- export declare const VERSION = "0.23.3";
11
+ export declare const VERSION = "0.23.4";