@margoengine/labels 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 +507 -507
- package/dist/gpu.js +4 -4
- package/dist/index.js +4 -4
- package/package.json +74 -74
package/dist/gpu.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 { n as e, t } from "./errors-52P7hKm0.js";
|
|
@@ -116,9 +116,9 @@ function u(e) {
|
|
|
116
116
|
height: t.height - r("border-top-width") - r("border-bottom-width") - r("padding-top") - r("padding-bottom")
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
var d = class n {coreRequirement=__margoCoreRequirement("
|
|
120
|
-
static async attach(e, t = {}) {__margoAssertCore(e,__margoCoreRequirement("
|
|
121
|
-
let r = e, i, a = {coreRequirement:/*@__PURE__*/__margoCoreRequirement("
|
|
119
|
+
var d = class n {coreRequirement=__margoCoreRequirement("1.0.0",import.meta.url);
|
|
120
|
+
static async attach(e, t = {}) {__margoAssertCore(e,__margoCoreRequirement("1.0.0",import.meta.url));
|
|
121
|
+
let r = e, i, a = {coreRequirement:/*@__PURE__*/__margoCoreRequirement("1.0.0",import.meta.url),
|
|
122
122
|
name: "gpu-labels:attach:" + c++,
|
|
123
123
|
setup() {
|
|
124
124
|
i = r.sceneOf(a);
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
|
-
const r=(engine,version="
|
|
3
|
+
const r=(engine,version="1.0.0",source=import.meta.url)=>__margoRuntime(engine,version,source);
|
|
4
4
|
import { n as e, r as t, t as n } from "./errors-52P7hKm0.js";
|
|
5
5
|
import { engineRuntime as __margoRuntime, meshRuntime as i } from "@margoengine/core/extension";
|
|
6
6
|
import { createScreenPoint as a, isOrthographic as o, projectPoint as s } from "@margoengine/math/mat4";
|
|
@@ -294,8 +294,8 @@ var D = class extends T {
|
|
|
294
294
|
get ownMatrix() {
|
|
295
295
|
return this.own;
|
|
296
296
|
}
|
|
297
|
-
}, O = class t {coreRequirement=__margoCoreRequirement("
|
|
298
|
-
static attach(e, i) {__margoAssertCore(e,__margoCoreRequirement("
|
|
297
|
+
}, O = class t {coreRequirement=__margoCoreRequirement("1.0.0",import.meta.url);
|
|
298
|
+
static attach(e, i) {__margoAssertCore(e,__margoCoreRequirement("1.0.0",import.meta.url));
|
|
299
299
|
let a = i?.name ?? "margoengine-labels";
|
|
300
300
|
if (r(e).plugins.has(a)) throw n("state", `A plugin named "${a}" is already attached; reuse its LabelRenderer or pass an unused name in LabelRenderer.attach(engine, { name: 'annotations' })`);
|
|
301
301
|
let o = new t(i);
|
package/package.json
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@margoengine/labels",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "HTML labels and CSS 3D objects positioned over a Margo Engine canvas.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"margoengine",
|
|
7
|
-
"webgpu",
|
|
8
|
-
"3d",
|
|
9
|
-
"labels"
|
|
10
|
-
],
|
|
11
|
-
"homepage": "https://margoengine.com",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/scottcampbelldata/margoengine/issues"
|
|
14
|
-
},
|
|
15
|
-
"repository": {
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/scottcampbelldata/margoengine.git",
|
|
18
|
-
"directory": "packages/labels"
|
|
19
|
-
},
|
|
20
|
-
"license": "Apache-2.0",
|
|
21
|
-
"author": "Scott Campbell",
|
|
22
|
-
"type": "module",
|
|
23
|
-
"publishConfig": {
|
|
24
|
-
"access": "public"
|
|
25
|
-
},
|
|
26
|
-
"scripts": {
|
|
27
|
-
"build": "node scripts/build.js",
|
|
28
|
-
"test": "npm run build && node --test tests/*.test.js ../../examples/package-benchmarks/proofs/package-guard.mjs",
|
|
29
|
-
"test:browser": "npm run build && node scripts/test-browser.js",
|
|
30
|
-
"prepack": "npm run build"
|
|
31
|
-
},
|
|
32
|
-
"sideEffects": false,
|
|
33
|
-
"exports": {
|
|
34
|
-
".": {
|
|
35
|
-
"types": "./dist/index.d.ts",
|
|
36
|
-
"import": "./dist/index.js"
|
|
37
|
-
},
|
|
38
|
-
"./declutter": {
|
|
39
|
-
"types": "./dist/declutter.d.ts",
|
|
40
|
-
"import": "./dist/declutter.js"
|
|
41
|
-
},
|
|
42
|
-
"./callouts": {
|
|
43
|
-
"types": "./dist/callouts.d.ts",
|
|
44
|
-
"import": "./dist/callouts.js"
|
|
45
|
-
},
|
|
46
|
-
"./gpu": {
|
|
47
|
-
"types": "./dist/gpu.d.ts",
|
|
48
|
-
"import": "./dist/gpu.js"
|
|
49
|
-
},
|
|
50
|
-
"./distance": {
|
|
51
|
-
"types": "./dist/distance.d.ts",
|
|
52
|
-
"import": "./dist/distance.js"
|
|
53
|
-
},
|
|
54
|
-
"./cluster": {
|
|
55
|
-
"types": "./dist/cluster.d.ts",
|
|
56
|
-
"import": "./dist/cluster.js"
|
|
57
|
-
},
|
|
58
|
-
"./callouts-route": {
|
|
59
|
-
"types": "./dist/callouts-route.d.ts",
|
|
60
|
-
"import": "./dist/callouts-route.js"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"files": [
|
|
64
|
-
"dist",
|
|
65
|
-
"NOTICE"
|
|
66
|
-
],
|
|
67
|
-
"dependencies": {
|
|
68
|
-
"@margoengine/math": "^
|
|
69
|
-
"@margoengine/text": "^
|
|
70
|
-
},
|
|
71
|
-
"peerDependencies": {
|
|
72
|
-
"@margoengine/core": "^
|
|
73
|
-
}
|
|
74
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@margoengine/labels",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "HTML labels and CSS 3D objects positioned over a Margo Engine canvas.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"margoengine",
|
|
7
|
+
"webgpu",
|
|
8
|
+
"3d",
|
|
9
|
+
"labels"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://margoengine.com",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/scottcampbelldata/margoengine/issues"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/scottcampbelldata/margoengine.git",
|
|
18
|
+
"directory": "packages/labels"
|
|
19
|
+
},
|
|
20
|
+
"license": "Apache-2.0",
|
|
21
|
+
"author": "Scott Campbell",
|
|
22
|
+
"type": "module",
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "node scripts/build.js",
|
|
28
|
+
"test": "npm run build && node --test tests/*.test.js ../../examples/package-benchmarks/proofs/package-guard.mjs",
|
|
29
|
+
"test:browser": "npm run build && node scripts/test-browser.js",
|
|
30
|
+
"prepack": "npm run build"
|
|
31
|
+
},
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"exports": {
|
|
34
|
+
".": {
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"import": "./dist/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./declutter": {
|
|
39
|
+
"types": "./dist/declutter.d.ts",
|
|
40
|
+
"import": "./dist/declutter.js"
|
|
41
|
+
},
|
|
42
|
+
"./callouts": {
|
|
43
|
+
"types": "./dist/callouts.d.ts",
|
|
44
|
+
"import": "./dist/callouts.js"
|
|
45
|
+
},
|
|
46
|
+
"./gpu": {
|
|
47
|
+
"types": "./dist/gpu.d.ts",
|
|
48
|
+
"import": "./dist/gpu.js"
|
|
49
|
+
},
|
|
50
|
+
"./distance": {
|
|
51
|
+
"types": "./dist/distance.d.ts",
|
|
52
|
+
"import": "./dist/distance.js"
|
|
53
|
+
},
|
|
54
|
+
"./cluster": {
|
|
55
|
+
"types": "./dist/cluster.d.ts",
|
|
56
|
+
"import": "./dist/cluster.js"
|
|
57
|
+
},
|
|
58
|
+
"./callouts-route": {
|
|
59
|
+
"types": "./dist/callouts-route.d.ts",
|
|
60
|
+
"import": "./dist/callouts-route.js"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"files": [
|
|
64
|
+
"dist",
|
|
65
|
+
"NOTICE"
|
|
66
|
+
],
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@margoengine/math": "^1.0.0",
|
|
69
|
+
"@margoengine/text": "^1.0.0"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"@margoengine/core": "^1.0.0"
|
|
73
|
+
}
|
|
74
|
+
}
|