@margoengine/tiles 0.1.0 → 1.0.0
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/LICENSE +201 -201
- package/NOTICE +4 -4
- package/README.md +438 -307
- package/dist/features.js +3 -3
- package/dist/index.js +3 -3
- package/dist/scene-scope-DufD_3B6.js +3 -3
- package/dist/shared/screen-door.d.ts +9 -9
- package/package.json +124 -124
package/dist/features.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @margo/core-built
|
|
1
|
+
// @margo/core-built 1.0.0
|
|
2
2
|
import {coreRequirement as __margoCoreRequirement,assertCore as __margoAssertCore} from '@margoengine/core/extension';
|
|
3
3
|
|
|
4
4
|
import { a as e, i as t, n, r, t as i } from "./data-uri-DbGLVHq5.js";
|
|
@@ -36,8 +36,8 @@ function f(e) {
|
|
|
36
36
|
}
|
|
37
37
|
//#endregion
|
|
38
38
|
//#region src/features.ts
|
|
39
|
-
var p = 0, m = class c {coreRequirement=__margoCoreRequirement("
|
|
40
|
-
static attach(e, t = {}) {__margoAssertCore(e,__margoCoreRequirement("
|
|
39
|
+
var p = 0, m = class c {coreRequirement=__margoCoreRequirement("1.0.0",import.meta.url);
|
|
40
|
+
static attach(e, t = {}) {__margoAssertCore(e,__margoCoreRequirement("1.0.0",import.meta.url));
|
|
41
41
|
return new c(e, t);
|
|
42
42
|
}
|
|
43
43
|
constructor(t, n = {}) {
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @margo/core-built
|
|
1
|
+
// @margo/core-built 1.0.0
|
|
2
2
|
import {coreRequirement as __margoCoreRequirement,assertCore as __margoAssertCore} from '@margoengine/core/extension';
|
|
3
3
|
|
|
4
4
|
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./wgs84-C5btsGGY.js";
|
|
@@ -585,7 +585,7 @@ function $(e) {
|
|
|
585
585
|
}
|
|
586
586
|
return new TextDecoder().decode(n).includes("\"KHR_gaussian_splatting\"");
|
|
587
587
|
}
|
|
588
|
-
var ce = 0, le = class n {coreRequirement=__margoCoreRequirement("
|
|
588
|
+
var ce = 0, le = class n {coreRequirement=__margoCoreRequirement("1.0.0",import.meta.url);
|
|
589
589
|
static async load(e, t, r = {}) {
|
|
590
590
|
let i, a = A(e), o = await G.load(t, {
|
|
591
591
|
...r,
|
|
@@ -593,7 +593,7 @@ var ce = 0, le = class n {coreRequirement=__margoCoreRequirement("0.1.0",import.
|
|
|
593
593
|
});
|
|
594
594
|
return i = new n(o, r), a.run(() => e.use(i)), i;
|
|
595
595
|
}
|
|
596
|
-
static attach(e, t, r = {}) {__margoAssertCore(e,__margoCoreRequirement("
|
|
596
|
+
static attach(e, t, r = {}) {__margoAssertCore(e,__margoCoreRequirement("1.0.0",import.meta.url));
|
|
597
597
|
return n.load(e, t, r);
|
|
598
598
|
}
|
|
599
599
|
constructor(t, n) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @margo/core-built
|
|
1
|
+
// @margo/core-built 1.0.0
|
|
2
2
|
import {coreRequirement as __margoCoreRequirement,assertCore as __margoAssertCore} from '@margoengine/core/extension';
|
|
3
3
|
|
|
4
4
|
//#region ../shared/scene-scope.js
|
|
@@ -12,7 +12,7 @@ function n(e) {
|
|
|
12
12
|
if (typeof e?.sceneOf == "function") {
|
|
13
13
|
for (let t of e.plugins?.values() ?? []) if (n = e.sceneOf(t)) break;
|
|
14
14
|
if (!n) {
|
|
15
|
-
let r = {coreRequirement:/*@__PURE__*/__margoCoreRequirement("
|
|
15
|
+
let r = {coreRequirement:/*@__PURE__*/__margoCoreRequirement("1.0.0",import.meta.url),
|
|
16
16
|
name: t(e, "scene-scope:"),
|
|
17
17
|
setup() {
|
|
18
18
|
n = e.sceneOf(r);
|
|
@@ -28,7 +28,7 @@ function r(e, n) {
|
|
|
28
28
|
scene: n,
|
|
29
29
|
run(r) {
|
|
30
30
|
if (!n) return r();
|
|
31
|
-
let i, a = {coreRequirement:/*@__PURE__*/__margoCoreRequirement("
|
|
31
|
+
let i, a = {coreRequirement:/*@__PURE__*/__margoCoreRequirement("1.0.0",import.meta.url),
|
|
32
32
|
name: t(e, "scene-scope:"),
|
|
33
33
|
setup() {
|
|
34
34
|
i = r();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/** A screen-door coverage interval. Shared across replacement levels, in [0,1]. */
|
|
2
|
-
export type DitherRange = readonly [number, number];
|
|
3
|
-
/** Refuses invalid coverage intervals instead of silently clamping a transition. */
|
|
4
|
-
export declare function checkDitherRange(range: readonly number[]): void;
|
|
5
|
-
/** Ordered 4 by 4 Bayer rank, from integer drawing-buffer coordinates. */
|
|
6
|
-
export declare function ditherRank(x: number, y: number): number;
|
|
7
|
-
/** Same rank in WGSL for meshes, point discs and sorted Gaussian fragments. */
|
|
8
|
-
export declare const ditherWGSL =
|
|
9
|
-
'fn margoDitherRank(p:vec2f)->u32 {\n let x=u32(p.x)&3u;let y=u32(p.y)&3u;\n return 4u*(2u*((x&1u)^(y&1u))+(y&1u))+2u*(((x>>1u)&1u)^((y>>1u)&1u))+((y>>1u)&1u);\n}';
|
|
1
|
+
/** A screen-door coverage interval. Shared across replacement levels, in [0,1]. */
|
|
2
|
+
export type DitherRange = readonly [number, number];
|
|
3
|
+
/** Refuses invalid coverage intervals instead of silently clamping a transition. */
|
|
4
|
+
export declare function checkDitherRange(range: readonly number[]): void;
|
|
5
|
+
/** Ordered 4 by 4 Bayer rank, from integer drawing-buffer coordinates. */
|
|
6
|
+
export declare function ditherRank(x: number, y: number): number;
|
|
7
|
+
/** Same rank in WGSL for meshes, point discs and sorted Gaussian fragments. */
|
|
8
|
+
export declare const ditherWGSL =
|
|
9
|
+
'fn margoDitherRank(p:vec2f)->u32 {\n let x=u32(p.x)&3u;let y=u32(p.y)&3u;\n return 4u*(2u*((x&1u)^(y&1u))+(y&1u))+2u*(((x>>1u)&1u)^((y>>1u)&1u))+((y>>1u)&1u);\n}';
|
package/package.json
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@margoengine/tiles",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Streaming OGC 3D Tiles 1.1: implicit and explicit tilesets, screen-space-error selection, a fetch queue, a memory budget and glTF tiles drawn through gltf/pbr.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"margoengine",
|
|
7
|
-
"webgpu",
|
|
8
|
-
"3d",
|
|
9
|
-
"3d-tiles",
|
|
10
|
-
"ogc",
|
|
11
|
-
"gis",
|
|
12
|
-
"digital-twin",
|
|
13
|
-
"streaming"
|
|
14
|
-
],
|
|
15
|
-
"homepage": "https://margoengine.com",
|
|
16
|
-
"bugs": {
|
|
17
|
-
"url": "https://github.com/scottcampbelldata/margoengine/issues"
|
|
18
|
-
},
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/scottcampbelldata/margoengine.git",
|
|
22
|
-
"directory": "packages/tiles"
|
|
23
|
-
},
|
|
24
|
-
"license": "Apache-2.0",
|
|
25
|
-
"author": "Scott Campbell",
|
|
26
|
-
"type": "module",
|
|
27
|
-
"sideEffects": false,
|
|
28
|
-
"exports": {
|
|
29
|
-
"./properties": {
|
|
30
|
-
"types": "./dist/properties.d.ts",
|
|
31
|
-
"import": "./dist/properties.js"
|
|
32
|
-
},
|
|
33
|
-
"./imagery": {
|
|
34
|
-
"types": "./dist/imagery.d.ts",
|
|
35
|
-
"import": "./dist/imagery.js"
|
|
36
|
-
},
|
|
37
|
-
"./style": {
|
|
38
|
-
"types": "./dist/style.d.ts",
|
|
39
|
-
"import": "./dist/style.js"
|
|
40
|
-
},
|
|
41
|
-
".": {
|
|
42
|
-
"types": "./dist/index.d.ts",
|
|
43
|
-
"import": "./dist/index.js"
|
|
44
|
-
},
|
|
45
|
-
"./i3dm": {
|
|
46
|
-
"types": "./dist/i3dm.d.ts",
|
|
47
|
-
"import": "./dist/i3dm.js"
|
|
48
|
-
},
|
|
49
|
-
"./metadata": {
|
|
50
|
-
"types": "./dist/metadata.d.ts",
|
|
51
|
-
"import": "./dist/metadata.js"
|
|
52
|
-
},
|
|
53
|
-
"./splats": {
|
|
54
|
-
"types": "./dist/splats.d.ts",
|
|
55
|
-
"import": "./dist/splats.js"
|
|
56
|
-
},
|
|
57
|
-
"./s2": {
|
|
58
|
-
"types": "./dist/s2.d.ts",
|
|
59
|
-
"import": "./dist/s2.js"
|
|
60
|
-
},
|
|
61
|
-
"./terrain": {
|
|
62
|
-
"types": "./dist/terrain.d.ts",
|
|
63
|
-
"import": "./dist/terrain.js"
|
|
64
|
-
},
|
|
65
|
-
"./ion": {
|
|
66
|
-
"types": "./dist/ion.d.ts",
|
|
67
|
-
"import": "./dist/ion.js"
|
|
68
|
-
},
|
|
69
|
-
"./features": {
|
|
70
|
-
"types": "./dist/features.d.ts",
|
|
71
|
-
"import": "./dist/features.js"
|
|
72
|
-
},
|
|
73
|
-
"./fade": {
|
|
74
|
-
"types": "./dist/fade.d.ts",
|
|
75
|
-
"import": "./dist/fade.js"
|
|
76
|
-
},
|
|
77
|
-
"./height": {
|
|
78
|
-
"types": "./dist/height.d.ts",
|
|
79
|
-
"import": "./dist/height.js"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"files": [
|
|
83
|
-
"dist",
|
|
84
|
-
"LICENSE",
|
|
85
|
-
"NOTICE"
|
|
86
|
-
],
|
|
87
|
-
"publishConfig": {
|
|
88
|
-
"access": "public"
|
|
89
|
-
},
|
|
90
|
-
"dependencies": {
|
|
91
|
-
"@margoengine/math": "^
|
|
92
|
-
},
|
|
93
|
-
"peerDependencies": {
|
|
94
|
-
"@margoengine/core": "^
|
|
95
|
-
"@margoengine/gltf": "^
|
|
96
|
-
"@margoengine/points": "^
|
|
97
|
-
"@margoengine/decoders": "^
|
|
98
|
-
"@margoengine/splats": "^
|
|
99
|
-
"@margoengine/bvh": "^
|
|
100
|
-
},
|
|
101
|
-
"peerDependenciesMeta": {
|
|
102
|
-
"@margoengine/gltf": {
|
|
103
|
-
"optional": true
|
|
104
|
-
},
|
|
105
|
-
"@margoengine/points": {
|
|
106
|
-
"optional": true
|
|
107
|
-
},
|
|
108
|
-
"@margoengine/decoders": {
|
|
109
|
-
"optional": true
|
|
110
|
-
},
|
|
111
|
-
"@margoengine/splats": {
|
|
112
|
-
"optional": true
|
|
113
|
-
},
|
|
114
|
-
"@margoengine/bvh": {
|
|
115
|
-
"optional": true
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"scripts": {
|
|
119
|
-
"build": "node ../../scripts/build-optional.js tiles",
|
|
120
|
-
"test": "npm run build && node --test tests/*.test.js",
|
|
121
|
-
"test:browser": "npm run build && node tests/tiles-browser.mjs",
|
|
122
|
-
"prepack": "npm run build"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@margoengine/tiles",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Streaming OGC 3D Tiles 1.1: implicit and explicit tilesets, screen-space-error selection, a fetch queue, a memory budget and glTF tiles drawn through gltf/pbr.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"margoengine",
|
|
7
|
+
"webgpu",
|
|
8
|
+
"3d",
|
|
9
|
+
"3d-tiles",
|
|
10
|
+
"ogc",
|
|
11
|
+
"gis",
|
|
12
|
+
"digital-twin",
|
|
13
|
+
"streaming"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://margoengine.com",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/scottcampbelldata/margoengine/issues"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/scottcampbelldata/margoengine.git",
|
|
22
|
+
"directory": "packages/tiles"
|
|
23
|
+
},
|
|
24
|
+
"license": "Apache-2.0",
|
|
25
|
+
"author": "Scott Campbell",
|
|
26
|
+
"type": "module",
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"exports": {
|
|
29
|
+
"./properties": {
|
|
30
|
+
"types": "./dist/properties.d.ts",
|
|
31
|
+
"import": "./dist/properties.js"
|
|
32
|
+
},
|
|
33
|
+
"./imagery": {
|
|
34
|
+
"types": "./dist/imagery.d.ts",
|
|
35
|
+
"import": "./dist/imagery.js"
|
|
36
|
+
},
|
|
37
|
+
"./style": {
|
|
38
|
+
"types": "./dist/style.d.ts",
|
|
39
|
+
"import": "./dist/style.js"
|
|
40
|
+
},
|
|
41
|
+
".": {
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
|
+
"import": "./dist/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./i3dm": {
|
|
46
|
+
"types": "./dist/i3dm.d.ts",
|
|
47
|
+
"import": "./dist/i3dm.js"
|
|
48
|
+
},
|
|
49
|
+
"./metadata": {
|
|
50
|
+
"types": "./dist/metadata.d.ts",
|
|
51
|
+
"import": "./dist/metadata.js"
|
|
52
|
+
},
|
|
53
|
+
"./splats": {
|
|
54
|
+
"types": "./dist/splats.d.ts",
|
|
55
|
+
"import": "./dist/splats.js"
|
|
56
|
+
},
|
|
57
|
+
"./s2": {
|
|
58
|
+
"types": "./dist/s2.d.ts",
|
|
59
|
+
"import": "./dist/s2.js"
|
|
60
|
+
},
|
|
61
|
+
"./terrain": {
|
|
62
|
+
"types": "./dist/terrain.d.ts",
|
|
63
|
+
"import": "./dist/terrain.js"
|
|
64
|
+
},
|
|
65
|
+
"./ion": {
|
|
66
|
+
"types": "./dist/ion.d.ts",
|
|
67
|
+
"import": "./dist/ion.js"
|
|
68
|
+
},
|
|
69
|
+
"./features": {
|
|
70
|
+
"types": "./dist/features.d.ts",
|
|
71
|
+
"import": "./dist/features.js"
|
|
72
|
+
},
|
|
73
|
+
"./fade": {
|
|
74
|
+
"types": "./dist/fade.d.ts",
|
|
75
|
+
"import": "./dist/fade.js"
|
|
76
|
+
},
|
|
77
|
+
"./height": {
|
|
78
|
+
"types": "./dist/height.d.ts",
|
|
79
|
+
"import": "./dist/height.js"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"files": [
|
|
83
|
+
"dist",
|
|
84
|
+
"LICENSE",
|
|
85
|
+
"NOTICE"
|
|
86
|
+
],
|
|
87
|
+
"publishConfig": {
|
|
88
|
+
"access": "public"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"@margoengine/math": "^1.0.0"
|
|
92
|
+
},
|
|
93
|
+
"peerDependencies": {
|
|
94
|
+
"@margoengine/core": "^1.0.0",
|
|
95
|
+
"@margoengine/gltf": "^1.0.0",
|
|
96
|
+
"@margoengine/points": "^1.0.0",
|
|
97
|
+
"@margoengine/decoders": "^1.0.0",
|
|
98
|
+
"@margoengine/splats": "^1.0.0",
|
|
99
|
+
"@margoengine/bvh": "^1.0.0"
|
|
100
|
+
},
|
|
101
|
+
"peerDependenciesMeta": {
|
|
102
|
+
"@margoengine/gltf": {
|
|
103
|
+
"optional": true
|
|
104
|
+
},
|
|
105
|
+
"@margoengine/points": {
|
|
106
|
+
"optional": true
|
|
107
|
+
},
|
|
108
|
+
"@margoengine/decoders": {
|
|
109
|
+
"optional": true
|
|
110
|
+
},
|
|
111
|
+
"@margoengine/splats": {
|
|
112
|
+
"optional": true
|
|
113
|
+
},
|
|
114
|
+
"@margoengine/bvh": {
|
|
115
|
+
"optional": true
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"scripts": {
|
|
119
|
+
"build": "node ../../scripts/build-optional.js tiles",
|
|
120
|
+
"test": "npm run build && node --test tests/*.test.js",
|
|
121
|
+
"test:browser": "npm run build && node tests/tiles-browser.mjs",
|
|
122
|
+
"prepack": "npm run build"
|
|
123
|
+
}
|
|
124
|
+
}
|