vis-core 0.27.19 → 0.28.0-beta.3

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/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.27.19";
1
+ declare const _default: "0.28.0-beta.3";
2
2
  export default _default;
@@ -38,5 +38,6 @@ export default class extends BaseObject {
38
38
  }): void;
39
39
  update(): void;
40
40
  render(): void;
41
+ dispose(): void;
41
42
  }
42
43
  export {};
@@ -1,6 +1,5 @@
1
- import { BaseObject, Lead } from 'gl-draw';
1
+ import Pencil, { BaseObject, Lead } from 'gl-draw';
2
2
  import leadObjs from "../all/objects";
3
- import MaterialList from "../all/MaterialList";
4
3
  import { Wk } from 'gl-draw/dist/plugins';
5
4
  import type { PickFunctionsItem } from 'gl-draw/dist/core/Lead/Pick';
6
5
  import { Node } from 'gl-draw/dist/objects';
@@ -65,7 +64,7 @@ export default class Base extends Camera {
65
64
  Model: typeof import("../all/objects/Model").default;
66
65
  };
67
66
  lead: Lead<typeof leadObjs>;
68
- mList: MaterialList;
67
+ mList: Pencil['mList'];
69
68
  get loader(): import("gl-draw/dist/core/Loader/Loader").default;
70
69
  get worker(): Wk;
71
70
  workerOnce: boolean;
@@ -1,6 +1,6 @@
1
1
  import { BaseObject } from 'gl-draw';
2
2
  import * as THREE from 'three';
3
- import { Line, ExtrudePolygon, Group } from 'gl-draw/dist/objects';
3
+ import { ExtrudePolygon } from 'gl-draw/dist/objects';
4
4
  import type { FeatureCollection, Position, Polygon, MultiPolygon } from 'geojson';
5
5
  type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
6
6
  interface Options {
@@ -16,11 +16,7 @@ interface Options {
16
16
  }
17
17
  export default class PlaneMap extends BaseObject {
18
18
  options: Required<Omit<Options, 'bbox'>> & Pick<Options, 'bbox'>;
19
- isActive: boolean;
20
- groupArr: Group[];
21
- areaArr: ExtrudePolygon[];
22
- lineArr: Line[];
23
- extrudelineArr?: Line[];
19
+ extrudePolygon: ExtrudePolygon;
24
20
  constructor(options: Options);
25
21
  geojson2Meta(geojson: GeoJSON): {
26
22
  coords: Position[][];
@@ -28,5 +24,7 @@ export default class PlaneMap extends BaseObject {
28
24
  }[];
29
25
  create(): Promise<void>;
30
26
  setNoise(geometry: THREE.BufferGeometry, image: HTMLImageElement, maxHeight?: number): void;
27
+ render(): void;
28
+ dispose(): void;
31
29
  }
32
30
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.27.19",
3
+ "version": "0.28.0-beta.3",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version && bundler",
@@ -12,7 +12,7 @@
12
12
  "getPublic": "node ./scripts/getPublic",
13
13
  "start:3dSite": "npm run version && VITE_SITE_3D=true bundler-dev",
14
14
  "build:3dSite": "npm run version && VITE_SITE_3D=true bundler",
15
- "pub": "npm publish"
15
+ "pub": "npm publish --tag beta"
16
16
  },
17
17
  "main": "dist/index.js",
18
18
  "module": "dist/index.module.js",
@@ -69,7 +69,7 @@
69
69
  "esus-lite": "^0.2.8",
70
70
  "events": "^3.3.0",
71
71
  "geojson-cn": "^0.2.5",
72
- "gl-draw": "0.14.41",
72
+ "gl-draw": "0.15.0-beta.25",
73
73
  "jsrsasign": "^11.1.0",
74
74
  "lodash-es": "^4.17.21"
75
75
  },
@@ -1,26 +0,0 @@
1
- import * as THREE from 'three';
2
- import { IBaseObject } from "../../editor";
3
- import Pencil from 'gl-draw';
4
- export default class MaterialList {
5
- pluginName: string;
6
- pencil: Pencil;
7
- private materials;
8
- private baseObjects;
9
- private fixBufferGeometry;
10
- wrapObject: IBaseObject;
11
- install(pencil: Pencil): void;
12
- private buildMaterialObjectHierarchy;
13
- private makeBaseObject;
14
- setUserData(key: string, userData: Record<string, any>): void;
15
- add(key: string, material: THREE.Material): void;
16
- addMultiple(key: string, materialMap: Record<string, THREE.Material | null>): void;
17
- get(key: string): THREE.Material | undefined;
18
- getBaseObjectByMaterial(material: THREE.Material): IBaseObject | null;
19
- getMultiple(key: string): Record<string, THREE.Material> | null;
20
- copyMultiple(sourceKey: string, destinationKey: string): Record<string, THREE.Material>;
21
- remove(key: string): void;
22
- clear(): void;
23
- getKeys(): string[];
24
- emitObject3dChange(): void;
25
- dispose(): void;
26
- }