@openglobus/og 0.25.5 → 0.25.6
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/lib/Globe.d.ts +2 -0
- package/lib/assets/LabelWorker.worker-BT1uJgYn.js.map +1 -0
- package/lib/assets/PlainSegmentWorker.worker-CT1cj8jj.js.map +1 -0
- package/lib/assets/TerrainWorker.worker-DmikdfB2.js.map +1 -0
- package/lib/og.es.js +2 -1
- package/lib/og.es.js.map +1 -0
- package/lib/scene/Planet.d.ts +3 -0
- package/package.json +60 -74
package/lib/scene/Planet.d.ts
CHANGED
|
@@ -52,6 +52,8 @@ export interface IPlanetParams {
|
|
|
52
52
|
atmosphereEnabled?: boolean;
|
|
53
53
|
transitionOpacityEnabled?: boolean;
|
|
54
54
|
atmosphereParameters?: IAtmosphereParams;
|
|
55
|
+
minDistanceBeforeMemClear?: number;
|
|
56
|
+
vectorTileSize?: number;
|
|
55
57
|
}
|
|
56
58
|
export type PlanetEventsList = [
|
|
57
59
|
"draw",
|
|
@@ -307,6 +309,7 @@ export declare class Planet extends RenderNode {
|
|
|
307
309
|
_currNodes: Map<number, Node>;
|
|
308
310
|
protected _transitionOpacityEnabled: boolean;
|
|
309
311
|
protected _atmosphere: Atmosphere;
|
|
312
|
+
private _minDistanceBeforeMemClear;
|
|
310
313
|
constructor(options?: IPlanetParams);
|
|
311
314
|
/**
|
|
312
315
|
* Returns true if current terrain data set is loaded
|
package/package.json
CHANGED
|
@@ -1,87 +1,73 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name"
|
|
3
|
-
"version"
|
|
4
|
-
"description"
|
|
5
|
-
"main"
|
|
6
|
-
"types"
|
|
7
|
-
"exports"
|
|
8
|
-
"."
|
|
9
|
-
"import"
|
|
10
|
-
"types"
|
|
2
|
+
"name": "@openglobus/og",
|
|
3
|
+
"version": "0.25.6",
|
|
4
|
+
"description": "[openglobus](https://www.openglobus.org/) is a javascript/typescript library designed to display interactive 3d maps and planets with map tiles, imagery and vector data, markers, and 3D objects. It uses the WebGL technology, open source, and completely free.",
|
|
5
|
+
"main": "lib/og.es.js",
|
|
6
|
+
"types": "lib/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./lib/og.es.js",
|
|
10
|
+
"types": "./lib/index.d.ts"
|
|
11
|
+
},
|
|
12
|
+
"./styles": {
|
|
13
|
+
"import": "./lib/og.css"
|
|
11
14
|
}
|
|
12
15
|
},
|
|
13
|
-
"publishConfig"
|
|
14
|
-
"access"
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
15
18
|
},
|
|
16
|
-
"files"
|
|
19
|
+
"files": [
|
|
17
20
|
"lib/"
|
|
18
21
|
],
|
|
19
|
-
"scripts"
|
|
20
|
-
"docs"
|
|
21
|
-
"serve_docs"
|
|
22
|
-
"serve"
|
|
23
|
-
"build"
|
|
24
|
-
"clean"
|
|
25
|
-
"dev"
|
|
26
|
-
"test"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
22
|
+
"scripts": {
|
|
23
|
+
"docs": "jsdoc -r ./src/ -c ./jsdoc.conf.json -d ./docs",
|
|
24
|
+
"serve_docs": "cd docs; ws -p 8088",
|
|
25
|
+
"serve": "ws -p 3000",
|
|
26
|
+
"build": "vite build --mode production && npm run dts",
|
|
27
|
+
"clean": "rm -rf ./lib ./docs",
|
|
28
|
+
"dev": "vite build --watch --mode development",
|
|
29
|
+
"test:watch": "vitest",
|
|
30
|
+
"test": "vitest run --reporter=verbose",
|
|
31
|
+
"lint": "eslint src/",
|
|
32
|
+
"dts": "tsc --build tsconfig.json",
|
|
33
|
+
"dev_serve": "npm-run-all --parallel --continue-on-error --race dev serve"
|
|
30
34
|
},
|
|
31
|
-
"repository"
|
|
32
|
-
"type"
|
|
33
|
-
"url"
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/openglobus/openglobus.git"
|
|
34
38
|
},
|
|
35
|
-
"author"
|
|
36
|
-
"license"
|
|
37
|
-
"bugs"
|
|
38
|
-
"url"
|
|
39
|
-
"email"
|
|
39
|
+
"author": "Michael Gevlich(Zemledelec)",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/openglobus/openglobus/issues",
|
|
43
|
+
"email": "mgevlich@gmail.com"
|
|
40
44
|
},
|
|
41
|
-
"homepage"
|
|
42
|
-
"devDependencies"
|
|
43
|
-
"@babel/
|
|
44
|
-
"@babel/
|
|
45
|
-
"@babel/
|
|
46
|
-
"@babel/
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"npm-run-all" : "^4.1.5",
|
|
66
|
-
"postcss" : "^8.4.45",
|
|
67
|
-
"prettier" : "^3.3.3",
|
|
68
|
-
"rollup" : "^4.22.4",
|
|
69
|
-
"rollup-plugin-copy" : "^3.5.0",
|
|
70
|
-
"rollup-plugin-postcss" : "^4.0.2",
|
|
71
|
-
"rollup-plugin-web-worker-loader" : "^1.7.0",
|
|
72
|
-
"terser" : "^5.39.0",
|
|
73
|
-
"ts-jest" : "^29.2.5",
|
|
74
|
-
"typescript" : "^5.5.4",
|
|
75
|
-
"vite" : "^6.2.6",
|
|
76
|
-
"vite-plugin-glsl" : "^1.4.0",
|
|
77
|
-
"vite-plugin-static-copy" : "^2.3.1"
|
|
45
|
+
"homepage": "https://www.openglobus.org",
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
48
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
49
|
+
"@babel/preset-env": "^7.26.9",
|
|
50
|
+
"@babel/preset-typescript": "^7.27.0",
|
|
51
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
52
|
+
"@types/mocha": "^10.0.10",
|
|
53
|
+
"@types/node": "^22.15.3",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^8.31.1",
|
|
55
|
+
"clean-jsdoc-theme": "^4.3.0",
|
|
56
|
+
"eslint": "^9.25.1",
|
|
57
|
+
"jsdoc": "^4.0.4",
|
|
58
|
+
"jsdoc-babel": "^0.5.0",
|
|
59
|
+
"jsdom": "^26.1.0",
|
|
60
|
+
"local-web-server": "^5.4.0",
|
|
61
|
+
"npm-run-all": "^4.1.5",
|
|
62
|
+
"terser": "^5.39.0",
|
|
63
|
+
"typescript": "^5.8.3",
|
|
64
|
+
"vite": "^6.3.4",
|
|
65
|
+
"vite-plugin-glsl": "^1.4.1",
|
|
66
|
+
"vite-plugin-static-copy": "^2.3.1",
|
|
67
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
68
|
+
"vitest": "^3.1.2"
|
|
78
69
|
},
|
|
79
|
-
"
|
|
80
|
-
"*.{js,ts}" : [
|
|
81
|
-
"prettier --write"
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
"keywords" : [
|
|
70
|
+
"keywords": [
|
|
85
71
|
"map",
|
|
86
72
|
"3D",
|
|
87
73
|
"webgl",
|