@nubisco/ui 1.39.1 → 1.40.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/dist/components/Blueprint.context.d.ts +9 -1
- package/dist/components/Blueprint.context.d.ts.map +1 -1
- package/dist/components/Blueprint.renderer.d.ts +85 -0
- package/dist/components/Blueprint.renderer.d.ts.map +1 -0
- package/dist/components/Blueprint.types.d.ts +179 -0
- package/dist/components/Blueprint.types.d.ts.map +1 -1
- package/dist/components/Blueprint.vue.d.ts +24 -6
- package/dist/components/Blueprint.vue.d.ts.map +1 -1
- package/dist/components/BlueprintCard.vue.d.ts.map +1 -1
- package/dist/components/BlueprintControls.vue.d.ts +11 -0
- package/dist/components/BlueprintControls.vue.d.ts.map +1 -0
- package/dist/components/BlueprintDomRenderer.vue.d.ts +30 -0
- package/dist/components/BlueprintDomRenderer.vue.d.ts.map +1 -0
- package/dist/components/BlueprintMinimap.vue.d.ts +11 -0
- package/dist/components/BlueprintMinimap.vue.d.ts.map +1 -0
- package/dist/components/BlueprintPixiRenderer.vue.d.ts +32 -0
- package/dist/components/BlueprintPixiRenderer.vue.d.ts.map +1 -0
- package/dist/components/Charts/InterpolationChart.vue.d.ts +1 -1
- package/dist/components/DatePicker.vue.d.ts +3 -3
- package/dist/components/Grid.vue.d.ts +1 -1
- package/dist/components/JsonTree.vue.d.ts +1 -1
- package/dist/components/NumberInput.vue.d.ts +3 -3
- package/dist/components/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/Radio.vue.d.ts +2 -2
- package/dist/components/Select.vue.d.ts +1 -1
- package/dist/components/Slider.vue.d.ts +2 -2
- package/dist/components/TextInput.vue.d.ts +3 -3
- package/dist/components/TextInput.vue.d.ts.map +1 -1
- package/dist/components/TreeNode.vue.d.ts +2 -2
- package/dist/components/blueprint-pixi/level-color.d.ts +2 -0
- package/dist/components/blueprint-pixi/level-color.d.ts.map +1 -0
- package/dist/components/blueprint-pixi/live-data.d.ts +19 -0
- package/dist/components/blueprint-pixi/live-data.d.ts.map +1 -0
- package/dist/components/blueprint-pixi/pixi-color.d.ts +10 -0
- package/dist/components/blueprint-pixi/pixi-color.d.ts.map +1 -0
- package/dist/components/blueprint-pixi/pixi-scene.d.ts +103 -0
- package/dist/components/blueprint-pixi/pixi-scene.d.ts.map +1 -0
- package/dist/components/blueprint-pixi/wire-path.d.ts +25 -0
- package/dist/components/blueprint-pixi/wire-path.d.ts.map +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/labs/Spreadsheet.vue.d.ts +2 -2
- package/dist/components/labs/Spreadsheet.vue.d.ts.map +1 -1
- package/dist/composables/useBlueprint.composable.d.ts +23 -0
- package/dist/composables/useBlueprint.composable.d.ts.map +1 -0
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +11712 -11053
- package/dist/index.mjs.map +1 -1
- package/dist/main.d.ts +8 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/pixi-scene-BKcn6pWT.js +300 -0
- package/dist/pixi-scene-BKcn6pWT.js.map +1 -0
- package/dist/pixi-scene-D8kAPyID.cjs +2 -0
- package/dist/pixi-scene-D8kAPyID.cjs.map +1 -0
- package/dist/ui.css +1 -1
- package/package.json +8 -1
|
@@ -4,13 +4,13 @@ declare const __VLS_export: import("vue").DefineComponent<IRadioProps, {}, {}, {
|
|
|
4
4
|
}, string, import("vue").PublicProps, Readonly<IRadioProps> & Readonly<{
|
|
5
5
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
6
6
|
}>, {
|
|
7
|
+
warning: string;
|
|
7
8
|
error: string;
|
|
9
|
+
direction: ERadioDirection;
|
|
8
10
|
id: string;
|
|
9
|
-
warning: string;
|
|
10
11
|
disabled: boolean;
|
|
11
12
|
helper: string;
|
|
12
13
|
readonly: boolean;
|
|
13
|
-
direction: ERadioDirection;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
export default _default;
|
|
@@ -23,9 +23,9 @@ declare const __VLS_base: import("vue").DefineComponent<ISelectProps, {
|
|
|
23
23
|
size: "sm" | "md" | "lg";
|
|
24
24
|
label: string;
|
|
25
25
|
name: string;
|
|
26
|
+
warning: string;
|
|
26
27
|
error: string;
|
|
27
28
|
id: string;
|
|
28
|
-
warning: string;
|
|
29
29
|
required: boolean;
|
|
30
30
|
disabled: boolean;
|
|
31
31
|
modelValue: string | number | Array<string | number> | null;
|
|
@@ -8,10 +8,10 @@ declare const __VLS_export: import("vue").DefineComponent<ISliderProps, {}, {},
|
|
|
8
8
|
}>, {
|
|
9
9
|
variant: "default" | "fluid";
|
|
10
10
|
size: "sm" | "md" | "lg";
|
|
11
|
-
range: boolean;
|
|
12
|
-
disabled: boolean;
|
|
13
11
|
min: number;
|
|
14
12
|
max: number;
|
|
13
|
+
range: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
15
|
step: number;
|
|
16
16
|
showInput: boolean;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -54,15 +54,15 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
54
54
|
type: string;
|
|
55
55
|
rows: number;
|
|
56
56
|
name: string;
|
|
57
|
+
warning: string;
|
|
57
58
|
error: string;
|
|
59
|
+
min: string | number;
|
|
60
|
+
max: string | number;
|
|
58
61
|
id: string;
|
|
59
|
-
warning: string;
|
|
60
62
|
required: boolean;
|
|
61
63
|
disabled: boolean;
|
|
62
64
|
placeholder: string;
|
|
63
65
|
helper: string;
|
|
64
|
-
min: string | number;
|
|
65
|
-
max: string | number;
|
|
66
66
|
readonly: boolean;
|
|
67
67
|
step: string | number;
|
|
68
68
|
highlight: (text: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/TextInput.vue"],"names":[],"mappings":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GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAQ9C,QAAA,MAAM,UAAU;;;;;;;;;;;;UA7hBP,MAAM;UAQN,MAAM;;;;SAPP,MAAM,GAAG,MAAM;SACf,MAAM,GAAG,MAAM;;;;;;;UACd,MAAM,GAAG,MAAM;eAcV,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM;eAbxB,MAAM;eAEN,OAAO;6EA4hBnB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -18,10 +18,10 @@ declare const __VLS_base: import("vue").DefineComponent<ITreeNodeProps, {}, {},
|
|
|
18
18
|
onDblclick?: ((id: string) => any) | undefined;
|
|
19
19
|
onToggle?: ((id: string, expanded: boolean) => any) | undefined;
|
|
20
20
|
}>, {
|
|
21
|
-
|
|
21
|
+
depth: number | null;
|
|
22
22
|
icon: string;
|
|
23
23
|
disabled: boolean;
|
|
24
|
-
|
|
24
|
+
draggable: boolean | null;
|
|
25
25
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"level-color.d.ts","sourceRoot":"","sources":["../../../src/components/blueprint-pixi/level-color.ts"],"names":[],"mappings":"AAIA,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAmBxD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class BlueprintLiveData {
|
|
2
|
+
private readonly values;
|
|
3
|
+
private epoch;
|
|
4
|
+
/** Set by the renderer: woken on a write so it can schedule a (throttled)
|
|
5
|
+
* repaint without polling. Stays undefined for the DOM renderer. */
|
|
6
|
+
onChange: (() => void) | undefined;
|
|
7
|
+
/** Set one value (0..1). Cheap; safe to call at audio-callback rate. */
|
|
8
|
+
set(id: string, value: number): void;
|
|
9
|
+
/** Bulk-set from a plain record (e.g. an engine's per-tick level map). */
|
|
10
|
+
setMany(record: Record<string, number>): void;
|
|
11
|
+
/** Replace the whole set, dropping ids absent from `record`. */
|
|
12
|
+
replace(record: Record<string, number>): void;
|
|
13
|
+
get(id: string): number;
|
|
14
|
+
clear(): void;
|
|
15
|
+
get size(): number;
|
|
16
|
+
/** Monotonic write counter; the renderer compares it to skip idle repaints. */
|
|
17
|
+
get version(): number;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=live-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-data.d.ts","sourceRoot":"","sources":["../../../src/components/blueprint-pixi/live-data.ts"],"names":[],"mappings":"AAWA,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IACnD,OAAO,CAAC,KAAK,CAAI;IAEjB;yEACqE;IACrE,QAAQ,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAY;IAE9C,wEAAwE;IACxE,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAMpC,0EAA0E;IAC1E,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAM7C,gEAAgE;IAChE,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAK7C,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;IAIvB,KAAK,IAAI,IAAI;IAOb,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,+EAA+E;IAC/E,IAAI,OAAO,IAAI,MAAM,CAEpB;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as PIXI from 'pixi.js';
|
|
2
|
+
export type TColorResolver = (css: string | undefined, fallback: number) => number;
|
|
3
|
+
/**
|
|
4
|
+
* Build a resolver bound to a PixiJS module and a reference element (used to
|
|
5
|
+
* resolve CSS custom properties). The returned function converts a CSS color
|
|
6
|
+
* string to a 24-bit RGB number, returning `fallback` for empty/unparseable
|
|
7
|
+
* input so a bad token never throws mid-render.
|
|
8
|
+
*/
|
|
9
|
+
export declare function makeColorResolver(Pixi: typeof PIXI, el: HTMLElement): TColorResolver;
|
|
10
|
+
//# sourceMappingURL=pixi-color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pixi-color.d.ts","sourceRoot":"","sources":["../../../src/components/blueprint-pixi/pixi-color.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,KAAK,IAAI,MAAM,SAAS,CAAA;AAEpC,MAAM,MAAM,cAAc,GAAG,CAC3B,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,QAAQ,EAAE,MAAM,KACb,MAAM,CAAA;AAIX;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,OAAO,IAAI,EACjB,EAAE,EAAE,WAAW,GACd,cAAc,CA8BhB"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type * as PIXI from 'pixi.js';
|
|
2
|
+
import type { IBlueprintCard, TBlueprintBackground } from '../Blueprint.types';
|
|
3
|
+
import type { IBlueprintWire } from '../Blueprint.renderer';
|
|
4
|
+
import type { BlueprintLiveData } from './live-data';
|
|
5
|
+
export interface IPixiSceneOptions {
|
|
6
|
+
canvas: HTMLCanvasElement;
|
|
7
|
+
/** Reference element for resolving CSS custom properties (the container). */
|
|
8
|
+
el: HTMLElement;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
resolution: number;
|
|
12
|
+
background: TBlueprintBackground;
|
|
13
|
+
/** Non-reactive live values (wire levels, ...) the host writes at audio rate;
|
|
14
|
+
* the scene reads them on its throttled render tick. */
|
|
15
|
+
liveData?: BlueprintLiveData;
|
|
16
|
+
}
|
|
17
|
+
export declare class PixiScene {
|
|
18
|
+
private readonly Pixi;
|
|
19
|
+
private app;
|
|
20
|
+
private world;
|
|
21
|
+
private grid;
|
|
22
|
+
private wireLayer;
|
|
23
|
+
private wireNodes;
|
|
24
|
+
private flowLayer;
|
|
25
|
+
private flowSprites;
|
|
26
|
+
private dotTexture;
|
|
27
|
+
private meterLayer;
|
|
28
|
+
private meterNodes;
|
|
29
|
+
private pendingMeters;
|
|
30
|
+
private metersDirty;
|
|
31
|
+
private trackColor;
|
|
32
|
+
private resolveColor;
|
|
33
|
+
private connectedColor;
|
|
34
|
+
private flowNodes;
|
|
35
|
+
private flowPhase;
|
|
36
|
+
private zoom;
|
|
37
|
+
private needsRender;
|
|
38
|
+
private rafId;
|
|
39
|
+
private lastAnimMs;
|
|
40
|
+
private liveData;
|
|
41
|
+
private levelsDirty;
|
|
42
|
+
private pendingWires;
|
|
43
|
+
private pendingShouldFlow;
|
|
44
|
+
private wiresDirty;
|
|
45
|
+
private wiresDrawnOnce;
|
|
46
|
+
private bezierCache;
|
|
47
|
+
private destroyed;
|
|
48
|
+
private background;
|
|
49
|
+
private gridColor;
|
|
50
|
+
private gridTexture;
|
|
51
|
+
private constructor();
|
|
52
|
+
/** Create and initialise a scene. Async because PixiJS v8 `app.init` is. */
|
|
53
|
+
static create(Pixi: typeof PIXI, opts: IPixiSceneOptions): Promise<PixiScene>;
|
|
54
|
+
private init;
|
|
55
|
+
private buildGrid;
|
|
56
|
+
private makeGridTexture;
|
|
57
|
+
/** Switch the background pattern at runtime. */
|
|
58
|
+
setBackground(bg: TBlueprintBackground): void;
|
|
59
|
+
setCamera(panX: number, panY: number, zoom: number): void;
|
|
60
|
+
/** Fade the grid out as tiles approach sub-pixel density (far zoom): the
|
|
61
|
+
* pattern is meaningless when that dense and is the source of moiré. */
|
|
62
|
+
private updateGridAlpha;
|
|
63
|
+
/** Stash the latest wire set; the frame loop reconciles geometry + colours it
|
|
64
|
+
* (the first set at once, later ones coalesced to ANIM_FRAME_MS). */
|
|
65
|
+
setWires(wires: IBlueprintWire[], shouldFlow: (conn: IBlueprintWire['conn']) => boolean): void;
|
|
66
|
+
/** Reconcile the per-wire Graphics against the pending set. Geometry is
|
|
67
|
+
* stroked (white, pixelLine) only when a wire is new or its path changed;
|
|
68
|
+
* colour is NOT baked here (see applyWireColors). This runs on a
|
|
69
|
+
* topology/geometry change, never per animation frame. */
|
|
70
|
+
private reconcileWireGeometry;
|
|
71
|
+
/** The current colour of a wire: its live level (audio, active, non-MIDI) or
|
|
72
|
+
* its base accent. Applied as a cheap tint, no geometry rebuild. */
|
|
73
|
+
private wireColorFor;
|
|
74
|
+
/** Recolour every wire by tint only (no re-tessellation). Cheap enough to run
|
|
75
|
+
* on every level tick. */
|
|
76
|
+
private applyWireColors;
|
|
77
|
+
/** Stash the visible cards' meter geometry (world coords). Runs when the
|
|
78
|
+
* visible set or a card position changes, NOT per animation frame. */
|
|
79
|
+
setMeters(cards: IBlueprintCard[]): void;
|
|
80
|
+
/** Reconcile meter sprites against the pending geometry. Lays out a track +
|
|
81
|
+
* fill per meter only when its box changes; values are applied separately. */
|
|
82
|
+
private reconcileMeters;
|
|
83
|
+
/** Set each meter's fill height + colour from the live channel. Cheap (a
|
|
84
|
+
* sprite scale + tint), no geometry rebuild; runs on the live tick. */
|
|
85
|
+
private updateMeterValues;
|
|
86
|
+
/** A small white dot, tinted per flow wire. Built once. */
|
|
87
|
+
private makeDotTexture;
|
|
88
|
+
resize(width: number, height: number, resolution: number): void;
|
|
89
|
+
/** Request a single repaint for an immediate change (camera/background/resize). */
|
|
90
|
+
private requestRender;
|
|
91
|
+
/** Ensure exactly one frame is scheduled. */
|
|
92
|
+
private ensureRaf;
|
|
93
|
+
/** The only place app.render() is called. Runs a frame, then reschedules
|
|
94
|
+
* itself ONLY while there is pending or ongoing (animation) work, so an idle
|
|
95
|
+
* scene drops to zero scheduled frames and zero CPU. */
|
|
96
|
+
private frame;
|
|
97
|
+
/** Position a pooled, tinted dot sprite on each flowing wire. Reuses sprites
|
|
98
|
+
* (no per-frame geometry/allocation), so flow animation does not churn. */
|
|
99
|
+
private drawFlow;
|
|
100
|
+
private clearFlow;
|
|
101
|
+
destroy(): void;
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=pixi-scene.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pixi-scene.d.ts","sourceRoot":"","sources":["../../../src/components/blueprint-pixi/pixi-scene.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,KAAK,IAAI,MAAM,SAAS,CAAA;AACpC,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAI3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAmBpD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,iBAAiB,CAAA;IACzB,6EAA6E;IAC7E,EAAE,EAAE,WAAW,CAAA;IACf,KAAK,EAAE,MAAM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
2
|
+
/** Start point [x, y]. */
|
|
3
|
+
p0: [number, number];
|
|
4
|
+
/** First control point. */
|
|
5
|
+
c1: [number, number];
|
|
6
|
+
/** Second control point. */
|
|
7
|
+
c2: [number, number];
|
|
8
|
+
/** End point. */
|
|
9
|
+
p3: [number, number];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Parse a `M x y C x y x y x y` cubic path string into control points.
|
|
13
|
+
* Returns null if the string does not contain the expected 8 numbers (so a
|
|
14
|
+
* malformed or non-cubic path is skipped rather than throwing).
|
|
15
|
+
*/
|
|
16
|
+
export declare function parseCubicPath(d: string): ICubicBezier | null;
|
|
17
|
+
/** Evaluate a cubic bezier at parameter t in [0, 1]. */
|
|
18
|
+
export declare function cubicAt(b: ICubicBezier, t: number): [number, number];
|
|
19
|
+
/**
|
|
20
|
+
* Sample a cubic bezier into `segments + 1` points. Used by the flow
|
|
21
|
+
* animation to walk evenly-ish along the wire. `segments` is a fixed count
|
|
22
|
+
* (not arc-length parameterised) which is plenty for a short connector.
|
|
23
|
+
*/
|
|
24
|
+
export declare function sampleCubic(b: ICubicBezier, segments: number): [number, number][];
|
|
25
|
+
//# sourceMappingURL=wire-path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wire-path.d.ts","sourceRoot":"","sources":["../../../src/components/blueprint-pixi/wire-path.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,YAAY;IAC3B,0BAA0B;IAC1B,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACpB,2BAA2B;IAC3B,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACpB,4BAA4B;IAC5B,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACpB,iBAAiB;IACjB,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACrB;AAID;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAW7D;AAED,wDAAwD;AACxD,wBAAgB,OAAO,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAUpE;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,CAAC,EAAE,YAAY,EACf,QAAQ,EAAE,MAAM,GACf,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAIpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;;iBAkHf,GAAG;;AADlB,wBAMC"}
|
|
@@ -16,11 +16,11 @@ declare const __VLS_base: import("vue").DefineComponent<ISpreadsheetProps, {
|
|
|
16
16
|
endColumnId: string;
|
|
17
17
|
} | null;
|
|
18
18
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
change: (changes: ISpreadsheetChange[]) => any;
|
|
19
20
|
focus: (cell: {
|
|
20
21
|
rowId: string;
|
|
21
22
|
columnId: string;
|
|
22
23
|
} | null) => any;
|
|
23
|
-
change: (changes: ISpreadsheetChange[]) => any;
|
|
24
24
|
commit: (change: ISpreadsheetChange) => any;
|
|
25
25
|
selection: (sel: ISpreadsheetSelection | null) => any;
|
|
26
26
|
"row-reorder": (args_0: {
|
|
@@ -28,11 +28,11 @@ declare const __VLS_base: import("vue").DefineComponent<ISpreadsheetProps, {
|
|
|
28
28
|
toIndex: number;
|
|
29
29
|
}) => any;
|
|
30
30
|
}, string, import("vue").PublicProps, Readonly<ISpreadsheetProps> & Readonly<{
|
|
31
|
+
onChange?: ((changes: ISpreadsheetChange[]) => any) | undefined;
|
|
31
32
|
onFocus?: ((cell: {
|
|
32
33
|
rowId: string;
|
|
33
34
|
columnId: string;
|
|
34
35
|
} | null) => any) | undefined;
|
|
35
|
-
onChange?: ((changes: ISpreadsheetChange[]) => any) | undefined;
|
|
36
36
|
onCommit?: ((change: ISpreadsheetChange) => any) | undefined;
|
|
37
37
|
onSelection?: ((sel: ISpreadsheetSelection | null) => any) | undefined;
|
|
38
38
|
"onRow-reorder"?: ((args_0: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spreadsheet.vue.d.ts","sourceRoot":"","sources":["../../../src/components/labs/Spreadsheet.vue"],"names":[],"mappings":"AAomCA,OAAO,KAAK,EACV,iBAAiB,EAIjB,kBAAkB,EAClB,qBAAqB,EAEtB,MAAM,iBAAiB,CAAA;AAkuBxB,iBAAS,IAAI,SAWZ;AAED,iBAAS,IAAI,SAMZ;AAkPD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAQ/C,QAAA,MAAM,UAAU;mBApPC,MAAM,YAAY,MAAM
|
|
1
|
+
{"version":3,"file":"Spreadsheet.vue.d.ts","sourceRoot":"","sources":["../../../src/components/labs/Spreadsheet.vue"],"names":[],"mappings":"AAomCA,OAAO,KAAK,EACV,iBAAiB,EAIjB,kBAAkB,EAClB,qBAAqB,EAEtB,MAAM,iBAAiB,CAAA;AAkuBxB,iBAAS,IAAI,SAWZ;AAED,iBAAS,IAAI,SAMZ;AAkPD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAQ/C,QAAA,MAAM,UAAU;mBApPC,MAAM,YAAY,MAAM;;;;;;;;;;;;eA9uBhB,MAAM;kBAAY,MAAM;;;;;eACtB,MAAM;iBAAW,MAAM;;;;;eADzB,MAAM;kBAAY,MAAM;;;;;eACtB,MAAM;iBAAW,MAAM;;;;;;;;6EAs+BhD,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IBlueprintController } from '../components/Blueprint.types';
|
|
2
|
+
/**
|
|
3
|
+
* Access the controller of the nearest ancestor NbBlueprint: camera
|
|
4
|
+
* (`panX`/`panY`/`zoom`), selection (`selectedIds`/`focusedId`), view
|
|
5
|
+
* actions (`fitToView`/`centerView`/`resetView`), alignment/distribution,
|
|
6
|
+
* coordinate transforms (`screenToCanvas`/`canvasToScreen`), and the
|
|
7
|
+
* `isEditMode` flag.
|
|
8
|
+
*
|
|
9
|
+
* Intended for chrome rendered inside a NbBlueprint's default slot, such as
|
|
10
|
+
* a controls toolbar, minimap, or custom background, so they can drive the
|
|
11
|
+
* blueprint without the host wiring template refs and event handlers by
|
|
12
|
+
* hand. Must be called from within a NbBlueprint subtree (during a
|
|
13
|
+
* component's `setup`); throws otherwise.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const bp = useBlueprint()
|
|
18
|
+
* bp.fitToView()
|
|
19
|
+
* bp.zoom.value = 1.5
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useBlueprint(): IBlueprintController;
|
|
23
|
+
//# sourceMappingURL=useBlueprint.composable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBlueprint.composable.d.ts","sourceRoot":"","sources":["../../src/composables/useBlueprint.composable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AAEzE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,IAAI,oBAAoB,CAQnD"}
|