pixiboardjs 0.1.0-alpha.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/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +54 -0
- package/VERSIONING.md +24 -0
- package/dist/browser.d.ts +657 -0
- package/dist/browser.js +5513 -0
- package/dist/browser.js.map +1 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.js +3812 -0
- package/dist/index.js.map +1 -0
- package/dist/node.d.ts +2 -0
- package/dist/node.js +3812 -0
- package/dist/node.js.map +1 -0
- package/dist/types-DnR8yhxj.d.ts +702 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/etc/pixiboardjs-browser.api.md +1435 -0
- package/etc/pixiboardjs-node.api.md +761 -0
- package/etc/pixiboardjs-types.api.md +669 -0
- package/etc/pixiboardjs.api.md +761 -0
- package/package.json +82 -0
|
@@ -0,0 +1,1435 @@
|
|
|
1
|
+
## API Report File for "pixiboardjs"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
// @public (undocumented)
|
|
8
|
+
export type AdapterOperationOptions = {
|
|
9
|
+
signal?: AbortSignal;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
// @public (undocumented)
|
|
13
|
+
export function anchorRatio(anchor?: OverlayAnchor): Point;
|
|
14
|
+
|
|
15
|
+
// @public
|
|
16
|
+
export function anchorWorldPoint(bounds: WorldBounds, anchor?: OverlayAnchor): Point;
|
|
17
|
+
|
|
18
|
+
// @public (undocumented)
|
|
19
|
+
export type AssetBinaryVariant = "original" | "preview" | "waveform";
|
|
20
|
+
|
|
21
|
+
// @public (undocumented)
|
|
22
|
+
export type AssetGcOptions = AssetGcRoots & {
|
|
23
|
+
quarantineMs?: number;
|
|
24
|
+
now?: number;
|
|
25
|
+
signal?: AbortSignal;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// @public (undocumented)
|
|
29
|
+
export type AssetGcResult = {
|
|
30
|
+
roots: string[];
|
|
31
|
+
retained: string[];
|
|
32
|
+
quarantined: string[];
|
|
33
|
+
restored: string[];
|
|
34
|
+
deleted: string[];
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
// @public (undocumented)
|
|
38
|
+
export type AssetGcRoots = {
|
|
39
|
+
assetIds?: Iterable<string>;
|
|
40
|
+
historyAssetIds?: Iterable<string>;
|
|
41
|
+
activeJobAssetIds?: Iterable<string>;
|
|
42
|
+
explicitLeaseAssetIds?: Iterable<string>;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
// @public (undocumented)
|
|
46
|
+
export type AssetStorageLocation = {
|
|
47
|
+
kind: "indexeddb";
|
|
48
|
+
} | {
|
|
49
|
+
kind: "opfs";
|
|
50
|
+
key: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// @public (undocumented)
|
|
54
|
+
export class AssetUnavailableError extends CapabilityError {
|
|
55
|
+
constructor(assetId: string, variant?: string);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// @public
|
|
59
|
+
export function attachDomTransformer(board: PixiBoard, options: DomTransformerOptions): DomTransformer;
|
|
60
|
+
|
|
61
|
+
// @public
|
|
62
|
+
export function attachLabelOverlay(board: PixiBoard, options: LabelOverlayOptions): OverlayLayer;
|
|
63
|
+
|
|
64
|
+
// @public
|
|
65
|
+
export function attachOverlayLayer(board: PixiBoard, options: OverlayLayerOptions): OverlayLayer;
|
|
66
|
+
|
|
67
|
+
// @public
|
|
68
|
+
export function attachSelectionOverlay(board: PixiBoard, options: SelectionOverlayOptions): OverlayLayer;
|
|
69
|
+
|
|
70
|
+
// @public (undocumented)
|
|
71
|
+
export type BoardCapabilities = {
|
|
72
|
+
availability: {
|
|
73
|
+
preview: boolean;
|
|
74
|
+
capture: boolean;
|
|
75
|
+
};
|
|
76
|
+
document: {
|
|
77
|
+
snapshot(options?: RequestOptions): Promise<Readonly<BoardDocument>>;
|
|
78
|
+
load(input: unknown, options?: DocumentLoadOptions_2 & WriteOptions): Promise<{
|
|
79
|
+
changed: boolean;
|
|
80
|
+
revision: number;
|
|
81
|
+
changeSet: BoardChangeSet;
|
|
82
|
+
requestId?: string;
|
|
83
|
+
}>;
|
|
84
|
+
validate(input: unknown, options?: RequestOptions): Promise<BoardDocument>;
|
|
85
|
+
};
|
|
86
|
+
nodes: {
|
|
87
|
+
read(input?: ReadNodesInput, options?: RequestOptions): Promise<ReadNodesResult>;
|
|
88
|
+
create(input: {
|
|
89
|
+
nodes: readonly CreateNodeInput[];
|
|
90
|
+
}, options?: WriteOptions): Promise<WriteResult>;
|
|
91
|
+
update(input: {
|
|
92
|
+
nodes: readonly UpdateNodeInput[];
|
|
93
|
+
}, options?: WriteOptions): Promise<WriteResult>;
|
|
94
|
+
delete(input: {
|
|
95
|
+
nodeIds: readonly string[];
|
|
96
|
+
}, options?: WriteOptions): Promise<WriteResult>;
|
|
97
|
+
};
|
|
98
|
+
assets: {
|
|
99
|
+
read(input?: {
|
|
100
|
+
ids?: readonly string[];
|
|
101
|
+
kinds?: readonly string[];
|
|
102
|
+
limit?: number;
|
|
103
|
+
cursor?: string;
|
|
104
|
+
}, options?: RequestOptions): Promise<ReadAssetsResult>;
|
|
105
|
+
upsert(input: {
|
|
106
|
+
assets: readonly AssetRecord[];
|
|
107
|
+
}, options?: WriteOptions): Promise<WriteResult>;
|
|
108
|
+
remove(input: {
|
|
109
|
+
assetIds: readonly string[];
|
|
110
|
+
}, options?: WriteOptions): Promise<WriteResult>;
|
|
111
|
+
};
|
|
112
|
+
selection: {
|
|
113
|
+
get(options?: RequestOptions): Promise<readonly string[]>;
|
|
114
|
+
set(nodeIds: readonly string[], options?: WriteOptions): Promise<{
|
|
115
|
+
nodeIds: readonly string[];
|
|
116
|
+
requestId?: string;
|
|
117
|
+
}>;
|
|
118
|
+
};
|
|
119
|
+
viewport: {
|
|
120
|
+
get(options?: RequestOptions): Promise<ViewportSnapshot>;
|
|
121
|
+
set(viewport: ViewportSnapshot, options?: WriteOptions): Promise<{
|
|
122
|
+
viewport: ViewportSnapshot;
|
|
123
|
+
requestId?: string;
|
|
124
|
+
}>;
|
|
125
|
+
};
|
|
126
|
+
history: {
|
|
127
|
+
canUndo(): boolean;
|
|
128
|
+
canRedo(): boolean;
|
|
129
|
+
clear(): void;
|
|
130
|
+
undo(options?: WriteOptions): BoardChangeSet | undefined;
|
|
131
|
+
redo(options?: WriteOptions): BoardChangeSet | undefined;
|
|
132
|
+
};
|
|
133
|
+
preview: {
|
|
134
|
+
get(input: {
|
|
135
|
+
nodeId: string;
|
|
136
|
+
maxWidth?: number;
|
|
137
|
+
maxHeight?: number;
|
|
138
|
+
frameNumber?: number;
|
|
139
|
+
fps?: number;
|
|
140
|
+
}, options?: RequestOptions): Promise<PreviewResult>;
|
|
141
|
+
};
|
|
142
|
+
capture: {
|
|
143
|
+
available: boolean;
|
|
144
|
+
capture(input: JsonValue, options?: RequestOptions): Promise<CaptureResult>;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
// @public (undocumented)
|
|
149
|
+
export type BoardChangeEvent = {
|
|
150
|
+
revision: number;
|
|
151
|
+
changeSet: BoardChangeSet;
|
|
152
|
+
documentUpdate: BoardDocumentUpdate;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
// @public (undocumented)
|
|
156
|
+
export class BoardDestroyedError extends CapabilityError {
|
|
157
|
+
constructor(message?: string);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// @public (undocumented)
|
|
161
|
+
export type BoardDocument = {
|
|
162
|
+
schemaVersion: number;
|
|
163
|
+
revision: number;
|
|
164
|
+
nodes: BoardNode[];
|
|
165
|
+
assets: AssetRecord[];
|
|
166
|
+
viewport?: ViewportSnapshot;
|
|
167
|
+
metadata?: Record<string, JsonValue>;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
// @public (undocumented)
|
|
171
|
+
export type BoardDocumentUpdate = {
|
|
172
|
+
revision: number;
|
|
173
|
+
changedNodes: ReadonlyArray<Readonly<BoardNode>>;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
// @public (undocumented)
|
|
177
|
+
export type BoardLifecycleState = "created" | "mounting" | "ready" | "destroying" | "destroyed";
|
|
178
|
+
|
|
179
|
+
// @public (undocumented)
|
|
180
|
+
export type BoardNode<Props extends JsonValue = JsonValue> = {
|
|
181
|
+
id: string;
|
|
182
|
+
type: string;
|
|
183
|
+
typeVersion: number;
|
|
184
|
+
name?: string;
|
|
185
|
+
x: number;
|
|
186
|
+
y: number;
|
|
187
|
+
width: number;
|
|
188
|
+
height: number;
|
|
189
|
+
rotation: number;
|
|
190
|
+
zIndex: number;
|
|
191
|
+
locked?: boolean;
|
|
192
|
+
visible?: boolean;
|
|
193
|
+
assetRefs?: Record<string, AssetRef>;
|
|
194
|
+
props: Props;
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
// @public (undocumented)
|
|
198
|
+
export type BoardNodeCreateInput<Props extends JsonValue = JsonValue> = Omit<BoardNode<Props>, "id" | "typeVersion" | "rotation" | "zIndex" | "props"> & {
|
|
199
|
+
id?: string;
|
|
200
|
+
typeVersion?: number;
|
|
201
|
+
rotation?: number;
|
|
202
|
+
zIndex?: number;
|
|
203
|
+
props?: Props;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
// @public (undocumented)
|
|
207
|
+
export type BoardNodePatch<Props extends JsonValue = JsonValue> = Partial<Pick<BoardNode<Props>, "name" | "x" | "y" | "width" | "height" | "rotation" | "zIndex" | "locked" | "visible" | "assetRefs" | "props">>;
|
|
208
|
+
|
|
209
|
+
// @public (undocumented)
|
|
210
|
+
export type BoardRuntimePorts = {
|
|
211
|
+
events?: BrowserEventPort;
|
|
212
|
+
createResizeObserver?: (callback: ResizeObserverCallback) => ResizeObserverPort;
|
|
213
|
+
ticker?: TickerPort;
|
|
214
|
+
onKeyboardEvent?: (event: Event) => void;
|
|
215
|
+
onClipboardEvent?: (event: Event) => void;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
// @public (undocumented)
|
|
219
|
+
export type BrowserAdapterCapabilities = {
|
|
220
|
+
persistence: true;
|
|
221
|
+
indexedDb: true;
|
|
222
|
+
opfs: boolean;
|
|
223
|
+
blobFallback: true;
|
|
224
|
+
import: readonly BrowserImportSourceType[];
|
|
225
|
+
objectUrl: true;
|
|
226
|
+
download: boolean;
|
|
227
|
+
desktopFileSystem: false;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
// @public (undocumented)
|
|
231
|
+
export type BrowserAdapterContractEvidence = {
|
|
232
|
+
imports: Array<{
|
|
233
|
+
sourceType: string;
|
|
234
|
+
kind: string;
|
|
235
|
+
revision: number;
|
|
236
|
+
storage: string;
|
|
237
|
+
}>;
|
|
238
|
+
transactionRevisions: number[];
|
|
239
|
+
derivativeText: string;
|
|
240
|
+
objectUrlRevoked: boolean;
|
|
241
|
+
export: {
|
|
242
|
+
fileName: string;
|
|
243
|
+
mimeType: string;
|
|
244
|
+
text: string;
|
|
245
|
+
};
|
|
246
|
+
download: boolean;
|
|
247
|
+
restored: {
|
|
248
|
+
revision: number;
|
|
249
|
+
assetIds: string[];
|
|
250
|
+
nodeTypes: string[];
|
|
251
|
+
};
|
|
252
|
+
gc: {
|
|
253
|
+
quarantined: string[];
|
|
254
|
+
deleted: string[];
|
|
255
|
+
};
|
|
256
|
+
recreated: boolean;
|
|
257
|
+
capabilities: Awaited<ReturnType<BrowserPersistenceAdapter["capabilities"]>>;
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
// @public (undocumented)
|
|
261
|
+
export type BrowserAdapterContractHarness = {
|
|
262
|
+
createAdapter(): BrowserPersistenceAdapter | Promise<BrowserPersistenceAdapter>;
|
|
263
|
+
inspectObjectUrl?(url: string): Promise<{
|
|
264
|
+
type: string;
|
|
265
|
+
text: string;
|
|
266
|
+
}>;
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
// @public (undocumented)
|
|
270
|
+
export type BrowserAsset = {
|
|
271
|
+
entry: StoredAssetEntry;
|
|
272
|
+
variant: AssetBinaryVariant;
|
|
273
|
+
binary: StoredAssetBinary;
|
|
274
|
+
blob: Blob;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
// @public (undocumented)
|
|
278
|
+
export class BrowserAssetBinaryMissingError extends BrowserPersistenceError {
|
|
279
|
+
constructor(assetId: string, variant?: string);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
// @public (undocumented)
|
|
283
|
+
export type BrowserAssetExport = {
|
|
284
|
+
assetId: string;
|
|
285
|
+
variant: AssetBinaryVariant;
|
|
286
|
+
blob: Blob;
|
|
287
|
+
fileName: string;
|
|
288
|
+
mimeType: string;
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
// @public (undocumented)
|
|
292
|
+
export class BrowserAssetNotFoundError extends BrowserPersistenceError {
|
|
293
|
+
constructor(assetId: string);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
// @public (undocumented)
|
|
297
|
+
export type BrowserCleanupError = {
|
|
298
|
+
operation: BrowserCleanupOperation;
|
|
299
|
+
error: unknown;
|
|
300
|
+
timestamp: number;
|
|
301
|
+
assetId?: string;
|
|
302
|
+
variant?: AssetBinaryVariant;
|
|
303
|
+
key?: string;
|
|
304
|
+
port?: "indexeddb" | "opfs" | "object-urls" | "download";
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
// @public (undocumented)
|
|
308
|
+
export type BrowserCleanupOperation = "metadata-compensation" | "import-compensation" | "replace-old-opfs" | "delete-opfs" | "gc-opfs" | "destroy-port" | "cleanup-observer";
|
|
309
|
+
|
|
310
|
+
// @public (undocumented)
|
|
311
|
+
export type BrowserCommitImportOptions = AdapterOperationOptions & {
|
|
312
|
+
document: BoardDocument;
|
|
313
|
+
documentMetadata?: BrowserDocumentMetadata;
|
|
314
|
+
expectedRevision?: number | null;
|
|
315
|
+
nodeId?: string;
|
|
316
|
+
nodeType?: string;
|
|
317
|
+
nodeProps?: JsonValue;
|
|
318
|
+
x?: number;
|
|
319
|
+
y?: number;
|
|
320
|
+
width?: number;
|
|
321
|
+
height?: number;
|
|
322
|
+
zIndex?: number;
|
|
323
|
+
preferOpfs?: boolean;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
// @public (undocumented)
|
|
327
|
+
export class BrowserDocumentConflictError extends BrowserPersistenceError {
|
|
328
|
+
constructor(expectedRevision: number | null, actualRevision: number | null);
|
|
329
|
+
// (undocumented)
|
|
330
|
+
readonly actualRevision: number | null;
|
|
331
|
+
// (undocumented)
|
|
332
|
+
readonly expectedRevision: number | null;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// @public (undocumented)
|
|
336
|
+
export type BrowserDocumentMetadata = Record<string, JsonValue>;
|
|
337
|
+
|
|
338
|
+
// @public (undocumented)
|
|
339
|
+
export type BrowserDocumentRecord = {
|
|
340
|
+
snapshot: BoardDocument;
|
|
341
|
+
metadata: BrowserDocumentMetadata;
|
|
342
|
+
savedAt: number;
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
// @public (undocumented)
|
|
346
|
+
export type BrowserDownloadRequest = {
|
|
347
|
+
url: string;
|
|
348
|
+
fileName: string;
|
|
349
|
+
mimeType: string;
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
// @public (undocumented)
|
|
353
|
+
export type BrowserEventPort = {
|
|
354
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject): void;
|
|
355
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject): void;
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
// @public (undocumented)
|
|
359
|
+
export type BrowserExportOptions = GetAssetOptions & {
|
|
360
|
+
fileName?: string;
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
// @public (undocumented)
|
|
364
|
+
export type BrowserImportOptions = BrowserPrepareImportOptions & BrowserCommitImportOptions;
|
|
365
|
+
|
|
366
|
+
// @public (undocumented)
|
|
367
|
+
export type BrowserImportResult = {
|
|
368
|
+
sourceType: BrowserImportSourceType;
|
|
369
|
+
document: BoardDocument;
|
|
370
|
+
asset: AssetRecord;
|
|
371
|
+
node: BoardNode;
|
|
372
|
+
entry: StoredAssetEntry;
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
// @public (undocumented)
|
|
376
|
+
export type BrowserImportSourceType = "file" | "blob" | "text" | "url";
|
|
377
|
+
|
|
378
|
+
// @public (undocumented)
|
|
379
|
+
export class BrowserPersistenceAbortError extends BrowserPersistenceError {
|
|
380
|
+
constructor(reason?: unknown);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
// @public (undocumented)
|
|
384
|
+
export class BrowserPersistenceAdapter {
|
|
385
|
+
constructor(options: BrowserPersistenceAdapterOptions);
|
|
386
|
+
// (undocumented)
|
|
387
|
+
capabilities(options?: AdapterOperationOptions): Promise<BrowserAdapterCapabilities>;
|
|
388
|
+
// (undocumented)
|
|
389
|
+
get cleanupErrors(): readonly BrowserCleanupError[];
|
|
390
|
+
// (undocumented)
|
|
391
|
+
collectAssetGarbage(options?: AssetGcOptions): Promise<AssetGcResult>;
|
|
392
|
+
// (undocumented)
|
|
393
|
+
commitImport(prepared: BrowserPreparedImport, options: BrowserCommitImportOptions): Promise<BrowserImportResult>;
|
|
394
|
+
// (undocumented)
|
|
395
|
+
deleteAsset(id: string, options?: AdapterOperationOptions): Promise<boolean>;
|
|
396
|
+
// (undocumented)
|
|
397
|
+
destroy(): Promise<void>;
|
|
398
|
+
// (undocumented)
|
|
399
|
+
get destroyed(): boolean;
|
|
400
|
+
// (undocumented)
|
|
401
|
+
downloadAsset(id: string, options?: BrowserExportOptions): Promise<BrowserAssetExport>;
|
|
402
|
+
// (undocumented)
|
|
403
|
+
exportAsset(id: string, options?: BrowserExportOptions): Promise<BrowserAssetExport>;
|
|
404
|
+
// (undocumented)
|
|
405
|
+
getAsset(id: string, options?: GetAssetOptions): Promise<BrowserAsset | null>;
|
|
406
|
+
// (undocumented)
|
|
407
|
+
importBlob(blob: Blob, options: BrowserImportOptions): Promise<BrowserImportResult>;
|
|
408
|
+
// (undocumented)
|
|
409
|
+
importFile(file: File, options: BrowserImportOptions): Promise<BrowserImportResult>;
|
|
410
|
+
// (undocumented)
|
|
411
|
+
importText(value: string, options: BrowserImportOptions): Promise<BrowserImportResult>;
|
|
412
|
+
// (undocumented)
|
|
413
|
+
importUrl(url: string, options: BrowserImportOptions): Promise<BrowserImportResult>;
|
|
414
|
+
// (undocumented)
|
|
415
|
+
leaseObjectUrl(id: string, options?: GetAssetOptions): Promise<ObjectUrlLease>;
|
|
416
|
+
// (undocumented)
|
|
417
|
+
listAssets(options?: AdapterOperationOptions): Promise<StoredAssetEntry[]>;
|
|
418
|
+
// (undocumented)
|
|
419
|
+
load(options?: AdapterOperationOptions): Promise<BoardDocument | null>;
|
|
420
|
+
// (undocumented)
|
|
421
|
+
loadDocument(options?: AdapterOperationOptions): Promise<BrowserDocumentRecord | null>;
|
|
422
|
+
// (undocumented)
|
|
423
|
+
prepareBlob(blob: Blob, options?: BrowserPrepareImportOptions): Promise<BrowserPreparedImport>;
|
|
424
|
+
// (undocumented)
|
|
425
|
+
prepareFile(file: File, options?: BrowserPrepareImportOptions): Promise<BrowserPreparedImport>;
|
|
426
|
+
// (undocumented)
|
|
427
|
+
prepareText(value: string, options?: BrowserPrepareImportOptions): Promise<BrowserPreparedImport>;
|
|
428
|
+
// (undocumented)
|
|
429
|
+
prepareUrl(url: string, options?: BrowserPrepareImportOptions): Promise<BrowserPreparedImport>;
|
|
430
|
+
// (undocumented)
|
|
431
|
+
putAsset(record: AssetRecord, blob: Blob, options?: PutAssetOptions): Promise<StoredAssetEntry>;
|
|
432
|
+
// (undocumented)
|
|
433
|
+
putDerivative(assetId: string, variant: Exclude<AssetBinaryVariant, "original">, blob: Blob, options?: Omit<PutAssetOptions, "variant">): Promise<StoredAssetEntry>;
|
|
434
|
+
// (undocumented)
|
|
435
|
+
resolveAsset(id: string, variant?: AssetBinaryVariant, options?: AdapterOperationOptions): Promise<BrowserAsset | null>;
|
|
436
|
+
// (undocumented)
|
|
437
|
+
save(document: BoardDocument, options?: AdapterOperationOptions): Promise<void>;
|
|
438
|
+
// (undocumented)
|
|
439
|
+
saveDocument(input: SaveBrowserDocumentInput, options?: AdapterOperationOptions): Promise<void>;
|
|
440
|
+
// (undocumented)
|
|
441
|
+
get signal(): AbortSignal;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
// @public (undocumented)
|
|
445
|
+
export type BrowserPersistenceAdapterOptions = {
|
|
446
|
+
indexedDb: IndexedDbPort;
|
|
447
|
+
opfs?: OpfsPort;
|
|
448
|
+
objectUrls?: ObjectUrlPort;
|
|
449
|
+
download?: DownloadPort;
|
|
450
|
+
fetch?: typeof globalThis.fetch;
|
|
451
|
+
now?: () => number;
|
|
452
|
+
idFactory?: () => string;
|
|
453
|
+
storageKeyFactory?: (assetId: string, variant: AssetBinaryVariant) => string;
|
|
454
|
+
opfsThresholdBytes?: number;
|
|
455
|
+
defaultGcQuarantineMs?: number;
|
|
456
|
+
onCleanupError?: (record: BrowserCleanupError) => void;
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
// @public (undocumented)
|
|
460
|
+
export class BrowserPersistenceDestroyedError extends BrowserPersistenceError {
|
|
461
|
+
constructor();
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
// @public (undocumented)
|
|
465
|
+
export class BrowserPersistenceError extends Error {
|
|
466
|
+
constructor(message: string, options?: {
|
|
467
|
+
cause?: unknown;
|
|
468
|
+
});
|
|
469
|
+
// (undocumented)
|
|
470
|
+
readonly cause?: unknown;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
// @public (undocumented)
|
|
474
|
+
export type BrowserPreparedImport = {
|
|
475
|
+
sourceType: BrowserImportSourceType;
|
|
476
|
+
asset: AssetRecord;
|
|
477
|
+
blob: Blob;
|
|
478
|
+
fileName: string;
|
|
479
|
+
};
|
|
480
|
+
|
|
481
|
+
// @public (undocumented)
|
|
482
|
+
export type BrowserPrepareImportOptions = AdapterOperationOptions & {
|
|
483
|
+
assetId?: string;
|
|
484
|
+
kind?: string;
|
|
485
|
+
name?: string;
|
|
486
|
+
mimeType?: string;
|
|
487
|
+
assetMetadata?: Record<string, JsonValue>;
|
|
488
|
+
request?: RequestInit;
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
// @public (undocumented)
|
|
492
|
+
export class BrowserStorageCapabilityError extends BrowserPersistenceError {
|
|
493
|
+
constructor(capability: "indexeddb" | "opfs" | "object-url");
|
|
494
|
+
// (undocumented)
|
|
495
|
+
readonly capability: "indexeddb" | "opfs" | "object-url";
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
// @public (undocumented)
|
|
499
|
+
export class BrowserStorageKeyCollisionError extends BrowserPersistenceError {
|
|
500
|
+
constructor(key: string);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
// @public (undocumented)
|
|
504
|
+
export class BrowserStorageQuotaError extends BrowserPersistenceError {
|
|
505
|
+
constructor(cause?: unknown);
|
|
506
|
+
// (undocumented)
|
|
507
|
+
readonly retryable = true;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
// @public (undocumented)
|
|
511
|
+
export class CapabilityError extends Error {
|
|
512
|
+
constructor(code: CapabilityErrorCode, message: string, details?: Readonly<Record<string, unknown>>);
|
|
513
|
+
// (undocumented)
|
|
514
|
+
readonly brand = "@pixi-board/capabilities:CapabilityError";
|
|
515
|
+
// Warning: (ae-forgotten-export) The symbol "CapabilityErrorCode" needs to be exported by the entry point browser.d.ts
|
|
516
|
+
//
|
|
517
|
+
// (undocumented)
|
|
518
|
+
readonly code: CapabilityErrorCode;
|
|
519
|
+
// (undocumented)
|
|
520
|
+
readonly details?: Readonly<Record<string, unknown>>;
|
|
521
|
+
// (undocumented)
|
|
522
|
+
readonly name = "CapabilityError";
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
// @public (undocumented)
|
|
526
|
+
export class CapabilityUnavailableError extends CapabilityError {
|
|
527
|
+
constructor(capability: string);
|
|
528
|
+
// (undocumented)
|
|
529
|
+
readonly capability: string;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
// @public (undocumented)
|
|
533
|
+
export type CaptureInput = {
|
|
534
|
+
target: "viewport";
|
|
535
|
+
format?: "png" | "jpeg";
|
|
536
|
+
scale?: number;
|
|
537
|
+
} | {
|
|
538
|
+
target: "node";
|
|
539
|
+
nodeId: string;
|
|
540
|
+
format?: "png" | "jpeg";
|
|
541
|
+
scale?: number;
|
|
542
|
+
} | {
|
|
543
|
+
target: "bounds";
|
|
544
|
+
bounds: WorldBounds;
|
|
545
|
+
format?: "png" | "jpeg";
|
|
546
|
+
scale?: number;
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
// @public (undocumented)
|
|
550
|
+
export type CaptureResult = {
|
|
551
|
+
dataUrl: string;
|
|
552
|
+
mimeType: string;
|
|
553
|
+
width?: number;
|
|
554
|
+
height?: number;
|
|
555
|
+
revision: number;
|
|
556
|
+
requestId?: string;
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
// @public (undocumented)
|
|
560
|
+
export type ChangeOrigin = "api" | "ui" | "plugin" | "agent" | "history" | "load" | (string & {});
|
|
561
|
+
|
|
562
|
+
// @public (undocumented)
|
|
563
|
+
export function createPixiBoard(options?: PixiBoardOptions): Promise<PixiBoard>;
|
|
564
|
+
|
|
565
|
+
// @public (undocumented)
|
|
566
|
+
export type CustomDisplayFactory = {
|
|
567
|
+
createContainer(): CustomDisplayObject;
|
|
568
|
+
createRect?(width: number, height: number, fill: number | string): CustomDisplayObject;
|
|
569
|
+
createText?(text: string, style?: Record<string, unknown>): CustomDisplayObject;
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
// @public (undocumented)
|
|
573
|
+
export type CustomDisplayObject = {
|
|
574
|
+
visible?: boolean;
|
|
575
|
+
x?: number;
|
|
576
|
+
y?: number;
|
|
577
|
+
rotation?: number;
|
|
578
|
+
zIndex?: number;
|
|
579
|
+
addChild?(child: CustomDisplayObject): void;
|
|
580
|
+
removeChild?(child: CustomDisplayObject): void;
|
|
581
|
+
destroy?(options?: unknown): void;
|
|
582
|
+
[key: string]: unknown;
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
// @public (undocumented)
|
|
586
|
+
export type CustomNodeDataDefinition<Props extends JsonValue = JsonValue> = Omit<CustomNodeDefinition<Props>, "renderer">;
|
|
587
|
+
|
|
588
|
+
// @public (undocumented)
|
|
589
|
+
export type CustomNodeDefinition<Props extends JsonValue = JsonValue, State = unknown> = {
|
|
590
|
+
type: string;
|
|
591
|
+
version: number;
|
|
592
|
+
defaults?: Partial<Props>;
|
|
593
|
+
validate(value: unknown): Props;
|
|
594
|
+
getBounds(node: BoardNode<Props>): WorldBounds;
|
|
595
|
+
resize?: CustomResizePolicy<Props>;
|
|
596
|
+
renderer?: CustomNodeRenderer<Props, State>;
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
// @public (undocumented)
|
|
600
|
+
export type CustomNodeRenderer<Props extends JsonValue = JsonValue, State = unknown> = {
|
|
601
|
+
create(node: Readonly<BoardNode<Props>>, context: CustomNodeRendererContext): CustomNodeView<State> | Promise<CustomNodeView<State>>;
|
|
602
|
+
update(view: CustomNodeView<State>, node: Readonly<BoardNode<Props>>, context: CustomNodeRendererContext): void | Promise<void>;
|
|
603
|
+
destroy(view: CustomNodeView<State>, context: CustomNodeRendererContext): void;
|
|
604
|
+
hitTest?(node: Readonly<BoardNode<Props>>, worldPoint: Point): boolean;
|
|
605
|
+
};
|
|
606
|
+
|
|
607
|
+
// @public (undocumented)
|
|
608
|
+
export type CustomNodeRendererContext = {
|
|
609
|
+
assets: {
|
|
610
|
+
acquireTexture(ref: {
|
|
611
|
+
assetId: string;
|
|
612
|
+
variant?: "original" | "preview" | "waveform";
|
|
613
|
+
}, options?: Record<string, unknown>): Promise<CustomTextureLease>;
|
|
614
|
+
};
|
|
615
|
+
invalidate(): void;
|
|
616
|
+
signal: AbortSignal;
|
|
617
|
+
lod: {
|
|
618
|
+
level?: number;
|
|
619
|
+
scale?: number;
|
|
620
|
+
};
|
|
621
|
+
diagnostics: {
|
|
622
|
+
creates: number;
|
|
623
|
+
updates: number;
|
|
624
|
+
destroys: number;
|
|
625
|
+
lateUpdates: number;
|
|
626
|
+
};
|
|
627
|
+
display: CustomDisplayFactory;
|
|
628
|
+
};
|
|
629
|
+
|
|
630
|
+
// @public (undocumented)
|
|
631
|
+
export type CustomNodeRendererRegistry = {
|
|
632
|
+
register(type: string, renderer: CustomNodeRenderer, options?: NodeTypeRegistrationOptions): () => void;
|
|
633
|
+
get(type: string): CustomNodeRenderer | undefined;
|
|
634
|
+
has(type: string): boolean;
|
|
635
|
+
list(): string[];
|
|
636
|
+
};
|
|
637
|
+
|
|
638
|
+
// @public (undocumented)
|
|
639
|
+
export type CustomNodeView<State = unknown> = {
|
|
640
|
+
displayObject: CustomDisplayObject;
|
|
641
|
+
state: State;
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
// @public (undocumented)
|
|
645
|
+
export type CustomResizePolicy<Props extends JsonValue> = {
|
|
646
|
+
mode: "free";
|
|
647
|
+
} | {
|
|
648
|
+
mode: "aspect-ratio";
|
|
649
|
+
ratio?: number;
|
|
650
|
+
} | {
|
|
651
|
+
mode: "fixed";
|
|
652
|
+
} | {
|
|
653
|
+
mode: "custom";
|
|
654
|
+
resize(input: {
|
|
655
|
+
node: Readonly<BoardNode<Props>>;
|
|
656
|
+
width: number;
|
|
657
|
+
height: number;
|
|
658
|
+
}): BoardNodePatch<Props>;
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
// @public (undocumented)
|
|
662
|
+
export type CustomTextureLease = {
|
|
663
|
+
texture?: unknown;
|
|
664
|
+
release?: () => void;
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
// @public (undocumented)
|
|
668
|
+
export const DEFAULT_OPFS_THRESHOLD_BYTES: number;
|
|
669
|
+
|
|
670
|
+
// @public (undocumented)
|
|
671
|
+
export type DocumentLoadOptions = {
|
|
672
|
+
replaceHistory?: boolean;
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
// @public (undocumented)
|
|
676
|
+
export type DocumentPersistence = {
|
|
677
|
+
load?(options?: {
|
|
678
|
+
signal?: AbortSignal;
|
|
679
|
+
}): Promise<BoardDocument | null>;
|
|
680
|
+
save?(document: BoardDocument, options?: {
|
|
681
|
+
signal?: AbortSignal;
|
|
682
|
+
}): Promise<void>;
|
|
683
|
+
destroy?(): void | Promise<void>;
|
|
684
|
+
};
|
|
685
|
+
|
|
686
|
+
// Warning: (ae-forgotten-export) The symbol "PixiBoardCoreError" needs to be exported by the entry point browser.d.ts
|
|
687
|
+
//
|
|
688
|
+
// @public (undocumented)
|
|
689
|
+
export class DocumentValidationError extends PixiBoardCoreError {
|
|
690
|
+
constructor(message: string, options?: {
|
|
691
|
+
cause?: unknown;
|
|
692
|
+
});
|
|
693
|
+
// (undocumented)
|
|
694
|
+
readonly cause?: unknown;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
// @public (undocumented)
|
|
698
|
+
export type DomTransformer = {
|
|
699
|
+
refresh(): void;
|
|
700
|
+
setInteractive(interactive: boolean): void;
|
|
701
|
+
dragging(): boolean;
|
|
702
|
+
destroy(): void;
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
// @public (undocumented)
|
|
706
|
+
export type DomTransformerOptions = {
|
|
707
|
+
overlay: HTMLElement;
|
|
708
|
+
surface?: HTMLElement;
|
|
709
|
+
size?: number;
|
|
710
|
+
classPrefix?: string;
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
// @public (undocumented)
|
|
714
|
+
export interface DownloadPort extends PortLifecycle {
|
|
715
|
+
// (undocumented)
|
|
716
|
+
download(request: BrowserDownloadRequest): void | Promise<void>;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
// @public (undocumented)
|
|
720
|
+
export type GetAssetOptions = AdapterOperationOptions & {
|
|
721
|
+
variant?: AssetBinaryVariant;
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
// @public (undocumented)
|
|
725
|
+
export type HistoryChangeEvent = {
|
|
726
|
+
canUndo: boolean;
|
|
727
|
+
canRedo: boolean;
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
// @public (undocumented)
|
|
731
|
+
export function indexedDbPersistence(options?: {
|
|
732
|
+
database?: string;
|
|
733
|
+
}): BrowserPersistenceAdapter;
|
|
734
|
+
|
|
735
|
+
// @public (undocumented)
|
|
736
|
+
export interface IndexedDbPort extends PortLifecycle {
|
|
737
|
+
commitAssetAndDocument(document: BrowserDocumentRecord, entry: StoredAssetEntry, binaryWrite: {
|
|
738
|
+
variant: AssetBinaryVariant;
|
|
739
|
+
blob: Blob;
|
|
740
|
+
} | undefined, signal: AbortSignal, options?: SaveBrowserDocumentOptions): Promise<void>;
|
|
741
|
+
deleteAssetEntry(entry: StoredAssetEntry, signal: AbortSignal): Promise<void>;
|
|
742
|
+
// (undocumented)
|
|
743
|
+
getAssetBlob(id: string, variant: AssetBinaryVariant, signal: AbortSignal): Promise<Blob | undefined>;
|
|
744
|
+
// (undocumented)
|
|
745
|
+
getAssetEntry(id: string, signal: AbortSignal): Promise<StoredAssetEntry | undefined>;
|
|
746
|
+
// (undocumented)
|
|
747
|
+
listAssetEntries(signal: AbortSignal): Promise<StoredAssetEntry[]>;
|
|
748
|
+
// (undocumented)
|
|
749
|
+
loadDocument(signal: AbortSignal): Promise<BrowserDocumentRecord | undefined>;
|
|
750
|
+
putAssetEntry(entry: StoredAssetEntry, binaryWrite: {
|
|
751
|
+
variant: AssetBinaryVariant;
|
|
752
|
+
blob: Blob;
|
|
753
|
+
} | undefined, signal: AbortSignal): Promise<void>;
|
|
754
|
+
// (undocumented)
|
|
755
|
+
saveDocument(record: BrowserDocumentRecord, signal: AbortSignal, options?: SaveBrowserDocumentOptions): Promise<void>;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
// @public (undocumented)
|
|
759
|
+
export function isBrowserQuotaError(error: unknown): boolean;
|
|
760
|
+
|
|
761
|
+
// Warning: (ae-forgotten-export) The symbol "JsonPrimitive" needs to be exported by the entry point browser.d.ts
|
|
762
|
+
//
|
|
763
|
+
// @public (undocumented)
|
|
764
|
+
export type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
765
|
+
[key: string]: JsonValue;
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
// @public (undocumented)
|
|
769
|
+
export type LabelOverlayOptions = {
|
|
770
|
+
container: HTMLElement;
|
|
771
|
+
wheelSurface?: HTMLElement;
|
|
772
|
+
text?(node: Readonly<BoardNode<JsonValue>>): string | undefined;
|
|
773
|
+
icon?(node: Readonly<BoardNode<JsonValue>>): string | undefined;
|
|
774
|
+
classPrefix?: string;
|
|
775
|
+
anchor?: OverlayAnchor;
|
|
776
|
+
offset?: {
|
|
777
|
+
x: number;
|
|
778
|
+
y: number;
|
|
779
|
+
};
|
|
780
|
+
scale?: OverlayScaleMode;
|
|
781
|
+
declutter?: OverlayDeclutter;
|
|
782
|
+
schedule?(callback: () => void): () => void;
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
// @public (undocumented)
|
|
786
|
+
export class NativeDownloadPort implements DownloadPort {
|
|
787
|
+
constructor(options?: NativeDownloadPortOptions);
|
|
788
|
+
// (undocumented)
|
|
789
|
+
download(request: BrowserDownloadRequest): void;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
// @public (undocumented)
|
|
793
|
+
export type NativeDownloadPortOptions = {
|
|
794
|
+
document?: Document;
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
// @public (undocumented)
|
|
798
|
+
export class NativeIndexedDbPort implements IndexedDbPort {
|
|
799
|
+
constructor(options?: NativeIndexedDbPortOptions);
|
|
800
|
+
// (undocumented)
|
|
801
|
+
close(): Promise<void>;
|
|
802
|
+
// (undocumented)
|
|
803
|
+
commitAssetAndDocument(document: BrowserDocumentRecord, entry: StoredAssetEntry, binaryWrite: {
|
|
804
|
+
variant: AssetBinaryVariant;
|
|
805
|
+
blob: Blob;
|
|
806
|
+
} | undefined, signal: AbortSignal, options?: SaveBrowserDocumentOptions): Promise<void>;
|
|
807
|
+
// (undocumented)
|
|
808
|
+
deleteAssetEntry(entry: StoredAssetEntry, signal: AbortSignal): Promise<void>;
|
|
809
|
+
// (undocumented)
|
|
810
|
+
getAssetBlob(id: string, variant: AssetBinaryVariant, signal: AbortSignal): Promise<Blob | undefined>;
|
|
811
|
+
// (undocumented)
|
|
812
|
+
getAssetEntry(id: string, signal: AbortSignal): Promise<StoredAssetEntry | undefined>;
|
|
813
|
+
// (undocumented)
|
|
814
|
+
listAssetEntries(signal: AbortSignal): Promise<StoredAssetEntry[]>;
|
|
815
|
+
// (undocumented)
|
|
816
|
+
loadDocument(signal: AbortSignal): Promise<BrowserDocumentRecord | undefined>;
|
|
817
|
+
// (undocumented)
|
|
818
|
+
putAssetEntry(entry: StoredAssetEntry, binaryWrite: {
|
|
819
|
+
variant: AssetBinaryVariant;
|
|
820
|
+
blob: Blob;
|
|
821
|
+
} | undefined, signal: AbortSignal): Promise<void>;
|
|
822
|
+
// (undocumented)
|
|
823
|
+
saveDocument(record: BrowserDocumentRecord, signal: AbortSignal, options?: SaveBrowserDocumentOptions): Promise<void>;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
// @public (undocumented)
|
|
827
|
+
export type NativeIndexedDbPortOptions = {
|
|
828
|
+
databaseName?: string;
|
|
829
|
+
indexedDb?: IDBFactory | null;
|
|
830
|
+
};
|
|
831
|
+
|
|
832
|
+
// @public (undocumented)
|
|
833
|
+
export class NativeObjectUrlPort implements ObjectUrlPort {
|
|
834
|
+
// Warning: (ae-forgotten-export) The symbol "UrlApi" needs to be exported by the entry point browser.d.ts
|
|
835
|
+
constructor(url?: UrlApi);
|
|
836
|
+
// (undocumented)
|
|
837
|
+
create(blob: Blob): string;
|
|
838
|
+
// (undocumented)
|
|
839
|
+
revoke(url: string): void;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
// @public (undocumented)
|
|
843
|
+
export class NativeOpfsPort implements OpfsPort {
|
|
844
|
+
constructor(options?: NativeOpfsPortOptions);
|
|
845
|
+
// (undocumented)
|
|
846
|
+
delete(key: string, signal: AbortSignal): Promise<void>;
|
|
847
|
+
// (undocumented)
|
|
848
|
+
get(key: string, signal: AbortSignal): Promise<Blob | undefined>;
|
|
849
|
+
// (undocumented)
|
|
850
|
+
isAvailable(signal: AbortSignal): Promise<boolean>;
|
|
851
|
+
// (undocumented)
|
|
852
|
+
put(key: string, blob: Blob, signal: AbortSignal): Promise<void>;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
// @public (undocumented)
|
|
856
|
+
export type NativeOpfsPortOptions = {
|
|
857
|
+
directoryName?: string;
|
|
858
|
+
getRootDirectory?: () => Promise<FileSystemDirectoryHandle>;
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
// @public
|
|
862
|
+
export type NodeGeometry = {
|
|
863
|
+
x: number;
|
|
864
|
+
y: number;
|
|
865
|
+
width: number;
|
|
866
|
+
height: number;
|
|
867
|
+
rotation: number;
|
|
868
|
+
};
|
|
869
|
+
|
|
870
|
+
// @public (undocumented)
|
|
871
|
+
export interface NodeHandle<Props extends JsonValue = JsonValue> {
|
|
872
|
+
// (undocumented)
|
|
873
|
+
getAttrs(): Readonly<BoardNode<Props>>;
|
|
874
|
+
// (undocumented)
|
|
875
|
+
height(): number;
|
|
876
|
+
// (undocumented)
|
|
877
|
+
height(value: number): this;
|
|
878
|
+
// (undocumented)
|
|
879
|
+
readonly id: string;
|
|
880
|
+
// (undocumented)
|
|
881
|
+
on<EventName extends keyof NodeHandleEventMap>(eventName: EventName, listener: (event: NodeHandleEventMap[EventName]) => void): () => void;
|
|
882
|
+
// (undocumented)
|
|
883
|
+
remove(): void;
|
|
884
|
+
// (undocumented)
|
|
885
|
+
rotation(): number;
|
|
886
|
+
// (undocumented)
|
|
887
|
+
rotation(value: number): this;
|
|
888
|
+
// (undocumented)
|
|
889
|
+
setAttrs(patch: BoardNodePatch<Props>): this;
|
|
890
|
+
// (undocumented)
|
|
891
|
+
visible(): boolean;
|
|
892
|
+
// (undocumented)
|
|
893
|
+
visible(value: boolean): this;
|
|
894
|
+
// (undocumented)
|
|
895
|
+
width(): number;
|
|
896
|
+
// (undocumented)
|
|
897
|
+
width(value: number): this;
|
|
898
|
+
// (undocumented)
|
|
899
|
+
x(): number;
|
|
900
|
+
// (undocumented)
|
|
901
|
+
x(value: number): this;
|
|
902
|
+
// (undocumented)
|
|
903
|
+
y(): number;
|
|
904
|
+
// (undocumented)
|
|
905
|
+
y(value: number): this;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
// @public (undocumented)
|
|
909
|
+
export type NodeHandleEventMap = {
|
|
910
|
+
change: BoardChangeEvent;
|
|
911
|
+
};
|
|
912
|
+
|
|
913
|
+
// @public (undocumented)
|
|
914
|
+
export type NodeInput<Props extends JsonValue = JsonValue> = BoardNodeCreateInput<Props>;
|
|
915
|
+
|
|
916
|
+
// @public (undocumented)
|
|
917
|
+
export type NodeListFilter = {
|
|
918
|
+
ids?: string[];
|
|
919
|
+
types?: string[];
|
|
920
|
+
type?: string;
|
|
921
|
+
bounds?: WorldBounds;
|
|
922
|
+
visible?: boolean;
|
|
923
|
+
selected?: boolean;
|
|
924
|
+
limit?: number;
|
|
925
|
+
};
|
|
926
|
+
|
|
927
|
+
// @public (undocumented)
|
|
928
|
+
export class NodeNotFoundError extends PixiBoardCoreError {
|
|
929
|
+
constructor(nodeId: string);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
// @public (undocumented)
|
|
933
|
+
export type NodePatch<Props extends JsonValue = JsonValue> = BoardNodePatch<Props>;
|
|
934
|
+
|
|
935
|
+
// @public (undocumented)
|
|
936
|
+
export type NodeQuery = NodeListFilter;
|
|
937
|
+
|
|
938
|
+
// @public (undocumented)
|
|
939
|
+
export type NodeResizeRequest = {
|
|
940
|
+
handle: ResizeHandle;
|
|
941
|
+
deltaWorld: Point;
|
|
942
|
+
origin?: NodeGeometry;
|
|
943
|
+
minWidth?: number;
|
|
944
|
+
minHeight?: number;
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
// @public (undocumented)
|
|
948
|
+
export type NodeTypeDefinition<Props extends JsonValue = JsonValue> = CustomNodeDataDefinition<Props>;
|
|
949
|
+
|
|
950
|
+
// @public (undocumented)
|
|
951
|
+
export class NodeTypeNotRegisteredError extends PixiBoardCoreError {
|
|
952
|
+
constructor(type: string);
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
// @public (undocumented)
|
|
956
|
+
export type NodeTypeRegistrationDisposer = () => Promise<void>;
|
|
957
|
+
|
|
958
|
+
// @public (undocumented)
|
|
959
|
+
export type NodeTypeRegistrationOptions = {
|
|
960
|
+
replace?: boolean;
|
|
961
|
+
};
|
|
962
|
+
|
|
963
|
+
// @public (undocumented)
|
|
964
|
+
export class NodeValidationError extends PixiBoardCoreError {
|
|
965
|
+
constructor(message: string, options?: {
|
|
966
|
+
nodeId?: string;
|
|
967
|
+
nodeType?: string;
|
|
968
|
+
cause?: unknown;
|
|
969
|
+
});
|
|
970
|
+
// (undocumented)
|
|
971
|
+
readonly cause?: unknown;
|
|
972
|
+
// (undocumented)
|
|
973
|
+
readonly nodeId?: string;
|
|
974
|
+
// (undocumented)
|
|
975
|
+
readonly nodeType?: string;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
// @public (undocumented)
|
|
979
|
+
export interface ObjectUrlLease {
|
|
980
|
+
// (undocumented)
|
|
981
|
+
readonly assetId: string;
|
|
982
|
+
// (undocumented)
|
|
983
|
+
revoke(): void;
|
|
984
|
+
// (undocumented)
|
|
985
|
+
readonly revoked: boolean;
|
|
986
|
+
// (undocumented)
|
|
987
|
+
readonly url: string;
|
|
988
|
+
// (undocumented)
|
|
989
|
+
readonly variant: AssetBinaryVariant;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
// @public (undocumented)
|
|
993
|
+
export interface ObjectUrlPort extends PortLifecycle {
|
|
994
|
+
// (undocumented)
|
|
995
|
+
create(blob: Blob): string;
|
|
996
|
+
// (undocumented)
|
|
997
|
+
revoke(url: string): void;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
// @public (undocumented)
|
|
1001
|
+
export interface OpfsPort extends PortLifecycle {
|
|
1002
|
+
// (undocumented)
|
|
1003
|
+
delete(key: string, signal: AbortSignal): Promise<void>;
|
|
1004
|
+
// (undocumented)
|
|
1005
|
+
get(key: string, signal: AbortSignal): Promise<Blob | undefined>;
|
|
1006
|
+
// (undocumented)
|
|
1007
|
+
isAvailable(signal: AbortSignal): Promise<boolean>;
|
|
1008
|
+
// (undocumented)
|
|
1009
|
+
put(key: string, blob: Blob, signal: AbortSignal): Promise<void>;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
// @public
|
|
1013
|
+
export type OverlayAnchor = "top-left" | "top" | "top-right" | "left" | "center" | "right" | "bottom-left" | "bottom" | "bottom-right" | {
|
|
1014
|
+
x: number;
|
|
1015
|
+
y: number;
|
|
1016
|
+
};
|
|
1017
|
+
|
|
1018
|
+
// @public (undocumented)
|
|
1019
|
+
export type OverlayBoundsResolver = (node: Readonly<BoardNode<JsonValue>>) => WorldBounds;
|
|
1020
|
+
|
|
1021
|
+
// @public
|
|
1022
|
+
export type OverlayDeclutter = {
|
|
1023
|
+
minScale?: number;
|
|
1024
|
+
collapseBelowScale?: number;
|
|
1025
|
+
};
|
|
1026
|
+
|
|
1027
|
+
// @public (undocumented)
|
|
1028
|
+
export type OverlayItem = {
|
|
1029
|
+
key?: string;
|
|
1030
|
+
anchor?: OverlayAnchor;
|
|
1031
|
+
offset?: Point;
|
|
1032
|
+
scale?: OverlayScaleMode;
|
|
1033
|
+
declutter?: OverlayDeclutter;
|
|
1034
|
+
data?: unknown;
|
|
1035
|
+
className?: string;
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
// @public (undocumented)
|
|
1039
|
+
export type OverlayLayer = {
|
|
1040
|
+
refresh(): void;
|
|
1041
|
+
flush(): void;
|
|
1042
|
+
size(): number;
|
|
1043
|
+
destroy(): void;
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
// @public (undocumented)
|
|
1047
|
+
export type OverlayLayerOptions = {
|
|
1048
|
+
container: HTMLElement;
|
|
1049
|
+
item(node: Readonly<BoardNode<JsonValue>>): OverlayItem | undefined;
|
|
1050
|
+
render(context: OverlayRenderContext): void;
|
|
1051
|
+
itemClassName?: string;
|
|
1052
|
+
collapsedClassName?: string;
|
|
1053
|
+
wheelSurface?: HTMLElement;
|
|
1054
|
+
candidates?(): Iterable<string> | undefined;
|
|
1055
|
+
onFlush?(): void;
|
|
1056
|
+
schedule?(callback: () => void): () => void;
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
// @public (undocumented)
|
|
1060
|
+
export type OverlayPlacement = {
|
|
1061
|
+
key: string;
|
|
1062
|
+
nodeId: string;
|
|
1063
|
+
screen: Point;
|
|
1064
|
+
scale: number;
|
|
1065
|
+
collapsed: boolean;
|
|
1066
|
+
data?: unknown;
|
|
1067
|
+
className?: string;
|
|
1068
|
+
};
|
|
1069
|
+
|
|
1070
|
+
// @public (undocumented)
|
|
1071
|
+
export type OverlayRenderContext = {
|
|
1072
|
+
element: HTMLElement;
|
|
1073
|
+
placement: OverlayPlacement;
|
|
1074
|
+
node: Readonly<BoardNode<JsonValue>>;
|
|
1075
|
+
};
|
|
1076
|
+
|
|
1077
|
+
// @public
|
|
1078
|
+
export type OverlayScaleMode = "screen" | "world" | {
|
|
1079
|
+
mode: "clamped";
|
|
1080
|
+
min: number;
|
|
1081
|
+
max: number;
|
|
1082
|
+
};
|
|
1083
|
+
|
|
1084
|
+
// @public (undocumented)
|
|
1085
|
+
export class PermissionDeniedError extends CapabilityError {
|
|
1086
|
+
constructor(message?: string, details?: Readonly<Record<string, unknown>>);
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
// @public (undocumented)
|
|
1090
|
+
export interface PixiBoard {
|
|
1091
|
+
// (undocumented)
|
|
1092
|
+
readonly capabilities: BoardCapabilities;
|
|
1093
|
+
// (undocumented)
|
|
1094
|
+
capture(input: CaptureInput, options?: RequestOptions): Promise<CaptureResult>;
|
|
1095
|
+
// (undocumented)
|
|
1096
|
+
destroy(): Promise<void>;
|
|
1097
|
+
// (undocumented)
|
|
1098
|
+
readonly document: {
|
|
1099
|
+
snapshot(): Readonly<BoardDocument>;
|
|
1100
|
+
toJSON(): BoardDocument;
|
|
1101
|
+
load(input: unknown, options?: DocumentLoadOptions): Promise<void>;
|
|
1102
|
+
validate(input: unknown): BoardDocument;
|
|
1103
|
+
};
|
|
1104
|
+
// (undocumented)
|
|
1105
|
+
find(filter?: NodeQuery): ReadonlyArray<Readonly<BoardNode>>;
|
|
1106
|
+
// (undocumented)
|
|
1107
|
+
findOne(selector: string): Readonly<BoardNode> | undefined;
|
|
1108
|
+
// (undocumented)
|
|
1109
|
+
focus(): void;
|
|
1110
|
+
// (undocumented)
|
|
1111
|
+
readonly history: {
|
|
1112
|
+
canUndo(): boolean;
|
|
1113
|
+
canRedo(): boolean;
|
|
1114
|
+
undo(): BoardChangeEvent["changeSet"] | undefined;
|
|
1115
|
+
redo(): BoardChangeEvent["changeSet"] | undefined;
|
|
1116
|
+
clear(): void;
|
|
1117
|
+
};
|
|
1118
|
+
// (undocumented)
|
|
1119
|
+
node<Props extends JsonValue = JsonValue>(nodeId: string): NodeHandle<Props>;
|
|
1120
|
+
// (undocumented)
|
|
1121
|
+
readonly nodes: {
|
|
1122
|
+
create<Props extends JsonValue>(input: BoardNodeCreateInput<Props>): Promise<NodeHandle<Props>>;
|
|
1123
|
+
update<Props extends JsonValue>(nodeId: string, patch: BoardNodePatch<Props>): NodeHandle<Props>;
|
|
1124
|
+
resize<Props extends JsonValue>(nodeId: string, request: NodeResizeRequest): NodeHandle<Props>;
|
|
1125
|
+
remove(nodeId: string): void;
|
|
1126
|
+
get<Props extends JsonValue = JsonValue>(nodeId: string): Readonly<BoardNode<Props>> | undefined;
|
|
1127
|
+
list(filter?: NodeListFilter): ReadonlyArray<Readonly<BoardNode>>;
|
|
1128
|
+
};
|
|
1129
|
+
// (undocumented)
|
|
1130
|
+
readonly nodeTypes: {
|
|
1131
|
+
register<Props extends JsonValue, State = unknown>(definition: PublicNodeTypeDefinition<Props, State>, options?: NodeTypeRegistrationOptions): Promise<NodeTypeRegistrationDisposer>;
|
|
1132
|
+
has(type: string): boolean;
|
|
1133
|
+
get(type: string): CustomNodeDataDefinition | undefined;
|
|
1134
|
+
list(): ReadonlyArray<CustomNodeDataDefinition>;
|
|
1135
|
+
};
|
|
1136
|
+
// (undocumented)
|
|
1137
|
+
on<EventName extends keyof PublicBoardEventMap>(eventName: EventName, listener: (event: PublicBoardEventMap[EventName]) => void): () => void;
|
|
1138
|
+
// (undocumented)
|
|
1139
|
+
readonly ready: Promise<void>;
|
|
1140
|
+
// (undocumented)
|
|
1141
|
+
readonly selection: {
|
|
1142
|
+
get(): string[];
|
|
1143
|
+
set(nodeIds: Iterable<string>): void;
|
|
1144
|
+
toggle(nodeId: string): void;
|
|
1145
|
+
clear(): void;
|
|
1146
|
+
onChange(listener: (event: SelectionChangeEvent) => void): () => void;
|
|
1147
|
+
};
|
|
1148
|
+
// (undocumented)
|
|
1149
|
+
readonly signal: AbortSignal;
|
|
1150
|
+
// (undocumented)
|
|
1151
|
+
readonly state: BoardLifecycleState;
|
|
1152
|
+
// (undocumented)
|
|
1153
|
+
transaction<Result>(label: string, operation: () => Result, options?: TransactionOptions): Result;
|
|
1154
|
+
readonly transform: {
|
|
1155
|
+
handles(): ReadonlyArray<TransformHandlePlacement>;
|
|
1156
|
+
bounds(): TransformBounds | undefined;
|
|
1157
|
+
begin(handle: ResizeHandle): TransformSession | undefined;
|
|
1158
|
+
active(): boolean;
|
|
1159
|
+
};
|
|
1160
|
+
// (undocumented)
|
|
1161
|
+
readonly viewport: {
|
|
1162
|
+
get(): ViewportSnapshot;
|
|
1163
|
+
set(value: ViewportSnapshot): void;
|
|
1164
|
+
panBy(deltaX: number, deltaY: number): void;
|
|
1165
|
+
zoomAt(screenPoint: Point, factor: number): void;
|
|
1166
|
+
fitNodes(nodeIds: string[]): void;
|
|
1167
|
+
fitBounds(bounds: WorldBounds): void;
|
|
1168
|
+
toWorld(point: Point): Point;
|
|
1169
|
+
toScreen(point: Point): Point;
|
|
1170
|
+
};
|
|
1171
|
+
visibleNodeIds(): ReadonlySet<string> | undefined;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
// @public (undocumented)
|
|
1175
|
+
export type PixiBoardOptions = {
|
|
1176
|
+
container?: Element | null;
|
|
1177
|
+
document?: unknown;
|
|
1178
|
+
headless?: boolean;
|
|
1179
|
+
persistence?: DocumentPersistence;
|
|
1180
|
+
interactions?: {
|
|
1181
|
+
pointer?: boolean;
|
|
1182
|
+
keyboard?: boolean;
|
|
1183
|
+
clipboard?: boolean;
|
|
1184
|
+
};
|
|
1185
|
+
transform?: {
|
|
1186
|
+
minWidth?: number;
|
|
1187
|
+
minHeight?: number;
|
|
1188
|
+
};
|
|
1189
|
+
ports?: BoardRuntimePorts;
|
|
1190
|
+
virtualization?: {
|
|
1191
|
+
enabled?: boolean;
|
|
1192
|
+
padding?: number;
|
|
1193
|
+
};
|
|
1194
|
+
core?: Omit<BoardCoreOptions, "document">;
|
|
1195
|
+
renderer?: PublicRendererOptions;
|
|
1196
|
+
rendererFactory?: (options: PublicRendererOptions) => RuntimeRenderer;
|
|
1197
|
+
preview?: PreviewService;
|
|
1198
|
+
capture?: CaptureService;
|
|
1199
|
+
};
|
|
1200
|
+
|
|
1201
|
+
// @public (undocumented)
|
|
1202
|
+
export type PixiBoardRendererOptions = PublicRendererOptions;
|
|
1203
|
+
|
|
1204
|
+
// @public (undocumented)
|
|
1205
|
+
export type Point = {
|
|
1206
|
+
x: number;
|
|
1207
|
+
y: number;
|
|
1208
|
+
};
|
|
1209
|
+
|
|
1210
|
+
// @public (undocumented)
|
|
1211
|
+
export interface PortLifecycle {
|
|
1212
|
+
// (undocumented)
|
|
1213
|
+
close?(): void | Promise<void>;
|
|
1214
|
+
// (undocumented)
|
|
1215
|
+
destroy?(): void | Promise<void>;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
// @public
|
|
1219
|
+
export function projectOverlayItem(node: Readonly<BoardNode<JsonValue>>, item: OverlayItem, viewport: ViewportSnapshot, bounds: WorldBounds): OverlayPlacement | undefined;
|
|
1220
|
+
|
|
1221
|
+
// @public (undocumented)
|
|
1222
|
+
export type PublicBoardEventMap = {
|
|
1223
|
+
change: BoardChangeEvent;
|
|
1224
|
+
"selection:change": SelectionChangeEvent;
|
|
1225
|
+
"viewport:change": ViewportChangeEvent;
|
|
1226
|
+
"history:change": HistoryChangeEvent;
|
|
1227
|
+
"assets:change": BoardChangeEvent;
|
|
1228
|
+
"capability:change": {
|
|
1229
|
+
capability: string;
|
|
1230
|
+
available: boolean;
|
|
1231
|
+
};
|
|
1232
|
+
"render:complete": RenderCompleteEvent;
|
|
1233
|
+
};
|
|
1234
|
+
|
|
1235
|
+
// @public (undocumented)
|
|
1236
|
+
export type PublicNodeTypeDefinition<Props extends JsonValue = JsonValue, State = unknown> = CustomNodeDefinition<Props, State>;
|
|
1237
|
+
|
|
1238
|
+
// @public (undocumented)
|
|
1239
|
+
export type PublicRendererOptions = {
|
|
1240
|
+
registry?: CustomNodeRendererRegistry;
|
|
1241
|
+
[key: string]: unknown;
|
|
1242
|
+
};
|
|
1243
|
+
|
|
1244
|
+
// @public (undocumented)
|
|
1245
|
+
export type PutAssetOptions = {
|
|
1246
|
+
signal?: AbortSignal;
|
|
1247
|
+
preferOpfs?: boolean;
|
|
1248
|
+
variant?: AssetBinaryVariant;
|
|
1249
|
+
};
|
|
1250
|
+
|
|
1251
|
+
// @public (undocumented)
|
|
1252
|
+
export type RenderCompleteEvent = {
|
|
1253
|
+
revision: number;
|
|
1254
|
+
frameId: number;
|
|
1255
|
+
};
|
|
1256
|
+
|
|
1257
|
+
// @public (undocumented)
|
|
1258
|
+
export type RendererApplyResult = "applied" | "rebuild-required";
|
|
1259
|
+
|
|
1260
|
+
// @public (undocumented)
|
|
1261
|
+
export const RESIZE_HANDLES: readonly ResizeHandle[];
|
|
1262
|
+
|
|
1263
|
+
// @public
|
|
1264
|
+
export type ResizeHandle = "nw" | "n" | "ne" | "e" | "se" | "s" | "sw" | "w";
|
|
1265
|
+
|
|
1266
|
+
// @public
|
|
1267
|
+
export function resizeHandleAxes(handle: ResizeHandle): {
|
|
1268
|
+
horizontal: -1 | 0 | 1;
|
|
1269
|
+
vertical: -1 | 0 | 1;
|
|
1270
|
+
};
|
|
1271
|
+
|
|
1272
|
+
// @public
|
|
1273
|
+
export function resizeHandleCursor(handle: ResizeHandle, rotation?: number): string;
|
|
1274
|
+
|
|
1275
|
+
// @public (undocumented)
|
|
1276
|
+
export type ResizeObserverPort = {
|
|
1277
|
+
observe(target: Element): void;
|
|
1278
|
+
disconnect(): void;
|
|
1279
|
+
};
|
|
1280
|
+
|
|
1281
|
+
// @public
|
|
1282
|
+
export function resolveOverlayBounds(node: Readonly<BoardNode<JsonValue>>, nodeTypes: {
|
|
1283
|
+
get(type: string): {
|
|
1284
|
+
getBounds(node: BoardNode<never>): WorldBounds;
|
|
1285
|
+
} | undefined;
|
|
1286
|
+
}): WorldBounds;
|
|
1287
|
+
|
|
1288
|
+
// @public (undocumented)
|
|
1289
|
+
export function resolveScale(mode: OverlayScaleMode | undefined, viewportScale: number): number;
|
|
1290
|
+
|
|
1291
|
+
// @public (undocumented)
|
|
1292
|
+
export function runBrowserAdapterContract(harness: BrowserAdapterContractHarness): Promise<BrowserAdapterContractEvidence>;
|
|
1293
|
+
|
|
1294
|
+
// @public (undocumented)
|
|
1295
|
+
export type RuntimeRenderer = {
|
|
1296
|
+
init(): Promise<void>;
|
|
1297
|
+
rebuild(snapshot: Readonly<BoardDocument>): Promise<void>;
|
|
1298
|
+
apply(update: BoardDocumentUpdate, changeSet: BoardChangeEvent["changeSet"]): Promise<RendererApplyResult>;
|
|
1299
|
+
setVisibleBounds?(bounds: WorldBounds | undefined, scale?: number): Promise<void>;
|
|
1300
|
+
visibleNodeIds?(): ReadonlySet<string> | undefined;
|
|
1301
|
+
refreshRegisteredTypes?(): Promise<void>;
|
|
1302
|
+
destroy(): Promise<void>;
|
|
1303
|
+
};
|
|
1304
|
+
|
|
1305
|
+
// @public (undocumented)
|
|
1306
|
+
export type SaveBrowserDocumentInput = {
|
|
1307
|
+
snapshot: BoardDocument;
|
|
1308
|
+
metadata?: BrowserDocumentMetadata;
|
|
1309
|
+
expectedRevision?: number | null;
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
// @public (undocumented)
|
|
1313
|
+
export type SaveBrowserDocumentOptions = {
|
|
1314
|
+
expectedRevision?: number | null;
|
|
1315
|
+
};
|
|
1316
|
+
|
|
1317
|
+
// @public (undocumented)
|
|
1318
|
+
export type SelectionChangeEvent = {
|
|
1319
|
+
nodeIds: string[];
|
|
1320
|
+
previousNodeIds: string[];
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
// @public (undocumented)
|
|
1324
|
+
export type SelectionOverlayOptions = {
|
|
1325
|
+
container: HTMLElement;
|
|
1326
|
+
classPrefix?: string;
|
|
1327
|
+
groupBox?: boolean;
|
|
1328
|
+
groupBoxPadding?: number;
|
|
1329
|
+
schedule?(callback: () => void): () => void;
|
|
1330
|
+
};
|
|
1331
|
+
|
|
1332
|
+
// @public (undocumented)
|
|
1333
|
+
export type StoredAssetBinary = {
|
|
1334
|
+
storage: AssetStorageLocation;
|
|
1335
|
+
size: number;
|
|
1336
|
+
mimeType: string;
|
|
1337
|
+
updatedAt: number;
|
|
1338
|
+
};
|
|
1339
|
+
|
|
1340
|
+
// @public (undocumented)
|
|
1341
|
+
export type StoredAssetEntry = {
|
|
1342
|
+
id: string;
|
|
1343
|
+
record: AssetRecord;
|
|
1344
|
+
binaries: Record<string, StoredAssetBinary>;
|
|
1345
|
+
createdAt: number;
|
|
1346
|
+
updatedAt: number;
|
|
1347
|
+
quarantinedAt?: number;
|
|
1348
|
+
};
|
|
1349
|
+
|
|
1350
|
+
// @public (undocumented)
|
|
1351
|
+
export type TickerPort = {
|
|
1352
|
+
add(listener: () => void): void;
|
|
1353
|
+
remove(listener: () => void): void;
|
|
1354
|
+
};
|
|
1355
|
+
|
|
1356
|
+
// @public (undocumented)
|
|
1357
|
+
export class TransactionConflictError extends PixiBoardCoreError {
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
// @public (undocumented)
|
|
1361
|
+
export type TransactionOptions = {
|
|
1362
|
+
origin?: ChangeOrigin;
|
|
1363
|
+
coalesceKey?: string;
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1366
|
+
// @public (undocumented)
|
|
1367
|
+
export type TransactionOrigin = ChangeOrigin;
|
|
1368
|
+
|
|
1369
|
+
// @public
|
|
1370
|
+
export type TransformBounds = {
|
|
1371
|
+
x: number;
|
|
1372
|
+
y: number;
|
|
1373
|
+
width: number;
|
|
1374
|
+
height: number;
|
|
1375
|
+
rotation: number;
|
|
1376
|
+
nodeIds: string[];
|
|
1377
|
+
};
|
|
1378
|
+
|
|
1379
|
+
// @public
|
|
1380
|
+
export type TransformHandlePlacement = {
|
|
1381
|
+
handle: ResizeHandle;
|
|
1382
|
+
world: Point;
|
|
1383
|
+
cursor: string;
|
|
1384
|
+
};
|
|
1385
|
+
|
|
1386
|
+
// @public (undocumented)
|
|
1387
|
+
export type TransformSession = {
|
|
1388
|
+
readonly handle: ResizeHandle;
|
|
1389
|
+
update(deltaWorld: Point): void;
|
|
1390
|
+
commit(): void;
|
|
1391
|
+
cancel(): void;
|
|
1392
|
+
};
|
|
1393
|
+
|
|
1394
|
+
// @public (undocumented)
|
|
1395
|
+
export type ViewportChangeEvent = {
|
|
1396
|
+
viewport: ViewportSnapshot;
|
|
1397
|
+
previousViewport: ViewportSnapshot;
|
|
1398
|
+
};
|
|
1399
|
+
|
|
1400
|
+
// @public (undocumented)
|
|
1401
|
+
export type ViewportSnapshot = {
|
|
1402
|
+
scale: number;
|
|
1403
|
+
offset: Point;
|
|
1404
|
+
};
|
|
1405
|
+
|
|
1406
|
+
// @public (undocumented)
|
|
1407
|
+
export type WorldBounds = {
|
|
1408
|
+
minX: number;
|
|
1409
|
+
minY: number;
|
|
1410
|
+
maxX: number;
|
|
1411
|
+
maxY: number;
|
|
1412
|
+
};
|
|
1413
|
+
|
|
1414
|
+
// Warnings were encountered during analysis:
|
|
1415
|
+
//
|
|
1416
|
+
// dist/types-DnR8yhxj.d.ts:45:5 - (ae-forgotten-export) The symbol "AssetRef" needs to be exported by the entry point browser.d.ts
|
|
1417
|
+
// dist/types-DnR8yhxj.d.ts:271:9 - (ae-forgotten-export) The symbol "RequestOptions" needs to be exported by the entry point browser.d.ts
|
|
1418
|
+
// dist/types-DnR8yhxj.d.ts:272:9 - (ae-forgotten-export) The symbol "DocumentLoadOptions_2" needs to be exported by the entry point browser.d.ts
|
|
1419
|
+
// dist/types-DnR8yhxj.d.ts:272:9 - (ae-forgotten-export) The symbol "WriteOptions" needs to be exported by the entry point browser.d.ts
|
|
1420
|
+
// dist/types-DnR8yhxj.d.ts:275:13 - (ae-forgotten-export) The symbol "BoardChangeSet" needs to be exported by the entry point browser.d.ts
|
|
1421
|
+
// dist/types-DnR8yhxj.d.ts:281:9 - (ae-forgotten-export) The symbol "ReadNodesInput" needs to be exported by the entry point browser.d.ts
|
|
1422
|
+
// dist/types-DnR8yhxj.d.ts:281:9 - (ae-forgotten-export) The symbol "ReadNodesResult" needs to be exported by the entry point browser.d.ts
|
|
1423
|
+
// dist/types-DnR8yhxj.d.ts:282:9 - (ae-forgotten-export) The symbol "WriteResult" needs to be exported by the entry point browser.d.ts
|
|
1424
|
+
// dist/types-DnR8yhxj.d.ts:283:13 - (ae-forgotten-export) The symbol "CreateNodeInput" needs to be exported by the entry point browser.d.ts
|
|
1425
|
+
// dist/types-DnR8yhxj.d.ts:286:13 - (ae-forgotten-export) The symbol "UpdateNodeInput" needs to be exported by the entry point browser.d.ts
|
|
1426
|
+
// dist/types-DnR8yhxj.d.ts:293:9 - (ae-forgotten-export) The symbol "ReadAssetsResult" needs to be exported by the entry point browser.d.ts
|
|
1427
|
+
// dist/types-DnR8yhxj.d.ts:300:13 - (ae-forgotten-export) The symbol "AssetRecord" needs to be exported by the entry point browser.d.ts
|
|
1428
|
+
// dist/types-DnR8yhxj.d.ts:328:9 - (ae-forgotten-export) The symbol "PreviewResult" needs to be exported by the entry point browser.d.ts
|
|
1429
|
+
// dist/types-DnR8yhxj.d.ts:508:5 - (ae-forgotten-export) The symbol "BoardCoreOptions" needs to be exported by the entry point browser.d.ts
|
|
1430
|
+
// dist/types-DnR8yhxj.d.ts:511:5 - (ae-forgotten-export) The symbol "PreviewService" needs to be exported by the entry point browser.d.ts
|
|
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
|
|
1432
|
+
|
|
1433
|
+
// (No @packageDocumentation comment for this package)
|
|
1434
|
+
|
|
1435
|
+
```
|