vis-core 0.14.1 → 0.14.2

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,21 +1,36 @@
1
1
  import { Draw as DrawController } from 'gl-draw/dist/plugins';
2
- import { Node, Image, Line, ExtrudePolygon, Group, ConicPolygon } from 'gl-draw/dist/objects';
3
2
  import PlaneMap from './PlaneMap';
4
3
  import ContinentsBg from './ContinentsBg';
5
- import Light from "../../all/objects/Light";
6
4
  import PlaneShadow from './PlaneShadow';
7
5
  declare const objs: {
8
- Node: typeof Node;
9
- Image: typeof Image;
10
- Line: typeof Line;
11
6
  PlaneMap: typeof PlaneMap;
12
7
  ContinentsBg: typeof ContinentsBg;
13
- ExtrudePolygon: typeof ExtrudePolygon;
14
- Group: typeof Group;
15
- Light: typeof Light;
16
8
  PlaneShadow: typeof PlaneShadow;
17
- ConicPolygon: typeof ConicPolygon;
9
+ Plane: typeof import("../../all/objects/Plane").default;
10
+ Ring: typeof import("../../all/objects/Ring").default;
11
+ Sphere: typeof import("../../all/objects/Sphere").default;
12
+ Sprite: typeof import("../../all/objects/Sprite").default;
13
+ Tetrahedron: typeof import("../../all/objects/Tetrahedron").default;
14
+ Torus: typeof import("../../all/objects/Torus").default;
15
+ TorusKnot: typeof import("../../all/objects/TorusKnot").default;
16
+ Tube: typeof import("../../all/objects/Tube").default;
17
+ Box: typeof import("../../all/objects/Box").default;
18
+ Capsule: typeof import("../../all/objects/Capsule").default;
19
+ Circle: typeof import("../../all/objects/Circle").default;
20
+ Cylinder: typeof import("../../all/objects/Cylinder").default;
21
+ Dodecahedron: typeof import("../../all/objects/Dodecahedron").default;
22
+ Icosahedron: typeof import("../../all/objects/Icosahedron").default;
23
+ Lathe: typeof import("../../all/objects/Lathe").default;
24
+ Octahedron: typeof import("../../all/objects/Octahedron").default;
25
+ Node: typeof import("gl-draw/dist/objects").Node;
26
+ Image: typeof import("gl-draw/dist/objects").Image;
27
+ Line: typeof import("gl-draw/dist/objects").Line;
28
+ ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
29
+ ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
30
+ Group: typeof import("gl-draw/dist/objects").Group;
31
+ Light: typeof import("../../all/objects/Light").default;
32
+ Point: typeof import("../../all/objects/Point").default;
33
+ Arc: typeof import("../../all/objects/Arc").default;
18
34
  };
19
- export { PlaneMap, Light, ContinentsBg, Group };
20
35
  export default objs;
21
36
  export type d = DrawController<typeof objs>;
@@ -1,21 +1,38 @@
1
1
  import City from "../city";
2
2
  export default class extends City {
3
3
  drawController: {
4
- Node: typeof import("gl-draw/dist/objects").Node;
5
- Image: typeof import("gl-draw/dist/objects").Image;
6
- Line: typeof import("gl-draw/dist/objects").Line;
7
- PlaneMap: typeof import("./objects").PlaneMap;
8
- ContinentsBg: typeof import("../map/objects").ContinentsBg;
9
- ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
10
- Group: typeof import("./objects").Group;
11
- Light: typeof import("./objects").Light;
4
+ PlaneMap: typeof import("../map/objects/PlaneMap").default;
5
+ ContinentsBg: typeof import("../map/objects/ContinentsBg").default;
12
6
  PlaneShadow: typeof import("../map/objects/PlaneShadow").default;
13
7
  Plane: typeof import("../city/objects/plane").default;
14
8
  Building: typeof import("../city/objects/building").default;
15
9
  Area: typeof import("../city/objects/area").default;
16
10
  Road: typeof import("../city/objects/road").default;
17
11
  Target: typeof import("../city/objects/target").default;
12
+ Ring: typeof import("../all/objects/Ring").default;
13
+ Sphere: typeof import("../all/objects/Sphere").default;
14
+ Sprite: typeof import("../all/objects/Sprite").default;
15
+ Tetrahedron: typeof import("../all/objects/Tetrahedron").default;
16
+ Torus: typeof import("../all/objects/Torus").default;
17
+ TorusKnot: typeof import("../all/objects/TorusKnot").default;
18
+ Tube: typeof import("../all/objects/Tube").default;
19
+ Box: typeof import("../all/objects/Box").default;
20
+ Capsule: typeof import("../all/objects/Capsule").default;
21
+ Circle: typeof import("../all/objects/Circle").default;
22
+ Cylinder: typeof import("../all/objects/Cylinder").default;
23
+ Dodecahedron: typeof import("../all/objects/Dodecahedron").default;
24
+ Icosahedron: typeof import("../all/objects/Icosahedron").default;
25
+ Lathe: typeof import("../all/objects/Lathe").default;
26
+ Octahedron: typeof import("../all/objects/Octahedron").default;
27
+ Node: typeof import("gl-draw/dist/objects").Node;
28
+ Image: typeof import("gl-draw/dist/objects").Image;
29
+ Line: typeof import("gl-draw/dist/objects").Line;
30
+ ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
18
31
  ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
32
+ Group: typeof import("gl-draw/dist/objects").Group;
33
+ Light: typeof import("../all/objects/Light").default;
34
+ Point: typeof import("../all/objects/Point").default;
35
+ Arc: typeof import("../all/objects/Arc").default;
19
36
  };
20
37
  multiplyScalar: number;
21
38
  fixNearFar(n?: number): void;
@@ -11,21 +11,38 @@ export default class extends Map {
11
11
  options: Required<Map2Options>;
12
12
  constructor(container: HTMLElement, options: Map2Options);
13
13
  drawController: DrawController<{
14
- Node: typeof import("gl-draw/dist/objects").Node;
15
- Image: typeof import("gl-draw/dist/objects").Image;
16
- Line: typeof import("gl-draw/dist/objects").Line;
17
- PlaneMap: typeof import("./objects").PlaneMap;
18
- ContinentsBg: typeof import("../map/objects").ContinentsBg;
19
- ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
20
- Group: typeof import("gl-draw/dist/objects").Group;
21
- Light: typeof import("./objects").Light;
14
+ PlaneMap: typeof import("../map/objects/PlaneMap").default;
15
+ ContinentsBg: typeof import("../map/objects/ContinentsBg").default;
22
16
  PlaneShadow: typeof import("../map/objects/PlaneShadow").default;
23
17
  Plane: typeof import("../city/objects/plane").default;
24
18
  Building: typeof import("../city/objects/building").default;
25
19
  Area: typeof import("../city/objects/area").default;
26
20
  Road: typeof import("../city/objects/road").default;
27
21
  Target: typeof import("../city/objects/target").default;
22
+ Ring: typeof import("../all/objects/Ring").default;
23
+ Sphere: typeof import("../all/objects/Sphere").default;
24
+ Sprite: typeof import("../all/objects/Sprite").default;
25
+ Tetrahedron: typeof import("../all/objects/Tetrahedron").default;
26
+ Torus: typeof import("../all/objects/Torus").default;
27
+ TorusKnot: typeof import("../all/objects/TorusKnot").default;
28
+ Tube: typeof import("../all/objects/Tube").default;
29
+ Box: typeof import("../all/objects/Box").default;
30
+ Capsule: typeof import("../all/objects/Capsule").default;
31
+ Circle: typeof import("../all/objects/Circle").default;
32
+ Cylinder: typeof import("../all/objects/Cylinder").default;
33
+ Dodecahedron: typeof import("../all/objects/Dodecahedron").default;
34
+ Icosahedron: typeof import("../all/objects/Icosahedron").default;
35
+ Lathe: typeof import("../all/objects/Lathe").default;
36
+ Octahedron: typeof import("../all/objects/Octahedron").default;
37
+ Node: typeof import("gl-draw/dist/objects").Node;
38
+ Image: typeof import("gl-draw/dist/objects").Image;
39
+ Line: typeof import("gl-draw/dist/objects").Line;
40
+ ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
28
41
  ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
42
+ Group: typeof import("gl-draw/dist/objects").Group;
43
+ Light: typeof import("../all/objects/Light").default;
44
+ Point: typeof import("../all/objects/Point").default;
45
+ Arc: typeof import("../all/objects/Arc").default;
29
46
  }>;
30
47
  initSettingsObj: {
31
48
  label: boolean;
@@ -41,6 +58,6 @@ export default class extends Map {
41
58
  bbox?: number[];
42
59
  depth: number;
43
60
  adcode: number;
44
- }): Promise<import("./objects").PlaneMap>;
61
+ }): Promise<import("../map/objects/PlaneMap").default>;
45
62
  }
46
63
  export {};
@@ -1,29 +1,43 @@
1
- import { Node, Image, Line, ExtrudePolygon, Group, ConicPolygon } from 'gl-draw/dist/objects';
2
1
  import PlaneMap from "../../map/objects/PlaneMap";
3
2
  import PlaneShadow from "../../map/objects/PlaneShadow";
4
3
  import ContinentsBg from "../../map/objects/ContinentsBg";
5
- import Light from "../../all/objects/Light";
6
4
  import Plane from "../../city/objects/plane";
7
5
  import Building from "../../city/objects/building";
8
6
  import Area from "../../city/objects/area";
9
7
  import Road from "../../city/objects/road";
10
8
  import Target from "../../city/objects/target";
11
9
  declare const objs: {
12
- Node: typeof Node;
13
- Image: typeof Image;
14
- Line: typeof Line;
15
10
  PlaneMap: typeof PlaneMap;
16
11
  ContinentsBg: typeof ContinentsBg;
17
- ExtrudePolygon: typeof ExtrudePolygon;
18
- Group: typeof Group;
19
- Light: typeof Light;
20
12
  PlaneShadow: typeof PlaneShadow;
21
13
  Plane: typeof Plane;
22
14
  Building: typeof Building;
23
15
  Area: typeof Area;
24
16
  Road: typeof Road;
25
17
  Target: typeof Target;
26
- ConicPolygon: typeof ConicPolygon;
18
+ Ring: typeof import("../../all/objects/Ring").default;
19
+ Sphere: typeof import("../../all/objects/Sphere").default;
20
+ Sprite: typeof import("../../all/objects/Sprite").default;
21
+ Tetrahedron: typeof import("../../all/objects/Tetrahedron").default;
22
+ Torus: typeof import("../../all/objects/Torus").default;
23
+ TorusKnot: typeof import("../../all/objects/TorusKnot").default;
24
+ Tube: typeof import("../../all/objects/Tube").default;
25
+ Box: typeof import("../../all/objects/Box").default;
26
+ Capsule: typeof import("../../all/objects/Capsule").default;
27
+ Circle: typeof import("../../all/objects/Circle").default;
28
+ Cylinder: typeof import("../../all/objects/Cylinder").default;
29
+ Dodecahedron: typeof import("../../all/objects/Dodecahedron").default;
30
+ Icosahedron: typeof import("../../all/objects/Icosahedron").default;
31
+ Lathe: typeof import("../../all/objects/Lathe").default;
32
+ Octahedron: typeof import("../../all/objects/Octahedron").default;
33
+ Node: typeof import("gl-draw/dist/objects").Node;
34
+ Image: typeof import("gl-draw/dist/objects").Image;
35
+ Line: typeof import("gl-draw/dist/objects").Line;
36
+ ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
37
+ ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
38
+ Group: typeof import("gl-draw/dist/objects").Group;
39
+ Light: typeof import("../../all/objects/Light").default;
40
+ Point: typeof import("../../all/objects/Point").default;
41
+ Arc: typeof import("../../all/objects/Arc").default;
27
42
  };
28
- export { PlaneMap, Light, Group };
29
43
  export default objs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
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",
@@ -39,7 +39,7 @@
39
39
  "@types/lodash-es": "^4.17.9",
40
40
  "@types/node": "^20.6.0",
41
41
  "@types/three": "^0.165.0",
42
- "ant-design-vue": "^4.2.1",
42
+ "ant-design-vue": "^4.2.3",
43
43
  "archiver": "^7.0.1",
44
44
  "codemirror": "^6.0.1",
45
45
  "dayjs": "^1.11.10",