@fieldnotes/core 0.25.0 → 0.26.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/dist/index.d.cts CHANGED
@@ -185,6 +185,7 @@ interface ToolContext {
185
185
  requestRender: () => void;
186
186
  switchTool?: (name: string) => void;
187
187
  editElement?: (id: string) => void;
188
+ fitNoteHeight?: (id: string) => void;
188
189
  setCursor?: (cursor: string) => void;
189
190
  snapToGrid?: boolean;
190
191
  gridSize?: number;
@@ -497,6 +498,7 @@ declare class Viewport {
497
498
  logPerformance(intervalMs?: number): () => void;
498
499
  destroy(): void;
499
500
  private startEditingElement;
501
+ private fitNoteHeight;
500
502
  private onTextEditStop;
501
503
  private onTapDown;
502
504
  private onDoubleTap;
@@ -931,6 +933,6 @@ declare class TemplateTool implements Tool {
931
933
  private notifyOptionsChange;
932
934
  }
933
935
 
934
- declare const VERSION = "0.25.0";
936
+ declare const VERSION = "0.26.0";
935
937
 
936
938
  export { type ActiveFormats, type ArrowElement, ArrowTool, type ArrowToolOptions, AutoSave, type AutoSaveOptions, type BackgroundOptions, type BackgroundPattern, type Binding, type Bounds, Camera, type CameraChangeInfo, type CameraOptions, type CanvasElement, type CanvasState, type Command, DEFAULT_NOTE_FONT_SIZE, ElementStore, type ElementType, type ElementUpdateEvent, EraserTool, type EraserToolOptions, type ExportImageOptions, type FontSizePreset, type GridElement, type GridInfo, HandTool, type HexOrientation, HistoryStack, type HistoryStackOptions, type HtmlElement, type ImageElement, ImageTool, type ImageToolOptions, type Layer, LayerManager, MeasureTool, type MeasureToolOptions, type Measurement, type NoteElement, NoteTool, type NoteToolOptions, PencilTool, type PencilToolOptions, type Point, type PointerState, type RenderStatsSnapshot, SelectTool, type ShapeElement, type ShapeKind, ShapeTool, type ShapeToolOptions, type ShortcutBindings, type ShortcutOptions, type ShortcutsApi, type Size, type StrokeElement, type StrokePoint, type TemplateElement, type TemplateShape, TemplateTool, type TemplateToolOptions, type TextElement, TextTool, type TextToolOptions, type Tool, type ToolContext, ToolManager, type ToolName, VERSION, Viewport, type ViewportOptions, boundsIntersect, createArrow, createGrid, createHtmlElement, createImage, createNote, createShape, createStroke, createTemplate, createText, drawHexPath, exportImage, getActiveFormats, getArrowBounds, getArrowControlPoint, getArrowMidpoint, getArrowTangentAngle, getBendFromPoint, getElementBounds, getElementsBoundingBox, getHexCellsInCone, getHexCellsInLine, getHexCellsInRadius, getHexCellsInSquare, getHexDistance, isNearBezier, setFontSize, smartSnap, snapPoint, snapToHexCenter, toggleBold, toggleItalic, toggleStrikethrough, toggleUnderline };
package/dist/index.d.ts CHANGED
@@ -185,6 +185,7 @@ interface ToolContext {
185
185
  requestRender: () => void;
186
186
  switchTool?: (name: string) => void;
187
187
  editElement?: (id: string) => void;
188
+ fitNoteHeight?: (id: string) => void;
188
189
  setCursor?: (cursor: string) => void;
189
190
  snapToGrid?: boolean;
190
191
  gridSize?: number;
@@ -497,6 +498,7 @@ declare class Viewport {
497
498
  logPerformance(intervalMs?: number): () => void;
498
499
  destroy(): void;
499
500
  private startEditingElement;
501
+ private fitNoteHeight;
500
502
  private onTextEditStop;
501
503
  private onTapDown;
502
504
  private onDoubleTap;
@@ -931,6 +933,6 @@ declare class TemplateTool implements Tool {
931
933
  private notifyOptionsChange;
932
934
  }
933
935
 
934
- declare const VERSION = "0.25.0";
936
+ declare const VERSION = "0.26.0";
935
937
 
936
938
  export { type ActiveFormats, type ArrowElement, ArrowTool, type ArrowToolOptions, AutoSave, type AutoSaveOptions, type BackgroundOptions, type BackgroundPattern, type Binding, type Bounds, Camera, type CameraChangeInfo, type CameraOptions, type CanvasElement, type CanvasState, type Command, DEFAULT_NOTE_FONT_SIZE, ElementStore, type ElementType, type ElementUpdateEvent, EraserTool, type EraserToolOptions, type ExportImageOptions, type FontSizePreset, type GridElement, type GridInfo, HandTool, type HexOrientation, HistoryStack, type HistoryStackOptions, type HtmlElement, type ImageElement, ImageTool, type ImageToolOptions, type Layer, LayerManager, MeasureTool, type MeasureToolOptions, type Measurement, type NoteElement, NoteTool, type NoteToolOptions, PencilTool, type PencilToolOptions, type Point, type PointerState, type RenderStatsSnapshot, SelectTool, type ShapeElement, type ShapeKind, ShapeTool, type ShapeToolOptions, type ShortcutBindings, type ShortcutOptions, type ShortcutsApi, type Size, type StrokeElement, type StrokePoint, type TemplateElement, type TemplateShape, TemplateTool, type TemplateToolOptions, type TextElement, TextTool, type TextToolOptions, type Tool, type ToolContext, ToolManager, type ToolName, VERSION, Viewport, type ViewportOptions, boundsIntersect, createArrow, createGrid, createHtmlElement, createImage, createNote, createShape, createStroke, createTemplate, createText, drawHexPath, exportImage, getActiveFormats, getArrowBounds, getArrowControlPoint, getArrowMidpoint, getArrowTangentAngle, getBendFromPoint, getElementBounds, getElementsBoundingBox, getHexCellsInCone, getHexCellsInLine, getHexCellsInRadius, getHexCellsInSquare, getHexDistance, isNearBezier, setFontSize, smartSnap, snapPoint, snapToHexCenter, toggleBold, toggleItalic, toggleStrikethrough, toggleUnderline };