pixiboardjs 0.1.0-alpha.0 → 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 +50 -3
- package/dist/browser.d.ts +13 -5
- package/dist/browser.js +229 -57
- package/dist/browser.js.map +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.js +155 -22
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +2 -2
- package/dist/node.js +155 -22
- package/dist/node.js.map +1 -1
- package/dist/tsdoc-metadata.json +11 -0
- package/dist/{types-DnR8yhxj.d.ts → types-CZ0KxRlm.d.ts} +49 -7
- package/dist/types.d.ts +1 -1
- package/etc/pixiboardjs-browser.api.md +90 -22
- package/etc/pixiboardjs-node.api.md +87 -21
- package/etc/pixiboardjs-types.api.md +72 -21
- package/etc/pixiboardjs.api.md +87 -21
- package/package.json +4 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.58.12"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -20,9 +20,10 @@ type ViewportSnapshot = {
|
|
|
20
20
|
scale: number;
|
|
21
21
|
offset: Point;
|
|
22
22
|
};
|
|
23
|
+
type AssetVariant = "original" | "preview" | "waveform" | `preview-${string}`;
|
|
23
24
|
type AssetRef = {
|
|
24
25
|
assetId: string;
|
|
25
|
-
variant?:
|
|
26
|
+
variant?: AssetVariant;
|
|
26
27
|
};
|
|
27
28
|
type AssetRecord = {
|
|
28
29
|
id: string;
|
|
@@ -149,6 +150,47 @@ type DocumentLoadOptions$1 = {
|
|
|
149
150
|
replaceHistory?: boolean;
|
|
150
151
|
};
|
|
151
152
|
|
|
153
|
+
/** Host-owned preview job state, stored in node props. */
|
|
154
|
+
type PreviewStatus = "pending" | "queued" | "running" | "ready" | "error" | "failed" | "unsupported";
|
|
155
|
+
type PreviewQuality = "thumbnail" | "detail";
|
|
156
|
+
/** Logical layout viewport; independent of board zoom and display pixel density. */
|
|
157
|
+
type PreviewSpec = {
|
|
158
|
+
width: number;
|
|
159
|
+
height: number;
|
|
160
|
+
page: number;
|
|
161
|
+
mode: "viewport" | "fixed-viewport";
|
|
162
|
+
quality: PreviewQuality;
|
|
163
|
+
};
|
|
164
|
+
type PreviewState = {
|
|
165
|
+
previewStatus?: PreviewStatus;
|
|
166
|
+
previewSpec?: PreviewSpec;
|
|
167
|
+
previewQuality?: PreviewQuality;
|
|
168
|
+
previewRequestId?: string | null;
|
|
169
|
+
previewJobId?: string | null;
|
|
170
|
+
previewError?: string | null;
|
|
171
|
+
};
|
|
172
|
+
/** Structural input also accepts BoardNode without constraining its props schema. */
|
|
173
|
+
type PreviewNode = {
|
|
174
|
+
type?: string;
|
|
175
|
+
name?: string;
|
|
176
|
+
width: number;
|
|
177
|
+
height: number;
|
|
178
|
+
props?: unknown;
|
|
179
|
+
};
|
|
180
|
+
type PreviewSpecOptions = {
|
|
181
|
+
reason?: string;
|
|
182
|
+
quality?: PreviewQuality;
|
|
183
|
+
width?: number;
|
|
184
|
+
height?: number;
|
|
185
|
+
page?: number;
|
|
186
|
+
};
|
|
187
|
+
declare function isDocumentPreviewType(type: string): boolean;
|
|
188
|
+
declare function isPreviewNodeType(type: string): boolean;
|
|
189
|
+
/** Pure layout calculation: never changes node geometry, camera, or persisted state. */
|
|
190
|
+
declare function createPreviewSpec(node: PreviewNode, options?: PreviewSpecOptions): PreviewSpec;
|
|
191
|
+
/** Short Chinese type tag. Full error details belong in previewError, never here. */
|
|
192
|
+
declare function previewStatusLabel(node: Pick<PreviewNode, "type" | "name" | "props">, typeLabel: string): string;
|
|
193
|
+
|
|
152
194
|
type RegisterNodeTypeOptions = {
|
|
153
195
|
replace?: boolean;
|
|
154
196
|
};
|
|
@@ -392,10 +434,7 @@ type CustomTextureLease = {
|
|
|
392
434
|
};
|
|
393
435
|
type CustomNodeRendererContext = {
|
|
394
436
|
assets: {
|
|
395
|
-
acquireTexture(ref:
|
|
396
|
-
assetId: string;
|
|
397
|
-
variant?: "original" | "preview" | "waveform";
|
|
398
|
-
}, options?: Record<string, unknown>): Promise<CustomTextureLease>;
|
|
437
|
+
acquireTexture(ref: AssetRef, options?: Record<string, unknown>): Promise<CustomTextureLease>;
|
|
399
438
|
};
|
|
400
439
|
invalidate(): void;
|
|
401
440
|
signal: AbortSignal;
|
|
@@ -492,6 +531,7 @@ type PixiBoardOptions = {
|
|
|
492
531
|
transform?: {
|
|
493
532
|
minWidth?: number;
|
|
494
533
|
minHeight?: number;
|
|
534
|
+
handles?: readonly ResizeHandle[];
|
|
495
535
|
};
|
|
496
536
|
ports?: BoardRuntimePorts;
|
|
497
537
|
/**
|
|
@@ -572,7 +612,9 @@ type TransformSession = {
|
|
|
572
612
|
* Deltas are absolute rather than incremental so a gesture stays exact
|
|
573
613
|
* under fractional zoom and dropped frames.
|
|
574
614
|
*/
|
|
575
|
-
update(deltaWorld: Point
|
|
615
|
+
update(deltaWorld: Point, options?: {
|
|
616
|
+
preserveAspectRatio?: boolean;
|
|
617
|
+
}): void;
|
|
576
618
|
/** Ends the gesture. Further `update()` calls are ignored. */
|
|
577
619
|
commit(): void;
|
|
578
620
|
/** Ends the gesture and restores the geometry captured at `begin()`. */
|
|
@@ -699,4 +741,4 @@ type NodePatch<Props extends JsonValue = JsonValue> = BoardNodePatch<Props>;
|
|
|
699
741
|
type NodeInput<Props extends JsonValue = JsonValue> = BoardNodeCreateInput<Props>;
|
|
700
742
|
type TransactionOrigin = ChangeOrigin;
|
|
701
743
|
|
|
702
|
-
export type
|
|
744
|
+
export { type PreviewStatus as $, type AssetVariant as A, type BoardNode as B, type CaptureInput as C, type DocumentLoadOptions$1 as D, type NodeHandleEventMap as E, type NodeInput as F, type NodeListFilter as G, type HistoryChangeEvent as H, type NodePatch as I, type JsonValue as J, type NodeQuery as K, type NodeResizeRequest as L, type NodeTypeDefinition as M, type NodeGeometry as N, type NodeTypeRegistrationDisposer as O, type PixiBoard as P, type NodeTypeRegistrationOptions as Q, type ResizeHandle as R, type PixiBoardOptions as S, type PixiBoardRendererOptions as T, type PreviewNode as U, type ViewportSnapshot as V, type WorldBounds as W, type PreviewQuality as X, type PreviewSpec as Y, type PreviewSpecOptions as Z, type PreviewState as _, type Point as a, type PublicBoardEventMap as a0, type PublicNodeTypeDefinition as a1, type PublicRendererOptions as a2, type RenderCompleteEvent as a3, type RendererApplyResult as a4, type ResizeObserverPort as a5, type RuntimeRenderer as a6, type SelectionChangeEvent as a7, type TickerPort as a8, type TransactionOptions as a9, type TransactionOrigin as aa, type TransformBounds as ab, type TransformHandlePlacement as ac, type TransformSession as ad, type ViewportChangeEvent as ae, createPreviewSpec as af, isDocumentPreviewType as ag, isPreviewNodeType as ah, previewStatusLabel as ai, type BoardDocument as b, type AssetRecord as c, type AssetRef as d, type BoardCapabilities as e, type BoardChangeEvent as f, type BoardDocumentUpdate as g, type BoardLifecycleState as h, type BoardNodeCreateInput as i, type BoardNodePatch as j, type BoardRuntimePorts as k, type BrowserEventPort as l, type CaptureResult as m, type ChangeOrigin as n, type CustomDisplayFactory as o, type CustomDisplayObject as p, type CustomNodeDataDefinition as q, type CustomNodeDefinition as r, type CustomNodeRenderer as s, type CustomNodeRendererContext as t, type CustomNodeRendererRegistry as u, type CustomNodeView as v, type CustomResizePolicy as w, type CustomTextureLease as x, type DocumentPersistence as y, type NodeHandle as z };
|
package/dist/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { d as AssetRef, A as AssetVariant, e as BoardCapabilities, f as BoardChangeEvent, b as BoardDocument, g as BoardDocumentUpdate, h as BoardLifecycleState, B as BoardNode, i as BoardNodeCreateInput, j as BoardNodePatch, k as BoardRuntimePorts, l as BrowserEventPort, C as CaptureInput, m as CaptureResult, n as ChangeOrigin, o as CustomDisplayFactory, p as CustomDisplayObject, q as CustomNodeDataDefinition, r as CustomNodeDefinition, s as CustomNodeRenderer, t as CustomNodeRendererContext, u as CustomNodeRendererRegistry, v as CustomNodeView, w as CustomResizePolicy, x as CustomTextureLease, D as DocumentLoadOptions, y as DocumentPersistence, H as HistoryChangeEvent, J as JsonValue, N as NodeGeometry, z as NodeHandle, E as NodeHandleEventMap, F as NodeInput, G as NodeListFilter, I as NodePatch, K as NodeQuery, L as NodeResizeRequest, M as NodeTypeDefinition, O as NodeTypeRegistrationDisposer, Q as NodeTypeRegistrationOptions, P as PixiBoard, S as PixiBoardOptions, T as PixiBoardRendererOptions, a as Point, U as PreviewNode, X as PreviewQuality, Y as PreviewSpec, Z as PreviewSpecOptions, _ as PreviewState, $ as PreviewStatus, a0 as PublicBoardEventMap, a1 as PublicNodeTypeDefinition, a2 as PublicRendererOptions, a3 as RenderCompleteEvent, a4 as RendererApplyResult, R as ResizeHandle, a5 as ResizeObserverPort, a6 as RuntimeRenderer, a7 as SelectionChangeEvent, a8 as TickerPort, a9 as TransactionOptions, aa as TransactionOrigin, ab as TransformBounds, ac as TransformHandlePlacement, ad as TransformSession, ae as ViewportChangeEvent, V as ViewportSnapshot, W as WorldBounds } from './types-CZ0KxRlm.js';
|
|
@@ -16,7 +16,7 @@ export function anchorRatio(anchor?: OverlayAnchor): Point;
|
|
|
16
16
|
export function anchorWorldPoint(bounds: WorldBounds, anchor?: OverlayAnchor): Point;
|
|
17
17
|
|
|
18
18
|
// @public (undocumented)
|
|
19
|
-
export type AssetBinaryVariant =
|
|
19
|
+
export type AssetBinaryVariant = AssetVariant;
|
|
20
20
|
|
|
21
21
|
// @public (undocumented)
|
|
22
22
|
export type AssetGcOptions = AssetGcRoots & {
|
|
@@ -42,6 +42,12 @@ export type AssetGcRoots = {
|
|
|
42
42
|
explicitLeaseAssetIds?: Iterable<string>;
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
+
// @public (undocumented)
|
|
46
|
+
export type AssetRef = {
|
|
47
|
+
assetId: string;
|
|
48
|
+
variant?: AssetVariant;
|
|
49
|
+
};
|
|
50
|
+
|
|
45
51
|
// @public (undocumented)
|
|
46
52
|
export type AssetStorageLocation = {
|
|
47
53
|
kind: "indexeddb";
|
|
@@ -55,6 +61,9 @@ export class AssetUnavailableError extends CapabilityError {
|
|
|
55
61
|
constructor(assetId: string, variant?: string);
|
|
56
62
|
}
|
|
57
63
|
|
|
64
|
+
// @public (undocumented)
|
|
65
|
+
export type AssetVariant = "original" | "preview" | "waveform" | `preview-${string}`;
|
|
66
|
+
|
|
58
67
|
// @public
|
|
59
68
|
export function attachDomTransformer(board: PixiBoard, options: DomTransformerOptions): DomTransformer;
|
|
60
69
|
|
|
@@ -562,6 +571,9 @@ export type ChangeOrigin = "api" | "ui" | "plugin" | "agent" | "history" | "load
|
|
|
562
571
|
// @public (undocumented)
|
|
563
572
|
export function createPixiBoard(options?: PixiBoardOptions): Promise<PixiBoard>;
|
|
564
573
|
|
|
574
|
+
// @public
|
|
575
|
+
export function createPreviewSpec(node: PreviewNode, options?: PreviewSpecOptions): PreviewSpec;
|
|
576
|
+
|
|
565
577
|
// @public (undocumented)
|
|
566
578
|
export type CustomDisplayFactory = {
|
|
567
579
|
createContainer(): CustomDisplayObject;
|
|
@@ -607,10 +619,7 @@ export type CustomNodeRenderer<Props extends JsonValue = JsonValue, State = unkn
|
|
|
607
619
|
// @public (undocumented)
|
|
608
620
|
export type CustomNodeRendererContext = {
|
|
609
621
|
assets: {
|
|
610
|
-
acquireTexture(ref:
|
|
611
|
-
assetId: string;
|
|
612
|
-
variant?: "original" | "preview" | "waveform";
|
|
613
|
-
}, options?: Record<string, unknown>): Promise<CustomTextureLease>;
|
|
622
|
+
acquireTexture(ref: AssetRef, options?: Record<string, unknown>): Promise<CustomTextureLease>;
|
|
614
623
|
};
|
|
615
624
|
invalidate(): void;
|
|
616
625
|
signal: AbortSignal;
|
|
@@ -708,6 +717,7 @@ export type DomTransformerOptions = {
|
|
|
708
717
|
surface?: HTMLElement;
|
|
709
718
|
size?: number;
|
|
710
719
|
classPrefix?: string;
|
|
720
|
+
handles?: readonly ResizeHandle[];
|
|
711
721
|
};
|
|
712
722
|
|
|
713
723
|
// @public (undocumented)
|
|
@@ -755,9 +765,18 @@ export interface IndexedDbPort extends PortLifecycle {
|
|
|
755
765
|
saveDocument(record: BrowserDocumentRecord, signal: AbortSignal, options?: SaveBrowserDocumentOptions): Promise<void>;
|
|
756
766
|
}
|
|
757
767
|
|
|
768
|
+
// @public
|
|
769
|
+
export function isAssetVariant(value: unknown): value is AssetVariant;
|
|
770
|
+
|
|
758
771
|
// @public (undocumented)
|
|
759
772
|
export function isBrowserQuotaError(error: unknown): boolean;
|
|
760
773
|
|
|
774
|
+
// @public (undocumented)
|
|
775
|
+
export function isDocumentPreviewType(type: string): boolean;
|
|
776
|
+
|
|
777
|
+
// @public (undocumented)
|
|
778
|
+
export function isPreviewNodeType(type: string): boolean;
|
|
779
|
+
|
|
761
780
|
// Warning: (ae-forgotten-export) The symbol "JsonPrimitive" needs to be exported by the entry point browser.d.ts
|
|
762
781
|
//
|
|
763
782
|
// @public (undocumented)
|
|
@@ -1185,6 +1204,7 @@ export type PixiBoardOptions = {
|
|
|
1185
1204
|
transform?: {
|
|
1186
1205
|
minWidth?: number;
|
|
1187
1206
|
minHeight?: number;
|
|
1207
|
+
handles?: readonly ResizeHandle[];
|
|
1188
1208
|
};
|
|
1189
1209
|
ports?: BoardRuntimePorts;
|
|
1190
1210
|
virtualization?: {
|
|
@@ -1215,6 +1235,52 @@ export interface PortLifecycle {
|
|
|
1215
1235
|
destroy?(): void | Promise<void>;
|
|
1216
1236
|
}
|
|
1217
1237
|
|
|
1238
|
+
// @public
|
|
1239
|
+
export type PreviewNode = {
|
|
1240
|
+
type?: string;
|
|
1241
|
+
name?: string;
|
|
1242
|
+
width: number;
|
|
1243
|
+
height: number;
|
|
1244
|
+
props?: unknown;
|
|
1245
|
+
};
|
|
1246
|
+
|
|
1247
|
+
// @public (undocumented)
|
|
1248
|
+
export type PreviewQuality = "thumbnail" | "detail";
|
|
1249
|
+
|
|
1250
|
+
// @public
|
|
1251
|
+
export type PreviewSpec = {
|
|
1252
|
+
width: number;
|
|
1253
|
+
height: number;
|
|
1254
|
+
page: number;
|
|
1255
|
+
mode: "viewport" | "fixed-viewport";
|
|
1256
|
+
quality: PreviewQuality;
|
|
1257
|
+
};
|
|
1258
|
+
|
|
1259
|
+
// @public (undocumented)
|
|
1260
|
+
export type PreviewSpecOptions = {
|
|
1261
|
+
reason?: string;
|
|
1262
|
+
quality?: PreviewQuality;
|
|
1263
|
+
width?: number;
|
|
1264
|
+
height?: number;
|
|
1265
|
+
page?: number;
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
// @public (undocumented)
|
|
1269
|
+
export type PreviewState = {
|
|
1270
|
+
previewStatus?: PreviewStatus;
|
|
1271
|
+
previewSpec?: PreviewSpec;
|
|
1272
|
+
previewQuality?: PreviewQuality;
|
|
1273
|
+
previewRequestId?: string | null;
|
|
1274
|
+
previewJobId?: string | null;
|
|
1275
|
+
previewError?: string | null;
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
// @public
|
|
1279
|
+
export type PreviewStatus = "pending" | "queued" | "running" | "ready" | "error" | "failed" | "unsupported";
|
|
1280
|
+
|
|
1281
|
+
// @public
|
|
1282
|
+
export function previewStatusLabel(node: Pick<PreviewNode, "type" | "name" | "props">, typeLabel: string): string;
|
|
1283
|
+
|
|
1218
1284
|
// @public
|
|
1219
1285
|
export function projectOverlayItem(node: Readonly<BoardNode<JsonValue>>, item: OverlayItem, viewport: ViewportSnapshot, bounds: WorldBounds): OverlayPlacement | undefined;
|
|
1220
1286
|
|
|
@@ -1326,6 +1392,7 @@ export type SelectionOverlayOptions = {
|
|
|
1326
1392
|
classPrefix?: string;
|
|
1327
1393
|
groupBox?: boolean;
|
|
1328
1394
|
groupBoxPadding?: number;
|
|
1395
|
+
nodeOutlines?: boolean | "single";
|
|
1329
1396
|
schedule?(callback: () => void): () => void;
|
|
1330
1397
|
};
|
|
1331
1398
|
|
|
@@ -1386,7 +1453,9 @@ export type TransformHandlePlacement = {
|
|
|
1386
1453
|
// @public (undocumented)
|
|
1387
1454
|
export type TransformSession = {
|
|
1388
1455
|
readonly handle: ResizeHandle;
|
|
1389
|
-
update(deltaWorld: Point
|
|
1456
|
+
update(deltaWorld: Point, options?: {
|
|
1457
|
+
preserveAspectRatio?: boolean;
|
|
1458
|
+
}): void;
|
|
1390
1459
|
commit(): void;
|
|
1391
1460
|
cancel(): void;
|
|
1392
1461
|
};
|
|
@@ -1413,22 +1482,21 @@ export type WorldBounds = {
|
|
|
1413
1482
|
|
|
1414
1483
|
// Warnings were encountered during analysis:
|
|
1415
1484
|
//
|
|
1416
|
-
// dist/types-
|
|
1417
|
-
// dist/types-
|
|
1418
|
-
// dist/types-
|
|
1419
|
-
// dist/types-
|
|
1420
|
-
// dist/types-
|
|
1421
|
-
// dist/types-
|
|
1422
|
-
// dist/types-
|
|
1423
|
-
// dist/types-
|
|
1424
|
-
// dist/types-
|
|
1425
|
-
// dist/types-
|
|
1426
|
-
// dist/types-
|
|
1427
|
-
// dist/types-
|
|
1428
|
-
// dist/types-
|
|
1429
|
-
// dist/types-
|
|
1430
|
-
// dist/types-
|
|
1431
|
-
// dist/types-DnR8yhxj.d.ts:512:5 - (ae-forgotten-export) The symbol "CaptureService" needs to be exported by the entry point browser.d.ts
|
|
1485
|
+
// dist/types-CZ0KxRlm.d.ts:313:9 - (ae-forgotten-export) The symbol "RequestOptions" needs to be exported by the entry point browser.d.ts
|
|
1486
|
+
// dist/types-CZ0KxRlm.d.ts:314:9 - (ae-forgotten-export) The symbol "DocumentLoadOptions_2" needs to be exported by the entry point browser.d.ts
|
|
1487
|
+
// dist/types-CZ0KxRlm.d.ts:314:9 - (ae-forgotten-export) The symbol "WriteOptions" needs to be exported by the entry point browser.d.ts
|
|
1488
|
+
// dist/types-CZ0KxRlm.d.ts:317:13 - (ae-forgotten-export) The symbol "BoardChangeSet" needs to be exported by the entry point browser.d.ts
|
|
1489
|
+
// dist/types-CZ0KxRlm.d.ts:323:9 - (ae-forgotten-export) The symbol "ReadNodesInput" needs to be exported by the entry point browser.d.ts
|
|
1490
|
+
// dist/types-CZ0KxRlm.d.ts:323:9 - (ae-forgotten-export) The symbol "ReadNodesResult" needs to be exported by the entry point browser.d.ts
|
|
1491
|
+
// dist/types-CZ0KxRlm.d.ts:324:9 - (ae-forgotten-export) The symbol "WriteResult" needs to be exported by the entry point browser.d.ts
|
|
1492
|
+
// dist/types-CZ0KxRlm.d.ts:325:13 - (ae-forgotten-export) The symbol "CreateNodeInput" needs to be exported by the entry point browser.d.ts
|
|
1493
|
+
// dist/types-CZ0KxRlm.d.ts:328:13 - (ae-forgotten-export) The symbol "UpdateNodeInput" needs to be exported by the entry point browser.d.ts
|
|
1494
|
+
// dist/types-CZ0KxRlm.d.ts:335:9 - (ae-forgotten-export) The symbol "ReadAssetsResult" needs to be exported by the entry point browser.d.ts
|
|
1495
|
+
// dist/types-CZ0KxRlm.d.ts:342:13 - (ae-forgotten-export) The symbol "AssetRecord" needs to be exported by the entry point browser.d.ts
|
|
1496
|
+
// dist/types-CZ0KxRlm.d.ts:370:9 - (ae-forgotten-export) The symbol "PreviewResult" needs to be exported by the entry point browser.d.ts
|
|
1497
|
+
// dist/types-CZ0KxRlm.d.ts:548:5 - (ae-forgotten-export) The symbol "BoardCoreOptions" needs to be exported by the entry point browser.d.ts
|
|
1498
|
+
// dist/types-CZ0KxRlm.d.ts:551:5 - (ae-forgotten-export) The symbol "PreviewService" needs to be exported by the entry point browser.d.ts
|
|
1499
|
+
// dist/types-CZ0KxRlm.d.ts:552:5 - (ae-forgotten-export) The symbol "CaptureService" needs to be exported by the entry point browser.d.ts
|
|
1432
1500
|
|
|
1433
1501
|
// (No @packageDocumentation comment for this package)
|
|
1434
1502
|
|
|
@@ -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 node.d.ts
|
|
357
375
|
//
|
|
358
376
|
// @public (undocumented)
|
|
@@ -581,6 +599,7 @@ export type PixiBoardOptions = {
|
|
|
581
599
|
transform?: {
|
|
582
600
|
minWidth?: number;
|
|
583
601
|
minHeight?: number;
|
|
602
|
+
handles?: readonly ResizeHandle[];
|
|
584
603
|
};
|
|
585
604
|
ports?: BoardRuntimePorts;
|
|
586
605
|
virtualization?: {
|
|
@@ -603,6 +622,52 @@ export type Point = {
|
|
|
603
622
|
y: number;
|
|
604
623
|
};
|
|
605
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
|
+
|
|
606
671
|
// @public (undocumented)
|
|
607
672
|
export type PublicBoardEventMap = {
|
|
608
673
|
change: BoardChangeEvent;
|
|
@@ -712,7 +777,9 @@ export type TransformHandlePlacement = {
|
|
|
712
777
|
// @public (undocumented)
|
|
713
778
|
export type TransformSession = {
|
|
714
779
|
readonly handle: ResizeHandle;
|
|
715
|
-
update(deltaWorld: Point
|
|
780
|
+
update(deltaWorld: Point, options?: {
|
|
781
|
+
preserveAspectRatio?: boolean;
|
|
782
|
+
}): void;
|
|
716
783
|
commit(): void;
|
|
717
784
|
cancel(): void;
|
|
718
785
|
};
|
|
@@ -739,22 +806,21 @@ export type WorldBounds = {
|
|
|
739
806
|
|
|
740
807
|
// Warnings were encountered during analysis:
|
|
741
808
|
//
|
|
742
|
-
// dist/types-
|
|
743
|
-
// dist/types-
|
|
744
|
-
// dist/types-
|
|
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-DnR8yhxj.d.ts:512:5 - (ae-forgotten-export) The symbol "CaptureService" needs to be exported by the entry point node.d.ts
|
|
809
|
+
// dist/types-CZ0KxRlm.d.ts:313:9 - (ae-forgotten-export) The symbol "RequestOptions" needs to be exported by the entry point node.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 node.d.ts
|
|
811
|
+
// dist/types-CZ0KxRlm.d.ts:314:9 - (ae-forgotten-export) The symbol "WriteOptions" needs to be exported by the entry point node.d.ts
|
|
812
|
+
// dist/types-CZ0KxRlm.d.ts:317:13 - (ae-forgotten-export) The symbol "BoardChangeSet" needs to be exported by the entry point node.d.ts
|
|
813
|
+
// dist/types-CZ0KxRlm.d.ts:323:9 - (ae-forgotten-export) The symbol "ReadNodesInput" needs to be exported by the entry point node.d.ts
|
|
814
|
+
// dist/types-CZ0KxRlm.d.ts:323:9 - (ae-forgotten-export) The symbol "ReadNodesResult" needs to be exported by the entry point node.d.ts
|
|
815
|
+
// dist/types-CZ0KxRlm.d.ts:324:9 - (ae-forgotten-export) The symbol "WriteResult" needs to be exported by the entry point node.d.ts
|
|
816
|
+
// dist/types-CZ0KxRlm.d.ts:325:13 - (ae-forgotten-export) The symbol "CreateNodeInput" needs to be exported by the entry point node.d.ts
|
|
817
|
+
// dist/types-CZ0KxRlm.d.ts:328:13 - (ae-forgotten-export) The symbol "UpdateNodeInput" needs to be exported by the entry point node.d.ts
|
|
818
|
+
// dist/types-CZ0KxRlm.d.ts:335:9 - (ae-forgotten-export) The symbol "ReadAssetsResult" needs to be exported by the entry point node.d.ts
|
|
819
|
+
// dist/types-CZ0KxRlm.d.ts:342:13 - (ae-forgotten-export) The symbol "AssetRecord" needs to be exported by the entry point node.d.ts
|
|
820
|
+
// dist/types-CZ0KxRlm.d.ts:370:9 - (ae-forgotten-export) The symbol "PreviewResult" needs to be exported by the entry point node.d.ts
|
|
821
|
+
// dist/types-CZ0KxRlm.d.ts:548:5 - (ae-forgotten-export) The symbol "BoardCoreOptions" needs to be exported by the entry point node.d.ts
|
|
822
|
+
// dist/types-CZ0KxRlm.d.ts:551:5 - (ae-forgotten-export) The symbol "PreviewService" needs to be exported by the entry point node.d.ts
|
|
823
|
+
// dist/types-CZ0KxRlm.d.ts:552:5 - (ae-forgotten-export) The symbol "CaptureService" needs to be exported by the entry point node.d.ts
|
|
758
824
|
|
|
759
825
|
// (No @packageDocumentation comment for this package)
|
|
760
826
|
|
|
@@ -4,6 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
+
// @public (undocumented)
|
|
8
|
+
export type AssetRef = {
|
|
9
|
+
assetId: string;
|
|
10
|
+
variant?: AssetVariant;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
// @public (undocumented)
|
|
14
|
+
export type AssetVariant = "original" | "preview" | "waveform" | `preview-${string}`;
|
|
15
|
+
|
|
7
16
|
// @public (undocumented)
|
|
8
17
|
export type BoardCapabilities = {
|
|
9
18
|
availability: {
|
|
@@ -228,10 +237,7 @@ export type CustomNodeRenderer<Props extends JsonValue = JsonValue, State = unkn
|
|
|
228
237
|
// @public (undocumented)
|
|
229
238
|
export type CustomNodeRendererContext = {
|
|
230
239
|
assets: {
|
|
231
|
-
acquireTexture(ref:
|
|
232
|
-
assetId: string;
|
|
233
|
-
variant?: "original" | "preview" | "waveform";
|
|
234
|
-
}, options?: Record<string, unknown>): Promise<CustomTextureLease>;
|
|
240
|
+
acquireTexture(ref: AssetRef, options?: Record<string, unknown>): Promise<CustomTextureLease>;
|
|
235
241
|
};
|
|
236
242
|
invalidate(): void;
|
|
237
243
|
signal: AbortSignal;
|
|
@@ -505,6 +511,7 @@ export type PixiBoardOptions = {
|
|
|
505
511
|
transform?: {
|
|
506
512
|
minWidth?: number;
|
|
507
513
|
minHeight?: number;
|
|
514
|
+
handles?: readonly ResizeHandle[];
|
|
508
515
|
};
|
|
509
516
|
ports?: BoardRuntimePorts;
|
|
510
517
|
virtualization?: {
|
|
@@ -527,6 +534,49 @@ export type Point = {
|
|
|
527
534
|
y: number;
|
|
528
535
|
};
|
|
529
536
|
|
|
537
|
+
// @public
|
|
538
|
+
export type PreviewNode = {
|
|
539
|
+
type?: string;
|
|
540
|
+
name?: string;
|
|
541
|
+
width: number;
|
|
542
|
+
height: number;
|
|
543
|
+
props?: unknown;
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
// @public (undocumented)
|
|
547
|
+
export type PreviewQuality = "thumbnail" | "detail";
|
|
548
|
+
|
|
549
|
+
// @public
|
|
550
|
+
export type PreviewSpec = {
|
|
551
|
+
width: number;
|
|
552
|
+
height: number;
|
|
553
|
+
page: number;
|
|
554
|
+
mode: "viewport" | "fixed-viewport";
|
|
555
|
+
quality: PreviewQuality;
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
// @public (undocumented)
|
|
559
|
+
export type PreviewSpecOptions = {
|
|
560
|
+
reason?: string;
|
|
561
|
+
quality?: PreviewQuality;
|
|
562
|
+
width?: number;
|
|
563
|
+
height?: number;
|
|
564
|
+
page?: number;
|
|
565
|
+
};
|
|
566
|
+
|
|
567
|
+
// @public (undocumented)
|
|
568
|
+
export type PreviewState = {
|
|
569
|
+
previewStatus?: PreviewStatus;
|
|
570
|
+
previewSpec?: PreviewSpec;
|
|
571
|
+
previewQuality?: PreviewQuality;
|
|
572
|
+
previewRequestId?: string | null;
|
|
573
|
+
previewJobId?: string | null;
|
|
574
|
+
previewError?: string | null;
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
// @public
|
|
578
|
+
export type PreviewStatus = "pending" | "queued" | "running" | "ready" | "error" | "failed" | "unsupported";
|
|
579
|
+
|
|
530
580
|
// @public (undocumented)
|
|
531
581
|
export type PublicBoardEventMap = {
|
|
532
582
|
change: BoardChangeEvent;
|
|
@@ -620,7 +670,9 @@ export type TransformHandlePlacement = {
|
|
|
620
670
|
// @public (undocumented)
|
|
621
671
|
export type TransformSession = {
|
|
622
672
|
readonly handle: ResizeHandle;
|
|
623
|
-
update(deltaWorld: Point
|
|
673
|
+
update(deltaWorld: Point, options?: {
|
|
674
|
+
preserveAspectRatio?: boolean;
|
|
675
|
+
}): void;
|
|
624
676
|
commit(): void;
|
|
625
677
|
cancel(): void;
|
|
626
678
|
};
|
|
@@ -647,22 +699,21 @@ export type WorldBounds = {
|
|
|
647
699
|
|
|
648
700
|
// Warnings were encountered during analysis:
|
|
649
701
|
//
|
|
650
|
-
// dist/types-
|
|
651
|
-
// dist/types-
|
|
652
|
-
// dist/types-
|
|
653
|
-
// dist/types-
|
|
654
|
-
// dist/types-
|
|
655
|
-
// dist/types-
|
|
656
|
-
// dist/types-
|
|
657
|
-
// dist/types-
|
|
658
|
-
// dist/types-
|
|
659
|
-
// dist/types-
|
|
660
|
-
// dist/types-
|
|
661
|
-
// dist/types-
|
|
662
|
-
// dist/types-
|
|
663
|
-
// dist/types-
|
|
664
|
-
// dist/types-
|
|
665
|
-
// dist/types-DnR8yhxj.d.ts:512:5 - (ae-forgotten-export) The symbol "CaptureService" needs to be exported by the entry point types.d.ts
|
|
702
|
+
// dist/types-CZ0KxRlm.d.ts:313:9 - (ae-forgotten-export) The symbol "RequestOptions" needs to be exported by the entry point types.d.ts
|
|
703
|
+
// dist/types-CZ0KxRlm.d.ts:314:9 - (ae-forgotten-export) The symbol "DocumentLoadOptions_2" needs to be exported by the entry point types.d.ts
|
|
704
|
+
// dist/types-CZ0KxRlm.d.ts:314:9 - (ae-forgotten-export) The symbol "WriteOptions" needs to be exported by the entry point types.d.ts
|
|
705
|
+
// dist/types-CZ0KxRlm.d.ts:317:13 - (ae-forgotten-export) The symbol "BoardChangeSet" needs to be exported by the entry point types.d.ts
|
|
706
|
+
// dist/types-CZ0KxRlm.d.ts:323:9 - (ae-forgotten-export) The symbol "ReadNodesInput" needs to be exported by the entry point types.d.ts
|
|
707
|
+
// dist/types-CZ0KxRlm.d.ts:323:9 - (ae-forgotten-export) The symbol "ReadNodesResult" needs to be exported by the entry point types.d.ts
|
|
708
|
+
// dist/types-CZ0KxRlm.d.ts:324:9 - (ae-forgotten-export) The symbol "WriteResult" needs to be exported by the entry point types.d.ts
|
|
709
|
+
// dist/types-CZ0KxRlm.d.ts:325:13 - (ae-forgotten-export) The symbol "CreateNodeInput" needs to be exported by the entry point types.d.ts
|
|
710
|
+
// dist/types-CZ0KxRlm.d.ts:328:13 - (ae-forgotten-export) The symbol "UpdateNodeInput" needs to be exported by the entry point types.d.ts
|
|
711
|
+
// dist/types-CZ0KxRlm.d.ts:335:9 - (ae-forgotten-export) The symbol "ReadAssetsResult" needs to be exported by the entry point types.d.ts
|
|
712
|
+
// dist/types-CZ0KxRlm.d.ts:342:13 - (ae-forgotten-export) The symbol "AssetRecord" needs to be exported by the entry point types.d.ts
|
|
713
|
+
// dist/types-CZ0KxRlm.d.ts:370:9 - (ae-forgotten-export) The symbol "PreviewResult" needs to be exported by the entry point types.d.ts
|
|
714
|
+
// dist/types-CZ0KxRlm.d.ts:548:5 - (ae-forgotten-export) The symbol "BoardCoreOptions" needs to be exported by the entry point types.d.ts
|
|
715
|
+
// dist/types-CZ0KxRlm.d.ts:551:5 - (ae-forgotten-export) The symbol "PreviewService" needs to be exported by the entry point types.d.ts
|
|
716
|
+
// dist/types-CZ0KxRlm.d.ts:552:5 - (ae-forgotten-export) The symbol "CaptureService" needs to be exported by the entry point types.d.ts
|
|
666
717
|
|
|
667
718
|
// (No @packageDocumentation comment for this package)
|
|
668
719
|
|