@fieldnotes/core 0.8.3 → 0.8.5
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 +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2018,7 +2018,8 @@ function loadImages(elements) {
|
|
|
2018
2018
|
done();
|
|
2019
2019
|
};
|
|
2020
2020
|
img.onerror = done;
|
|
2021
|
-
|
|
2021
|
+
const sep = el.src.includes("?") ? "&" : "?";
|
|
2022
|
+
img.src = `${el.src}${sep}_cors=1`;
|
|
2022
2023
|
}
|
|
2023
2024
|
});
|
|
2024
2025
|
}
|
|
@@ -3927,7 +3928,7 @@ var UpdateLayerCommand = class {
|
|
|
3927
3928
|
};
|
|
3928
3929
|
|
|
3929
3930
|
// src/index.ts
|
|
3930
|
-
var VERSION = "0.8.
|
|
3931
|
+
var VERSION = "0.8.5";
|
|
3931
3932
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3932
3933
|
0 && (module.exports = {
|
|
3933
3934
|
AddElementCommand,
|
|
@@ -3989,4 +3990,3 @@ var VERSION = "0.8.2";
|
|
|
3989
3990
|
unbindArrow,
|
|
3990
3991
|
updateBoundArrow
|
|
3991
3992
|
});
|
|
3992
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -870,6 +870,6 @@ declare class UpdateLayerCommand implements Command {
|
|
|
870
870
|
undo(_store: ElementStore): void;
|
|
871
871
|
}
|
|
872
872
|
|
|
873
|
-
declare const VERSION = "0.8.
|
|
873
|
+
declare const VERSION = "0.8.5";
|
|
874
874
|
|
|
875
875
|
export { AddElementCommand, type ArrowElement, ArrowTool, type ArrowToolOptions, AutoSave, type AutoSaveOptions, Background, type BackgroundOptions, type BackgroundPattern, BatchCommand, type Binding, type Bounds, Camera, 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, RemoveElementCommand, RemoveLayerCommand, 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, 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
|
@@ -870,6 +870,6 @@ declare class UpdateLayerCommand implements Command {
|
|
|
870
870
|
undo(_store: ElementStore): void;
|
|
871
871
|
}
|
|
872
872
|
|
|
873
|
-
declare const VERSION = "0.8.
|
|
873
|
+
declare const VERSION = "0.8.5";
|
|
874
874
|
|
|
875
875
|
export { AddElementCommand, type ArrowElement, ArrowTool, type ArrowToolOptions, AutoSave, type AutoSaveOptions, Background, type BackgroundOptions, type BackgroundPattern, BatchCommand, type Binding, type Bounds, Camera, 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, RemoveElementCommand, RemoveLayerCommand, 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, 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
|
@@ -1935,7 +1935,8 @@ function loadImages(elements) {
|
|
|
1935
1935
|
done();
|
|
1936
1936
|
};
|
|
1937
1937
|
img.onerror = done;
|
|
1938
|
-
|
|
1938
|
+
const sep = el.src.includes("?") ? "&" : "?";
|
|
1939
|
+
img.src = `${el.src}${sep}_cors=1`;
|
|
1939
1940
|
}
|
|
1940
1941
|
});
|
|
1941
1942
|
}
|
|
@@ -3844,7 +3845,7 @@ var UpdateLayerCommand = class {
|
|
|
3844
3845
|
};
|
|
3845
3846
|
|
|
3846
3847
|
// src/index.ts
|
|
3847
|
-
var VERSION = "0.8.
|
|
3848
|
+
var VERSION = "0.8.5";
|
|
3848
3849
|
export {
|
|
3849
3850
|
AddElementCommand,
|
|
3850
3851
|
ArrowTool,
|
|
@@ -3905,4 +3906,3 @@ export {
|
|
|
3905
3906
|
unbindArrow,
|
|
3906
3907
|
updateBoundArrow
|
|
3907
3908
|
};
|
|
3908
|
-
//# sourceMappingURL=index.js.map
|