@pixerate/editor 0.140.4 → 0.141.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/agent/canvasPlayback.d.cts +15 -0
- package/dist/agent/canvasPlayback.d.ts +15 -0
- package/dist/agent/index.cjs +144 -23
- package/dist/agent/index.d.cts +1 -0
- package/dist/agent/index.d.ts +1 -0
- package/dist/agent/index.js +125 -4
- package/dist/agent/providers.d.cts +8 -0
- package/dist/agent/providers.d.ts +8 -0
- package/dist/agent/types.d.cts +3 -0
- package/dist/agent/types.d.ts +3 -0
- package/dist/animation/index.cjs +2 -2
- package/dist/animation/index.js +1 -1
- package/dist/animation/presence.d.cts +1 -75
- package/dist/animation/presence.d.ts +1 -75
- package/dist/bridge/cli.cjs +3 -3
- package/dist/bridge/cli.js +2 -2
- package/dist/bridge/index.cjs +3 -3
- package/dist/bridge/index.js +2 -2
- package/dist/canvas/index.cjs +336 -646
- package/dist/canvas/index.d.cts +1 -0
- package/dist/canvas/index.d.ts +1 -0
- package/dist/canvas/index.js +44 -354
- package/dist/canvas/playback.d.cts +14 -0
- package/dist/canvas/playback.d.ts +14 -0
- package/dist/chart/index.cjs +7 -7
- package/dist/chart/index.js +1 -1
- package/dist/chunk-6SFREX6H.cjs +406 -0
- package/dist/chunk-DW4CV5H4.js +591 -0
- package/dist/{chunk-UMS6YFA6.js → chunk-EAQ4BGNS.js} +1 -1
- package/dist/{chunk-AGCD3EHB.cjs → chunk-ENIZYNEF.cjs} +7 -7
- package/dist/chunk-MFFE55CS.js +406 -0
- package/dist/{chunk-BSGPXPTW.js → chunk-PEEP2YR7.js} +1 -1
- package/dist/{chunk-RB62U6MS.js → chunk-RFBFTLVN.js} +27 -5
- package/dist/chunk-UBRYHNRU.cjs +591 -0
- package/dist/{chunk-GEY73RUW.cjs → chunk-UJGAA6AK.cjs} +1 -1
- package/dist/{chunk-HDK3T2QS.cjs → chunk-Y4BWZB6J.cjs} +29 -7
- package/dist/commands/index.cjs +37 -1
- package/dist/commands/index.js +36 -0
- package/dist/commands/registry.d.cts +11 -0
- package/dist/commands/registry.d.ts +11 -0
- package/dist/diagram/index.cjs +7 -7
- package/dist/diagram/index.js +1 -1
- package/dist/image-editor/index.cjs +108 -16
- package/dist/image-editor/index.d.cts +1 -0
- package/dist/image-editor/index.d.ts +1 -0
- package/dist/image-editor/index.js +107 -15
- package/dist/image-editor/playback.d.cts +22 -0
- package/dist/image-editor/playback.d.ts +22 -0
- package/dist/paint-editor/index.cjs +6 -6
- package/dist/paint-editor/index.js +1 -1
- package/dist/tools/index.cjs +33 -3
- package/dist/tools/index.d.cts +2 -0
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.js +32 -2
- package/dist/tools/playback.d.cts +205 -0
- package/dist/tools/playback.d.ts +205 -0
- package/dist/tools/presence.d.cts +82 -0
- package/dist/tools/presence.d.ts +82 -0
- package/dist/tools/registry.d.cts +45 -6
- package/dist/tools/registry.d.ts +45 -6
- package/dist/tools/view.d.cts +2 -4
- package/dist/tools/view.d.ts +2 -4
- package/dist/vector/index.cjs +217 -100
- package/dist/vector/index.d.cts +1 -0
- package/dist/vector/index.d.ts +1 -0
- package/dist/vector/index.js +140 -23
- package/dist/vector/playback.d.cts +13 -0
- package/dist/vector/playback.d.ts +13 -0
- package/package.json +1 -1
- package/skills/pixerate-agent-tools/SKILL.md +13 -0
- package/skills/pixerate-canvas/SKILL.md +3 -0
- package/skills/pixerate-image-editor/SKILL.md +2 -2
- package/skills/pixerate-vector/SKILL.md +5 -0
- package/dist/chunk-BTZS3KZY.js +0 -221
- package/dist/chunk-MRD3NXKR.cjs +0 -221
- /package/dist/{chunk-K73HMKQP.js → chunk-PLKIYNJZ.js} +0 -0
- /package/dist/{chunk-LACYURUW.cjs → chunk-TNCWKC5M.cjs} +0 -0
package/dist/animation/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkUJGAA6AKcjs = require('../chunk-UJGAA6AK.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -98,4 +98,4 @@ require('../chunk-A6QWKBJP.cjs');
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
exports.ANIMATION_EASING_LABELS = _chunkDWJJI6RTcjs.ANIMATION_EASING_LABELS; exports.ANIMATION_EASING_PRESETS = _chunkDWJJI6RTcjs.ANIMATION_EASING_PRESETS; exports.ANIMATION_TIME_EPSILON = _chunkSVR5FR7Bcjs.ANIMATION_TIME_EPSILON; exports.AnimationPlayer = _chunkSVR5FR7Bcjs.AnimationPlayer; exports.CUBIC_BEZIER_PRESETS = _chunkDWJJI6RTcjs.CUBIC_BEZIER_PRESETS; exports.MOTION_BEHAVIORS = _chunk7B5GTJXBcjs.MOTION_BEHAVIORS; exports.ManualClock = _chunkSVR5FR7Bcjs.ManualClock; exports.PRESENCE_COLORS =
|
|
101
|
+
exports.ANIMATION_EASING_LABELS = _chunkDWJJI6RTcjs.ANIMATION_EASING_LABELS; exports.ANIMATION_EASING_PRESETS = _chunkDWJJI6RTcjs.ANIMATION_EASING_PRESETS; exports.ANIMATION_TIME_EPSILON = _chunkSVR5FR7Bcjs.ANIMATION_TIME_EPSILON; exports.AnimationPlayer = _chunkSVR5FR7Bcjs.AnimationPlayer; exports.CUBIC_BEZIER_PRESETS = _chunkDWJJI6RTcjs.CUBIC_BEZIER_PRESETS; exports.MOTION_BEHAVIORS = _chunk7B5GTJXBcjs.MOTION_BEHAVIORS; exports.ManualClock = _chunkSVR5FR7Bcjs.ManualClock; exports.PRESENCE_COLORS = _chunkUJGAA6AKcjs.PRESENCE_COLORS; exports.PerformanceQueue = _chunkUJGAA6AKcjs.PerformanceQueue; exports.PresenceStore = _chunkUJGAA6AKcjs.PresenceStore; exports.SPRING_PRESETS = _chunkDWJJI6RTcjs.SPRING_PRESETS; exports.behaviorProgress = _chunk7B5GTJXBcjs.behaviorProgress; exports.createAnimationPlayer = _chunkSVR5FR7Bcjs.createAnimationPlayer; exports.createInstantPresenceClock = _chunkUJGAA6AKcjs.createInstantPresenceClock; exports.cubicBezierAt = _chunkDWJJI6RTcjs.cubicBezierAt; exports.easingFromInfluence = _chunkDWJJI6RTcjs.easingFromInfluence; exports.easingLabel = _chunkDWJJI6RTcjs.easingLabel; exports.easingToCss = _chunkDWJJI6RTcjs.easingToCss; exports.elasticAt = _chunkDWJJI6RTcjs.elasticAt; exports.evaluateEasing = _chunkDWJJI6RTcjs.evaluateEasing; exports.evaluateTrack = _chunkSVR5FR7Bcjs.evaluateTrack; exports.formatOklab = _chunk5FXOR7F2cjs.formatOklab; exports.fractalWiggle = _chunk7B5GTJXBcjs.fractalWiggle; exports.interpolateAnimationValue = _chunkSVR5FR7Bcjs.interpolateAnimationValue; exports.isAnimationEasing = _chunkDWJJI6RTcjs.isAnimationEasing; exports.isAnimationKeyframe = _chunkSVR5FR7Bcjs.isAnimationKeyframe; exports.isMotionBehavior = _chunk7B5GTJXBcjs.isMotionBehavior; exports.mixColorsOklab = _chunk5FXOR7F2cjs.mixColorsOklab; exports.motionSeedFromId = _chunk7B5GTJXBcjs.motionSeedFromId; exports.normalizeKeyframes = _chunkSVR5FR7Bcjs.normalizeKeyframes; exports.oklabToRgb = _chunk5FXOR7F2cjs.oklabToRgb; exports.pageHidden = _chunkSVR5FR7Bcjs.pageHidden; exports.parseCssEasing = _chunkDWJJI6RTcjs.parseCssEasing; exports.parseOklab = _chunk5FXOR7F2cjs.parseOklab; exports.quinticFade = _chunk7B5GTJXBcjs.quinticFade; exports.realClock = _chunkSVR5FR7Bcjs.realClock; exports.realPresenceClock = _chunkUJGAA6AKcjs.realPresenceClock; exports.resolveEasing = _chunkDWJJI6RTcjs.resolveEasing; exports.reverseCubicBezier = _chunkDWJJI6RTcjs.reverseCubicBezier; exports.rgbToOklab = _chunk5FXOR7F2cjs.rgbToOklab; exports.springAt = _chunkDWJJI6RTcjs.springAt; exports.springSettleMs = _chunkDWJJI6RTcjs.springSettleMs; exports.tweenPresenceCursor = _chunkUJGAA6AKcjs.tweenPresenceCursor; exports.wrapAnimationTime = _chunkSVR5FR7Bcjs.wrapAnimationTime;
|
package/dist/animation/index.js
CHANGED
|
@@ -1,75 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
color: string;
|
|
5
|
-
/** Cursor position in the surface's own coordinates (scene / canvas). */
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
/** The button is down (dragging). */
|
|
9
|
-
pressed: boolean;
|
|
10
|
-
/** A short note shown next to the cursor (what the agent is doing). */
|
|
11
|
-
message?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface PresenceState {
|
|
14
|
-
actors: readonly PresenceActor[];
|
|
15
|
-
}
|
|
16
|
-
export declare const PRESENCE_COLORS: readonly string[];
|
|
17
|
-
/** Cursor positions and notes of agents acting on a surface, for an overlay. */
|
|
18
|
-
export declare class PresenceStore {
|
|
19
|
-
private state;
|
|
20
|
-
private readonly listeners;
|
|
21
|
-
getState: () => PresenceState;
|
|
22
|
-
subscribe: (listener: (state: PresenceState) => void) => (() => void);
|
|
23
|
-
/** The actor with `id`, if it is on the surface. */
|
|
24
|
-
get(id: string): PresenceActor | undefined;
|
|
25
|
-
/** Adds or changes an actor. */
|
|
26
|
-
set(actor: Pick<PresenceActor, 'id'> & Partial<PresenceActor>): void;
|
|
27
|
-
remove(id: string): void;
|
|
28
|
-
}
|
|
29
|
-
/** Time for performances: real timers, or an instant clock for tests and recordings. */
|
|
30
|
-
export interface PresenceClock {
|
|
31
|
-
now(): number;
|
|
32
|
-
wait(ms: number): Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
export declare const realPresenceClock: PresenceClock;
|
|
35
|
-
/** A clock whose waits finish at once while its time still advances (repeatable performances). */
|
|
36
|
-
export declare function createInstantPresenceClock(start?: number): PresenceClock & {
|
|
37
|
-
elapsed(): number;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Glides an actor's cursor from `from` to `to` over `ms` (ease-out cubic, ~60 frames a second),
|
|
41
|
-
* calling `each` with the eased progress after every frame (e.g. to drag a value along).
|
|
42
|
-
*/
|
|
43
|
-
export declare function tweenPresenceCursor(presence: PresenceStore, clock: PresenceClock, id: string, from: {
|
|
44
|
-
x: number;
|
|
45
|
-
y: number;
|
|
46
|
-
}, to: {
|
|
47
|
-
x: number;
|
|
48
|
-
y: number;
|
|
49
|
-
}, ms: number, each?: (t: number) => void): Promise<void>;
|
|
50
|
-
export interface PresenceActorInfo {
|
|
51
|
-
id: string;
|
|
52
|
-
name?: string;
|
|
53
|
-
color?: string;
|
|
54
|
-
}
|
|
55
|
-
export interface PerformanceQueueOptions {
|
|
56
|
-
clock: PresenceClock;
|
|
57
|
-
/** Hide each actor's cursor this long after its last call (ms, default 1500; 0 keeps it). */
|
|
58
|
-
linger?: number;
|
|
59
|
-
/** Called around each call so everything it changes is one undo step. */
|
|
60
|
-
beginGesture?: (key: string) => void;
|
|
61
|
-
endGesture?: () => void;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Runs performances one after another per actor (different actors run side by side). Each
|
|
65
|
-
* call shows the actor's cursor, wraps the call in one gesture (one undo step), clears the
|
|
66
|
-
* note when it ends, and hides the cursor after `linger` unless another call followed.
|
|
67
|
-
*/
|
|
68
|
-
export declare class PerformanceQueue {
|
|
69
|
-
readonly presence: PresenceStore;
|
|
70
|
-
private readonly options;
|
|
71
|
-
private readonly queues;
|
|
72
|
-
private calls;
|
|
73
|
-
constructor(presence: PresenceStore, options: PerformanceQueueOptions);
|
|
74
|
-
run<T>(actor: PresenceActorInfo, perform: () => Promise<T>): Promise<T>;
|
|
75
|
-
}
|
|
1
|
+
export * from '../tools/presence.cjs';
|
|
@@ -1,75 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
color: string;
|
|
5
|
-
/** Cursor position in the surface's own coordinates (scene / canvas). */
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
/** The button is down (dragging). */
|
|
9
|
-
pressed: boolean;
|
|
10
|
-
/** A short note shown next to the cursor (what the agent is doing). */
|
|
11
|
-
message?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface PresenceState {
|
|
14
|
-
actors: readonly PresenceActor[];
|
|
15
|
-
}
|
|
16
|
-
export declare const PRESENCE_COLORS: readonly string[];
|
|
17
|
-
/** Cursor positions and notes of agents acting on a surface, for an overlay. */
|
|
18
|
-
export declare class PresenceStore {
|
|
19
|
-
private state;
|
|
20
|
-
private readonly listeners;
|
|
21
|
-
getState: () => PresenceState;
|
|
22
|
-
subscribe: (listener: (state: PresenceState) => void) => (() => void);
|
|
23
|
-
/** The actor with `id`, if it is on the surface. */
|
|
24
|
-
get(id: string): PresenceActor | undefined;
|
|
25
|
-
/** Adds or changes an actor. */
|
|
26
|
-
set(actor: Pick<PresenceActor, 'id'> & Partial<PresenceActor>): void;
|
|
27
|
-
remove(id: string): void;
|
|
28
|
-
}
|
|
29
|
-
/** Time for performances: real timers, or an instant clock for tests and recordings. */
|
|
30
|
-
export interface PresenceClock {
|
|
31
|
-
now(): number;
|
|
32
|
-
wait(ms: number): Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
export declare const realPresenceClock: PresenceClock;
|
|
35
|
-
/** A clock whose waits finish at once while its time still advances (repeatable performances). */
|
|
36
|
-
export declare function createInstantPresenceClock(start?: number): PresenceClock & {
|
|
37
|
-
elapsed(): number;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* Glides an actor's cursor from `from` to `to` over `ms` (ease-out cubic, ~60 frames a second),
|
|
41
|
-
* calling `each` with the eased progress after every frame (e.g. to drag a value along).
|
|
42
|
-
*/
|
|
43
|
-
export declare function tweenPresenceCursor(presence: PresenceStore, clock: PresenceClock, id: string, from: {
|
|
44
|
-
x: number;
|
|
45
|
-
y: number;
|
|
46
|
-
}, to: {
|
|
47
|
-
x: number;
|
|
48
|
-
y: number;
|
|
49
|
-
}, ms: number, each?: (t: number) => void): Promise<void>;
|
|
50
|
-
export interface PresenceActorInfo {
|
|
51
|
-
id: string;
|
|
52
|
-
name?: string;
|
|
53
|
-
color?: string;
|
|
54
|
-
}
|
|
55
|
-
export interface PerformanceQueueOptions {
|
|
56
|
-
clock: PresenceClock;
|
|
57
|
-
/** Hide each actor's cursor this long after its last call (ms, default 1500; 0 keeps it). */
|
|
58
|
-
linger?: number;
|
|
59
|
-
/** Called around each call so everything it changes is one undo step. */
|
|
60
|
-
beginGesture?: (key: string) => void;
|
|
61
|
-
endGesture?: () => void;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Runs performances one after another per actor (different actors run side by side). Each
|
|
65
|
-
* call shows the actor's cursor, wraps the call in one gesture (one undo step), clears the
|
|
66
|
-
* note when it ends, and hides the cursor after `linger` unless another call followed.
|
|
67
|
-
*/
|
|
68
|
-
export declare class PerformanceQueue {
|
|
69
|
-
readonly presence: PresenceStore;
|
|
70
|
-
private readonly options;
|
|
71
|
-
private readonly queues;
|
|
72
|
-
private calls;
|
|
73
|
-
constructor(presence: PresenceStore, options: PerformanceQueueOptions);
|
|
74
|
-
run<T>(actor: PresenceActorInfo, perform: () => Promise<T>): Promise<T>;
|
|
75
|
-
}
|
|
1
|
+
export * from '../tools/presence.js';
|
package/dist/bridge/cli.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict"; function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var _chunkENIZYNEFcjs = require('../chunk-ENIZYNEF.cjs');
|
|
5
|
+
require('../chunk-Y4BWZB6J.cjs');
|
|
6
6
|
require('../chunk-2BSBFBOA.cjs');
|
|
7
7
|
require('../chunk-WOFXZ3XU.cjs');
|
|
8
8
|
|
|
@@ -23,7 +23,7 @@ args.forEach((arg, i) => {
|
|
|
23
23
|
if (arg === "--origin" && args[i + 1]) origins.push(args[i + 1]);
|
|
24
24
|
});
|
|
25
25
|
var port = value("--port");
|
|
26
|
-
void
|
|
26
|
+
void _chunkENIZYNEFcjs.createToolBridge.call(void 0, {
|
|
27
27
|
name: _nullishCoalesce(value("--name"), () => ( "pixerate")),
|
|
28
28
|
port: port !== void 0 ? Number(port) : void 0,
|
|
29
29
|
token: _nullishCoalesce(value("--token"), () => ( process.env.PIXERATE_BRIDGE_TOKEN)),
|
package/dist/bridge/cli.js
CHANGED
package/dist/bridge/index.cjs
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkENIZYNEFcjs = require('../chunk-ENIZYNEF.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkY4BWZB6Jcjs = require('../chunk-Y4BWZB6J.cjs');
|
|
11
11
|
require('../chunk-2BSBFBOA.cjs');
|
|
12
12
|
require('../chunk-WOFXZ3XU.cjs');
|
|
13
13
|
|
|
@@ -17,4 +17,4 @@ require('../chunk-WOFXZ3XU.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
exports.TOOL_BRIDGE_DEFAULT_PORT =
|
|
20
|
+
exports.TOOL_BRIDGE_DEFAULT_PORT = _chunkY4BWZB6Jcjs.TOOL_BRIDGE_DEFAULT_PORT; exports.TOOL_BRIDGE_PROTOCOL = _chunkY4BWZB6Jcjs.TOOL_BRIDGE_PROTOCOL; exports.createToolBridge = _chunkENIZYNEFcjs.createToolBridge; exports.defaultSkillsDir = _chunkENIZYNEFcjs.defaultSkillsDir; exports.isLocalOrigin = _chunkENIZYNEFcjs.isLocalOrigin; exports.loadSkillFiles = _chunkENIZYNEFcjs.loadSkillFiles;
|
package/dist/bridge/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
defaultSkillsDir,
|
|
4
4
|
isLocalOrigin,
|
|
5
5
|
loadSkillFiles
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-EAQ4BGNS.js";
|
|
7
7
|
import {
|
|
8
8
|
TOOL_BRIDGE_DEFAULT_PORT,
|
|
9
9
|
TOOL_BRIDGE_PROTOCOL
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-RFBFTLVN.js";
|
|
11
11
|
import "../chunk-HF5QZS7Z.js";
|
|
12
12
|
import "../chunk-V2ZCJRDM.js";
|
|
13
13
|
export {
|