pixiboardjs 0.1.0-alpha.3 → 0.1.0-alpha.5

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Add native directed connections, bounded node-agent context, reversible metadata transactions, in-place node conversion, and public browser host runtime exports. Relationships use only metadata.connections.
8
+
9
+ ## 0.1.0-alpha.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Fix lost variant index entries during concurrent BrowserPersistenceAdapter writes by serializing writes for the same asset.
14
+
15
+ Merge NativeIndexedDB variant updates within a transaction so concurrent writes preserve all variant index entries.
16
+
3
17
  ## 0.1.0-alpha.3
4
18
 
5
19
  ### Patch Changes
package/README.md CHANGED
@@ -17,7 +17,7 @@ single-node render commit does not create or scan a full document snapshot.
17
17
  Install target for SDK consumers:
18
18
 
19
19
  ```sh
20
- pnpm add pixiboardjs
20
+ pnpm add pixiboardjs@alpha
21
21
  ```
22
22
 
23
23
  The public surface is the package root. `./browser`, `./node` and `./types`
@@ -52,3 +52,44 @@ dependency.
52
52
  requires those real artifacts, packs the facade, and installs the tarball into
53
53
  clean Node and Vite consumers outside the repository before checking API and
54
54
  bundle-size budgets. It never creates or substitutes release artifacts.
55
+
56
+ ## Connections and node agents (alpha.5)
57
+
58
+ ```ts
59
+ import { attachConnections, createNodeAgentController } from "pixiboardjs/browser";
60
+
61
+ const connections = await attachConnections(board, {
62
+ surface: container, enabled: true, persistSettings: false,
63
+ });
64
+ connections.create("source-node", "result-node");
65
+
66
+ const agent = createNodeAgentController(board, {
67
+ context: { scope: "upstream", maxDepth: 2, maxNodes: 20, maxChars: 24000 },
68
+ getNeighborIds: connections.getNeighborIds,
69
+ onSubmit: async ({ prompt, signal }) => sendToYourAgent(prompt, signal),
70
+ });
71
+ await agent.submit({ nodeId: "result-node" }, "Describe the sources and improve this result");
72
+ ```
73
+
74
+ Connections live in `document.metadata.connections` as `{ id, source, target }`.
75
+ They follow moving/rotating nodes, support selection/deletion, configurable
76
+ styles, viewport culling, and atomic copy/paste with nodes. Metadata edits and
77
+ node deletion participate in undo/redo. No relationship fields are read from
78
+ node props.
79
+
80
+ Node agents collect bounded node/selection/upstream/downstream context, resolve
81
+ assets through host callbacks, and reject cancelled or stale preparation. The
82
+ SDK supplies no AI provider, credentials or generation service.
83
+
84
+ Use `board.nodes.convert(id, { type, props, assetRefs })` to replace a placeholder
85
+ with a result while keeping its ID, geometry and connections. Register the target
86
+ node type first. Old content properties and assets are replaced.
87
+
88
+ Advanced browser hosts can import registry, geometry and Pixi renderer helpers
89
+ from `pixiboardjs/browser`; no private workspace imports are needed. See the
90
+ [connection and node-agent guide](https://github.com/xindong/pixiboardSDK/blob/main/docs/developers/connections-and-node-agent-local.md)
91
+ for lifecycle, style and host integration details. Call `destroy()` on controllers
92
+ when removing a host surface.
93
+
94
+ The browser ESM budget is 270,000 bytes (uncompressed) for the native connection
95
+ renderer and node-agent additions; the root and Node budgets are unchanged.
package/dist/browser.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  export { AssetUnavailableError, BoardDestroyedError, CapabilityError, CapabilityUnavailableError, DocumentValidationError, NodeNotFoundError, NodeTypeNotRegisteredError, NodeValidationError, PermissionDeniedError, RESIZE_HANDLES, TransactionConflictError, createPixiBoard, isAssetVariant, resizeHandleAxes, resizeHandleCursor } from './index.js';
2
- import { R as ResizeHandle, P as PixiBoard, B as BoardNode, J as JsonValue, W as WorldBounds, a as Point, V as ViewportSnapshot, A as AssetVariant, b as BoardDocument, c as AssetRecord } from './types-CZ0KxRlm.js';
3
- export { d as AssetRef, e as BoardCapabilities, f as BoardChangeEvent, g as BoardDocumentUpdate, h as BoardLifecycleState, 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, 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, S as PixiBoardOptions, T as PixiBoardRendererOptions, 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, 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, af as createPreviewSpec, ag as isDocumentPreviewType, ah as isPreviewNodeType, ai as previewStatusLabel } from './types-CZ0KxRlm.js';
2
+ import { B as BoardNode, W as WorldBounds, R as ResizeHandle, P as PixiBoard, J as JsonValue, a as Point, V as ViewportSnapshot, A as AssetVariant, b as BoardDocument, c as AssetRecord, d as BoardDocumentUpdate, e as BoardChangeSet, C as ConnectionStyle, f as ConnectionCurve } from './types-D39-tYZ8.js';
3
+ export { g as AssetRef, h as BoardCapabilities, i as BoardChangeEvent, j as BoardLifecycleState, k as BoardNodeConvertInput, l as BoardNodeCreateInput, m as BoardNodePatch, n as BoardRuntimePorts, o as BrowserEventPort, p as CaptureInput, q as CaptureResult, r as ChangeOrigin, s as ConnectionLayer, t as CustomDisplayFactory, u as CustomDisplayObject, v as CustomNodeDataDefinition, w as CustomNodeDefinition, x as CustomNodeRenderer, y as CustomNodeRendererContext, z as CustomNodeRendererRegistry, D as CustomNodeView, E as CustomRendererResources, F as CustomResizePolicy, G as CustomTextureLease, H as DocumentLoadOptions, I as DocumentPersistence, K as HistoryChangeEvent, N as NodeGeometry, L as NodeHandle, M as NodeHandleEventMap, O as NodeInput, Q as NodeListFilter, S as NodePatch, T as NodeQuery, U as NodeResizeRequest, X as NodeTypeDefinition, Y as NodeTypeRegistrationDisposer, Z as NodeTypeRegistrationOptions, _ as NodeTypeRegistry, $ as PixiBoardOptions, a0 as PixiBoardRendererOptions, a1 as PreviewNode, a2 as PreviewQuality, a3 as PreviewSpec, a4 as PreviewSpecOptions, a5 as PreviewState, a6 as PreviewStatus, a7 as PublicBoardEventMap, a8 as PublicNodeTypeDefinition, a9 as PublicRendererOptions, aa as RenderCompleteEvent, ab as RendererApplyResult, ac as ResizeObserverPort, ad as RuntimeRenderer, ae as SelectionChangeEvent, af as TickerPort, ag as TransactionOptions, ah as TransactionOrigin, ai as TransformBounds, aj as TransformHandlePlacement, ak as TransformSession, al as ViewportChangeEvent, am as createPreviewSpec, an as isDocumentPreviewType, ao as isPreviewNodeType, ap as previewStatusLabel } from './types-D39-tYZ8.js';
4
+
5
+ declare function rotatedRectBounds(node: BoardNode): WorldBounds;
4
6
 
5
7
  type DomTransformerOptions = {
6
8
  /**
@@ -268,6 +270,7 @@ type LabelOverlayOptions = {
268
270
  text?(node: Readonly<BoardNode<JsonValue>>): string | undefined;
269
271
  /** An optional icon or prefix element content, rendered before the text. */
270
272
  icon?(node: Readonly<BoardNode<JsonValue>>): string | undefined;
273
+ tooltip?(node: Readonly<BoardNode<JsonValue>>): string | undefined;
271
274
  classPrefix?: string;
272
275
  /** Defaults to `bottom-left`, i.e. hanging under the node. */
273
276
  anchor?: OverlayAnchor;
@@ -658,8 +661,232 @@ declare class NativeOpfsPort implements OpfsPort {
658
661
  delete(key: string, signal: AbortSignal): Promise<void>;
659
662
  }
660
663
 
664
+ type PixiDisplayObject = {
665
+ visible?: boolean;
666
+ x?: number;
667
+ y?: number;
668
+ rotation?: number;
669
+ zIndex?: number;
670
+ addChild?(child: PixiDisplayObject): void;
671
+ removeChild?(child: PixiDisplayObject): void;
672
+ destroy?(options?: unknown): void;
673
+ [key: string]: unknown;
674
+ };
675
+ type PixiTicker = {
676
+ add?(listener: (...args: unknown[]) => void): void;
677
+ remove?(listener: (...args: unknown[]) => void): void;
678
+ start?(): void;
679
+ stop?(): void;
680
+ count?: number;
681
+ };
682
+ type PixiApplication = {
683
+ stage: PixiDisplayObject;
684
+ init?(options?: Record<string, unknown>): Promise<void> | void;
685
+ initOptions?: Record<string, unknown>;
686
+ destroy?(rendererOptions?: boolean | Record<string, unknown>, stageOptions?: boolean | Record<string, unknown>): void;
687
+ canvas?: unknown;
688
+ view?: unknown;
689
+ ticker?: PixiTicker;
690
+ render?(): void;
691
+ renderer?: {
692
+ extract?: {
693
+ base64?(options: Record<string, unknown>): Promise<string> | string;
694
+ };
695
+ };
696
+ screen?: {
697
+ width: number;
698
+ height: number;
699
+ };
700
+ };
701
+ type PixiApplicationFactory = () => PixiApplication | Promise<PixiApplication>;
702
+ type PixiRuntimeModule = {
703
+ Application: new () => PixiApplication;
704
+ Container: new (options?: Record<string, unknown>) => PixiDisplayObject;
705
+ Graphics: new () => PixiDisplayObject & {
706
+ rect?(x: number, y: number, width: number, height: number): PixiDisplayObject;
707
+ fill?(color: number | string): PixiDisplayObject;
708
+ };
709
+ Sprite: new (texture?: unknown) => PixiDisplayObject;
710
+ Text: new (options?: unknown) => PixiDisplayObject;
711
+ Texture?: {
712
+ from(source: unknown): unknown;
713
+ };
714
+ };
715
+ type CaptureTarget = {
716
+ target: "viewport";
717
+ format?: "png";
718
+ scale?: number;
719
+ } | {
720
+ target: "node";
721
+ nodeId: string;
722
+ format?: "png";
723
+ scale?: number;
724
+ } | {
725
+ target: "bounds";
726
+ bounds: WorldBounds;
727
+ format?: "png";
728
+ scale?: number;
729
+ };
730
+ type CaptureRequest = CaptureTarget;
731
+ type RendererCaptureResult = {
732
+ dataUrl: string;
733
+ mimeType: string;
734
+ width?: number;
735
+ height?: number;
736
+ revision: number;
737
+ requestId?: string;
738
+ };
739
+
740
+ declare function loadPixiRuntime(): Promise<PixiRuntimeModule>;
741
+ type PixiRuntimeLoader = () => Promise<PixiRuntimeModule>;
742
+ declare function createPixiApplicationFactory(options?: Record<string, unknown>, runtimeLoader?: PixiRuntimeLoader): PixiApplicationFactory;
743
+
744
+ /** Public, host-agnostic renderer configuration. Internal renderer ports remain bundled implementation details. */
745
+ type PixiBoardRendererOptions = Readonly<Record<string, unknown>>;
746
+ /** Public drawing/query surface; the Pixi container remains an implementation detail. */
747
+ declare class ConnectionRenderLayer {
748
+ setEnabled(enabled: boolean): void;
749
+ setSelected(id?: string): void;
750
+ setStyle(style: Partial<ConnectionStyle>): void;
751
+ setVisibleBounds(bounds?: WorldBounds): void;
752
+ upsert(curve: ConnectionCurve): void;
753
+ remove(id: string): void;
754
+ hitTest(point: Point, tolerance: number): string | undefined;
755
+ destroy(): void;
756
+ }
757
+ /** Declaration-only shape used while bundling the public pixiboardjs API. */
758
+ declare class PixiBoardRenderer {
759
+ constructor(options: PixiBoardRendererOptions);
760
+ init(): Promise<void>;
761
+ rebuild(snapshot: Readonly<BoardDocument>): Promise<void>;
762
+ apply(update: BoardDocumentUpdate, changeSet: BoardChangeSet): Promise<"applied" | "rebuild-required">;
763
+ createConnectionLayer(): Promise<ConnectionRenderLayer>;
764
+ capture(input: CaptureRequest, options?: {
765
+ signal?: AbortSignal;
766
+ requestId?: string;
767
+ }): Promise<RendererCaptureResult>;
768
+ destroy(): Promise<void>;
769
+ }
770
+
771
+ type BoardConnection = {
772
+ id: string;
773
+ source: string;
774
+ target: string;
775
+ };
776
+ type ConnectionsOptions = {
777
+ surface: HTMLElement;
778
+ overlay?: HTMLElement;
779
+ enabled?: boolean;
780
+ style?: Partial<ConnectionStyle>;
781
+ /** Set false for host-owned preferences that must never enter document history. */
782
+ persistSettings?: boolean;
783
+ /** The host can restrict gestures to its current selection tool. */
784
+ canInteract?: () => boolean;
785
+ /** Native node media surfaces rendered outside the canvas element. */
786
+ interactionOverlays?: readonly HTMLElement[];
787
+ };
788
+ /** Native Pixi connections, with one reusable DOM source port. */
789
+ declare function attachConnections(board: PixiBoard, options: ConnectionsOptions): Promise<{
790
+ setEnabled(value: boolean): void;
791
+ setStyle(value: Partial<ConnectionStyle>): void;
792
+ getStyle: () => {
793
+ startColor: string;
794
+ endColor: string;
795
+ startOpacity: number;
796
+ endOpacity: number;
797
+ width: number;
798
+ lineType: "solid" | "dashed" | "dotted";
799
+ };
800
+ isEnabled: () => boolean;
801
+ list: () => {
802
+ id: string;
803
+ source: string;
804
+ target: string;
805
+ }[];
806
+ /** Copies only internal edges, independently of the rendering preference. */
807
+ copyWithin(nodeIds: Iterable<string>): BoardConnection[];
808
+ /** Call inside the node-paste transaction to undo nodes and edges together. */
809
+ pasteWithin(connections: readonly BoardConnection[], idMap: ReadonlyMap<string, string>): void;
810
+ /** Stored relationships remain queryable even when rendering is disabled. */
811
+ incoming: (nodeId: string) => BoardConnection[];
812
+ outgoing: (nodeId: string) => BoardConnection[];
813
+ /** Agent context follows the host's preference and requested edge direction. */
814
+ getNeighborIds(nodeId: string, direction: "incoming" | "outgoing"): string[];
815
+ create: (source: string, target: string) => BoardConnection | undefined;
816
+ remove: (id: string) => void;
817
+ destroy: () => void;
818
+ }>;
819
+ type ConnectionsController = Awaited<ReturnType<typeof attachConnections>>;
820
+
821
+ type NodeAgentTarget = {
822
+ nodeId: string;
823
+ boardId?: string;
824
+ };
825
+ type NodeAgentScope = "node" | "selection" | "upstream" | "downstream" | "connected";
826
+ type NodeAgentContextOptions = {
827
+ scope?: NodeAgentScope;
828
+ maxDepth?: number;
829
+ maxNodes?: number;
830
+ maxChars?: number;
831
+ maxResources?: number;
832
+ };
833
+ type NodeAgentContext = {
834
+ contextVersion: 1;
835
+ boardId?: string;
836
+ revision: number;
837
+ nodeIds: string[];
838
+ /** Primary node retained separately for host admission checks. */
839
+ node: BoardNode;
840
+ nodes: BoardNode[];
841
+ assets: AssetRecord[];
842
+ connections: Array<{
843
+ source: string;
844
+ target: string;
845
+ }>;
846
+ truncated: string[];
847
+ };
848
+ type NodeAgentResource = {
849
+ assetId: string;
850
+ [key: string]: unknown;
851
+ };
852
+ type NodeAgentRequest = {
853
+ requestId: string;
854
+ instruction: string;
855
+ context: NodeAgentContext;
856
+ resources: NodeAgentResource[];
857
+ prompt: string;
858
+ signal: AbortSignal;
859
+ };
860
+ type NodeAgentOperation = NodeAgentTarget & {
861
+ requestId: string;
862
+ signal: AbortSignal;
863
+ };
864
+ type NodeAgentOptions = {
865
+ enabled?: boolean;
866
+ context?: NodeAgentContextOptions;
867
+ /** Optional indexed-neighbor override. Defaults to metadata.connections. */
868
+ getNeighborIds?(nodeId: string, direction: "incoming" | "outgoing"): Iterable<string>;
869
+ validateTarget?(target: NodeAgentTarget): void;
870
+ beforeSubmit?(operation: NodeAgentOperation): void | Promise<void>;
871
+ resolveAsset?(asset: AssetRecord, operation: NodeAgentOperation): NodeAgentResource | undefined | Promise<NodeAgentResource | undefined>;
872
+ collectContext?(context: NodeAgentContext, operation: NodeAgentOperation): NodeAgentContext | Promise<NodeAgentContext>;
873
+ buildPrompt?(input: Omit<NodeAgentRequest, "prompt">): string | Promise<string>;
874
+ onSubmit?(request: NodeAgentRequest): unknown | Promise<unknown>;
875
+ };
876
+ /** Generic, provider-independent prompt. Node content is data, never an instruction. */
877
+ declare function buildNodeAgentPrompt(input: Omit<NodeAgentRequest, "prompt">): string;
878
+ /** Headless node-agent lifecycle, shared by native overlays and host-owned UI. */
879
+ declare function createNodeAgentController(board: PixiBoard, initial?: NodeAgentOptions): {
880
+ prepare: (target: NodeAgentTarget, instruction: string) => Promise<NodeAgentRequest>;
881
+ submit(target: NodeAgentTarget, instruction: string): Promise<unknown>;
882
+ cancel: () => void;
883
+ setEnabled(enabled: boolean): void;
884
+ configure(next: Partial<NodeAgentOptions>): void;
885
+ destroy(): void;
886
+ };
887
+
661
888
  declare function indexedDbPersistence(options?: {
662
889
  database?: string;
663
890
  }): BrowserPersistenceAdapter;
664
891
 
665
- export { type AdapterOperationOptions, type AssetBinaryVariant, type AssetGcOptions, type AssetGcResult, type AssetGcRoots, type AssetStorageLocation, AssetVariant, BoardDocument, BoardNode, type BrowserAdapterCapabilities, type BrowserAdapterContractEvidence, type BrowserAdapterContractHarness, type BrowserAsset, BrowserAssetBinaryMissingError, type BrowserAssetExport, BrowserAssetNotFoundError, type BrowserCleanupError, type BrowserCleanupOperation, type BrowserCommitImportOptions, BrowserDocumentConflictError, type BrowserDocumentMetadata, type BrowserDocumentRecord, type BrowserDownloadRequest, type BrowserExportOptions, type BrowserImportOptions, type BrowserImportResult, type BrowserImportSourceType, BrowserPersistenceAbortError, BrowserPersistenceAdapter, type BrowserPersistenceAdapterOptions, BrowserPersistenceDestroyedError, BrowserPersistenceError, type BrowserPrepareImportOptions, type BrowserPreparedImport, BrowserStorageCapabilityError, BrowserStorageKeyCollisionError, BrowserStorageQuotaError, DEFAULT_OPFS_THRESHOLD_BYTES, type DomTransformer, type DomTransformerOptions, type DownloadPort, type GetAssetOptions, type IndexedDbPort, JsonValue, type LabelOverlayOptions, NativeDownloadPort, type NativeDownloadPortOptions, NativeIndexedDbPort, type NativeIndexedDbPortOptions, NativeObjectUrlPort, NativeOpfsPort, type NativeOpfsPortOptions, type ObjectUrlLease, type ObjectUrlPort, type OpfsPort, type OverlayAnchor, type OverlayBoundsResolver, type OverlayDeclutter, type OverlayItem, type OverlayLayer, type OverlayLayerOptions, type OverlayPlacement, type OverlayRenderContext, type OverlayScaleMode, PixiBoard, Point, type PortLifecycle, type PutAssetOptions, ResizeHandle, type SaveBrowserDocumentInput, type SaveBrowserDocumentOptions, type SelectionOverlayOptions, type StoredAssetBinary, type StoredAssetEntry, ViewportSnapshot, WorldBounds, anchorRatio, anchorWorldPoint, attachDomTransformer, attachLabelOverlay, attachOverlayLayer, attachSelectionOverlay, indexedDbPersistence, isBrowserQuotaError, projectOverlayItem, resolveOverlayBounds, resolveScale, runBrowserAdapterContract };
892
+ export { type AdapterOperationOptions, type AssetBinaryVariant, type AssetGcOptions, type AssetGcResult, type AssetGcRoots, type AssetStorageLocation, AssetVariant, type BoardConnection, BoardDocument, BoardDocumentUpdate, BoardNode, type BrowserAdapterCapabilities, type BrowserAdapterContractEvidence, type BrowserAdapterContractHarness, type BrowserAsset, BrowserAssetBinaryMissingError, type BrowserAssetExport, BrowserAssetNotFoundError, type BrowserCleanupError, type BrowserCleanupOperation, type BrowserCommitImportOptions, BrowserDocumentConflictError, type BrowserDocumentMetadata, type BrowserDocumentRecord, type BrowserDownloadRequest, type BrowserExportOptions, type BrowserImportOptions, type BrowserImportResult, type BrowserImportSourceType, BrowserPersistenceAbortError, BrowserPersistenceAdapter, type BrowserPersistenceAdapterOptions, BrowserPersistenceDestroyedError, BrowserPersistenceError, type BrowserPrepareImportOptions, type BrowserPreparedImport, BrowserStorageCapabilityError, BrowserStorageKeyCollisionError, BrowserStorageQuotaError, ConnectionCurve, ConnectionStyle, type ConnectionsController, type ConnectionsOptions, DEFAULT_OPFS_THRESHOLD_BYTES, type DomTransformer, type DomTransformerOptions, type DownloadPort, type GetAssetOptions, type IndexedDbPort, JsonValue, type LabelOverlayOptions, NativeDownloadPort, type NativeDownloadPortOptions, NativeIndexedDbPort, type NativeIndexedDbPortOptions, NativeObjectUrlPort, NativeOpfsPort, type NativeOpfsPortOptions, type NodeAgentContext, type NodeAgentContextOptions, type NodeAgentOperation, type NodeAgentOptions, type NodeAgentRequest, type NodeAgentResource, type NodeAgentScope, type NodeAgentTarget, type ObjectUrlLease, type ObjectUrlPort, type OpfsPort, type OverlayAnchor, type OverlayBoundsResolver, type OverlayDeclutter, type OverlayItem, type OverlayLayer, type OverlayLayerOptions, type OverlayPlacement, type OverlayRenderContext, type OverlayScaleMode, PixiBoard, PixiBoardRenderer, Point, type PortLifecycle, type PutAssetOptions, ResizeHandle, type SaveBrowserDocumentInput, type SaveBrowserDocumentOptions, type SelectionOverlayOptions, type StoredAssetBinary, type StoredAssetEntry, ViewportSnapshot, WorldBounds, anchorRatio, anchorWorldPoint, attachConnections, attachDomTransformer, attachLabelOverlay, attachOverlayLayer, attachSelectionOverlay, buildNodeAgentPrompt, createNodeAgentController, createPixiApplicationFactory, indexedDbPersistence, isBrowserQuotaError, loadPixiRuntime, projectOverlayItem, resolveOverlayBounds, resolveScale, rotatedRectBounds, runBrowserAdapterContract };