vis-core 0.18.5 → 0.18.7

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,2 +1,7 @@
1
- declare const _default: (url: string) => Promise<any>;
1
+ type DownloadProgress = {
2
+ percent: number;
3
+ transferredBytes: number;
4
+ totalBytes: number;
5
+ };
6
+ declare const _default: (url: string, onDownloadProgress?: (progress: DownloadProgress) => void) => Promise<any>;
2
7
  export default _default;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.18.5";
1
+ declare const _default: "0.18.7";
2
2
  export default _default;
@@ -129,6 +129,8 @@ export default class extends Base {
129
129
  initMaterialBg(): Promise<void>;
130
130
  setAreaMixColor(adcode: number, color: string): void;
131
131
  setAreaColorByProperty(key: string, value: any, color: string, mix?: boolean): void;
132
+ setAreaEmissiveByProperty(key: string, value: any, color: string, intensity?: number): void;
133
+ setLineColorByProperty(key: string, value: any, color: string): void;
132
134
  addAreaPlaneByProperty(key: string, value: any, options?: {
133
135
  material?: THREE.Material;
134
136
  lineMaterial?: MeshLineMaterial;
@@ -41,6 +41,8 @@ export default class PlaneMap extends BaseObject {
41
41
  constructor(options: Options);
42
42
  create(): Promise<void>;
43
43
  setAreaColor(area: ExtrudePolygon, color: string): THREE.MeshStandardMaterial | undefined;
44
+ setAreaEmissive(area: ExtrudePolygon, color: string, intensity?: number): THREE.MeshStandardMaterial | undefined;
45
+ setLineColor(line: Line, color: string): MeshLineMaterial | undefined;
44
46
  addArea(geojson: GeoJSON, options: {
45
47
  material: THREE.Material | THREE.Material[];
46
48
  bbox?: number[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.18.5",
3
+ "version": "0.18.7",
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",