@fieldnotes/core 0.8.10 → 0.8.11

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/index.cjs CHANGED
@@ -3302,7 +3302,10 @@ var Viewport = class {
3302
3302
  this.renderer = new ElementRenderer();
3303
3303
  this.renderer.setStore(this.store);
3304
3304
  this.renderer.setCamera(this.camera);
3305
- this.renderer.setOnImageLoad(() => this.requestRender());
3305
+ this.renderer.setOnImageLoad(() => {
3306
+ this.renderLoop.markAllLayersDirty();
3307
+ this.requestRender();
3308
+ });
3306
3309
  this.noteEditor = new NoteEditor();
3307
3310
  this.noteEditor.setOnStop((id) => this.onTextEditStop(id));
3308
3311
  this.history = new HistoryStack();
@@ -4918,7 +4921,7 @@ var UpdateLayerCommand = class {
4918
4921
  };
4919
4922
 
4920
4923
  // src/index.ts
4921
- var VERSION = "0.8.10";
4924
+ var VERSION = "0.8.11";
4922
4925
  // Annotate the CommonJS export names for ESM import in node:
4923
4926
  0 && (module.exports = {
4924
4927
  AddElementCommand,
package/dist/index.d.cts CHANGED
@@ -930,6 +930,6 @@ declare class UpdateLayerCommand implements Command {
930
930
  undo(_store: ElementStore): void;
931
931
  }
932
932
 
933
- declare const VERSION = "0.8.10";
933
+ declare const VERSION = "0.8.11";
934
934
 
935
935
  export { AddElementCommand, type ArrowElement, ArrowTool, type ArrowToolOptions, AutoSave, type AutoSaveOptions, Background, type BackgroundOptions, type BackgroundPattern, BatchCommand, type Binding, type Bounds, Camera, type CameraChangeInfo, type CameraOptions, type CanvasElement, type CanvasState, type Command, CreateLayerCommand, ElementRenderer, ElementStore, type ElementType, type ElementUpdateEvent, EraserTool, type EraserToolOptions, EventBus, type ExportImageOptions, type GridElement, HandTool, type HexOrientation, HistoryRecorder, HistoryStack, type HistoryStackOptions, type HtmlElement, type ImageElement, ImageTool, type ImageToolOptions, InputHandler, type Layer, LayerManager, NoteEditor, type NoteElement, NoteTool, type NoteToolOptions, PencilTool, type PencilToolOptions, type Point, type PointerState, Quadtree, RemoveElementCommand, RemoveLayerCommand, type RenderStatsSnapshot, SelectTool, type ShapeElement, type ShapeKind, ShapeTool, type ShapeToolOptions, type Size, type StrokeElement, type StrokePoint, type TextElement, TextTool, type TextToolOptions, type Tool, type ToolContext, ToolManager, type ToolName, UpdateElementCommand, UpdateLayerCommand, VERSION, Viewport, type ViewportOptions, boundsIntersect, clearStaleBindings, createArrow, createGrid, createHtmlElement, createId, createImage, createNote, createShape, createStroke, createText, exportImage, exportState, findBindTarget, findBoundArrows, getArrowBounds, getArrowControlPoint, getArrowMidpoint, getArrowTangentAngle, getBendFromPoint, getEdgeIntersection, getElementBounds, getElementCenter, isBindable, isNearBezier, parseState, snapPoint, unbindArrow, updateBoundArrow };
package/dist/index.d.ts CHANGED
@@ -930,6 +930,6 @@ declare class UpdateLayerCommand implements Command {
930
930
  undo(_store: ElementStore): void;
931
931
  }
932
932
 
933
- declare const VERSION = "0.8.10";
933
+ declare const VERSION = "0.8.11";
934
934
 
935
935
  export { AddElementCommand, type ArrowElement, ArrowTool, type ArrowToolOptions, AutoSave, type AutoSaveOptions, Background, type BackgroundOptions, type BackgroundPattern, BatchCommand, type Binding, type Bounds, Camera, type CameraChangeInfo, type CameraOptions, type CanvasElement, type CanvasState, type Command, CreateLayerCommand, ElementRenderer, ElementStore, type ElementType, type ElementUpdateEvent, EraserTool, type EraserToolOptions, EventBus, type ExportImageOptions, type GridElement, HandTool, type HexOrientation, HistoryRecorder, HistoryStack, type HistoryStackOptions, type HtmlElement, type ImageElement, ImageTool, type ImageToolOptions, InputHandler, type Layer, LayerManager, NoteEditor, type NoteElement, NoteTool, type NoteToolOptions, PencilTool, type PencilToolOptions, type Point, type PointerState, Quadtree, RemoveElementCommand, RemoveLayerCommand, type RenderStatsSnapshot, SelectTool, type ShapeElement, type ShapeKind, ShapeTool, type ShapeToolOptions, type Size, type StrokeElement, type StrokePoint, type TextElement, TextTool, type TextToolOptions, type Tool, type ToolContext, ToolManager, type ToolName, UpdateElementCommand, UpdateLayerCommand, VERSION, Viewport, type ViewportOptions, boundsIntersect, clearStaleBindings, createArrow, createGrid, createHtmlElement, createId, createImage, createNote, createShape, createStroke, createText, exportImage, exportState, findBindTarget, findBoundArrows, getArrowBounds, getArrowControlPoint, getArrowMidpoint, getArrowTangentAngle, getBendFromPoint, getEdgeIntersection, getElementBounds, getElementCenter, isBindable, isNearBezier, parseState, snapPoint, unbindArrow, updateBoundArrow };
package/dist/index.js CHANGED
@@ -3217,7 +3217,10 @@ var Viewport = class {
3217
3217
  this.renderer = new ElementRenderer();
3218
3218
  this.renderer.setStore(this.store);
3219
3219
  this.renderer.setCamera(this.camera);
3220
- this.renderer.setOnImageLoad(() => this.requestRender());
3220
+ this.renderer.setOnImageLoad(() => {
3221
+ this.renderLoop.markAllLayersDirty();
3222
+ this.requestRender();
3223
+ });
3221
3224
  this.noteEditor = new NoteEditor();
3222
3225
  this.noteEditor.setOnStop((id) => this.onTextEditStop(id));
3223
3226
  this.history = new HistoryStack();
@@ -4833,7 +4836,7 @@ var UpdateLayerCommand = class {
4833
4836
  };
4834
4837
 
4835
4838
  // src/index.ts
4836
- var VERSION = "0.8.10";
4839
+ var VERSION = "0.8.11";
4837
4840
  export {
4838
4841
  AddElementCommand,
4839
4842
  ArrowTool,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fieldnotes/core",
3
- "version": "0.8.10",
3
+ "version": "0.8.11",
4
4
  "description": "Vanilla TypeScript infinite canvas engine",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",