vis-core 0.31.6 → 0.31.8

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
@@ -107,6 +107,7 @@ export declare class Base extends Camera {
107
107
  constructor(options: BaseOptions);
108
108
  private showDetectRes;
109
109
  setOptions(options: Record<string, any>): void;
110
+ syncExtendsOptionToScene(name: string, value: any): void;
110
111
  fromJSON(jsonOrUrl: Record<string, any> | string, hooksE?: Record<string, any>): Promise<void>;
111
112
  private parseHooks;
112
113
  loaderAdd(...args: any): void;
@@ -503,6 +504,8 @@ export declare class Earth extends Base {
503
504
  Line: LineObject;
504
505
  Group: GroupObject;
505
506
  }): Promise<void>;
507
+ syncExtendsOptionToScene(name: string, value: any): void;
508
+ private _syncConicDepth;
506
509
  rebuildFromScene(): Promise<void>;
507
510
  }
508
511
 
@@ -664,6 +667,7 @@ declare class Map_2 extends Base {
664
667
  pscale: number;
665
668
  meters: number;
666
669
  cityVis: city[];
670
+ cityGroup: GroupObject[];
667
671
  extendsOptions: Record<string, any>;
668
672
  setOptions(options: MapOptions): void;
669
673
  initGroup(): Promise<void>;
@@ -838,6 +842,17 @@ declare class Map_2 extends Base {
838
842
  Line: LineObject;
839
843
  Group: typeof GroupObject;
840
844
  }): Promise<void>;
845
+ /**
846
+ * Called from Viewport.setExtendsOptions immediately before toJSON().
847
+ * Updates the live PlaneMap / ExtrudePolygon / Line objects' .options so
848
+ * that gl-draw's exportScene() serialises the correct values into
849
+ * _baseObjectOptions. fromJSON will then re-create geometry from those
850
+ * saved options without any extra patching step.
851
+ */
852
+ syncExtendsOptionToScene(name: string, value: any): Promise<void>;
853
+ private _syncDepthToLivePlaneMaps;
854
+ private _syncDepthToLiveParentPlaneMaps;
855
+ private _syncProjectionToLivePlaneMaps;
841
856
  dispose(): void;
842
857
  }
843
858
  export { Map_2 as Map }
@@ -1022,6 +1037,7 @@ declare interface MapOptions extends BaseOptions {
1022
1037
  geojsonExtensions?: Record<string, GeoJSON_3 | string | number | (GeoJSON_3 | string | number)[]>;
1023
1038
  shadowMap?: boolean;
1024
1039
  switchFixConfig?: SwitchFixConfig;
1040
+ _currentAdcodes?: number[];
1025
1041
  }
1026
1042
 
1027
1043
  declare class Model extends GroupObject {
@@ -1220,7 +1236,6 @@ declare interface Options_9 {
1220
1236
  extrudeLineGeojson?: GeoJSON_2;
1221
1237
  hasSide?: boolean;
1222
1238
  hasTop?: boolean;
1223
- mergeSide?: boolean;
1224
1239
  hasLine?: boolean;
1225
1240
  start?: number;
1226
1241
  depth?: number;
@@ -1229,6 +1244,7 @@ declare interface Options_9 {
1229
1244
  topSegments?: number;
1230
1245
  conic?: boolean;
1231
1246
  castShadow?: boolean;
1247
+ mergeSide?: boolean;
1232
1248
  materialOptions: {
1233
1249
  topMat: THREE.Material;
1234
1250
  sideMat?: THREE.Material;
@@ -1260,6 +1276,8 @@ declare class PlaneMap extends GroupObject {
1260
1276
  splitPolygons: number;
1261
1277
  constructor(options: Options_9);
1262
1278
  create(): Promise<void>;
1279
+ mergeAreaSide(): Promise<void>;
1280
+ unmergeAreaSide(): Promise<void>;
1263
1281
  addArea(geojson: GeoJSON_2, options: {
1264
1282
  material: THREE.Material | THREE.Material[];
1265
1283
  bbox?: number[];
@@ -1267,7 +1285,6 @@ declare class PlaneMap extends GroupObject {
1267
1285
  hasSide?: boolean;
1268
1286
  hasTop?: boolean;
1269
1287
  onTop?: number;
1270
- castShadow?: boolean;
1271
1288
  }): Promise<ExtrudePolygonObject[]>;
1272
1289
  addLine(geojson: GeoJSON_2, options: {
1273
1290
  material?: MeshLineMaterial;
@@ -1456,7 +1473,7 @@ export { TWEEN }
1456
1473
 
1457
1474
  export { Tween }
1458
1475
 
1459
- export declare const VERSION = "0.31.6";
1476
+ export declare const VERSION = "0.31.8";
1460
1477
 
1461
1478
  export { }
1462
1479