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
|
@@ -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;
|
|
@@ -702,4 +741,4 @@ type NodePatch<Props extends JsonValue = JsonValue> = BoardNodePatch<Props>;
|
|
|
702
741
|
type NodeInput<Props extends JsonValue = JsonValue> = BoardNodeCreateInput<Props>;
|
|
703
742
|
type TransactionOrigin = ChangeOrigin;
|
|
704
743
|
|
|
705
|
-
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;
|
|
@@ -756,9 +765,18 @@ export interface IndexedDbPort extends PortLifecycle {
|
|
|
756
765
|
saveDocument(record: BrowserDocumentRecord, signal: AbortSignal, options?: SaveBrowserDocumentOptions): Promise<void>;
|
|
757
766
|
}
|
|
758
767
|
|
|
768
|
+
// @public
|
|
769
|
+
export function isAssetVariant(value: unknown): value is AssetVariant;
|
|
770
|
+
|
|
759
771
|
// @public (undocumented)
|
|
760
772
|
export function isBrowserQuotaError(error: unknown): boolean;
|
|
761
773
|
|
|
774
|
+
// @public (undocumented)
|
|
775
|
+
export function isDocumentPreviewType(type: string): boolean;
|
|
776
|
+
|
|
777
|
+
// @public (undocumented)
|
|
778
|
+
export function isPreviewNodeType(type: string): boolean;
|
|
779
|
+
|
|
762
780
|
// Warning: (ae-forgotten-export) The symbol "JsonPrimitive" needs to be exported by the entry point browser.d.ts
|
|
763
781
|
//
|
|
764
782
|
// @public (undocumented)
|
|
@@ -1217,6 +1235,52 @@ export interface PortLifecycle {
|
|
|
1217
1235
|
destroy?(): void | Promise<void>;
|
|
1218
1236
|
}
|
|
1219
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
|
+
|
|
1220
1284
|
// @public
|
|
1221
1285
|
export function projectOverlayItem(node: Readonly<BoardNode<JsonValue>>, item: OverlayItem, viewport: ViewportSnapshot, bounds: WorldBounds): OverlayPlacement | undefined;
|
|
1222
1286
|
|
|
@@ -1418,22 +1482,21 @@ export type WorldBounds = {
|
|
|
1418
1482
|
|
|
1419
1483
|
// Warnings were encountered during analysis:
|
|
1420
1484
|
//
|
|
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-
|
|
1432
|
-
// dist/types-
|
|
1433
|
-
// dist/types-
|
|
1434
|
-
// dist/types-
|
|
1435
|
-
// dist/types-
|
|
1436
|
-
// dist/types-DhluAalJ.d.ts:513: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
|
|
1437
1500
|
|
|
1438
1501
|
// (No @packageDocumentation comment for this package)
|
|
1439
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)
|
|
@@ -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 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
|
|
761
824
|
|
|
762
825
|
// (No @packageDocumentation comment for this package)
|
|
763
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;
|
|
@@ -528,6 +534,49 @@ export type Point = {
|
|
|
528
534
|
y: number;
|
|
529
535
|
};
|
|
530
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
|
+
|
|
531
580
|
// @public (undocumented)
|
|
532
581
|
export type PublicBoardEventMap = {
|
|
533
582
|
change: BoardChangeEvent;
|
|
@@ -650,22 +699,21 @@ export type WorldBounds = {
|
|
|
650
699
|
|
|
651
700
|
// Warnings were encountered during analysis:
|
|
652
701
|
//
|
|
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-
|
|
666
|
-
// dist/types-
|
|
667
|
-
// dist/types-
|
|
668
|
-
// dist/types-DhluAalJ.d.ts:513: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
|
|
669
717
|
|
|
670
718
|
// (No @packageDocumentation comment for this package)
|
|
671
719
|
|