vis-core 0.16.6 → 0.16.9
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/Commands.d.ts +0 -1
- package/dist/index.d.ts +2 -16
- package/dist/index.js +227 -228
- package/dist/index.module.js +10831 -10908
- package/dist/version.d.ts +1 -1
- package/dist/viewport.d.ts +1 -12
- package/dist/vis/Base.d.ts +1 -0
- package/dist/vis/all/objects/Arc/index.d.ts +7 -3
- package/dist/vis/{earth/objects/Bar.d.ts → all/objects/CrossPlane.d.ts} +3 -3
- package/dist/vis/all/objects/index.d.ts +3 -0
- package/dist/vis/city/index.d.ts +1 -0
- package/dist/vis/city/objects/index.d.ts +1 -0
- package/dist/vis/earth/index.d.ts +1 -1
- package/dist/vis/earth/objects/index.d.ts +1 -2
- package/dist/vis/earth2/index.d.ts +1 -0
- package/dist/vis/earth2/objects/index.d.ts +1 -0
- package/dist/vis/earth3/index.d.ts +1 -1
- package/dist/vis/earth3/objects/index.d.ts +1 -2
- package/dist/vis/map/index.d.ts +1 -0
- package/dist/vis/map/objects/index.d.ts +1 -0
- package/dist/vis/map2/city.d.ts +1 -0
- package/dist/vis/map2/map.d.ts +1 -0
- package/dist/vis/map2/objects/index.d.ts +1 -0
- package/package.json +4 -4
- package/dist/command/SetScript.d.ts +0 -14
- package/dist/script.d.ts +0 -10
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.16.
|
|
1
|
+
declare const _default: "0.16.9";
|
|
2
2
|
export default _default;
|
package/dist/viewport.d.ts
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
import Base from "./vis/Base";
|
|
2
2
|
import Editor from "./index";
|
|
3
|
-
import * as THREE from 'three';
|
|
4
|
-
interface BgOptions {
|
|
5
|
-
layoutWidth: number;
|
|
6
|
-
layoutHeight: number;
|
|
7
|
-
texture?: THREE.Texture;
|
|
8
|
-
chartBg?: THREE.Texture;
|
|
9
|
-
}
|
|
10
3
|
export default class {
|
|
11
4
|
editor: Editor;
|
|
12
5
|
vis?: Base;
|
|
13
6
|
container: HTMLElement;
|
|
14
|
-
bg: BgOptions;
|
|
15
7
|
extendsOptions: Record<string, any>;
|
|
16
8
|
delLoadObj?: Record<string, boolean>;
|
|
17
9
|
visFactoriesMap: {
|
|
@@ -27,15 +19,12 @@ export default class {
|
|
|
27
19
|
addObj(type: string, options?: Record<string, any>): Promise<void>;
|
|
28
20
|
removeObj(uuid: string): Promise<void>;
|
|
29
21
|
setExtendsOptions(name: string, value: any): void;
|
|
30
|
-
|
|
31
|
-
toJSON(chartBg?: boolean): {
|
|
22
|
+
toJSON(): {
|
|
32
23
|
eo: Record<string, any>;
|
|
33
24
|
delLoadObj: string[] | undefined;
|
|
34
|
-
bg: {};
|
|
35
25
|
};
|
|
36
26
|
fromJSON(json: any): void;
|
|
37
27
|
getLoadObj(): string[];
|
|
38
28
|
setTransformControlsModal(modal: 'translate' | 'rotate' | 'scale'): void;
|
|
39
29
|
dispose(): void;
|
|
40
30
|
}
|
|
41
|
-
export {};
|
package/dist/vis/Base.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export default class Base {
|
|
|
21
21
|
pencil: Pencil;
|
|
22
22
|
drawController: DrawController<{
|
|
23
23
|
Plane: typeof import("./all/objects/Plane").default;
|
|
24
|
+
CrossPlane: typeof import("./all/objects/CrossPlane").default;
|
|
24
25
|
Ring: typeof import("./all/objects/Ring").default;
|
|
25
26
|
Sphere: typeof import("./all/objects/Sphere").default;
|
|
26
27
|
Sprite: typeof import("./all/objects/Sprite").default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import Pencil, { BaseObject } from 'gl-draw';
|
|
2
|
-
import { Tween } from '@tweenjs/tween.js';
|
|
3
2
|
import * as THREE from 'three';
|
|
4
3
|
import { Line } from 'gl-draw/dist/objects';
|
|
5
4
|
interface Options {
|
|
@@ -25,8 +24,13 @@ export default class extends BaseObject {
|
|
|
25
24
|
instantiate(): Promise<this>;
|
|
26
25
|
setPath(from: THREE.Vector3 | number[], to: THREE.Vector3 | number[], radius: number, setPointWidth?: (p: number) => number): void;
|
|
27
26
|
setColor(color: string): void;
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
animateIn({ duration, delay, repeat, onComplete, onRepeat, }?: {
|
|
28
|
+
duration?: number;
|
|
29
|
+
delay?: number;
|
|
30
|
+
repeat?: number;
|
|
31
|
+
onComplete?: (...args: any[]) => void;
|
|
32
|
+
onRepeat?: (count: number) => void;
|
|
33
|
+
}): void;
|
|
30
34
|
update(): void;
|
|
31
35
|
setMList(): void;
|
|
32
36
|
render(): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseObject } from 'gl-draw';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
3
|
interface Options {
|
|
4
|
-
material
|
|
4
|
+
material?: THREE.Material;
|
|
5
5
|
}
|
|
6
|
-
export default class
|
|
7
|
-
options:
|
|
6
|
+
export default class extends BaseObject {
|
|
7
|
+
options: Options;
|
|
8
8
|
constructor(options: Options);
|
|
9
9
|
create(): Promise<void>;
|
|
10
10
|
}
|
|
@@ -3,6 +3,7 @@ import { Node, Image, Line, ExtrudePolygon, Group, ConicPolygon } from 'gl-draw/
|
|
|
3
3
|
import Light from './Light';
|
|
4
4
|
import Point from './Point';
|
|
5
5
|
import Arc from './Arc';
|
|
6
|
+
import CrossPlane from './CrossPlane';
|
|
6
7
|
import Box from './Box';
|
|
7
8
|
import Capsule from './Capsule';
|
|
8
9
|
import Circle from './Circle';
|
|
@@ -21,6 +22,7 @@ import TorusKnot from './TorusKnot';
|
|
|
21
22
|
import Tube from './Tube';
|
|
22
23
|
export declare const expObjs: {
|
|
23
24
|
Plane: typeof Plane;
|
|
25
|
+
CrossPlane: typeof CrossPlane;
|
|
24
26
|
Ring: typeof Ring;
|
|
25
27
|
Sphere: typeof Sphere;
|
|
26
28
|
Sprite: typeof Sprite;
|
|
@@ -39,6 +41,7 @@ export declare const expObjs: {
|
|
|
39
41
|
};
|
|
40
42
|
declare const objs: {
|
|
41
43
|
Plane: typeof Plane;
|
|
44
|
+
CrossPlane: typeof CrossPlane;
|
|
42
45
|
Ring: typeof Ring;
|
|
43
46
|
Sphere: typeof Sphere;
|
|
44
47
|
Sprite: typeof Sprite;
|
package/dist/vis/city/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export default class extends Base {
|
|
|
37
37
|
Area: typeof import("./objects/area").default;
|
|
38
38
|
Plane: typeof import("./objects/plane").default;
|
|
39
39
|
Target: typeof import("./objects/target").default;
|
|
40
|
+
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
40
41
|
Ring: typeof import("../all/objects/Ring").default;
|
|
41
42
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
42
43
|
Sprite: typeof import("../all/objects/Sprite").default;
|
|
@@ -10,6 +10,7 @@ declare const objs: {
|
|
|
10
10
|
Area: typeof Area;
|
|
11
11
|
Plane: typeof Plane;
|
|
12
12
|
Target: typeof Target;
|
|
13
|
+
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
13
14
|
Ring: typeof import("../../all/objects/Ring").default;
|
|
14
15
|
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
15
16
|
Sprite: typeof import("../../all/objects/Sprite").default;
|
|
@@ -14,8 +14,8 @@ export default class extends Base {
|
|
|
14
14
|
drawController: DrawController<{
|
|
15
15
|
Earth: typeof import("./objects/earth").default;
|
|
16
16
|
Countries: typeof Countries;
|
|
17
|
-
Bar: typeof import("./objects/Bar").default;
|
|
18
17
|
Plane: typeof import("../all/objects/Plane").default;
|
|
18
|
+
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
19
19
|
Ring: typeof import("../all/objects/Ring").default;
|
|
20
20
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
21
21
|
Sprite: typeof import("../all/objects/Sprite").default;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
2
2
|
import Earth from './earth';
|
|
3
3
|
import Countries from './countries';
|
|
4
|
-
import Bar from './Bar';
|
|
5
4
|
declare const objs: {
|
|
6
5
|
Earth: typeof Earth;
|
|
7
6
|
Countries: typeof Countries;
|
|
8
|
-
Bar: typeof Bar;
|
|
9
7
|
Plane: typeof import("../../all/objects/Plane").default;
|
|
8
|
+
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
10
9
|
Ring: typeof import("../../all/objects/Ring").default;
|
|
11
10
|
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
12
11
|
Sprite: typeof import("../../all/objects/Sprite").default;
|
|
@@ -12,6 +12,7 @@ export default class extends Base {
|
|
|
12
12
|
Label: typeof import("./objects/label").default;
|
|
13
13
|
Point: typeof import("./objects/point").default;
|
|
14
14
|
Plane: typeof import("../all/objects/Plane").default;
|
|
15
|
+
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
15
16
|
Ring: typeof import("../all/objects/Ring").default;
|
|
16
17
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
17
18
|
Sprite: typeof import("../all/objects/Sprite").default;
|
|
@@ -9,6 +9,7 @@ declare const objs: {
|
|
|
9
9
|
Label: typeof Label;
|
|
10
10
|
Point: typeof Point;
|
|
11
11
|
Plane: typeof import("../../all/objects/Plane").default;
|
|
12
|
+
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
12
13
|
Ring: typeof import("../../all/objects/Ring").default;
|
|
13
14
|
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
14
15
|
Sprite: typeof import("../../all/objects/Sprite").default;
|
|
@@ -6,8 +6,8 @@ export default class extends Earth {
|
|
|
6
6
|
Earth: typeof import("../earth/objects/earth").default;
|
|
7
7
|
Countries: typeof import("../earth/objects/countries").default;
|
|
8
8
|
SphereShadow: typeof import("./objects/SphereShadow").default;
|
|
9
|
-
Bar: typeof import("../earth/objects/Bar").default;
|
|
10
9
|
Plane: typeof import("../all/objects/Plane").default;
|
|
10
|
+
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
11
11
|
Ring: typeof import("../all/objects/Ring").default;
|
|
12
12
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
13
13
|
Sprite: typeof import("../all/objects/Sprite").default;
|
|
@@ -2,13 +2,12 @@ import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
|
2
2
|
import Earth from "../../earth/objects/earth";
|
|
3
3
|
import Countries from "../../earth/objects/countries";
|
|
4
4
|
import SphereShadow from './SphereShadow';
|
|
5
|
-
import Bar from "../../earth/objects/Bar";
|
|
6
5
|
declare const objs: {
|
|
7
6
|
Earth: typeof Earth;
|
|
8
7
|
Countries: typeof Countries;
|
|
9
8
|
SphereShadow: typeof SphereShadow;
|
|
10
|
-
Bar: typeof Bar;
|
|
11
9
|
Plane: typeof import("../../all/objects/Plane").default;
|
|
10
|
+
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
12
11
|
Ring: typeof import("../../all/objects/Ring").default;
|
|
13
12
|
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
14
13
|
Sprite: typeof import("../../all/objects/Sprite").default;
|
package/dist/vis/map/index.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export default class extends Base {
|
|
|
52
52
|
ContinentsBg: typeof ContinentsBg;
|
|
53
53
|
PlaneShadow: typeof import("./objects/PlaneShadow").default;
|
|
54
54
|
Plane: typeof import("../all/objects/Plane").default;
|
|
55
|
+
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
55
56
|
Ring: typeof import("../all/objects/Ring").default;
|
|
56
57
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
57
58
|
Sprite: typeof import("../all/objects/Sprite").default;
|
|
@@ -7,6 +7,7 @@ declare const objs: {
|
|
|
7
7
|
ContinentsBg: typeof ContinentsBg;
|
|
8
8
|
PlaneShadow: typeof PlaneShadow;
|
|
9
9
|
Plane: typeof import("../../all/objects/Plane").default;
|
|
10
|
+
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
10
11
|
Ring: typeof import("../../all/objects/Ring").default;
|
|
11
12
|
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
12
13
|
Sprite: typeof import("../../all/objects/Sprite").default;
|
package/dist/vis/map2/city.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export default class extends City {
|
|
|
9
9
|
Area: typeof import("../city/objects/area").default;
|
|
10
10
|
Road: typeof import("../city/objects/road").default;
|
|
11
11
|
Target: typeof import("../city/objects/target").default;
|
|
12
|
+
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
12
13
|
Ring: typeof import("../all/objects/Ring").default;
|
|
13
14
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
14
15
|
Sprite: typeof import("../all/objects/Sprite").default;
|
package/dist/vis/map2/map.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export default class extends Map {
|
|
|
19
19
|
Area: typeof import("../city/objects/area").default;
|
|
20
20
|
Road: typeof import("../city/objects/road").default;
|
|
21
21
|
Target: typeof import("../city/objects/target").default;
|
|
22
|
+
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
22
23
|
Ring: typeof import("../all/objects/Ring").default;
|
|
23
24
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
24
25
|
Sprite: typeof import("../all/objects/Sprite").default;
|
|
@@ -15,6 +15,7 @@ declare const objs: {
|
|
|
15
15
|
Area: typeof Area;
|
|
16
16
|
Road: typeof Road;
|
|
17
17
|
Target: typeof Target;
|
|
18
|
+
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
18
19
|
Ring: typeof import("../../all/objects/Ring").default;
|
|
19
20
|
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
20
21
|
Sprite: typeof import("../../all/objects/Sprite").default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.9",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
6
|
"build:site": "npm run version &&PUBLIC_EXCLUDE=public/city bundler",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@ant-design/icons-vue": "^7.0.1",
|
|
35
35
|
"@tailwindcss/typography": "^0.5.10",
|
|
36
|
-
"@tweenjs/tween.js": "
|
|
36
|
+
"@tweenjs/tween.js": "^23.1.2",
|
|
37
37
|
"@types/events": "^3.0.0",
|
|
38
38
|
"@types/geojson": "^7946.0.10",
|
|
39
39
|
"@types/lodash-es": "^4.17.9",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"codemirror": "^6.0.1",
|
|
45
45
|
"dayjs": "^1.11.10",
|
|
46
46
|
"eslint-config-bundler": "^0.4.2",
|
|
47
|
-
"esus": "^0.4.
|
|
47
|
+
"esus": "^0.4.28",
|
|
48
48
|
"fs-extra": "^11.1.1",
|
|
49
|
-
"gl-draw": "0.9.
|
|
49
|
+
"gl-draw": "0.9.21",
|
|
50
50
|
"idb-keyval": "^6.2.1",
|
|
51
51
|
"pinia": "^2.1.7",
|
|
52
52
|
"prettier-config-bundler": "^0.4.3",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Command } from './Command';
|
|
2
|
-
import Editor from "../index";
|
|
3
|
-
declare class SetScript extends Command {
|
|
4
|
-
objectUuid: string;
|
|
5
|
-
script?: string;
|
|
6
|
-
prevScript?: string;
|
|
7
|
-
constructor(editor: Editor, objectUuid: string, script?: string);
|
|
8
|
-
execute(): void;
|
|
9
|
-
undo(): void;
|
|
10
|
-
update(command: any): void;
|
|
11
|
-
toJSON(): any;
|
|
12
|
-
fromJSON(json: any): void;
|
|
13
|
-
}
|
|
14
|
-
export { SetScript };
|
package/dist/script.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import Editor from './index';
|
|
2
|
-
export default class {
|
|
3
|
-
editor: Editor;
|
|
4
|
-
scripts: Record<string, string | undefined>;
|
|
5
|
-
events: Record<string, Array<(this: any, ...args: any[]) => void>>;
|
|
6
|
-
constructor(editor: Editor);
|
|
7
|
-
set(uuid: string, script?: string): void;
|
|
8
|
-
load(): void;
|
|
9
|
-
dispatch(key: string): void;
|
|
10
|
-
}
|