vis-core 0.31.25 → 0.31.27

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/index.d.ts CHANGED
@@ -126,6 +126,7 @@ export declare class Base extends Camera {
126
126
  initCameraUserData(): void;
127
127
  initSceneUserData(): void;
128
128
  initBaseObjectUserData(baseObject: BaseObject): void;
129
+ private applyMapLabelStyle;
129
130
  addCSS3DRenderer(container?: HTMLElement): void;
130
131
  initSettingsObj?: Record<string, any>;
131
132
  mouseButtonsActiveStore: Record<string, any> | null;
@@ -404,19 +405,6 @@ export declare class Earth extends Base {
404
405
  animationIn(): void;
405
406
  initLight(): Promise<void>;
406
407
  getLocationPosition(location: [number, number], dr?: number): [number, number, number];
407
- setAreaMaterialByProperty(key: string, value: any, ops: {
408
- color?: string;
409
- emissive?: string;
410
- emissiveIntensity?: number;
411
- } | 'origin'): void;
412
- setLineMaterialByProperty(key: string, value: any, ops: {
413
- color?: string;
414
- width?: number;
415
- } | 'origin'): void;
416
- addAreaPlaneByProperty(key: string, value: any, options: {
417
- area: ConstructorParameters<typeof THREE.MeshBasicMaterial>[0];
418
- line: ConstructorParameters<typeof MeshLineMaterial>[0];
419
- }): Promise<PlaneMap | undefined>;
420
408
  getRadius(): number;
421
409
  checkBehindEarth(objArr: () => BaseObject[], cb: (obj: BaseObject[], res: boolean[]) => any): void;
422
410
  /**
@@ -458,8 +446,6 @@ export declare class Earth extends Base {
458
446
  ensureChinaPlaneCopyInScene(): Promise<void>;
459
447
  clearChinaPlaneCopyInScene(): void;
460
448
  private _syncChinaPlaneCopy;
461
- syncExtendsOptionToScene(name: string, value: any): Promise<void>;
462
- private _syncConicDepth;
463
449
  rebuildFromScene(): Promise<void>;
464
450
  }
465
451
 
@@ -627,25 +613,6 @@ declare class Map_2 extends Base {
627
613
  private _clearContinentsBgInScene;
628
614
  private _ensureContinentsBgInScene;
629
615
  consoleMousePostion(): void;
630
- setAreaMaterialByProperty(key: string, value: any, ops: {
631
- color?: string;
632
- emissive?: string;
633
- emissiveIntensity?: number;
634
- } | 'origin'): void;
635
- setLineMaterialByProperty(key: string, value: any, ops: {
636
- color?: string;
637
- width?: number;
638
- } | 'origin'): void;
639
- addAreaPlaneByProperty(key: string, value: any, options: {
640
- material?: ConstructorParameters<typeof THREE.MeshBasicMaterial>[0];
641
- lineMaterial?: ConstructorParameters<typeof MeshLineMaterial>[0];
642
- sideMaterial?: ConstructorParameters<typeof THREE.MeshBasicMaterial>[0];
643
- depth?: number;
644
- lineBloom?: boolean;
645
- topSegments?: number;
646
- area?: string;
647
- line?: string;
648
- }): Promise<PlaneMap | undefined>;
649
616
  caId: string | number | undefined;
650
617
  showAction(): Promise<void>;
651
618
  hide(): Promise<void>;
@@ -663,6 +630,7 @@ declare class Map_2 extends Base {
663
630
  duration?: number;
664
631
  }): Promise<void>;
665
632
  drawLabels(): Promise<void>;
633
+ private labelGroupObject3dUserData;
666
634
  eraseLabels(): void;
667
635
  geAdcodePosition(adcode: number): [number, number, number] | undefined;
668
636
  getLocationPosition(location: [number, number]): [number, number, number];
@@ -778,24 +746,6 @@ declare class Map_2 extends Base {
778
746
  Line: LineObject;
779
747
  Group: typeof GroupObject;
780
748
  }): Promise<void>;
781
- private _removeLiveExtrudeLines;
782
- private _initPlaneMapExtrudeLines;
783
- private _syncExtrudeLineToLivePlaneMaps;
784
- private _clearCityOnMapInScene;
785
- private _syncCityOnMapFeaturesToLiveScene;
786
- private _syncCityOnMapInnerLineToLivePlaneMaps;
787
- /**
788
- * Called from Viewport.setExtendsOptions immediately before toJSON().
789
- * Updates the live PlaneMap / ExtrudePolygon / Line objects' .options so
790
- * that gl-draw's exportScene() serialises the correct values into
791
- * _baseObjectOptions. fromJSON will then re-create geometry from those
792
- * saved options without any extra patching step.
793
- */
794
- syncExtendsOptionToScene(name: string, value: any): Promise<void>;
795
- private _syncDepthToLivePlaneMaps;
796
- private _syncDepthToLiveParentPlaneMaps;
797
- private _syncDepthToLiveContinentsBg;
798
- private _syncProjectionToLivePlaneMaps;
799
749
  dispose(): void;
800
750
  }
801
751
  export { Map_2 as Map }
@@ -1250,11 +1200,8 @@ declare class PlaneMap extends GroupObject {
1250
1200
  }[];
1251
1201
  update(_delta: number, elapsed: number): void;
1252
1202
  findGroup(adcode: string | number, fix?: boolean): GroupObject | undefined;
1253
- setAreaMaterial(key: string, material: THREE.Material[] | THREE.Material): void;
1254
1203
  useAreaMaterial(key: string): void;
1255
- setLineMaterial(key: string, material: THREE.Material): void;
1256
1204
  useLineMaterial(key: string): void;
1257
- setExtrudeLineMaterial(key: string, material: THREE.Material): void;
1258
1205
  useExtrudeLineMaterial(key: string): void;
1259
1206
  changeLineAnimateParams({ speed, extrude, }: {
1260
1207
  speed?: number;
@@ -1315,7 +1262,6 @@ declare interface SelectedMeta {
1315
1262
  key: string;
1316
1263
  object: THREE.Mesh;
1317
1264
  baseObject: BaseObject;
1318
- useMaterialType: string;
1319
1265
  visible: boolean;
1320
1266
  disabledC: boolean;
1321
1267
  disabledR: boolean;
@@ -1396,7 +1342,7 @@ export { TWEEN }
1396
1342
 
1397
1343
  export { Tween }
1398
1344
 
1399
- export declare const VERSION = "0.31.25";
1345
+ export declare const VERSION = "0.31.27";
1400
1346
 
1401
1347
  export { }
1402
1348