vis-core 0.21.56 → 0.21.57

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.21.56";
1
+ declare const _default: "0.21.57";
2
2
  export default _default;
@@ -72,9 +72,9 @@ export default class Base extends Event {
72
72
  setOptions(options: Record<string, any>): void;
73
73
  get fromJSON(): (jsonOrUrl: Record<string, any> | string, extendVisOptions?: (json: any) => any) => Promise<Record<string, any>>;
74
74
  get baseObjectByUuid(): {
75
- (uuid: `arc${string}`): import("../all/objects/Arc").default;
76
- (uuid: `sprite${string}`): import("../all/objects/Sprite").default;
77
- (uuid: string): BaseObject;
75
+ (uuid: `arc${string}`, flag?: boolean): import("../all/objects/Arc").default;
76
+ (uuid: `sprite${string}`, flag?: boolean): import("../all/objects/Sprite").default;
77
+ (uuid: string, flag?: boolean): BaseObject;
78
78
  };
79
79
  get objectByUuid(): (uuid: string) => THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap> | undefined;
80
80
  get getDataURL(): () => string;
@@ -2,7 +2,7 @@ import { BaseObject } from 'gl-draw';
2
2
  import Base, { BaseOptions } from "../base";
3
3
  import { getProjection } from 'gl-draw/dist/utils';
4
4
  import type { FeatureCollection, Polygon, MultiPolygon } from 'geojson';
5
- import { MeshLineMaterial, Group } from 'gl-draw/dist/objects';
5
+ import { MeshLineMaterial, Group, ExtrudePolygon, Line } from 'gl-draw/dist/objects';
6
6
  import * as THREE from 'three';
7
7
  import PlaneMap from "./objects/PlaneMap";
8
8
  import ContinentsBg from "./objects/ContinentsBg";
@@ -75,9 +75,9 @@ export default class extends Base {
75
75
  Lathe: typeof import("../all/objects/Lathe").default;
76
76
  Octahedron: typeof import("../all/objects/Octahedron").default;
77
77
  Node: typeof import("gl-draw/dist/objects").Node;
78
- Line: typeof import("gl-draw/dist/objects").Line;
78
+ Line: typeof Line;
79
79
  Line2: typeof import("gl-draw/dist/objects").Line2;
80
- ExtrudePolygon: typeof import("gl-draw/dist/objects").ExtrudePolygon;
80
+ ExtrudePolygon: typeof ExtrudePolygon;
81
81
  ConicPolygon: typeof import("gl-draw/dist/objects").ConicPolygon;
82
82
  Group: typeof Group;
83
83
  Light: typeof import("../all/objects/Light").default;
@@ -108,8 +108,8 @@ export default class extends Base {
108
108
  };
109
109
  get map(): PlaneMap | undefined;
110
110
  get mapInfo(): any;
111
- get mapArea(): import("gl-draw/dist/objects").ExtrudePolygon[] | undefined;
112
- get mapLine(): import("gl-draw/dist/objects").Line[] | undefined;
111
+ get mapArea(): ExtrudePolygon[] | undefined;
112
+ get mapLine(): Line[] | undefined;
113
113
  get adcodes(): any[];
114
114
  activePlaneMap: PlaneMap | null;
115
115
  isAnimating: boolean;
@@ -135,6 +135,7 @@ export default class extends Base {
135
135
  setLineColorByProperty(key: string, value: any, color: string): void;
136
136
  setLineWidthByProperty(key: string, value: any, width: number | 'origin'): void;
137
137
  addAreaPlaneByProperty(key: string, value: any, options?: {
138
+ uid?: string;
138
139
  material?: THREE.Material;
139
140
  lineMaterial?: MeshLineMaterial;
140
141
  topSegments?: number;
@@ -38,6 +38,7 @@ export default class PlaneMap extends BaseObject {
38
38
  groupArr: Group[];
39
39
  areaArr: ExtrudePolygon[];
40
40
  lineArr: Line[];
41
+ mergeSideArea: ExtrudePolygon | null;
41
42
  extrudelineArr?: Line[];
42
43
  constructor(options: Options);
43
44
  create(): Promise<void>;
@@ -52,6 +53,7 @@ export default class PlaneMap extends BaseObject {
52
53
  hasSide?: boolean;
53
54
  hasTop?: boolean;
54
55
  onTop?: number;
56
+ castShadow?: boolean;
55
57
  }): Promise<ExtrudePolygon[]>;
56
58
  getPropertiesKey(properties: Record<string, any>): string;
57
59
  addPlane(geojson: Feature<Polygon | MultiPolygon, GeoJsonProperties>, options: {
@@ -71,12 +73,12 @@ export default class PlaneMap extends BaseObject {
71
73
  pickArea(e: MouseEvent): import("gl-draw/dist/core/BaseObject").IBaseObject | undefined;
72
74
  update(delta: number, elapsed: number): void;
73
75
  findGroup(adcode: string | number): Group | undefined;
74
- setAreaMaterial(material: THREE.Material[] | THREE.Material): void;
75
- resetAreaMaterial(): void;
76
- setLineMaterial(material: THREE.Material): void;
77
- resetLineMaterial(): void;
78
- setExtrudeLineMaterial(material: THREE.Material): void;
79
- resetExtrudeLineMaterial(): void;
76
+ setAreaMaterial(key: string, material: THREE.Material[] | THREE.Material): void;
77
+ useAreaMaterial(key: string): void;
78
+ setLineMaterial(key: string, material: THREE.Material): void;
79
+ useLineMaterial(key: string): void;
80
+ setExtrudeLineMaterial(key: string, material: THREE.Material): void;
81
+ useExtrudeLineMaterial(key: string): void;
80
82
  changeLineAnimateParams({ speed, extrude, }: {
81
83
  speed?: number;
82
84
  extrude?: boolean;
@@ -53,6 +53,10 @@ export default class extends Map {
53
53
  label: boolean;
54
54
  labelLite: boolean;
55
55
  shadowMap: boolean;
56
+ '\u6D4B\u8BD5\u677F\u5757\u989C\u8272.color:::caId': string;
57
+ '\u6D4B\u8BD5\u8FB9\u6846\u989C\u8272.color:::caId': string;
58
+ '\u6D4B\u8BD5\u8FB9\u6846\u5BBD\u5EA6:::caId': number;
59
+ '\u6D4B\u8BD5\u6DFB\u52A0\u9762.btn:::caId': number;
56
60
  };
57
61
  loaderAddBg(): void;
58
62
  initMaterialBg(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.21.56",
3
+ "version": "0.21.57",
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",
@@ -67,7 +67,7 @@
67
67
  "esus-lite": "^0.2.8",
68
68
  "events": "^3.3.0",
69
69
  "geojson-cn": "^0.1.29",
70
- "gl-draw": "0.11.38",
70
+ "gl-draw": "0.11.40",
71
71
  "jsrsasign": "^11.1.0",
72
72
  "lodash-es": "^4.17.21"
73
73
  },
@@ -1,2 +0,0 @@
1
- export declare const fileLoader: (url: string) => Promise<any>;
2
- export declare const animation: (source: any, target: any, duration?: number, onUpdate?: (...args: any[]) => void, onComplete?: () => void, ease?: (amount: number) => number) => Promise<void>;