@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.
@@ -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 declare type TextAlignment = "left" | "center" | "right" | "justify";
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.13",
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.0",
17
- "@types/lodash": "^4.14.153",
18
- "typescript": "^3.5.3"
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.15",
23
- "rollup": "^2.13.0",
24
- "rollup-plugin-typescript2": "^0.27.1",
25
- "rxjs": "^6.5.5",
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": "",