pixiboardjs 0.1.0-alpha.4 → 0.1.0-alpha.6
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 +12 -0
- package/README.md +70 -4
- package/dist/browser.d.ts +231 -4
- package/dist/browser.js +2013 -149
- package/dist/browser.js.map +1 -1
- package/dist/index.d.ts +23 -3
- package/dist/index.js +1302 -118
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +2 -2
- package/dist/node.js +1302 -118
- package/dist/node.js.map +1 -1
- package/dist/tsdoc-metadata.json +11 -0
- package/dist/{types-CZ0KxRlm.d.ts → types-Cl2ogJCs.d.ts} +166 -5
- package/dist/types.d.ts +1 -1
- package/etc/pixiboardjs-browser.api.md +372 -20
- package/etc/pixiboardjs-node.api.md +155 -20
- package/etc/pixiboardjs-types.api.md +83 -20
- package/etc/pixiboardjs.api.md +155 -20
- package/package.json +11 -4
- package/src/node-media-provider.d.ts +195 -0
- package/src/node-media-provider.mjs +139 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,29 @@
|
|
|
1
|
-
import { A as AssetVariant, R as ResizeHandle,
|
|
2
|
-
export {
|
|
1
|
+
import { A as AssetVariant, j as AssetRef, S as MediaMetadata, aw as Size, w as ContentFit, B as BoardNode, R as ResizeHandle, a5 as PixiBoardOptions, P as PixiBoard } from './types-Cl2ogJCs.js';
|
|
2
|
+
export { g as AssetImportRequest, h as AssetImportService, i as AssetImportSource, k as BoardCapabilities, l as BoardChangeEvent, b as BoardDocument, d as BoardDocumentUpdate, m as BoardLifecycleState, n as BoardNodeConvertInput, o as BoardNodeCreateInput, p as BoardNodePatch, q as BoardRuntimePorts, r as BrowserEventPort, s as CaptureInput, t as CaptureResult, u as ChangeOrigin, v as ConnectionLayer, x as CustomDisplayFactory, y as CustomDisplayObject, z as CustomNodeDataDefinition, D as CustomNodeDefinition, E as CustomNodeRenderer, F as CustomNodeRendererContext, G as CustomNodeRendererRegistry, H as CustomNodeView, I as CustomRendererResources, K as CustomResizePolicy, L as CustomTextureLease, M as DocumentLoadOptions, N as DocumentPersistence, O as HistoryChangeEvent, Q as ImportedAsset, J as JsonValue, T as NodeGeometry, U as NodeHandle, X as NodeHandleEventMap, Y as NodeInput, Z as NodeListFilter, _ as NodePatch, $ as NodeQuery, a0 as NodeResizeRequest, a1 as NodeTypeDefinition, a2 as NodeTypeRegistrationDisposer, a3 as NodeTypeRegistrationOptions, a6 as PixiBoardRendererOptions, a as Point, a7 as PreviewNode, a8 as PreviewQuality, a9 as PreviewSpec, aa as PreviewSpecOptions, ab as PreviewState, ac as PreviewStatus, ad as PublicBoardEventMap, ae as PublicNodeTypeDefinition, af as PublicRendererOptions, ag as RenderCompleteEvent, ah as RendererApplyResult, ai as ResizeObserverPort, aj as RuntimeRenderer, ak as SelectionChangeEvent, al as TickerPort, am as TransactionOptions, an as TransactionOrigin, ao as TransformBounds, ap as TransformHandlePlacement, aq as TransformSession, ar as ViewportChangeEvent, V as ViewportSnapshot, W as WorldBounds, as as createPreviewSpec, at as isDocumentPreviewType, au as isPreviewNodeType, av as previewStatusLabel } from './types-Cl2ogJCs.js';
|
|
3
3
|
|
|
4
4
|
/** Named variants or a content-addressed preview with a lowercase SHA-256 digest. */
|
|
5
5
|
declare function isAssetVariant(value: unknown): value is AssetVariant;
|
|
6
6
|
|
|
7
|
+
/** Resolve only renderable pixels; never returns an original video/document. */
|
|
8
|
+
declare function resolveTextureAssetRef(node: Pick<BoardNode, "type" | "assetRefs">, kind?: string): AssetRef | undefined;
|
|
9
|
+
/** Canonical first import. Optional variants remain separate named slots. */
|
|
10
|
+
declare function createMediaAssetRefs(kind: string, assetId: string, available?: Partial<Record<"preview" | "poster" | "waveform", boolean>>): Record<string, AssetRef>;
|
|
11
|
+
type MediaLayoutRect = Size & {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Calculate a finite content rectangle inside a frame. Unknown intrinsic
|
|
17
|
+
* dimensions fall back to the frame itself, so a late metadata update can
|
|
18
|
+
* improve the layout without ever producing NaN/Infinity geometry.
|
|
19
|
+
*/
|
|
20
|
+
declare function fitMediaRect(frame: Size, intrinsic: Size | undefined, fit?: ContentFit): MediaLayoutRect;
|
|
21
|
+
/** Initial node footprint: the intrinsic ratio clamped without upscaling. */
|
|
22
|
+
declare function preferredMediaNodeSize(intrinsic: Size | undefined, maxWidth?: number, maxHeight?: number): Size;
|
|
23
|
+
/** Export a compact, JSON-safe media metadata object with valid facts only. */
|
|
24
|
+
declare function createMediaMetadata(input: MediaMetadata): MediaMetadata;
|
|
25
|
+
declare function isContentFit(value: unknown): value is ContentFit;
|
|
26
|
+
|
|
7
27
|
declare class PixiBoardCoreError extends Error {
|
|
8
28
|
constructor(message: string);
|
|
9
29
|
}
|
|
@@ -73,4 +93,4 @@ declare class BoardDestroyedError extends CapabilityError {
|
|
|
73
93
|
|
|
74
94
|
declare function createPixiBoard(options?: PixiBoardOptions): Promise<PixiBoard>;
|
|
75
95
|
|
|
76
|
-
export { AssetUnavailableError, AssetVariant, BoardDestroyedError, CapabilityError, CapabilityUnavailableError, DocumentValidationError, NodeNotFoundError, NodeTypeNotRegisteredError, NodeValidationError, PermissionDeniedError, PixiBoard, PixiBoardOptions, RESIZE_HANDLES, ResizeHandle, TransactionConflictError, createPixiBoard, isAssetVariant, resizeHandleAxes, resizeHandleCursor };
|
|
96
|
+
export { AssetRef, AssetUnavailableError, AssetVariant, BoardDestroyedError, BoardNode, CapabilityError, CapabilityUnavailableError, ContentFit, DocumentValidationError, MediaMetadata, NodeNotFoundError, NodeTypeNotRegisteredError, NodeValidationError, PermissionDeniedError, PixiBoard, PixiBoardOptions, RESIZE_HANDLES, ResizeHandle, TransactionConflictError, createMediaAssetRefs, createMediaMetadata, createPixiBoard, fitMediaRect, isAssetVariant, isContentFit, preferredMediaNodeSize, resizeHandleAxes, resizeHandleCursor, resolveTextureAssetRef };
|