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
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Y as ResizeHandle, O as PixiBoardOptions, P as PixiBoard } from './types-DnR8yhxj.js';
|
|
2
|
+
export { c as BoardCapabilities, d as BoardChangeEvent, b as BoardDocument, e as BoardDocumentUpdate, f as BoardLifecycleState, B as BoardNode, g as BoardNodeCreateInput, h as BoardNodePatch, i as BoardRuntimePorts, j as BrowserEventPort, C as CaptureInput, k as CaptureResult, l as ChangeOrigin, m as CustomDisplayFactory, n as CustomDisplayObject, o as CustomNodeDataDefinition, p as CustomNodeDefinition, q as CustomNodeRenderer, r as CustomNodeRendererContext, s as CustomNodeRendererRegistry, t as CustomNodeView, u as CustomResizePolicy, v as CustomTextureLease, D as DocumentLoadOptions, w as DocumentPersistence, H as HistoryChangeEvent, J as JsonValue, N as NodeGeometry, x as NodeHandle, y as NodeHandleEventMap, z as NodeInput, E as NodeListFilter, F as NodePatch, G as NodeQuery, I as NodeResizeRequest, K as NodeTypeDefinition, L as NodeTypeRegistrationDisposer, M as NodeTypeRegistrationOptions, Q as PixiBoardRendererOptions, a as Point, R as PublicBoardEventMap, S as PublicNodeTypeDefinition, T as PublicRendererOptions, U as RenderCompleteEvent, X as RendererApplyResult, Z as ResizeObserverPort, _ as RuntimeRenderer, $ as SelectionChangeEvent, a0 as TickerPort, a1 as TransactionOptions, a2 as TransactionOrigin, a3 as TransformBounds, a4 as TransformHandlePlacement, a5 as TransformSession, a6 as ViewportChangeEvent, V as ViewportSnapshot, W as WorldBounds } from './types-DnR8yhxj.js';
|
|
3
|
+
|
|
4
|
+
declare class PixiBoardCoreError extends Error {
|
|
5
|
+
constructor(message: string);
|
|
6
|
+
}
|
|
7
|
+
declare class NodeNotFoundError extends PixiBoardCoreError {
|
|
8
|
+
constructor(nodeId: string);
|
|
9
|
+
}
|
|
10
|
+
declare class NodeTypeNotRegisteredError extends PixiBoardCoreError {
|
|
11
|
+
constructor(type: string);
|
|
12
|
+
}
|
|
13
|
+
declare class NodeValidationError extends PixiBoardCoreError {
|
|
14
|
+
readonly nodeId?: string;
|
|
15
|
+
readonly nodeType?: string;
|
|
16
|
+
readonly cause?: unknown;
|
|
17
|
+
constructor(message: string, options?: {
|
|
18
|
+
nodeId?: string;
|
|
19
|
+
nodeType?: string;
|
|
20
|
+
cause?: unknown;
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
declare class DocumentValidationError extends PixiBoardCoreError {
|
|
24
|
+
readonly cause?: unknown;
|
|
25
|
+
constructor(message: string, options?: {
|
|
26
|
+
cause?: unknown;
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
declare class TransactionConflictError extends PixiBoardCoreError {
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare const RESIZE_HANDLES: readonly ResizeHandle[];
|
|
33
|
+
/**
|
|
34
|
+
* Which edges a handle moves: `-1` the west/north edge, `1` the east/south
|
|
35
|
+
* edge, `0` neither. Hosts drawing their own control points or laying out a
|
|
36
|
+
* group gesture need the same convention the resolver uses.
|
|
37
|
+
*/
|
|
38
|
+
declare function resizeHandleAxes(handle: ResizeHandle): {
|
|
39
|
+
horizontal: -1 | 0 | 1;
|
|
40
|
+
vertical: -1 | 0 | 1;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* The CSS cursor name for a handle on a node rotated by `rotation` radians.
|
|
44
|
+
* The four diagonal cursors repeat every 180°, so the handle's own compass
|
|
45
|
+
* angle plus the node's rotation collapses onto one of them.
|
|
46
|
+
*/
|
|
47
|
+
declare function resizeHandleCursor(handle: ResizeHandle, rotation?: number): string;
|
|
48
|
+
|
|
49
|
+
type CapabilityErrorCode = "NODE_NOT_FOUND" | "NODE_TYPE_NOT_REGISTERED" | "NODE_VALIDATION" | "DOCUMENT_VALIDATION" | "TRANSACTION_CONFLICT" | "ASSET_UNAVAILABLE" | "PERMISSION_DENIED" | "BOARD_DESTROYED" | "ABORTED" | "CAPABILITY_UNAVAILABLE" | "INVALID_INPUT" | "INTERNAL_ERROR";
|
|
50
|
+
declare class CapabilityError extends Error {
|
|
51
|
+
readonly name = "CapabilityError";
|
|
52
|
+
readonly brand = "@pixi-board/capabilities:CapabilityError";
|
|
53
|
+
readonly code: CapabilityErrorCode;
|
|
54
|
+
readonly details?: Readonly<Record<string, unknown>>;
|
|
55
|
+
constructor(code: CapabilityErrorCode, message: string, details?: Readonly<Record<string, unknown>>);
|
|
56
|
+
}
|
|
57
|
+
declare class CapabilityUnavailableError extends CapabilityError {
|
|
58
|
+
readonly capability: string;
|
|
59
|
+
constructor(capability: string);
|
|
60
|
+
}
|
|
61
|
+
declare class AssetUnavailableError extends CapabilityError {
|
|
62
|
+
constructor(assetId: string, variant?: string);
|
|
63
|
+
}
|
|
64
|
+
declare class PermissionDeniedError extends CapabilityError {
|
|
65
|
+
constructor(message?: string, details?: Readonly<Record<string, unknown>>);
|
|
66
|
+
}
|
|
67
|
+
declare class BoardDestroyedError extends CapabilityError {
|
|
68
|
+
constructor(message?: string);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
declare function createPixiBoard(options?: PixiBoardOptions): Promise<PixiBoard>;
|
|
72
|
+
|
|
73
|
+
export { AssetUnavailableError, BoardDestroyedError, CapabilityError, CapabilityUnavailableError, DocumentValidationError, NodeNotFoundError, NodeTypeNotRegisteredError, NodeValidationError, PermissionDeniedError, PixiBoard, PixiBoardOptions, RESIZE_HANDLES, ResizeHandle, TransactionConflictError, createPixiBoard, resizeHandleAxes, resizeHandleCursor };
|