vis-core 0.30.0-beta.3 → 0.30.0-beta.5
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 +1 -1
- package/dist/index.js +397 -300
- package/dist/index.module.js +25564 -26838
- package/dist/version.d.ts +1 -1
- package/dist/vis/all/objects/Arc/index.d.ts +4 -4
- package/dist/vis/earth/index.d.ts +1 -1
- package/package.json +4 -6
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.30.0-beta.
|
|
1
|
+
declare const _default: "0.30.0-beta.5";
|
|
2
2
|
export default _default;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import Pencil
|
|
2
|
-
import {
|
|
1
|
+
import type Pencil from 'gl-draw';
|
|
2
|
+
import { BaseObject } from 'gl-draw';
|
|
3
|
+
import type { Line } from 'gl-draw/dist/objects';
|
|
3
4
|
import * as THREE from 'three';
|
|
4
|
-
import Tube from '../Tube';
|
|
5
|
+
import type Tube from '../Tube';
|
|
5
6
|
interface Options {
|
|
6
7
|
from: number[];
|
|
7
8
|
to: number[];
|
|
@@ -15,7 +16,6 @@ interface Options {
|
|
|
15
16
|
export default class extends BaseObject {
|
|
16
17
|
options: Options;
|
|
17
18
|
line: Line;
|
|
18
|
-
helperMesh?: Group[];
|
|
19
19
|
helperMeshPosition?: THREE.Vector3[];
|
|
20
20
|
constructor(options: Options);
|
|
21
21
|
static getInitOptions(pencil: Pencil, options: Options): {
|
|
@@ -81,6 +81,6 @@ export default class extends Base {
|
|
|
81
81
|
* @param height - 距离球面的高度,默认为0
|
|
82
82
|
* @param upAxis - 物体的up轴方向,默认为Y轴 [0, 1, 0]
|
|
83
83
|
*/
|
|
84
|
-
setObjectOnSphere(
|
|
84
|
+
setObjectOnSphere(baseObject: BaseObject, location: [number, number], height?: number, upAxis?: [number, number, number]): void;
|
|
85
85
|
}
|
|
86
86
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.30.0-beta.
|
|
3
|
+
"version": "0.30.0-beta.5",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
6
|
"build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",
|
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
"preview": "bundler-preview",
|
|
10
10
|
"version": "node ./scripts/generate-version",
|
|
11
11
|
"gzip": "node ./scripts/gzip",
|
|
12
|
-
"start:3dSite": "npm run version && VITE_SITE_3D=true bundler-dev",
|
|
13
|
-
"build:3dSite": "npm run version && VITE_SITE_3D=true bundler",
|
|
14
12
|
"pub": "npm publish --tag beta"
|
|
15
13
|
},
|
|
16
14
|
"main": "dist/index.js",
|
|
@@ -50,7 +48,7 @@
|
|
|
50
48
|
"primeicons": "^7.0.0",
|
|
51
49
|
"primevue": "^4.4.1",
|
|
52
50
|
"tailwind-config-bundler": "^0.4.6",
|
|
53
|
-
"three": "^0.
|
|
51
|
+
"three": "^0.182.0",
|
|
54
52
|
"vite-plugin-javascript-obfuscator": "^3.1.0",
|
|
55
53
|
"vite-plugin-markdown": "^2.2.0",
|
|
56
54
|
"vite-plugin-static-copy": "^2.2.0",
|
|
@@ -61,12 +59,12 @@
|
|
|
61
59
|
"dependencies": {
|
|
62
60
|
"@turf/turf": "^6.5.0",
|
|
63
61
|
"@types/crypto-js": "^4.2.2",
|
|
64
|
-
"@types/three": "^0.
|
|
62
|
+
"@types/three": "^0.182.0",
|
|
65
63
|
"crypto-js": "^4.2.0",
|
|
66
64
|
"esus-lite": "^0.2.8",
|
|
67
65
|
"events": "^3.3.0",
|
|
68
66
|
"geojson-cn": "^0.2.5",
|
|
69
|
-
"gl-draw": "0.17.0-beta.
|
|
67
|
+
"gl-draw": "0.17.0-beta.14",
|
|
70
68
|
"jsrsasign": "^11.1.0",
|
|
71
69
|
"lodash-es": "^4.17.21"
|
|
72
70
|
},
|