vis-core 0.21.0 → 0.21.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/editor/command/AddObject.d.ts +2 -0
- package/dist/editor/command/Command.d.ts +2 -0
- package/dist/editor/command/CopyObject.d.ts +2 -0
- package/dist/index.js +52 -52
- package/dist/index.module.js +15827 -15991
- package/dist/version.d.ts +1 -1
- package/dist/vis/all/objects/Light.d.ts +2 -18
- package/dist/vis/all/objects/Point.d.ts +5 -1
- package/dist/vis/all/objects/index.d.ts +1 -2
- package/dist/vis/base/index.d.ts +1 -1
- package/dist/vis/city/index.d.ts +0 -1
- package/dist/vis/city/objects/index.d.ts +0 -1
- package/dist/vis/earth/index.d.ts +0 -1
- package/dist/vis/earth/objects/index.d.ts +0 -1
- package/dist/vis/earth2/index.d.ts +1 -4
- package/dist/vis/earth2/objects/index.d.ts +1 -7
- package/dist/vis/map/index.d.ts +0 -1
- package/dist/vis/map/objects/PlaneMap.d.ts +1 -1
- package/dist/vis/map/objects/index.d.ts +0 -1
- package/dist/vis/map2/city.d.ts +0 -1
- package/dist/vis/map2/map.d.ts +0 -1
- package/dist/vis/map2/objects/index.d.ts +0 -1
- package/package.json +2 -2
- package/dist/vis/earth2/objects/bg/index.d.ts +0 -4
- package/dist/vis/earth2/objects/label/index.d.ts +0 -4
- package/dist/vis/earth2/objects/point/index.d.ts +0 -17
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.21.
|
|
1
|
+
declare const _default: "0.21.1";
|
|
2
2
|
export default _default;
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
interface LightOptions {
|
|
4
|
-
type: 'AmbientLight' | 'DirectionalLight' | 'PointLight' | 'SpotLight' | 'RectAreaLight' | 'HemisphereLight';
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}
|
|
7
|
-
export default class extends BaseObject {
|
|
8
|
-
options: LightOptions;
|
|
9
|
-
directionalLight?: THREE.DirectionalLight;
|
|
10
|
-
spotLight?: THREE.SpotLight;
|
|
11
|
-
pointLight?: THREE.PointLight;
|
|
12
|
-
hemisphereLight?: THREE.HemisphereLight;
|
|
13
|
-
rectAreaLight?: THREE.RectAreaLight;
|
|
14
|
-
rectAreaLightUniformsLibInit: boolean;
|
|
15
|
-
constructor(options: LightOptions);
|
|
16
|
-
create(): void;
|
|
1
|
+
import { Light } from 'gl-draw/dist/objects';
|
|
2
|
+
export default class extends Light {
|
|
17
3
|
render(): void;
|
|
18
|
-
dispose(): void;
|
|
19
4
|
}
|
|
20
|
-
export {};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { BaseObject } from 'gl-draw';
|
|
2
|
+
import * as THREE from 'three';
|
|
2
3
|
interface Options {
|
|
3
4
|
sprite?: boolean;
|
|
4
5
|
}
|
|
5
6
|
export default class extends BaseObject {
|
|
6
7
|
options: Options;
|
|
7
8
|
constructor(options: Options);
|
|
9
|
+
get material(): THREE.SpriteMaterial | THREE.MeshBasicMaterial;
|
|
10
|
+
getMaterial(): THREE.SpriteMaterial | THREE.MeshBasicMaterial;
|
|
8
11
|
create(): Promise<void>;
|
|
9
|
-
|
|
12
|
+
scaleValue: number;
|
|
13
|
+
setScale(n: number): void;
|
|
10
14
|
}
|
|
11
15
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
2
|
-
import { Node,
|
|
2
|
+
import { Node, Line, Line2, ExtrudePolygon, Group, ConicPolygon } from 'gl-draw/dist/objects';
|
|
3
3
|
import Light from './Light';
|
|
4
4
|
import Point from './Point';
|
|
5
5
|
import Arc from './Arc';
|
|
@@ -63,7 +63,6 @@ declare const objs: {
|
|
|
63
63
|
Lathe: typeof Lathe;
|
|
64
64
|
Octahedron: typeof Octahedron;
|
|
65
65
|
Node: typeof Node;
|
|
66
|
-
Image: typeof Image;
|
|
67
66
|
Line: typeof Line;
|
|
68
67
|
Line2: typeof Line2;
|
|
69
68
|
ExtrudePolygon: typeof ExtrudePolygon;
|
package/dist/vis/base/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface BaseOptions {
|
|
|
15
15
|
pencilConfig?: Record<string, any>;
|
|
16
16
|
disableInitShow?: boolean;
|
|
17
17
|
editor?: boolean;
|
|
18
|
+
showInfoLog?: boolean;
|
|
18
19
|
[key: string]: any;
|
|
19
20
|
}
|
|
20
21
|
export default class Base extends Event {
|
|
@@ -49,7 +50,6 @@ export default class Base extends Event {
|
|
|
49
50
|
Lathe: typeof import("../all/objects/Lathe").default;
|
|
50
51
|
Octahedron: typeof import("../all/objects/Octahedron").default;
|
|
51
52
|
Node: typeof Node;
|
|
52
|
-
Image: typeof import("gl-draw/dist/objects").Image;
|
|
53
53
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
54
54
|
Line2: typeof import("gl-draw/dist/objects").Line2;
|
|
55
55
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
package/dist/vis/city/index.d.ts
CHANGED
|
@@ -55,7 +55,6 @@ export default class extends Base {
|
|
|
55
55
|
Lathe: typeof import("../all/objects/Lathe").default;
|
|
56
56
|
Octahedron: typeof import("../all/objects/Octahedron").default;
|
|
57
57
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
58
|
-
Image: typeof import("gl-draw/dist/objects").Image;
|
|
59
58
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
60
59
|
Line2: typeof import("gl-draw/dist/objects").Line2;
|
|
61
60
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
@@ -28,7 +28,6 @@ declare const objs: {
|
|
|
28
28
|
Lathe: typeof import("../../all/objects/Lathe").default;
|
|
29
29
|
Octahedron: typeof import("../../all/objects/Octahedron").default;
|
|
30
30
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
31
|
-
Image: typeof import("gl-draw/dist/objects").Image;
|
|
32
31
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
33
32
|
Line2: typeof import("gl-draw/dist/objects").Line2;
|
|
34
33
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
@@ -34,7 +34,6 @@ export default class extends Base {
|
|
|
34
34
|
Lathe: typeof import("../all/objects/Lathe").default;
|
|
35
35
|
Octahedron: typeof import("../all/objects/Octahedron").default;
|
|
36
36
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
37
|
-
Image: typeof import("gl-draw/dist/objects").Image;
|
|
38
37
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
39
38
|
Line2: typeof import("gl-draw/dist/objects").Line2;
|
|
40
39
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
@@ -25,7 +25,6 @@ declare const objs: {
|
|
|
25
25
|
Lathe: typeof import("../../all/objects/Lathe").default;
|
|
26
26
|
Octahedron: typeof import("../../all/objects/Octahedron").default;
|
|
27
27
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
28
|
-
Image: typeof import("gl-draw/dist/objects").Image;
|
|
29
28
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
30
29
|
Line2: typeof import("gl-draw/dist/objects").Line2;
|
|
31
30
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
@@ -7,9 +7,6 @@ export default class extends Base {
|
|
|
7
7
|
leftTruck: boolean;
|
|
8
8
|
drawController: DrawController<{
|
|
9
9
|
Earth: typeof import("./objects/earth").default;
|
|
10
|
-
Bg: typeof import("./objects/bg").default;
|
|
11
|
-
Label: typeof import("./objects/label").default;
|
|
12
|
-
Point: typeof import("./objects/point").default;
|
|
13
10
|
Plane: typeof import("../all/objects/Plane").default;
|
|
14
11
|
CrossPlane: typeof import("../all/objects/CrossPlane").default;
|
|
15
12
|
PlaneShadow: typeof import("../all/objects/PlaneShadow").default;
|
|
@@ -29,13 +26,13 @@ export default class extends Base {
|
|
|
29
26
|
Lathe: typeof import("../all/objects/Lathe").default;
|
|
30
27
|
Octahedron: typeof import("../all/objects/Octahedron").default;
|
|
31
28
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
32
|
-
Image: typeof import("gl-draw/dist/objects").Image;
|
|
33
29
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
34
30
|
Line2: typeof import("gl-draw/dist/objects").Line2;
|
|
35
31
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
36
32
|
ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
|
|
37
33
|
Group: typeof import("gl-draw/dist/objects").Group;
|
|
38
34
|
Light: typeof import("../all/objects/Light").default;
|
|
35
|
+
Point: typeof import("../all/objects/Point").default;
|
|
39
36
|
Arc: typeof import("../all/objects/Arc").default;
|
|
40
37
|
Model: typeof import("../all/objects/Model").default;
|
|
41
38
|
}>;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { Draw as DrawController } from 'gl-draw/dist/plugins';
|
|
2
2
|
import Earth from './earth';
|
|
3
|
-
import Bg from './bg';
|
|
4
|
-
import Label from './label';
|
|
5
|
-
import Point from './point';
|
|
6
3
|
declare const objs: {
|
|
7
4
|
Earth: typeof Earth;
|
|
8
|
-
Bg: typeof Bg;
|
|
9
|
-
Label: typeof Label;
|
|
10
|
-
Point: typeof Point;
|
|
11
5
|
Plane: typeof import("../../all/objects/Plane").default;
|
|
12
6
|
CrossPlane: typeof import("../../all/objects/CrossPlane").default;
|
|
13
7
|
PlaneShadow: typeof import("../../all/objects/PlaneShadow").default;
|
|
@@ -27,13 +21,13 @@ declare const objs: {
|
|
|
27
21
|
Lathe: typeof import("../../all/objects/Lathe").default;
|
|
28
22
|
Octahedron: typeof import("../../all/objects/Octahedron").default;
|
|
29
23
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
30
|
-
Image: typeof import("gl-draw/dist/objects").Image;
|
|
31
24
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
32
25
|
Line2: typeof import("gl-draw/dist/objects").Line2;
|
|
33
26
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
34
27
|
ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
|
|
35
28
|
Group: typeof import("gl-draw/dist/objects").Group;
|
|
36
29
|
Light: typeof import("../../all/objects/Light").default;
|
|
30
|
+
Point: typeof import("../../all/objects/Point").default;
|
|
37
31
|
Arc: typeof import("../../all/objects/Arc").default;
|
|
38
32
|
Model: typeof import("../../all/objects/Model").default;
|
|
39
33
|
};
|
package/dist/vis/map/index.d.ts
CHANGED
|
@@ -73,7 +73,6 @@ export default class extends Base {
|
|
|
73
73
|
Lathe: typeof import("../all/objects/Lathe").default;
|
|
74
74
|
Octahedron: typeof import("../all/objects/Octahedron").default;
|
|
75
75
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
76
|
-
Image: typeof import("gl-draw/dist/objects").Image;
|
|
77
76
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
78
77
|
Line2: typeof import("gl-draw/dist/objects").Line2;
|
|
79
78
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
@@ -53,7 +53,7 @@ export default class PlaneMap extends BaseObject {
|
|
|
53
53
|
hasSide?: boolean;
|
|
54
54
|
onTop?: number;
|
|
55
55
|
}): Promise<ExtrudePolygon[]>;
|
|
56
|
-
getPropertiesKey(properties: Record<string, any>):
|
|
56
|
+
getPropertiesKey(properties: Record<string, any>): string;
|
|
57
57
|
addPlane(geojson: Feature<Polygon | MultiPolygon, GeoJsonProperties>, options: {
|
|
58
58
|
material: THREE.Material | THREE.Material[];
|
|
59
59
|
lineMaterial: MeshLineMaterial;
|
|
@@ -23,7 +23,6 @@ declare const objs: {
|
|
|
23
23
|
Lathe: typeof import("../../all/objects/Lathe").default;
|
|
24
24
|
Octahedron: typeof import("../../all/objects/Octahedron").default;
|
|
25
25
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
26
|
-
Image: typeof import("gl-draw/dist/objects").Image;
|
|
27
26
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
28
27
|
Line2: typeof import("gl-draw/dist/objects").Line2;
|
|
29
28
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
package/dist/vis/map2/city.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ export default class extends City {
|
|
|
26
26
|
Lathe: typeof import("../all/objects/Lathe").default;
|
|
27
27
|
Octahedron: typeof import("../all/objects/Octahedron").default;
|
|
28
28
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
29
|
-
Image: typeof import("gl-draw/dist/objects").Image;
|
|
30
29
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
31
30
|
Line2: typeof import("gl-draw/dist/objects").Line2;
|
|
32
31
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
package/dist/vis/map2/map.d.ts
CHANGED
|
@@ -37,7 +37,6 @@ export default class extends Map {
|
|
|
37
37
|
Lathe: typeof import("../all/objects/Lathe").default;
|
|
38
38
|
Octahedron: typeof import("../all/objects/Octahedron").default;
|
|
39
39
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
40
|
-
Image: typeof import("gl-draw/dist/objects").Image;
|
|
41
40
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
42
41
|
Line2: typeof import("gl-draw/dist/objects").Line2;
|
|
43
42
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
|
@@ -31,7 +31,6 @@ declare const objs: {
|
|
|
31
31
|
Lathe: typeof import("../../all/objects/Lathe").default;
|
|
32
32
|
Octahedron: typeof import("../../all/objects/Octahedron").default;
|
|
33
33
|
Node: typeof import("gl-draw/dist/objects").Node;
|
|
34
|
-
Image: typeof import("gl-draw/dist/objects").Image;
|
|
35
34
|
Line: typeof import("gl-draw/dist/objects").Line;
|
|
36
35
|
Line2: typeof import("gl-draw/dist/objects").Line2;
|
|
37
36
|
ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.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",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"esus-lite": "^0.2.2",
|
|
67
67
|
"events": "^3.3.0",
|
|
68
68
|
"geojson-cn": "^0.1.29",
|
|
69
|
-
"gl-draw": "0.11.
|
|
69
|
+
"gl-draw": "0.11.5",
|
|
70
70
|
"jsrsasign": "^11.1.0",
|
|
71
71
|
"lodash-es": "^4.17.21"
|
|
72
72
|
},
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseObject } from 'gl-draw';
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
import { Image } from 'gl-draw/dist/objects';
|
|
4
|
-
interface PointOptions {
|
|
5
|
-
color?: number | string | THREE.Color;
|
|
6
|
-
}
|
|
7
|
-
export default class extends BaseObject {
|
|
8
|
-
options: PointOptions;
|
|
9
|
-
icon: Image;
|
|
10
|
-
constructor(options: PointOptions);
|
|
11
|
-
create(): Promise<void>;
|
|
12
|
-
render(): void;
|
|
13
|
-
instantiate(): Promise<this>;
|
|
14
|
-
setColor(color: string): void;
|
|
15
|
-
setPositon(x: number, y: number, z: number): void;
|
|
16
|
-
}
|
|
17
|
-
export {};
|