@weasel-js/ui-canvas 0.0.0-stage → 2.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 +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-CSqKZvwS.js +295 -0
- package/dist/chunks/CharacterOptions-CSqKZvwS.js.map +1 -0
- package/dist/chunks/PlotDataPanel-uHdh4X0l.js +263 -0
- package/dist/chunks/PlotDataPanel-uHdh4X0l.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-CcXyTVav.js +80 -0
- package/dist/chunks/SceneGradientHandles-CcXyTVav.js.map +1 -0
- package/dist/chunks/SceneLayerList-D2yc3eIk.js +185 -0
- package/dist/chunks/SceneLayerList-D2yc3eIk.js.map +1 -0
- package/dist/chunks/SelectionPanel-Dz6_c0rd.js +320 -0
- package/dist/chunks/SelectionPanel-Dz6_c0rd.js.map +1 -0
- package/dist/components/PlotDataPanel/PlotDataPanel.d.ts +19 -0
- package/dist/components/PlotDataPanel/PlotDataPanel.d.ts.map +1 -0
- package/dist/components/PlotDataPanel/PlotTableView.d.ts +14 -0
- package/dist/components/PlotDataPanel/PlotTableView.d.ts.map +1 -0
- package/dist/components/PlotDataPanel/index.d.ts +5 -0
- package/dist/components/PlotDataPanel/index.d.ts.map +1 -0
- package/dist/components/PlotDataPanel/index.js +3 -0
- package/dist/components/PlotDataPanel/rowIds.d.ts +17 -0
- package/dist/components/PlotDataPanel/rowIds.d.ts.map +1 -0
- package/dist/components/PlotDataPanel/valueControl.d.ts +13 -0
- package/dist/components/PlotDataPanel/valueControl.d.ts.map +1 -0
- package/dist/components/Rulers/Rulers.d.ts +18 -0
- package/dist/components/Rulers/Rulers.d.ts.map +1 -0
- package/dist/components/Rulers/index.d.ts +3 -0
- package/dist/components/Rulers/index.d.ts.map +1 -0
- package/dist/components/Rulers/index.js +3 -0
- package/dist/components/SceneGradientHandles/SceneGradientHandles.d.ts +41 -0
- package/dist/components/SceneGradientHandles/SceneGradientHandles.d.ts.map +1 -0
- package/dist/components/SceneGradientHandles/index.d.ts +2 -0
- package/dist/components/SceneGradientHandles/index.d.ts.map +1 -0
- package/dist/components/SceneGradientHandles/index.js +3 -0
- package/dist/components/SceneLayerList/index.d.ts +2 -0
- package/dist/components/SceneLayerList/index.d.ts.map +1 -0
- package/dist/components/SceneLayerList/index.js +3 -0
- package/dist/components/SceneLayerList/useSceneLayerList.d.ts +47 -0
- package/dist/components/SceneLayerList/useSceneLayerList.d.ts.map +1 -0
- package/dist/components/inspector/AnchorFields/AnchorFields.d.ts +34 -0
- package/dist/components/inspector/AnchorFields/AnchorFields.d.ts.map +1 -0
- package/dist/components/inspector/AnchorFields/index.d.ts +2 -0
- package/dist/components/inspector/AnchorFields/index.d.ts.map +1 -0
- package/dist/components/inspector/AnchorFields/index.js +3 -0
- package/dist/components/inspector/CharacterOptions/CharacterOptions.d.ts +27 -0
- package/dist/components/inspector/CharacterOptions/CharacterOptions.d.ts.map +1 -0
- package/dist/components/inspector/CharacterOptions/characterSchema.d.ts +169 -0
- package/dist/components/inspector/CharacterOptions/characterSchema.d.ts.map +1 -0
- package/dist/components/inspector/CharacterOptions/index.d.ts +4 -0
- package/dist/components/inspector/CharacterOptions/index.d.ts.map +1 -0
- package/dist/components/inspector/CharacterOptions/index.js +3 -0
- package/dist/components/inspector/SelectionPanel/SelectionPanel.d.ts +80 -0
- package/dist/components/inspector/SelectionPanel/SelectionPanel.d.ts.map +1 -0
- package/dist/components/inspector/SelectionPanel/commitLeaf.d.ts +23 -0
- package/dist/components/inspector/SelectionPanel/commitLeaf.d.ts.map +1 -0
- package/dist/components/inspector/SelectionPanel/declaredFields.d.ts +19 -0
- package/dist/components/inspector/SelectionPanel/declaredFields.d.ts.map +1 -0
- package/dist/components/inspector/SelectionPanel/index.d.ts +3 -0
- package/dist/components/inspector/SelectionPanel/index.d.ts.map +1 -0
- package/dist/components/inspector/SelectionPanel/index.js +3 -0
- package/dist/components/inspector/SelectionPanel/nodeModel.d.ts +14 -0
- package/dist/components/inspector/SelectionPanel/nodeModel.d.ts.map +1 -0
- package/dist/components/inspector/SelectionPanel/scopes.d.ts +7 -0
- package/dist/components/inspector/SelectionPanel/scopes.d.ts.map +1 -0
- package/dist/icons.gen.d.ts +3 -0
- package/dist/icons.gen.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/kitIcons.d.ts +4 -0
- package/dist/kitIcons.d.ts.map +1 -0
- package/dist/kitIcons.js +18 -0
- package/dist/kitIcons.js.map +1 -0
- package/dist/style.css +119 -0
- package/package.json +85 -4
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { NodeId } from '@weasel-js/routing';
|
|
2
|
+
import type { NodeClip, SceneNode } from '@weasel-js/core';
|
|
3
|
+
import type { UnitScope } from '@weasel-js/quantity';
|
|
4
|
+
/** The scene methods that record a declared field. */
|
|
5
|
+
interface DeclaredWrites {
|
|
6
|
+
setClip(id: NodeId, clip: NodeClip | null): void;
|
|
7
|
+
setUnits(id: NodeId, units: UnitScope | null): void;
|
|
8
|
+
}
|
|
9
|
+
/** A node's field that a schema key can name outright: what the node declares for its children, stored
|
|
10
|
+
* beside `pose` and `data` and written through the scene method that records it. */
|
|
11
|
+
interface DeclaredField {
|
|
12
|
+
write(scene: DeclaredWrites, id: NodeId, value: unknown): void;
|
|
13
|
+
}
|
|
14
|
+
/** The declared field a path's first segment names, if it names one. */
|
|
15
|
+
export declare const declaredField: (head: string | undefined) => DeclaredField | undefined;
|
|
16
|
+
/** What `node` holds in the field a path's first segment names: `pose`, `data`, or a declared field. */
|
|
17
|
+
export declare function nodeRoot(node: SceneNode<unknown, string, unknown>, head: string | undefined): unknown;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=declaredFields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declaredFields.d.ts","sourceRoot":"","sources":["../../../../src/components/inspector/SelectionPanel/declaredFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAErD,sDAAsD;AACtD,UAAU,cAAc;IACtB,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;CACrD;AAED;qFACqF;AACrF,UAAU,aAAa;IACrB,KAAK,CAAC,KAAK,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CAChE;AASD,wEAAwE;AACxE,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,GAAG,SAAS,KAAG,aAAa,GAAG,SAC1B,CAAC;AAEhD,wGAAwG;AACxG,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAIrG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/inspector/SelectionPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AnyNode } from '@weasel-js/core';
|
|
2
|
+
import { type Mixed } from '@weasel-js/ui/components/PanelCells';
|
|
3
|
+
/** A scene node of any data, layer, and pose. */
|
|
4
|
+
export type { AnyNode };
|
|
5
|
+
/** Read a node value at a dotted path of any depth (`pose.x`,
|
|
6
|
+
* `data.style.fontSize`, `data.style.fill.paint.color`), or at a field the
|
|
7
|
+
* node declares for its children (`clip`, `units.unit`). Returns `undefined`
|
|
8
|
+
* for a bare `pose` or `data` (mirrors `commit`'s no-op on a malformed schema
|
|
9
|
+
* key) or if any intermediate segment is missing or not an object. */
|
|
10
|
+
export declare function nodeValueAt(node: AnyNode, path: string): unknown;
|
|
11
|
+
/** A path's value shared across nodes, or `MIXED`. A node
|
|
12
|
+
* holding nothing there reads as `absent`. */
|
|
13
|
+
export declare function sharedNodeValue(nodes: readonly AnyNode[], path: string, absent?: unknown): unknown | Mixed;
|
|
14
|
+
//# sourceMappingURL=nodeModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeModel.d.ts","sourceRoot":"","sources":["../../../../src/components/inspector/SelectionPanel/nodeModel.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAe,KAAK,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAG9E,iDAAiD;AACjD,YAAY,EAAE,OAAO,EAAE,CAAC;AAExB;;;;uEAIuE;AACvE,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAUhE;AAED;+CAC+C;AAC/C,wBAAgB,eAAe,CAC7B,KAAK,EAAE,SAAS,OAAO,EAAE,EACzB,IAAI,EAAE,MAAM,EACZ,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,GAAG,KAAK,CAOjB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { UnitScope } from '@weasel-js/quantity';
|
|
2
|
+
import { type ScopedScene } from '@weasel-js/core';
|
|
3
|
+
import { type PanelSection } from '@weasel-js/ui/components/PanelCells';
|
|
4
|
+
import type { AnyNode } from './nodeModel.js';
|
|
5
|
+
/** `sections` with every leaf read where `nodes` sit under `root`: the scopes they share. */
|
|
6
|
+
export declare function sectionsInScopes(sections: PanelSection[], scene: ScopedScene, nodes: readonly AnyNode[], root: UnitScope | undefined): PanelSection[];
|
|
7
|
+
//# sourceMappingURL=scopes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../../../src/components/inspector/SelectionPanel/scopes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAmC,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpF,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACxG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,6FAA6F;AAC7F,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,GACnG,YAAY,EAAE,CAQhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.gen.d.ts","sourceRoot":"","sources":["../src/icons.gen.ts"],"names":[],"mappings":"AAIA,yGAAyG;AACzG,eAAO,MAAM,IAAI,4FAAiC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './components/inspector/AnchorFields/index.js';
|
|
2
|
+
export * from './components/inspector/CharacterOptions/index.js';
|
|
3
|
+
export * from './components/inspector/SelectionPanel/index.js';
|
|
4
|
+
export * from './components/PlotDataPanel/index.js';
|
|
5
|
+
export * from './components/Rulers/index.js';
|
|
6
|
+
export * from './components/SceneGradientHandles/index.js';
|
|
7
|
+
export * from './components/SceneLayerList/index.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC"}
|
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-CSqKZvwS.js";
|
|
3
|
+
import { n as nodeValueAt, r as sharedNodeValue, t as SelectionPanel } from "./chunks/SelectionPanel-Dz6_c0rd.js";
|
|
4
|
+
import { n as PlotTableView, t as PlotDataPanel } from "./chunks/PlotDataPanel-uHdh4X0l.js";
|
|
5
|
+
import { t as Rulers } from "./chunks/Rulers-hkPFdPkH.js";
|
|
6
|
+
import { t as SceneGradientHandles } from "./chunks/SceneGradientHandles-CcXyTVav.js";
|
|
7
|
+
import { n as useSceneLayerList, t as ANNOTATION_LAYER_ROW } from "./chunks/SceneLayerList-D2yc3eIk.js";
|
|
8
|
+
|
|
9
|
+
export { ANNOTATION_LAYER_ROW, AnchorFields, CHARACTER_OPTIONS, CharacterOptions, PlotDataPanel, PlotTableView, Rulers, SceneGradientHandles, SelectionPanel, isCharacterChrome, nodeValueAt, sharedNodeValue, useSceneLayerList };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IconTable } from '@weasel-js/icons';
|
|
2
|
+
/** 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. */
|
|
3
|
+
export declare const kitIcons: readonly IconTable[];
|
|
4
|
+
//# sourceMappingURL=kitIcons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kitIcons.d.ts","sourceRoot":"","sources":["../src/kitIcons.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAKlD,uKAAuK;AACvK,eAAO,MAAM,QAAQ,EAAE,SAAS,SAAS,EAAmE,CAAC"}
|
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,87 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weasel-js/ui-canvas",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "2.0.0",
|
|
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": "2.0.0",
|
|
38
|
+
"@weasel-js/icons": "2.0.0",
|
|
39
|
+
"@weasel-js/paint": "2.0.0",
|
|
40
|
+
"@weasel-js/paint-kinds": "2.0.0",
|
|
41
|
+
"@weasel-js/plot": "2.0.0",
|
|
42
|
+
"@weasel-js/prefs": "2.0.0",
|
|
43
|
+
"@weasel-js/quantity": "2.0.0",
|
|
44
|
+
"@weasel-js/react": "2.0.0",
|
|
45
|
+
"@weasel-js/registry": "2.0.0",
|
|
46
|
+
"@weasel-js/renderer": "2.0.0",
|
|
47
|
+
"@weasel-js/routing": "2.0.0",
|
|
48
|
+
"@weasel-js/text": "2.0.0",
|
|
49
|
+
"@weasel-js/ui": "2.0.0"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@weasel-js/core": "2.0.0",
|
|
53
|
+
"@weasel-js/editing": "2.0.0",
|
|
54
|
+
"@weasel-js/guides": "2.0.0",
|
|
55
|
+
"react": ">=18",
|
|
56
|
+
"react-dom": ">=18"
|
|
57
|
+
},
|
|
58
|
+
"author": "orochi235",
|
|
59
|
+
"homepage": "https://orochi235.github.io/weasel/",
|
|
60
|
+
"repository": {
|
|
61
|
+
"type": "git",
|
|
62
|
+
"url": "git+https://github.com/orochi235/weasel.git",
|
|
63
|
+
"directory": "packages/ui-canvas"
|
|
64
|
+
},
|
|
65
|
+
"bugs": {
|
|
66
|
+
"url": "https://github.com/orochi235/weasel/issues"
|
|
67
|
+
},
|
|
68
|
+
"engines": {
|
|
69
|
+
"node": ">=24"
|
|
70
|
+
},
|
|
71
|
+
"files": [
|
|
72
|
+
"dist",
|
|
73
|
+
"README.md",
|
|
74
|
+
"LICENSE"
|
|
75
|
+
],
|
|
76
|
+
"scripts": {
|
|
77
|
+
"build": "vite build && tsc -p tsconfig.build.json && node ../../scripts/dts-extensions.mjs dist && node ../labkit/scripts/build-css.mjs --if-built",
|
|
78
|
+
"test": "node ../../scripts/package-test.mjs"
|
|
79
|
+
},
|
|
80
|
+
"publishConfig": {
|
|
81
|
+
"access": "public",
|
|
82
|
+
"provenance": true
|
|
83
|
+
},
|
|
84
|
+
"devDependencies": {
|
|
85
|
+
"@weasel-js/history": "2.0.0"
|
|
86
|
+
}
|
|
87
|
+
}
|