vis-core 0.29.11 → 0.29.13

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.29.11";
1
+ declare const _default: "0.29.13";
2
2
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import * as THREE from 'three';
2
2
  import Pencil from 'gl-draw';
3
- export declare const getLineTexture: (length: number, lightColor?: string, lineColor?: string) => THREE.CanvasTexture;
3
+ export declare const getLineTexture: (length: number, lightColor?: string, lineColor?: string) => THREE.CanvasTexture<HTMLCanvasElement>;
4
4
  export declare const createFlyPath: (v0: THREE.Vector3, v3: THREE.Vector3, h?: number) => THREE.CubicBezierCurve3;
5
5
  export declare const createFlyPath2: (v0: THREE.Vector3, v3: THREE.Vector3, h?: number) => THREE.CubicBezierCurve3;
6
6
  export declare const pixel2unit: (pencil: Pencil, pixel: number) => number;
@@ -115,7 +115,7 @@ export default class Base extends Camera {
115
115
  onTop?: number;
116
116
  type?: '3d' | '3dSprite';
117
117
  }): Promise<Node>;
118
- getRoomEnvMap(): THREE.Texture;
118
+ getRoomEnvMap(): THREE.Texture<unknown>;
119
119
  handlePick(objArr: PickFunctionsItem['objArr'], type: PickFunctionsItem['type'], cb: PickFunctionsItem['cb']): void;
120
120
  getScreenPosition(x: number, y: number, z: number): {
121
121
  x: number;
@@ -1,7 +1,7 @@
1
+ import type { FeatureCollection, MultiPolygon, Polygon, Position } from 'geojson';
1
2
  import { BaseObject } from 'gl-draw';
3
+ import { type ExtrudePolygon } from 'gl-draw/dist/objects';
2
4
  import * as THREE from 'three';
3
- import { ExtrudePolygon } from 'gl-draw/dist/objects';
4
- import type { FeatureCollection, Position, Polygon, MultiPolygon } from 'geojson';
5
5
  type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
6
6
  interface Options {
7
7
  geojson: GeoJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.29.11",
3
+ "version": "0.29.13",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",
@@ -50,7 +50,7 @@
50
50
  "primeicons": "^7.0.0",
51
51
  "primevue": "^4.3.9",
52
52
  "tailwind-config-bundler": "^0.4.6",
53
- "three": "^0.180.0",
53
+ "three": "^0.181.0",
54
54
  "vite-plugin-javascript-obfuscator": "^3.1.0",
55
55
  "vite-plugin-markdown": "^2.2.0",
56
56
  "vite-plugin-static-copy": "^2.2.0",
@@ -61,12 +61,12 @@
61
61
  "dependencies": {
62
62
  "@turf/turf": "^6.5.0",
63
63
  "@types/crypto-js": "^4.2.2",
64
- "@types/three": "^0.180.0",
64
+ "@types/three": "^0.181.0",
65
65
  "crypto-js": "^4.2.0",
66
66
  "esus-lite": "^0.2.8",
67
67
  "events": "^3.3.0",
68
68
  "geojson-cn": "^0.2.5",
69
- "gl-draw": "0.16.6",
69
+ "gl-draw": "0.16.8",
70
70
  "jsrsasign": "^11.1.0",
71
71
  "lodash-es": "^4.17.21"
72
72
  },