@weasel-js/ui-canvas 0.0.0-stage → 1.19.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/LICENSE +21 -0
- package/README.md +36 -2
- package/dist/chunks/AnchorFields-Cam1xwpt.js +69 -0
- package/dist/chunks/AnchorFields-Cam1xwpt.js.map +1 -0
- package/dist/chunks/CharacterOptions-BcT_lWjg.js +284 -0
- package/dist/chunks/CharacterOptions-BcT_lWjg.js.map +1 -0
- package/dist/chunks/PlotDataPanel-DUNod3NJ.js +257 -0
- package/dist/chunks/PlotDataPanel-DUNod3NJ.js.map +1 -0
- package/dist/chunks/Rulers-hkPFdPkH.js +136 -0
- package/dist/chunks/Rulers-hkPFdPkH.js.map +1 -0
- package/dist/chunks/SceneGradientHandles-CHNSWx7U.js +77 -0
- package/dist/chunks/SceneGradientHandles-CHNSWx7U.js.map +1 -0
- package/dist/chunks/SceneLayerList-DCYwqZkF.js +182 -0
- package/dist/chunks/SceneLayerList-DCYwqZkF.js.map +1 -0
- package/dist/chunks/SelectionPanel-n-dIMvQ2.js +323 -0
- package/dist/chunks/SelectionPanel-n-dIMvQ2.js.map +1 -0
- package/dist/components/PlotDataPanel/index.js +3 -0
- package/dist/components/Rulers/index.js +3 -0
- package/dist/components/SceneGradientHandles/index.js +3 -0
- package/dist/components/SceneLayerList/index.js +3 -0
- package/dist/components/inspector/AnchorFields/index.js +3 -0
- package/dist/components/inspector/CharacterOptions/index.js +3 -0
- package/dist/components/inspector/SelectionPanel/index.js +3 -0
- package/dist/index.js +9 -0
- package/dist/kitIcons.js +18 -0
- package/dist/kitIcons.js.map +1 -0
- package/dist/style.css +119 -0
- package/package.json +83 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { t as AnchorFields } from "./chunks/AnchorFields-Cam1xwpt.js";
|
|
2
|
+
import { n as isCharacterChrome, r as CHARACTER_OPTIONS, t as CharacterOptions } from "./chunks/CharacterOptions-BcT_lWjg.js";
|
|
3
|
+
import { i as nodeValueAt, n as aggregateValue, r as classifyKind, t as SelectionPanel } from "./chunks/SelectionPanel-n-dIMvQ2.js";
|
|
4
|
+
import { n as PlotTableView, t as PlotDataPanel } from "./chunks/PlotDataPanel-DUNod3NJ.js";
|
|
5
|
+
import { t as Rulers } from "./chunks/Rulers-hkPFdPkH.js";
|
|
6
|
+
import { t as SceneGradientHandles } from "./chunks/SceneGradientHandles-CHNSWx7U.js";
|
|
7
|
+
import { n as useSceneLayerList, t as ANNOTATION_LAYER_ROW } from "./chunks/SceneLayerList-DCYwqZkF.js";
|
|
8
|
+
|
|
9
|
+
export { ANNOTATION_LAYER_ROW, AnchorFields, CHARACTER_OPTIONS, CharacterOptions, PlotDataPanel, PlotTableView, Rulers, SceneGradientHandles, SelectionPanel, aggregateValue, classifyKind, isCharacterChrome, nodeValueAt, useSceneLayerList };
|
package/dist/kitIcons.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { icons } from "@weasel-js/core/icons";
|
|
2
|
+
import { icons as icons$1 } from "@weasel-js/editing/icons";
|
|
3
|
+
import { icons as icons$2 } from "@weasel-js/icons/shapes";
|
|
4
|
+
import { icons as icons$3 } from "@weasel-js/paint-kinds/icons";
|
|
5
|
+
import { icons as icons$4 } from "@weasel-js/ui/icons";
|
|
6
|
+
|
|
7
|
+
// src/kitIcons.ts
|
|
8
|
+
/** Core's, editing's, the shapes', the paint kinds' and ui's icon tables, whole: for a registry that should hold every kit glyph, such as a workshop's or a test's. */
|
|
9
|
+
var kitIcons = [
|
|
10
|
+
icons,
|
|
11
|
+
icons$1,
|
|
12
|
+
icons$2,
|
|
13
|
+
icons$3,
|
|
14
|
+
icons$4
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
export { kitIcons };
|
|
18
|
+
//# sourceMappingURL=kitIcons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kitIcons.js","names":["coreIcons","editingIcons","shapeIcons","paintKindIcons","uiIcons"],"sources":["../src/kitIcons.ts"],"sourcesContent":["import { icons as coreIcons } from '@weasel-js/core/icons';\nimport { icons as editingIcons } from '@weasel-js/editing/icons';\nimport type { IconTable } from '@weasel-js/icons';\nimport { icons as shapeIcons } from '@weasel-js/icons/shapes';\nimport { icons as paintKindIcons } from '@weasel-js/paint-kinds/icons';\nimport { icons as uiIcons } from '@weasel-js/ui/icons';\n\n/** Core's, editing's, the shapes', the paint kinds' and ui's icon tables, whole: for a registry that should hold every kit glyph, such as a workshop's or a test's. */\nexport const kitIcons: readonly IconTable[] = [coreIcons, editingIcons, shapeIcons, paintKindIcons, uiIcons];\n"],"mappings":";;;;;;;;AAQA,IAAa,WAAiC;CAACA;CAAWC;CAAcC;CAAYC;CAAgBC;AAAO"}
|
package/dist/style.css
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
._table_8c611e {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
gap: var(--wzl-space-2);
|
|
6
|
+
/* A grid wider than its sidebar scrolls inside it rather than stretching the panel. */
|
|
7
|
+
max-inline-size: 100%;
|
|
8
|
+
overflow-x: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
._cell_8c611e {
|
|
12
|
+
min-inline-size: 4rem;
|
|
13
|
+
inline-size: 100%;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
._heading_8c611e {
|
|
17
|
+
font-size: var(--wzl-font-size-sm);
|
|
18
|
+
font-weight: var(--wzl-font-weight-bold);
|
|
19
|
+
color: var(--wzl-fg-muted);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
._nested_8c611e {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
gap: var(--wzl-space-3);
|
|
26
|
+
padding-inline-start: var(--wzl-space-4);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
._rowActions_8c611e {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: var(--wzl-space-1);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
._add_8c611e {
|
|
36
|
+
align-self: flex-start;
|
|
37
|
+
}
|
|
38
|
+
/* Numeric text: equal-width digits in the UI face. This is the one definition —
|
|
39
|
+
* compose it, mix it into Less, or put its class on the element; never restate
|
|
40
|
+
* the pair. `npm run check:numeric` holds every stylesheet to that. */._numeric_25fd0b {
|
|
41
|
+
font-family: var(--wzl-font-numeric);
|
|
42
|
+
font-variant-numeric: tabular-nums;
|
|
43
|
+
}
|
|
44
|
+
/* Provisional look: theme tokens only, until the maintainer settles it. */
|
|
45
|
+
._rulers_f94859 {
|
|
46
|
+
position: absolute;
|
|
47
|
+
inset: 0;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
pointer-events: none;
|
|
50
|
+
user-select: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
._strip_f94859 {
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 0;
|
|
56
|
+
left: 0;
|
|
57
|
+
color: var(--wzl-fg-muted);
|
|
58
|
+
background: var(--wzl-surface);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
._ticks_f94859 {
|
|
62
|
+
fill: none;
|
|
63
|
+
stroke: currentcolor;
|
|
64
|
+
stroke-width: 1;
|
|
65
|
+
shape-rendering: crispEdges;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
._edge_f94859 {
|
|
69
|
+
fill: none;
|
|
70
|
+
stroke: var(--wzl-border);
|
|
71
|
+
stroke-width: 1;
|
|
72
|
+
shape-rendering: crispEdges;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
._label_f94859 {
|
|
76
|
+
fill: currentcolor;
|
|
77
|
+
font-size: var(--wzl-font-size-2xs);
|
|
78
|
+
dominant-baseline: central;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
._pointer_f94859 {
|
|
82
|
+
stroke: var(--wzl-accent);
|
|
83
|
+
stroke-width: 1;
|
|
84
|
+
shape-rendering: crispEdges;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
._unit_f94859 {
|
|
88
|
+
fill: currentcolor;
|
|
89
|
+
font-size: var(--wzl-font-size-2xs);
|
|
90
|
+
text-anchor: middle;
|
|
91
|
+
dominant-baseline: central;
|
|
92
|
+
}
|
|
93
|
+
/* A field's text is set at its row label's size. */
|
|
94
|
+
._root_b9d690 {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));
|
|
98
|
+
color: var(--wzl-fg);
|
|
99
|
+
--wzl-field-font-size: var(--wzl-params-text-size, var(--wzl-font-size-sm));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
._header_b9d690 {
|
|
103
|
+
display: flex;
|
|
104
|
+
align-items: baseline;
|
|
105
|
+
gap: var(--wzl-space-4);
|
|
106
|
+
padding: var(--wzl-space-4) 0;
|
|
107
|
+
border-block-end: 1px solid var(--wzl-border);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
._kind_b9d690 {
|
|
111
|
+
font-weight: var(--wzl-font-weight-bold);
|
|
112
|
+
font-size: var(--wzl-font-size);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
._breakdown_b9d690 {
|
|
116
|
+
font-size: var(--wzl-font-size-sm);
|
|
117
|
+
opacity: 0.6;
|
|
118
|
+
}
|
|
119
|
+
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,85 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weasel-js/ui-canvas",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.19.1",
|
|
4
|
+
"description": "The ui components bound to a weasel canvas: the selection inspector and its anchor and character fields, scene-bound layer lists and gradient handles, rulers, the plot data panel, and every kit icon table at once.",
|
|
5
|
+
"weasel": {
|
|
6
|
+
"tier": "plugin"
|
|
7
|
+
},
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"sideEffects": [
|
|
11
|
+
"*.css"
|
|
12
|
+
],
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"module": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./components/inspector/*": {
|
|
22
|
+
"types": "./dist/components/inspector/*/index.d.ts",
|
|
23
|
+
"import": "./dist/components/inspector/*/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./components/*": {
|
|
26
|
+
"types": "./dist/components/*/index.d.ts",
|
|
27
|
+
"import": "./dist/components/*/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./kit-icons": {
|
|
30
|
+
"types": "./dist/kitIcons.d.ts",
|
|
31
|
+
"import": "./dist/kitIcons.js"
|
|
32
|
+
},
|
|
33
|
+
"./style.css": "./dist/style.css",
|
|
34
|
+
"./package.json": "./package.json"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@weasel-js/geom": "1.19.1",
|
|
38
|
+
"@weasel-js/guides": "1.19.1",
|
|
39
|
+
"@weasel-js/history": "1.19.1",
|
|
40
|
+
"@weasel-js/icons": "1.19.1",
|
|
41
|
+
"@weasel-js/paint": "1.19.1",
|
|
42
|
+
"@weasel-js/paint-kinds": "1.19.1",
|
|
43
|
+
"@weasel-js/plot": "1.19.1",
|
|
44
|
+
"@weasel-js/prefs": "1.19.1",
|
|
45
|
+
"@weasel-js/quantity": "1.19.1",
|
|
46
|
+
"@weasel-js/react": "1.19.1",
|
|
47
|
+
"@weasel-js/registry": "1.19.1",
|
|
48
|
+
"@weasel-js/renderer": "1.19.1",
|
|
49
|
+
"@weasel-js/routing": "1.19.1",
|
|
50
|
+
"@weasel-js/text": "1.19.1",
|
|
51
|
+
"@weasel-js/ui": "1.19.1"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"@weasel-js/core": "1.19.1",
|
|
55
|
+
"@weasel-js/editing": "1.19.1",
|
|
56
|
+
"react": ">=18",
|
|
57
|
+
"react-dom": ">=18"
|
|
58
|
+
},
|
|
59
|
+
"author": "orochi235",
|
|
60
|
+
"homepage": "https://orochi235.github.io/weasel/",
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "git+https://github.com/orochi235/weasel.git",
|
|
64
|
+
"directory": "packages/ui-canvas"
|
|
65
|
+
},
|
|
66
|
+
"bugs": {
|
|
67
|
+
"url": "https://github.com/orochi235/weasel/issues"
|
|
68
|
+
},
|
|
69
|
+
"engines": {
|
|
70
|
+
"node": ">=24"
|
|
71
|
+
},
|
|
72
|
+
"files": [
|
|
73
|
+
"dist",
|
|
74
|
+
"README.md",
|
|
75
|
+
"LICENSE"
|
|
76
|
+
],
|
|
77
|
+
"scripts": {
|
|
78
|
+
"build": "vite build && tsc -p tsconfig.build.json && node ../../scripts/dts-extensions.mjs dist && node ../labkit/scripts/build-css.mjs --if-built",
|
|
79
|
+
"test": "node ../../scripts/package-test.mjs"
|
|
80
|
+
},
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"access": "public",
|
|
83
|
+
"provenance": true
|
|
84
|
+
}
|
|
85
|
+
}
|