@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infinit-canvas/react",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "A performant infinite canvas React component powered by OffscreenCanvas and Web Workers",
5
5
  "type": "module",
6
6
  "main": "./dist/react-infinite-canvas.cjs",
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;