@leapfrog/interactive-canvas 2.0.17-beta-2 → 2.0.18

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.
@@ -24,12 +24,6 @@ export interface IMutableText extends ICanvasObject {
24
24
  * @param replacement Replacement fragment.
25
25
  */
26
26
  replaceText(target: string, replacement: string): void;
27
- /**
28
- * Replace a text fragment in the field. Uses the first character styling for the new word.
29
- * @param target Existing text fragment.
30
- * @param replacement Replacement fragment.
31
- */
32
- replaceTextWithStyle(target: string, replacement: string): void;
33
27
  /**
34
28
  * Taken from the fabric JSDOC:
35
29
  * Insert characters at start position, before start position.
@@ -1,12 +1,5 @@
1
1
  import { Observable } from "rxjs";
2
- import { IFont } from "../../font/font.interface";
3
- import { IInteractiveCanvas } from "../../interactive-canvas.interface";
4
- import { IMutableBackgroundColor } from "../../mutator/mutable-background-color.interface";
5
- import { IMutableColor } from "../../mutator/mutable-color.interface";
6
- import { IMutableText } from "../../mutator/mutable-text.interface";
7
- import { IMutableTextStyle, ITextSelection } from "../../mutator/mutable-text-style.interface";
8
- import { IMutablePosition } from "../../mutator/mutable-position.interface";
9
- import { TextAlignment } from "../../types/text-alignment.interface";
2
+ import { IFont, IInteractiveCanvas, IMutableBackgroundColor, IMutableColor, IMutablePosition, IMutableText, IMutableTextStyle, ITextSelection, TextAlignment } from "../..";
10
3
  import { ICanvasObject } from "../canvas-object.interface";
11
4
  import { AbstractCanvasObject } from "../abstract-canvas-object";
12
5
  import { CanvasObjectData } from "../canvas-object-data";
@@ -62,7 +55,6 @@ export declare class Text extends AbstractCanvasObject<ExtendedFabricTextbox> im
62
55
  private baseComponentHeight;
63
56
  private readonly text$;
64
57
  private readonly textSelection$;
65
- static readonly NEW_LINE: string;
66
58
  constructor(canvas: IInteractiveCanvas, fabricObject: fabric.Textbox, persistedField?: CanvasObjectData);
67
59
  /**
68
60
  * @override
@@ -84,8 +76,6 @@ export declare class Text extends AbstractCanvasObject<ExtendedFabricTextbox> im
84
76
  * @inheritDoc
85
77
  */
86
78
  replaceText(target: string, replacement: string): void;
87
- replaceTextWithStyle(target: string, replacement: string): void;
88
- private getReplacementStyle;
89
79
  /**
90
80
  * @override
91
81
  * @inheritDoc
@@ -1,5 +1,4 @@
1
1
  import { ICanvasObject, ITextSelection } from "..";
2
- import { IEvent } from "fabric/fabric-impl";
3
2
  export interface ISelectionData {
4
3
  /**
5
4
  * The currently selected fields.
@@ -17,12 +16,4 @@ export interface ISelectionData {
17
16
  * Text selection data.
18
17
  */
19
18
  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;
28
19
  }
@@ -1 +1 @@
1
- export type TextAlignment = "left" | "center" | "right" | "justify";
1
+ export declare 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.17-beta-2",
3
+ "version": "2.0.18",
4
4
  "description": "Leapfrog interactive canvas",
5
5
  "files": [
6
6
  "dist"
@@ -24,6 +24,9 @@
24
24
  "rollup-plugin-typescript2": "^0.36.0",
25
25
  "rxjs": "^7.8.2"
26
26
  },
27
+ "overrides": {
28
+ "form-data@": "^4.0.4"
29
+ },
27
30
  "author": "",
28
31
  "license": "UNLICENSED"
29
32
  }