vis-core 0.28.40 → 0.29.1

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.28.40";
1
+ declare const _default: "0.29.1";
2
2
  export default _default;
@@ -23,7 +23,7 @@ export default class extends BaseObject {
23
23
  to: THREE.Vector3Tuple;
24
24
  };
25
25
  create(): Promise<void>;
26
- instantiate(): Promise<this>;
26
+ instantiate(ops?: any): Promise<this>;
27
27
  setPath(from: THREE.Vector3 | number[], to: THREE.Vector3 | number[], radius: number, setPointWidth?: (p: number) => number): void;
28
28
  pickTube: Tube | null;
29
29
  addPickTarget(radius?: number, show?: boolean): Promise<Tube>;
@@ -1,5 +1,6 @@
1
1
  import { Light } from 'gl-draw/dist/objects';
2
2
  export default class extends Light {
3
+ constructor(options: any);
3
4
  update(delta: number, elapsed: number): void;
4
5
  render(): void;
5
6
  }
@@ -6,8 +6,8 @@ interface Options {
6
6
  export default class extends BaseObject {
7
7
  options: Options;
8
8
  constructor(options: Options);
9
- get material(): THREE.SpriteMaterial | THREE.MeshBasicMaterial;
10
- getMaterial(): THREE.SpriteMaterial | THREE.MeshBasicMaterial;
9
+ get material(): THREE.MeshBasicMaterial | THREE.SpriteMaterial;
10
+ getMaterial(): THREE.MeshBasicMaterial | THREE.SpriteMaterial;
11
11
  create(): Promise<void>;
12
12
  scaleValue: number;
13
13
  setScale(n: number): void;
@@ -1,6 +1,6 @@
1
- import * as THREE from 'three';
2
1
  import { BaseObject } from 'gl-draw';
3
2
  import { ExtrudePolygon } from 'gl-draw/dist/objects';
3
+ import * as THREE from 'three';
4
4
  interface Options {
5
5
  json: {
6
6
  features: any[];
@@ -1,6 +1,6 @@
1
- import * as THREE from 'three';
2
1
  import { BaseObject } from 'gl-draw';
3
2
  import { ExtrudePolygon } from 'gl-draw/dist/objects';
3
+ import * as THREE from 'three';
4
4
  interface Options {
5
5
  json: {
6
6
  features: any[];
@@ -1,5 +1,5 @@
1
- import { BaseObject } from 'gl-draw';
2
1
  import PlaneMap from "./PlaneMap";
2
+ import { BaseObject } from 'gl-draw';
3
3
  interface Options {
4
4
  scale: number;
5
5
  depth: number;
@@ -1,6 +1,6 @@
1
1
  import type { FeatureCollection, GeoJsonProperties, MultiPolygon, Polygon, Position } from 'geojson';
2
2
  import { BaseObject } from 'gl-draw';
3
- import { Line, ExtrudePolygon, MeshLineMaterial, Group } from 'gl-draw/dist/objects';
3
+ import { ExtrudePolygon, Group, Line, MeshLineMaterial } from 'gl-draw/dist/objects';
4
4
  import * as THREE from 'three';
5
5
  type GeoJSON = FeatureCollection<Polygon | MultiPolygon>;
6
6
  interface Options {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.28.40",
3
+ "version": "0.29.1",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",
@@ -49,7 +49,7 @@
49
49
  "jszip": "^3.10.1",
50
50
  "pinia": "^2.2.4",
51
51
  "tailwind-config-bundler": "^0.4.6",
52
- "three": "^0.179.0",
52
+ "three": "^0.180.0",
53
53
  "vite-plugin-javascript-obfuscator": "^3.1.0",
54
54
  "vite-plugin-markdown": "^2.2.0",
55
55
  "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.179.0",
64
+ "@types/three": "^0.180.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.15.33",
69
+ "gl-draw": "0.16.0",
70
70
  "jsrsasign": "^11.1.0",
71
71
  "lodash-es": "^4.17.21"
72
72
  },