vis-core 0.28.23 → 0.28.25

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,10 +1,10 @@
1
- import { Command } from './Command';
2
1
  import Editor from "..";
2
+ import { Command } from './Command';
3
3
  declare class AddMaterial extends Command {
4
- materialType: string;
4
+ materialType: string | Record<string, any>;
5
5
  flag: boolean;
6
6
  addObjectUuid: string | undefined;
7
- constructor(editor: Editor, materialType: string);
7
+ constructor(editor: Editor, materialType: string | Record<string, any>);
8
8
  execute(): Promise<void>;
9
9
  undo(): Promise<void>;
10
10
  toJSON(): any;
@@ -1,5 +1,5 @@
1
- import Base from "../vis/base";
2
1
  import Editor from "./";
2
+ import Base from "../vis/base";
3
3
  interface Options {
4
4
  visFactories?: Base;
5
5
  }
@@ -18,11 +18,15 @@ export default class {
18
18
  setResetCameraUp(): void;
19
19
  initEvent(): void;
20
20
  addObj(type: string, options?: Record<string, any>): Promise<void>;
21
- removeObj(uuid: string): Promise<void>;
22
- copyObj(uuid: string): Promise<void>;
21
+ removeObj(uuid?: string): Promise<void>;
22
+ private copyObjKey;
23
+ copyObj(key?: string): void;
24
+ pasteObj(): Promise<void>;
25
+ private copyMListMaterialKey;
26
+ copyMListMaterial(key?: string): Promise<void>;
27
+ pasteMListMaterial(): Promise<void>;
23
28
  addMListMaterial(type?: string): Promise<void>;
24
29
  removeMListMaterial(key: string): Promise<void>;
25
- copyMListMaterial(key: string): Promise<void>;
26
30
  setExtendsOptions(name: string, value: any): void;
27
31
  toJSON(): {
28
32
  eo: Record<string, any>;
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.28.23";
11
+ export declare const VERSION = "0.28.25";