@leapfrog/interactive-canvas 2.0.13 → 2.0.15-beta-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/abstract-interactive-canvas.d.ts +3 -0
- package/dist/interactive-canvas.es.js +235 -217
- package/dist/interactive-canvas.js +255 -229
- package/dist/object/impl/text.d.ts +1 -2
- package/dist/types/selection-data.interface.d.ts +9 -0
- package/dist/types/text-alignment.interface.d.ts +1 -1
- package/package.json +8 -8
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
|
-
import { IFont, IInteractiveCanvas, IMutableBackgroundColor, IMutableColor, IMutablePosition, IMutableText, IMutableTextStyle, ITextSelection, TextAlignment } from "../..";
|
|
2
|
+
import { ExtendedFabricTextbox, IFont, IInteractiveCanvas, IMutableBackgroundColor, IMutableColor, IMutablePosition, IMutableText, IMutableTextStyle, ITextSelection, TextAlignment } from "../..";
|
|
3
3
|
import { ICanvasObject } from "../canvas-object.interface";
|
|
4
4
|
import { AbstractCanvasObject } from "../abstract-canvas-object";
|
|
5
5
|
import { CanvasObjectData } from "../canvas-object-data";
|
|
6
6
|
import { fabric } from "fabric";
|
|
7
|
-
import { ExtendedFabricTextbox } from "./extended-fabric-textbox.interface";
|
|
8
7
|
/**
|
|
9
8
|
* Text field. Displays customizable text.
|
|
10
9
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ICanvasObject, ITextSelection } from "..";
|
|
2
|
+
import { IEvent } from "fabric/fabric-impl";
|
|
2
3
|
export interface ISelectionData {
|
|
3
4
|
/**
|
|
4
5
|
* The currently selected fields.
|
|
@@ -16,4 +17,12 @@ export interface ISelectionData {
|
|
|
16
17
|
* Text selection data.
|
|
17
18
|
*/
|
|
18
19
|
readonly textSelection: ITextSelection | null;
|
|
20
|
+
/**
|
|
21
|
+
* Raw Fabric Event
|
|
22
|
+
*/
|
|
23
|
+
event: IEvent<MouseEvent>;
|
|
24
|
+
/**
|
|
25
|
+
* Set raw event
|
|
26
|
+
*/
|
|
27
|
+
setEvent(event: IEvent<MouseEvent>): void;
|
|
19
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type TextAlignment = "left" | "center" | "right" | "justify";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leapfrog/interactive-canvas",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15-beta-0",
|
|
4
4
|
"description": "Leapfrog interactive canvas",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
"watch": "rollup -cw"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@types/fabric": "^5.3.
|
|
17
|
-
"@types/lodash": "^4.
|
|
18
|
-
"typescript": "^
|
|
16
|
+
"@types/fabric": "^5.3.10",
|
|
17
|
+
"@types/lodash": "^4.17.16",
|
|
18
|
+
"typescript": "^5.8.2"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"fabric": "^5.2.4",
|
|
22
|
-
"lodash": "^4.17.
|
|
23
|
-
"rollup": "^2.
|
|
24
|
-
"rollup-plugin-typescript2": "^0.
|
|
25
|
-
"rxjs": "^
|
|
22
|
+
"lodash": "^4.17.21",
|
|
23
|
+
"rollup": "^2.79.2",
|
|
24
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
25
|
+
"rxjs": "^7.8.2",
|
|
26
26
|
"ts-optchain": "^0.1.8"
|
|
27
27
|
},
|
|
28
28
|
"author": "",
|