pixiboardjs 0.1.0-alpha.1 → 0.1.0-alpha.2
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/CHANGELOG.md +6 -0
- package/dist/browser.d.ts +5 -5
- package/dist/browser.js +124 -36
- package/dist/browser.js.map +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.js +79 -8
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +2 -2
- package/dist/node.js +79 -8
- package/dist/node.js.map +1 -1
- package/dist/tsdoc-metadata.json +11 -0
- package/dist/{types-DhluAalJ.d.ts → types-CZ0KxRlm.d.ts} +45 -6
- package/dist/types.d.ts +1 -1
- package/etc/pixiboardjs-browser.api.md +84 -21
- package/etc/pixiboardjs-node.api.md +83 -20
- package/etc/pixiboardjs-types.api.md +68 -20
- package/etc/pixiboardjs.api.md +83 -20
- package/package.json +4 -4
package/etc/pixiboardjs.api.md
CHANGED
|
@@ -4,11 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
+
// @public (undocumented)
|
|
8
|
+
export type AssetRef = {
|
|
9
|
+
assetId: string;
|
|
10
|
+
variant?: AssetVariant;
|
|
11
|
+
};
|
|
12
|
+
|
|
7
13
|
// @public (undocumented)
|
|
8
14
|
export class AssetUnavailableError extends CapabilityError {
|
|
9
15
|
constructor(assetId: string, variant?: string);
|
|
10
16
|
}
|
|
11
17
|
|
|
18
|
+
// @public (undocumented)
|
|
19
|
+
export type AssetVariant = "original" | "preview" | "waveform" | `preview-${string}`;
|
|
20
|
+
|
|
12
21
|
// @public (undocumented)
|
|
13
22
|
export type BoardCapabilities = {
|
|
14
23
|
availability: {
|
|
@@ -218,6 +227,9 @@ export type ChangeOrigin = "api" | "ui" | "plugin" | "agent" | "history" | "load
|
|
|
218
227
|
// @public (undocumented)
|
|
219
228
|
export function createPixiBoard(options?: PixiBoardOptions): Promise<PixiBoard>;
|
|
220
229
|
|
|
230
|
+
// @public
|
|
231
|
+
export function createPreviewSpec(node: PreviewNode, options?: PreviewSpecOptions): PreviewSpec;
|
|
232
|
+
|
|
221
233
|
// @public (undocumented)
|
|
222
234
|
export type CustomDisplayFactory = {
|
|
223
235
|
createContainer(): CustomDisplayObject;
|
|
@@ -263,10 +275,7 @@ export type CustomNodeRenderer<Props extends JsonValue = JsonValue, State = unkn
|
|
|
263
275
|
// @public (undocumented)
|
|
264
276
|
export type CustomNodeRendererContext = {
|
|
265
277
|
assets: {
|
|
266
|
-
acquireTexture(ref:
|
|
267
|
-
assetId: string;
|
|
268
|
-
variant?: "original" | "preview" | "waveform";
|
|
269
|
-
}, options?: Record<string, unknown>): Promise<CustomTextureLease>;
|
|
278
|
+
acquireTexture(ref: AssetRef, options?: Record<string, unknown>): Promise<CustomTextureLease>;
|
|
270
279
|
};
|
|
271
280
|
invalidate(): void;
|
|
272
281
|
signal: AbortSignal;
|
|
@@ -353,6 +362,15 @@ export type HistoryChangeEvent = {
|
|
|
353
362
|
canRedo: boolean;
|
|
354
363
|
};
|
|
355
364
|
|
|
365
|
+
// @public
|
|
366
|
+
export function isAssetVariant(value: unknown): value is AssetVariant;
|
|
367
|
+
|
|
368
|
+
// @public (undocumented)
|
|
369
|
+
export function isDocumentPreviewType(type: string): boolean;
|
|
370
|
+
|
|
371
|
+
// @public (undocumented)
|
|
372
|
+
export function isPreviewNodeType(type: string): boolean;
|
|
373
|
+
|
|
356
374
|
// Warning: (ae-forgotten-export) The symbol "JsonPrimitive" needs to be exported by the entry point index.d.ts
|
|
357
375
|
//
|
|
358
376
|
// @public (undocumented)
|
|
@@ -604,6 +622,52 @@ export type Point = {
|
|
|
604
622
|
y: number;
|
|
605
623
|
};
|
|
606
624
|
|
|
625
|
+
// @public
|
|
626
|
+
export type PreviewNode = {
|
|
627
|
+
type?: string;
|
|
628
|
+
name?: string;
|
|
629
|
+
width: number;
|
|
630
|
+
height: number;
|
|
631
|
+
props?: unknown;
|
|
632
|
+
};
|
|
633
|
+
|
|
634
|
+
// @public (undocumented)
|
|
635
|
+
export type PreviewQuality = "thumbnail" | "detail";
|
|
636
|
+
|
|
637
|
+
// @public
|
|
638
|
+
export type PreviewSpec = {
|
|
639
|
+
width: number;
|
|
640
|
+
height: number;
|
|
641
|
+
page: number;
|
|
642
|
+
mode: "viewport" | "fixed-viewport";
|
|
643
|
+
quality: PreviewQuality;
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
// @public (undocumented)
|
|
647
|
+
export type PreviewSpecOptions = {
|
|
648
|
+
reason?: string;
|
|
649
|
+
quality?: PreviewQuality;
|
|
650
|
+
width?: number;
|
|
651
|
+
height?: number;
|
|
652
|
+
page?: number;
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
// @public (undocumented)
|
|
656
|
+
export type PreviewState = {
|
|
657
|
+
previewStatus?: PreviewStatus;
|
|
658
|
+
previewSpec?: PreviewSpec;
|
|
659
|
+
previewQuality?: PreviewQuality;
|
|
660
|
+
previewRequestId?: string | null;
|
|
661
|
+
previewJobId?: string | null;
|
|
662
|
+
previewError?: string | null;
|
|
663
|
+
};
|
|
664
|
+
|
|
665
|
+
// @public
|
|
666
|
+
export type PreviewStatus = "pending" | "queued" | "running" | "ready" | "error" | "failed" | "unsupported";
|
|
667
|
+
|
|
668
|
+
// @public
|
|
669
|
+
export function previewStatusLabel(node: Pick<PreviewNode, "type" | "name" | "props">, typeLabel: string): string;
|
|
670
|
+
|
|
607
671
|
// @public (undocumented)
|
|
608
672
|
export type PublicBoardEventMap = {
|
|
609
673
|
change: BoardChangeEvent;
|
|
@@ -742,22 +806,21 @@ export type WorldBounds = {
|
|
|
742
806
|
|
|
743
807
|
// Warnings were encountered during analysis:
|
|
744
808
|
//
|
|
745
|
-
// dist/types-
|
|
746
|
-
// dist/types-
|
|
747
|
-
// dist/types-
|
|
748
|
-
// dist/types-
|
|
749
|
-
// dist/types-
|
|
750
|
-
// dist/types-
|
|
751
|
-
// dist/types-
|
|
752
|
-
// dist/types-
|
|
753
|
-
// dist/types-
|
|
754
|
-
// dist/types-
|
|
755
|
-
// dist/types-
|
|
756
|
-
// dist/types-
|
|
757
|
-
// dist/types-
|
|
758
|
-
// dist/types-
|
|
759
|
-
// dist/types-
|
|
760
|
-
// dist/types-DhluAalJ.d.ts:513:5 - (ae-forgotten-export) The symbol "CaptureService" needs to be exported by the entry point index.d.ts
|
|
809
|
+
// dist/types-CZ0KxRlm.d.ts:313:9 - (ae-forgotten-export) The symbol "RequestOptions" needs to be exported by the entry point index.d.ts
|
|
810
|
+
// dist/types-CZ0KxRlm.d.ts:314:9 - (ae-forgotten-export) The symbol "DocumentLoadOptions_2" needs to be exported by the entry point index.d.ts
|
|
811
|
+
// dist/types-CZ0KxRlm.d.ts:314:9 - (ae-forgotten-export) The symbol "WriteOptions" needs to be exported by the entry point index.d.ts
|
|
812
|
+
// dist/types-CZ0KxRlm.d.ts:317:13 - (ae-forgotten-export) The symbol "BoardChangeSet" needs to be exported by the entry point index.d.ts
|
|
813
|
+
// dist/types-CZ0KxRlm.d.ts:323:9 - (ae-forgotten-export) The symbol "ReadNodesInput" needs to be exported by the entry point index.d.ts
|
|
814
|
+
// dist/types-CZ0KxRlm.d.ts:323:9 - (ae-forgotten-export) The symbol "ReadNodesResult" needs to be exported by the entry point index.d.ts
|
|
815
|
+
// dist/types-CZ0KxRlm.d.ts:324:9 - (ae-forgotten-export) The symbol "WriteResult" needs to be exported by the entry point index.d.ts
|
|
816
|
+
// dist/types-CZ0KxRlm.d.ts:325:13 - (ae-forgotten-export) The symbol "CreateNodeInput" needs to be exported by the entry point index.d.ts
|
|
817
|
+
// dist/types-CZ0KxRlm.d.ts:328:13 - (ae-forgotten-export) The symbol "UpdateNodeInput" needs to be exported by the entry point index.d.ts
|
|
818
|
+
// dist/types-CZ0KxRlm.d.ts:335:9 - (ae-forgotten-export) The symbol "ReadAssetsResult" needs to be exported by the entry point index.d.ts
|
|
819
|
+
// dist/types-CZ0KxRlm.d.ts:342:13 - (ae-forgotten-export) The symbol "AssetRecord" needs to be exported by the entry point index.d.ts
|
|
820
|
+
// dist/types-CZ0KxRlm.d.ts:370:9 - (ae-forgotten-export) The symbol "PreviewResult" needs to be exported by the entry point index.d.ts
|
|
821
|
+
// dist/types-CZ0KxRlm.d.ts:548:5 - (ae-forgotten-export) The symbol "BoardCoreOptions" needs to be exported by the entry point index.d.ts
|
|
822
|
+
// dist/types-CZ0KxRlm.d.ts:551:5 - (ae-forgotten-export) The symbol "PreviewService" needs to be exported by the entry point index.d.ts
|
|
823
|
+
// dist/types-CZ0KxRlm.d.ts:552:5 - (ae-forgotten-export) The symbol "CaptureService" needs to be exported by the entry point index.d.ts
|
|
761
824
|
|
|
762
825
|
// (No @packageDocumentation comment for this package)
|
|
763
826
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pixiboardjs",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
4
|
"description": "High-performance infinite canvas SDK for large, media-heavy, AI-native boards — flat document model, PixiJS rendering, custom nodes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"canvas",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"typescript": "^5.9.2",
|
|
68
68
|
"vitest": "^3.2.4",
|
|
69
|
+
"@pixi-board/capabilities": "0.1.0-alpha.2",
|
|
70
|
+
"@pixi-board/core": "0.1.0-alpha.2",
|
|
69
71
|
"@pixi-board/adapter-browser": "0.0.0",
|
|
70
|
-
"@pixi-board/
|
|
71
|
-
"@pixi-board/renderer-pixi": "0.0.0",
|
|
72
|
-
"@pixi-board/capabilities": "0.1.0-alpha.1"
|
|
72
|
+
"@pixi-board/renderer-pixi": "0.0.0"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|