@infinit-canvas/react 0.1.13 → 0.1.15
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/dist/react-infinite-canvas.cjs +1 -1
- package/dist/react-infinite-canvas.js +274 -272
- package/package.json +1 -1
- package/src/types.d.ts +2 -0
package/package.json
CHANGED
package/src/types.d.ts
CHANGED
|
@@ -252,6 +252,8 @@ export interface InfiniteCanvasProps {
|
|
|
252
252
|
// Custom types
|
|
253
253
|
nodeTypes?: NodeTypes;
|
|
254
254
|
edgeTypes?: EdgeTypes;
|
|
255
|
+
/** Canvas-rendered bitmaps per node type. Accepts SVG strings, HTMLImageElement, HTMLCanvasElement, or ImageBitmap. */
|
|
256
|
+
canvasNodeTypes?: Record<string, string | ImageBitmap | HTMLImageElement | HTMLCanvasElement>;
|
|
255
257
|
|
|
256
258
|
// Appearance
|
|
257
259
|
dark?: boolean;
|