@mindfusion/diagramming-controls 1.2.0 → 1.2.1

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.
@@ -118,6 +118,13 @@ declare module "Diagramming.Controls/TabbedDiagramView" {
118
118
  */
119
119
  static create(element: HTMLCanvasElement, document?: DiagramDocument): TabbedDiagramView;
120
120
  /**
121
+ * Returns the specified TabbedDiagramView object. This member is static and can be
122
+ * invoked without creating an instance of the class.
123
+ * @param {String} id The id of the TabbedDiagramView's element.
124
+ * @returns {TabbedDiagramView} A TabbedDiagramView object with the specified id, if found; otherwise, null.
125
+ */
126
+ static find(id: string): TabbedDiagramView;
127
+ /**
121
128
  * Initializes a new instance of the TabbedDiagramView class.
122
129
  * @constructor
123
130
  * @param {HTMLCanvasElement} element The Canvas DOM Element this TabbedDiagramView is associated with.
@@ -220,6 +227,8 @@ declare module "Diagramming.Controls/TabbedDiagramView" {
220
227
  resetTabs(): void;
221
228
  addPage(page: any): void;
222
229
  removePage(page: any): void;
230
+ savePageState(page: any): void;
231
+ restorePageState(page: any): void;
223
232
  onTabMouseDown(sender: any, args: any): void;
224
233
  onTabDrop(sender: any, args: any): void;
225
234
  _selectedPage: DiagramPage;
@@ -504,6 +513,24 @@ declare module "Diagramming.Controls/ShapeElements" {
504
513
  updateFromHandle(handle: any, point: any): void;
505
514
  exportElement(startPath: any): string;
506
515
  }
516
+ export class TextAreaBuilder extends InteractiveElement {
517
+ static default(): TextAreaBuilder;
518
+ constructor(outline: any);
519
+ outline: any;
520
+ set bounds(arg: any);
521
+ get bounds(): any;
522
+ _bounds: any;
523
+ draw(context: any): void;
524
+ drawControlPoints(context: any, size: any, brush: any): void;
525
+ distance(point: any): any;
526
+ hitTestHandle(point: any, maxDist: any): 1 | 0 | -1;
527
+ get center(): Point;
528
+ exportElement(): {
529
+ path: string;
530
+ };
531
+ exportShapeElement(): any;
532
+ getElements(bounds: any): any[];
533
+ }
507
534
  import { Size } from "@mindfusion/drawing";
508
535
  import { Shape } from "@mindfusion/diagramming";
509
536
  import { Point } from "@mindfusion/drawing";
@@ -520,12 +547,14 @@ declare module "Diagramming.Controls/ShapeBuilder" {
520
547
  offset: any;
521
548
  draw(context: any): void;
522
549
  parseShape(): void;
550
+ textArea: TextAreaBuilder;
523
551
  createBuilders(commands: any): any[];
524
552
  lastPoint: any;
525
553
  createBuilder(command: any): any;
526
554
  exportShape(shapeId: any): Shape;
527
555
  exportElements(elementBuilders: any, merge: any, array: any): string | any[];
528
556
  exportShapeElements(elementBuilders: any, array: any): any[];
557
+ useTextArea(): any;
529
558
  allElements(): any[];
530
559
  nearestElement(point: any, maxDist: any, elements: any): any;
531
560
  hitTestDropTarget(point: any, newElement: any): Command;
@@ -533,6 +562,7 @@ declare module "Diagramming.Controls/ShapeBuilder" {
533
562
  hitTest(point: any, activeElement: any): ElementController;
534
563
  hitTestOutline(outline: any, child: any, point: any, filledDecoration: any): ElementController;
535
564
  }
565
+ import { TextAreaBuilder } from "Diagramming.Controls/ShapeElements";
536
566
  import { Shape } from "@mindfusion/diagramming";
537
567
  import { Command } from "Diagramming.Controls/ShapeElements";
538
568
  class ElementController {
@@ -699,6 +729,14 @@ declare module "Diagramming.Controls/ShapeDesigner" {
699
729
  pasteFromClipboard(offsetX: any, offsetY: any): void;
700
730
  refresh(): void;
701
731
  _showShapeProperties: any;
732
+ set showTextArea(arg: boolean);
733
+ /**
734
+ * Gets or sets a value indicating whether to display the shape's text area.
735
+ * @type {Boolean}
736
+ * @summary true to display the text area, or false otherwise.
737
+ * The default value is false.
738
+ */
739
+ get showTextArea(): boolean;
702
740
  set templatesLabel(arg: string);
703
741
  /**
704
742
  * Gets or sets a string specifying the label of outline templates category in shape designer toolbox.
@@ -118,6 +118,13 @@ declare module "Diagramming.Controls/TabbedDiagramView" {
118
118
  */
119
119
  static create(element: HTMLCanvasElement, document?: DiagramDocument): TabbedDiagramView;
120
120
  /**
121
+ * Returns the specified TabbedDiagramView object. This member is static and can be
122
+ * invoked without creating an instance of the class.
123
+ * @param {String} id The id of the TabbedDiagramView's element.
124
+ * @returns {TabbedDiagramView} A TabbedDiagramView object with the specified id, if found; otherwise, null.
125
+ */
126
+ static find(id: string): TabbedDiagramView;
127
+ /**
121
128
  * Initializes a new instance of the TabbedDiagramView class.
122
129
  * @constructor
123
130
  * @param {HTMLCanvasElement} element The Canvas DOM Element this TabbedDiagramView is associated with.
@@ -220,6 +227,8 @@ declare module "Diagramming.Controls/TabbedDiagramView" {
220
227
  resetTabs(): void;
221
228
  addPage(page: any): void;
222
229
  removePage(page: any): void;
230
+ savePageState(page: any): void;
231
+ restorePageState(page: any): void;
223
232
  onTabMouseDown(sender: any, args: any): void;
224
233
  onTabDrop(sender: any, args: any): void;
225
234
  _selectedPage: DiagramPage;
@@ -504,6 +513,24 @@ declare module "Diagramming.Controls/ShapeElements" {
504
513
  updateFromHandle(handle: any, point: any): void;
505
514
  exportElement(startPath: any): string;
506
515
  }
516
+ export class TextAreaBuilder extends InteractiveElement {
517
+ static default(): TextAreaBuilder;
518
+ constructor(outline: any);
519
+ outline: any;
520
+ set bounds(arg: any);
521
+ get bounds(): any;
522
+ _bounds: any;
523
+ draw(context: any): void;
524
+ drawControlPoints(context: any, size: any, brush: any): void;
525
+ distance(point: any): any;
526
+ hitTestHandle(point: any, maxDist: any): 1 | 0 | -1;
527
+ get center(): Point;
528
+ exportElement(): {
529
+ path: string;
530
+ };
531
+ exportShapeElement(): any;
532
+ getElements(bounds: any): any[];
533
+ }
507
534
  import { Size } from "@mindfusion/drawing";
508
535
  import { Shape } from "@mindfusion/diagramming";
509
536
  import { Point } from "@mindfusion/drawing";
@@ -520,12 +547,14 @@ declare module "Diagramming.Controls/ShapeBuilder" {
520
547
  offset: any;
521
548
  draw(context: any): void;
522
549
  parseShape(): void;
550
+ textArea: TextAreaBuilder;
523
551
  createBuilders(commands: any): any[];
524
552
  lastPoint: any;
525
553
  createBuilder(command: any): any;
526
554
  exportShape(shapeId: any): Shape;
527
555
  exportElements(elementBuilders: any, merge: any, array: any): string | any[];
528
556
  exportShapeElements(elementBuilders: any, array: any): any[];
557
+ useTextArea(): any;
529
558
  allElements(): any[];
530
559
  nearestElement(point: any, maxDist: any, elements: any): any;
531
560
  hitTestDropTarget(point: any, newElement: any): Command;
@@ -533,6 +562,7 @@ declare module "Diagramming.Controls/ShapeBuilder" {
533
562
  hitTest(point: any, activeElement: any): ElementController;
534
563
  hitTestOutline(outline: any, child: any, point: any, filledDecoration: any): ElementController;
535
564
  }
565
+ import { TextAreaBuilder } from "Diagramming.Controls/ShapeElements";
536
566
  import { Shape } from "@mindfusion/diagramming";
537
567
  import { Command } from "Diagramming.Controls/ShapeElements";
538
568
  class ElementController {
@@ -699,6 +729,14 @@ declare module "Diagramming.Controls/ShapeDesigner" {
699
729
  pasteFromClipboard(offsetX: any, offsetY: any): void;
700
730
  refresh(): void;
701
731
  _showShapeProperties: any;
732
+ set showTextArea(arg: boolean);
733
+ /**
734
+ * Gets or sets a value indicating whether to display the shape's text area.
735
+ * @type {Boolean}
736
+ * @summary true to display the text area, or false otherwise.
737
+ * The default value is false.
738
+ */
739
+ get showTextArea(): boolean;
702
740
  set templatesLabel(arg: string);
703
741
  /**
704
742
  * Gets or sets a string specifying the label of outline templates category in shape designer toolbox.