@nubisco/ui 1.47.1 → 1.48.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/dist/components/UserMenu.vue.d.ts +53 -0
- package/dist/components/UserMenu.vue.d.ts.map +1 -0
- package/dist/components/blueprint-pixi/pixi-scene.d.ts +8 -0
- package/dist/components/blueprint-pixi/pixi-scene.d.ts.map +1 -1
- package/dist/components/blueprint-pixi/wire-path.d.ts +29 -0
- package/dist/components/blueprint-pixi/wire-path.d.ts.map +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +10789 -10560
- package/dist/index.mjs.map +1 -1
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/pixi-scene-9jpdfOpf.cjs +2 -0
- package/dist/pixi-scene-9jpdfOpf.cjs.map +1 -0
- package/dist/{pixi-scene-CK6-CaUQ.js → pixi-scene-DdH142PW.js} +71 -32
- package/dist/pixi-scene-DdH142PW.js.map +1 -0
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/pixi-scene-CK6-CaUQ.js.map +0 -1
- package/dist/pixi-scene-CmsiMPkU.cjs +0 -2
- package/dist/pixi-scene-CmsiMPkU.cjs.map +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { IUserMenuAccount, IUserMenuProps } from './UserMenu.d';
|
|
2
|
+
declare function toggle(): void;
|
|
3
|
+
declare function close(): void;
|
|
4
|
+
declare var __VLS_1: {
|
|
5
|
+
open: boolean;
|
|
6
|
+
toggle: typeof toggle;
|
|
7
|
+
}, __VLS_37: {
|
|
8
|
+
close: typeof close;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: typeof __VLS_37) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<IUserMenuProps, {
|
|
16
|
+
open: import("vue").Ref<boolean, boolean>;
|
|
17
|
+
toggle: typeof toggle;
|
|
18
|
+
close: typeof close;
|
|
19
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
switch: (account: IUserMenuAccount) => any;
|
|
21
|
+
close: () => any;
|
|
22
|
+
remove: (account: IUserMenuAccount) => any;
|
|
23
|
+
open: () => any;
|
|
24
|
+
"switch-account": () => any;
|
|
25
|
+
"add-account": () => any;
|
|
26
|
+
profile: () => any;
|
|
27
|
+
"sign-out": () => any;
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<IUserMenuProps> & Readonly<{
|
|
29
|
+
onSwitch?: ((account: IUserMenuAccount) => any) | undefined;
|
|
30
|
+
onClose?: (() => any) | undefined;
|
|
31
|
+
onRemove?: ((account: IUserMenuAccount) => any) | undefined;
|
|
32
|
+
onOpen?: (() => any) | undefined;
|
|
33
|
+
"onSwitch-account"?: (() => any) | undefined;
|
|
34
|
+
"onAdd-account"?: (() => any) | undefined;
|
|
35
|
+
onProfile?: (() => any) | undefined;
|
|
36
|
+
"onSign-out"?: (() => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
accounts: IUserMenuAccount[];
|
|
40
|
+
accountsUnknown: boolean;
|
|
41
|
+
showAccountActions: boolean;
|
|
42
|
+
showProfile: boolean;
|
|
43
|
+
placement: import("./UserMenu.d").TUserMenuPlacement;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=UserMenu.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserMenu.vue.d.ts","sourceRoot":"","sources":["../../src/components/UserMenu.vue"],"names":[],"mappings":"AA8bA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAiGpE,iBAAS,MAAM,SASd;AAED,iBAAS,KAAK,SAIb;AAmWD,QAAA,IAAI,OAAO;;;CAAU,EAAE,QAAQ;;CAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAQhD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAKd,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"}
|
|
@@ -35,6 +35,7 @@ export declare class PixiScene {
|
|
|
35
35
|
private connectedColor;
|
|
36
36
|
private flowNodes;
|
|
37
37
|
private flowPhase;
|
|
38
|
+
private vibratePhase;
|
|
38
39
|
private zoom;
|
|
39
40
|
private needsRender;
|
|
40
41
|
private rafId;
|
|
@@ -121,6 +122,13 @@ export declare class PixiScene {
|
|
|
121
122
|
* stroke when a wire goes silent. Costs a per-frame re-tessellation of the
|
|
122
123
|
* ACTIVE wires only. */
|
|
123
124
|
private drawVibrate;
|
|
125
|
+
/** Resample a wire at uniform ARC spacing, caching a point + unit normal per
|
|
126
|
+
* sample. Uniform in arc, not in the bezier's `t`: `t` bunches where the
|
|
127
|
+
* curve is tight, so a t-uniform wave would stretch and squash along a
|
|
128
|
+
* single wire. Spacing is one wavelength / VIBRATE_SAMPLES_PER_WAVE, which
|
|
129
|
+
* makes the per-frame spatial phase step a constant. Runs on geometry or
|
|
130
|
+
* zoom change only. */
|
|
131
|
+
private buildVibrateSamples;
|
|
124
132
|
/** Re-stroke a wire's straight base bezier (undoes a vibrate). */
|
|
125
133
|
private strokeBase;
|
|
126
134
|
/** Re-stroke a wire as a vibrating string: sample the bezier and offset each
|
|
@@ -1 +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;
|
|
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;AAW3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAoDpD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,iBAAiB,CAAA;IACzB,6EAA6E;IAC7E,EAAE,EAAE,WAAW,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,oBAAoB,CAAA;IAChC;6DACy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SAAS;IAKjB;;6DAEyD;IACzD,OAAO,CAAC,KAAK,CA2DZ;IAED;gFAC4E;IAC5E;iFAC6E;IAC7E,OAAO,CAAC,QAAQ;IAgChB;mFAC+E;IAC/E,OAAO,CAAC,SAAS;IASjB;;;;6BAIyB;IACzB,OAAO,CAAC,WAAW;IAiBnB;;;;;4BAKwB;IACxB,OAAO,CAAC,mBAAmB;IAc3B,kEAAkE;IAClE,OAAO,CAAC,UAAU;IASlB;qFACiF;IACjF,OAAO,CAAC,cAAc;IAoBtB,OAAO,CAAC,SAAS;IAIjB,OAAO,IAAI,IAAI;CAehB"}
|
|
@@ -22,4 +22,33 @@ export declare function cubicAt(b: ICubicBezier, t: number): [number, number];
|
|
|
22
22
|
* (not arc-length parameterised) which is plenty for a short connector.
|
|
23
23
|
*/
|
|
24
24
|
export declare function sampleCubic(b: ICubicBezier, segments: number): [number, number][];
|
|
25
|
+
/**
|
|
26
|
+
* Resample a cubic into `segments + 1` points spaced evenly by ARC LENGTH,
|
|
27
|
+
* packed as [x, y, nx, ny] per sample where (nx, ny) is the unit normal.
|
|
28
|
+
*
|
|
29
|
+
* Even in `t` is NOT even in distance: a cubic's parameter bunches where the
|
|
30
|
+
* curve is tight, so t-uniform samples crowd near the ends of a typical wire
|
|
31
|
+
* and stretch through the middle. Anything drawn along the wire at a fixed
|
|
32
|
+
* spatial frequency (the 'vibrate' wave) would visibly squash and stretch
|
|
33
|
+
* along a single wire. Sampling by arc length makes the spacing physical, so
|
|
34
|
+
* one sample step is one constant distance in world px.
|
|
35
|
+
*/
|
|
36
|
+
export declare function resampleUniformArc(b: ICubicBezier, segments: number): Float32Array;
|
|
37
|
+
/** Arc length of a cubic, in the curve's own units. */
|
|
38
|
+
export declare function cubicLength(b: ICubicBezier): number;
|
|
39
|
+
/**
|
|
40
|
+
* Unit-amplitude offset of the 'vibrate' travelling wave at sample `i` of `n`,
|
|
41
|
+
* for a polyline resampled at `samplesPerWave` samples per wavelength.
|
|
42
|
+
*
|
|
43
|
+
* The time term is SUBTRACTED, which is what makes the wave travel toward
|
|
44
|
+
* higher `i`. Sample 0 is the path's `M` point, which Blueprint emits from the
|
|
45
|
+
* *source* port, so the wave runs source -> destination: output -> input, the
|
|
46
|
+
* direction the signal itself travels. Adding the time term instead runs every
|
|
47
|
+
* wire backwards.
|
|
48
|
+
*
|
|
49
|
+
* The `sin(u * PI)` envelope pins the ends to zero so the stroke still starts
|
|
50
|
+
* and finishes exactly on its two ports, and the wire reads as a plucked
|
|
51
|
+
* string rather than a sawn-off ripple.
|
|
52
|
+
*/
|
|
53
|
+
export declare function vibrateOffset(i: number, n: number, samplesPerWave: number, phase: number): number;
|
|
25
54
|
//# sourceMappingURL=wire-path.d.ts.map
|
|
@@ -1 +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
|
+
{"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;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,CAAC,EAAE,YAAY,EACf,QAAQ,EAAE,MAAM,GACf,YAAY,CA8Bd;AAED,uDAAuD;AACvD,wBAAgB,WAAW,CAAC,CAAC,EAAE,YAAY,GAAG,MAAM,CAUnD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAC3B,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,cAAc,EAAE,MAAM,EACtB,KAAK,EAAE,MAAM,GACZ,MAAM,CAGR"}
|
|
@@ -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;;iBAwHf,GAAG;;AADlB,wBAMC"}
|