vis-core 0.16.21 → 0.17.1
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 +1 -0
- package/dist/command/CopyObject.d.ts +13 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +226 -249
- package/dist/index.module.js +6992 -6982
- package/dist/version.d.ts +1 -1
- package/dist/viewport.d.ts +1 -0
- package/dist/vis/Base.d.ts +4 -1
- package/dist/vis/all/MaterialList.d.ts +1 -0
- package/dist/vis/all/objects/index.d.ts +4 -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 -0
- package/dist/vis/earth/objects/index.d.ts +1 -0
- 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 -0
- package/dist/vis/earth3/objects/index.d.ts +1 -0
- package/dist/vis/map/config.d.ts +11 -0
- package/dist/vis/map/index.d.ts +1 -1
- package/dist/vis/map/objects/index.d.ts +1 -2
- package/dist/vis/map2/city.d.ts +1 -1
- package/dist/vis/map2/map.d.ts +1 -1
- package/dist/vis/map2/objects/index.d.ts +1 -2
- package/package.json +4 -4
- /package/dist/vis/{map → all}/objects/PlaneShadow.d.ts +0 -0
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.
|
|
1
|
+
declare const _default: "0.17.1";
|
|
2
2
|
export default _default;
|
package/dist/viewport.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export default class {
|
|
|
18
18
|
initEvent(): void;
|
|
19
19
|
addObj(type: string, options?: Record<string, any>): Promise<void>;
|
|
20
20
|
removeObj(uuid: string): Promise<void>;
|
|
21
|
+
copyObj(uuid: string): Promise<void>;
|
|
21
22
|
setExtendsOptions(name: string, value: any): void;
|
|
22
23
|
toJSON(): {
|
|
23
24
|
eo: Record<string, any>;
|
package/dist/vis/Base.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from 'events';
|
|
2
|
-
import Pencil from 'gl-draw';
|
|
2
|
+
import Pencil, { BaseObject } from 'gl-draw';
|
|
3
3
|
import MaterialList from "./all/MaterialList";
|
|
4
4
|
import { Wk, Loader, Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
5
5
|
import { Node } from 'gl-draw/dist/objects';
|
|
@@ -22,6 +22,7 @@ export default class Base {
|
|
|
22
22
|
drawController: DrawController<{
|
|
23
23
|
Plane: typeof import("./all/objects/Plane").default;
|
|
24
24
|
CrossPlane: typeof import("./all/objects/CrossPlane").default;
|
|
25
|
+
PlaneShadow: typeof import("./all/objects/PlaneShadow").default;
|
|
25
26
|
Ring: typeof import("./all/objects/Ring").default;
|
|
26
27
|
Sphere: typeof import("./all/objects/Sphere").default;
|
|
27
28
|
Sprite: typeof import("./all/objects/Sprite").default;
|
|
@@ -67,6 +68,8 @@ export default class Base {
|
|
|
67
68
|
setDevicePixelRatio(dpr: number): void;
|
|
68
69
|
init(...args: any[]): Promise<void>;
|
|
69
70
|
initPencil(): Promise<void>;
|
|
71
|
+
initSceneUserData(): void;
|
|
72
|
+
initBaseObjectUserData(baseObject: BaseObject): void;
|
|
70
73
|
initPencilPlugin(): void;
|
|
71
74
|
addCSS3DRenderer(): void;
|
|
72
75
|
initSettingsObj?: Record<string, any>;
|
|
@@ -25,6 +25,7 @@ export default class MaterialList {
|
|
|
25
25
|
emitObject3dChange(): void;
|
|
26
26
|
setObject3d(object3d: THREE.Object3D, name: string, meta?: any): void;
|
|
27
27
|
delObject3d(object3d: THREE.Object3D): void;
|
|
28
|
+
getObject3dName(object3d: THREE.Object3D): string | undefined;
|
|
28
29
|
changeObject3dName(object3d: THREE.Object3D, name: string): void;
|
|
29
30
|
removeObject3d(object3d: THREE.Object3D): void;
|
|
30
31
|
resetObject3d(object3d: THREE.Object3D): void;
|
|
@@ -4,6 +4,7 @@ import Light from './Light';
|
|
|
4
4
|
import Point from './Point';
|
|
5
5
|
import Arc from './Arc';
|
|
6
6
|
import CrossPlane from './CrossPlane';
|
|
7
|
+
import PlaneShadow from './PlaneShadow';
|
|
7
8
|
import Box from './Box';
|
|
8
9
|
import Capsule from './Capsule';
|
|
9
10
|
import Circle from './Circle';
|
|
@@ -23,6 +24,7 @@ import Tube from './Tube';
|
|
|
23
24
|
export declare const expObjs: {
|
|
24
25
|
Plane: typeof Plane;
|
|
25
26
|
CrossPlane: typeof CrossPlane;
|
|
27
|
+
PlaneShadow: typeof PlaneShadow;
|
|
26
28
|
Ring: typeof Ring;
|
|
27
29
|
Sphere: typeof Sphere;
|
|
28
30
|
Sprite: typeof Sprite;
|
|
@@ -39,9 +41,11 @@ export declare const expObjs: {
|
|
|
39
41
|
Lathe: typeof Lathe;
|
|
40
42
|
Octahedron: typeof Octahedron;
|
|
41
43
|
};
|
|
44
|
+
export declare const prefabType: string[];
|
|
42
45
|
declare const objs: {
|
|
43
46
|
Plane: typeof Plane;
|
|
44
47
|
CrossPlane: typeof CrossPlane;
|
|
48
|
+
PlaneShadow: typeof PlaneShadow;
|
|
45
49
|
Ring: typeof Ring;
|
|
46
50
|
Sphere: typeof Sphere;
|
|
47
51
|
Sprite: typeof Sprite;
|
package/dist/vis/city/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export default class extends Base {
|
|
|
38
38
|
Plane: typeof import("./objects/plane").default;
|
|
39
39
|
Target: typeof import("./objects/target").default;
|
|
40
40
|
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
41
|
+
PlaneShadow: typeof import("../all/objects/PlaneShadow").default;
|
|
41
42
|
Ring: typeof import("../all/objects/Ring").default;
|
|
42
43
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
43
44
|
Sprite: typeof import("../all/objects/Sprite").default;
|
|
@@ -11,6 +11,7 @@ declare const objs: {
|
|
|
11
11
|
Plane: typeof Plane;
|
|
12
12
|
Target: typeof Target;
|
|
13
13
|
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
14
|
+
PlaneShadow: typeof import("../../all/objects/PlaneShadow").default;
|
|
14
15
|
Ring: typeof import("../../all/objects/Ring").default;
|
|
15
16
|
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
16
17
|
Sprite: typeof import("../../all/objects/Sprite").default;
|
|
@@ -16,6 +16,7 @@ export default class extends Base {
|
|
|
16
16
|
Countries: typeof Countries;
|
|
17
17
|
Plane: typeof import("../all/objects/Plane").default;
|
|
18
18
|
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
19
|
+
PlaneShadow: typeof import("../all/objects/PlaneShadow").default;
|
|
19
20
|
Ring: typeof import("../all/objects/Ring").default;
|
|
20
21
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
21
22
|
Sprite: typeof import("../all/objects/Sprite").default;
|
|
@@ -6,6 +6,7 @@ declare const objs: {
|
|
|
6
6
|
Countries: typeof Countries;
|
|
7
7
|
Plane: typeof import("../../all/objects/Plane").default;
|
|
8
8
|
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
9
|
+
PlaneShadow: typeof import("../../all/objects/PlaneShadow").default;
|
|
9
10
|
Ring: typeof import("../../all/objects/Ring").default;
|
|
10
11
|
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
11
12
|
Sprite: typeof import("../../all/objects/Sprite").default;
|
|
@@ -13,6 +13,7 @@ export default class extends Base {
|
|
|
13
13
|
Point: typeof import("./objects/point").default;
|
|
14
14
|
Plane: typeof import("../all/objects/Plane").default;
|
|
15
15
|
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
16
|
+
PlaneShadow: typeof import("../all/objects/PlaneShadow").default;
|
|
16
17
|
Ring: typeof import("../all/objects/Ring").default;
|
|
17
18
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
18
19
|
Sprite: typeof import("../all/objects/Sprite").default;
|
|
@@ -10,6 +10,7 @@ declare const objs: {
|
|
|
10
10
|
Point: typeof Point;
|
|
11
11
|
Plane: typeof import("../../all/objects/Plane").default;
|
|
12
12
|
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
13
|
+
PlaneShadow: typeof import("../../all/objects/PlaneShadow").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;
|
|
@@ -8,6 +8,7 @@ export default class extends Earth {
|
|
|
8
8
|
SphereShadow: typeof import("./objects/SphereShadow").default;
|
|
9
9
|
Plane: typeof import("../all/objects/Plane").default;
|
|
10
10
|
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
11
|
+
PlaneShadow: typeof import("../all/objects/PlaneShadow").default;
|
|
11
12
|
Ring: typeof import("../all/objects/Ring").default;
|
|
12
13
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
13
14
|
Sprite: typeof import("../all/objects/Sprite").default;
|
|
@@ -8,6 +8,7 @@ declare const objs: {
|
|
|
8
8
|
SphereShadow: typeof SphereShadow;
|
|
9
9
|
Plane: typeof import("../../all/objects/Plane").default;
|
|
10
10
|
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
11
|
+
PlaneShadow: typeof import("../../all/objects/PlaneShadow").default;
|
|
11
12
|
Ring: typeof import("../../all/objects/Ring").default;
|
|
12
13
|
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
13
14
|
Sprite: typeof import("../../all/objects/Sprite").default;
|
package/dist/vis/map/config.d.ts
CHANGED
|
@@ -6,4 +6,15 @@ export declare const PENCIL_CONFIG: {
|
|
|
6
6
|
near: number;
|
|
7
7
|
far: number;
|
|
8
8
|
};
|
|
9
|
+
bloom: boolean;
|
|
10
|
+
bloomParams: {
|
|
11
|
+
intensity: number;
|
|
12
|
+
mipmapBlurPassRadius: number;
|
|
13
|
+
luminancePass: boolean;
|
|
14
|
+
luminanceThreshold: number;
|
|
15
|
+
luminanceSmoothing: number;
|
|
16
|
+
};
|
|
17
|
+
scene: {
|
|
18
|
+
om: boolean;
|
|
19
|
+
};
|
|
9
20
|
};
|
package/dist/vis/map/index.d.ts
CHANGED
|
@@ -50,9 +50,9 @@ export default class extends Base {
|
|
|
50
50
|
drawController: DrawController<{
|
|
51
51
|
PlaneMap: typeof PlaneMap;
|
|
52
52
|
ContinentsBg: typeof ContinentsBg;
|
|
53
|
-
PlaneShadow: typeof import("./objects/PlaneShadow").default;
|
|
54
53
|
Plane: typeof import("../all/objects/Plane").default;
|
|
55
54
|
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
55
|
+
PlaneShadow: typeof import("../all/objects/PlaneShadow").default;
|
|
56
56
|
Ring: typeof import("../all/objects/Ring").default;
|
|
57
57
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
58
58
|
Sprite: typeof import("../all/objects/Sprite").default;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
2
2
|
import PlaneMap from './PlaneMap';
|
|
3
3
|
import ContinentsBg from './ContinentsBg';
|
|
4
|
-
import PlaneShadow from './PlaneShadow';
|
|
5
4
|
declare const objs: {
|
|
6
5
|
PlaneMap: typeof PlaneMap;
|
|
7
6
|
ContinentsBg: typeof ContinentsBg;
|
|
8
|
-
PlaneShadow: typeof PlaneShadow;
|
|
9
7
|
Plane: typeof import("../../all/objects/Plane").default;
|
|
10
8
|
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
9
|
+
PlaneShadow: typeof import("../../all/objects/PlaneShadow").default;
|
|
11
10
|
Ring: typeof import("../../all/objects/Ring").default;
|
|
12
11
|
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
13
12
|
Sprite: typeof import("../../all/objects/Sprite").default;
|
package/dist/vis/map2/city.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ export default class extends City {
|
|
|
3
3
|
drawController: {
|
|
4
4
|
PlaneMap: typeof import("../map/objects/PlaneMap").default;
|
|
5
5
|
ContinentsBg: typeof import("../map/objects/ContinentsBg").default;
|
|
6
|
-
PlaneShadow: typeof import("../map/objects/PlaneShadow").default;
|
|
7
6
|
Plane: typeof import("../city/objects/plane").default;
|
|
8
7
|
Building: typeof import("../city/objects/building").default;
|
|
9
8
|
Area: typeof import("../city/objects/area").default;
|
|
10
9
|
Road: typeof import("../city/objects/road").default;
|
|
11
10
|
Target: typeof import("../city/objects/target").default;
|
|
12
11
|
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
12
|
+
PlaneShadow: typeof import("../all/objects/PlaneShadow").default;
|
|
13
13
|
Ring: typeof import("../all/objects/Ring").default;
|
|
14
14
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
15
15
|
Sprite: typeof import("../all/objects/Sprite").default;
|
package/dist/vis/map2/map.d.ts
CHANGED
|
@@ -13,13 +13,13 @@ export default class extends Map {
|
|
|
13
13
|
drawController: DrawController<{
|
|
14
14
|
PlaneMap: typeof import("../map/objects/PlaneMap").default;
|
|
15
15
|
ContinentsBg: typeof import("../map/objects/ContinentsBg").default;
|
|
16
|
-
PlaneShadow: typeof import("../map/objects/PlaneShadow").default;
|
|
17
16
|
Plane: typeof import("../city/objects/plane").default;
|
|
18
17
|
Building: typeof import("../city/objects/building").default;
|
|
19
18
|
Area: typeof import("../city/objects/area").default;
|
|
20
19
|
Road: typeof import("../city/objects/road").default;
|
|
21
20
|
Target: typeof import("../city/objects/target").default;
|
|
22
21
|
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
22
|
+
PlaneShadow: typeof import("../all/objects/PlaneShadow").default;
|
|
23
23
|
Ring: typeof import("../all/objects/Ring").default;
|
|
24
24
|
Sphere: typeof import("../all/objects/Sphere").default;
|
|
25
25
|
Sprite: typeof import("../all/objects/Sprite").default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import PlaneMap from "../../map/objects/PlaneMap";
|
|
2
|
-
import PlaneShadow from "../../map/objects/PlaneShadow";
|
|
3
2
|
import ContinentsBg from "../../map/objects/ContinentsBg";
|
|
4
3
|
import Plane from "../../city/objects/plane";
|
|
5
4
|
import Building from "../../city/objects/building";
|
|
@@ -9,13 +8,13 @@ import Target from "../../city/objects/target";
|
|
|
9
8
|
declare const objs: {
|
|
10
9
|
PlaneMap: typeof PlaneMap;
|
|
11
10
|
ContinentsBg: typeof ContinentsBg;
|
|
12
|
-
PlaneShadow: typeof PlaneShadow;
|
|
13
11
|
Plane: typeof Plane;
|
|
14
12
|
Building: typeof Building;
|
|
15
13
|
Area: typeof Area;
|
|
16
14
|
Road: typeof Road;
|
|
17
15
|
Target: typeof Target;
|
|
18
16
|
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
17
|
+
PlaneShadow: typeof import("../../all/objects/PlaneShadow").default;
|
|
19
18
|
Ring: typeof import("../../all/objects/Ring").default;
|
|
20
19
|
Sphere: typeof import("../../all/objects/Sphere").default;
|
|
21
20
|
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.
|
|
3
|
+
"version": "0.17.1",
|
|
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",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"prettier-config-bundler": "^0.4.3",
|
|
50
50
|
"stylelint-config-bundler": "^0.4.5",
|
|
51
51
|
"tailwind-config-bundler": "^0.4.6",
|
|
52
|
-
"three": "0.
|
|
52
|
+
"three": "0.166.1",
|
|
53
53
|
"vite-plugin-markdown": "^2.2.0",
|
|
54
54
|
"vue": "^3.4.33",
|
|
55
55
|
"vue-bundler": "^0.4.10",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"vue3-colorpicker": "^2.3.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@types/three": "^0.
|
|
60
|
+
"@types/three": "^0.166.0",
|
|
61
61
|
"@turf/turf": "^6.5.0",
|
|
62
62
|
"esus-lite": "^0.2.2",
|
|
63
63
|
"events": "^3.3.0",
|
|
64
64
|
"geojson-cn": "^0.1.25",
|
|
65
65
|
"lodash-es": "^4.17.21",
|
|
66
|
-
"gl-draw": "0.9.
|
|
66
|
+
"gl-draw": "0.9.37"
|
|
67
67
|
},
|
|
68
68
|
"prettier": "prettier-config-bundler"
|
|
69
69
|
}
|
|
File without changes
|