@hpcc-js/common 2.66.1 → 2.68.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.
Files changed (97) hide show
  1. package/LICENSE +43 -43
  2. package/README.md +59 -59
  3. package/dist/index.es6.js +6583 -6578
  4. package/dist/index.es6.js.map +1 -1
  5. package/dist/index.js +6583 -6578
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.min.js +1 -1
  8. package/dist/index.min.js.map +1 -1
  9. package/package.json +4 -4
  10. package/src/CanvasWidget.ts +31 -31
  11. package/src/Class.ts +67 -67
  12. package/src/Database.ts +856 -856
  13. package/src/Entity.ts +235 -235
  14. package/src/EntityCard.ts +66 -66
  15. package/src/EntityPin.ts +103 -103
  16. package/src/EntityRect.css +15 -15
  17. package/src/EntityRect.ts +236 -236
  18. package/src/EntityVertex.ts +86 -86
  19. package/src/FAChar.css +2 -2
  20. package/src/FAChar.ts +82 -82
  21. package/src/HTMLWidget.ts +191 -191
  22. package/src/IList.ts +4 -4
  23. package/src/IMenu.ts +5 -5
  24. package/src/Icon.css +9 -9
  25. package/src/Icon.ts +164 -164
  26. package/src/Image.ts +95 -95
  27. package/src/List.css +13 -13
  28. package/src/List.ts +99 -99
  29. package/src/Menu.css +23 -23
  30. package/src/Menu.ts +134 -138
  31. package/src/Palette.ts +341 -341
  32. package/src/Platform.ts +125 -125
  33. package/src/ProgressBar.ts +105 -105
  34. package/src/PropertyExt.ts +793 -793
  35. package/src/ResizeSurface.css +39 -39
  36. package/src/ResizeSurface.ts +221 -221
  37. package/src/SVGWidget.ts +567 -567
  38. package/src/SVGZoomWidget.css +12 -12
  39. package/src/SVGZoomWidget.ts +416 -416
  40. package/src/Shape.css +3 -3
  41. package/src/Shape.ts +186 -186
  42. package/src/Surface.css +35 -35
  43. package/src/Surface.ts +349 -350
  44. package/src/Text.css +4 -4
  45. package/src/Text.ts +131 -131
  46. package/src/TextBox.css +4 -4
  47. package/src/TextBox.ts +168 -168
  48. package/src/TitleBar.css +99 -99
  49. package/src/TitleBar.ts +401 -401
  50. package/src/Transition.ts +45 -45
  51. package/src/Utility.ts +832 -820
  52. package/src/Widget.css +8 -8
  53. package/src/Widget.ts +712 -712
  54. package/src/WidgetArray.ts +13 -13
  55. package/src/__package__.ts +2 -2
  56. package/src/index.ts +55 -55
  57. package/types/CanvasWidget.d.ts +8 -8
  58. package/types/Class.d.ts +12 -12
  59. package/types/Database.d.ts +136 -136
  60. package/types/Entity.d.ts +88 -88
  61. package/types/EntityCard.d.ts +13 -13
  62. package/types/EntityPin.d.ts +22 -22
  63. package/types/EntityRect.d.ts +45 -45
  64. package/types/EntityVertex.d.ts +30 -30
  65. package/types/FAChar.d.ts +29 -29
  66. package/types/HTMLWidget.d.ts +27 -27
  67. package/types/HTMLWidget.d.ts.map +1 -1
  68. package/types/IList.d.ts +4 -4
  69. package/types/IMenu.d.ts +5 -5
  70. package/types/Icon.d.ts +62 -62
  71. package/types/Image.d.ts +33 -33
  72. package/types/List.d.ts +15 -15
  73. package/types/Menu.d.ts +28 -28
  74. package/types/Menu.d.ts.map +1 -1
  75. package/types/Palette.d.ts +19 -19
  76. package/types/Platform.d.ts +5 -5
  77. package/types/ProgressBar.d.ts +21 -21
  78. package/types/PropertyExt.d.ts +114 -114
  79. package/types/ResizeSurface.d.ts +23 -23
  80. package/types/SVGWidget.d.ts +77 -77
  81. package/types/SVGZoomWidget.d.ts +68 -68
  82. package/types/Shape.d.ts +34 -34
  83. package/types/Surface.d.ts +69 -69
  84. package/types/Surface.d.ts.map +1 -1
  85. package/types/Text.d.ts +37 -37
  86. package/types/TextBox.d.ts +76 -76
  87. package/types/TitleBar.d.ts +117 -117
  88. package/types/Transition.d.ts +11 -11
  89. package/types/Utility.d.ts +102 -100
  90. package/types/Utility.d.ts.map +1 -1
  91. package/types/Widget.d.ts +149 -149
  92. package/types/WidgetArray.d.ts +6 -6
  93. package/types/__package__.d.ts +3 -3
  94. package/types/index.d.ts +52 -52
  95. package/types-3.4/HTMLWidget.d.ts +2 -2
  96. package/types-3.4/Utility.d.ts +4 -2
  97. package/types-3.4/__package__.d.ts +2 -2
@@ -1,69 +1,69 @@
1
- import { SVGWidget } from "./SVGWidget";
2
- import { IconBar, ToggleButton } from "./TitleBar";
3
- import "../src/SVGZoomWidget.css";
4
- export declare type MouseMode = "zoom" | "marqueeSelection";
5
- export declare class SVGZoomWidget extends SVGWidget {
6
- protected _renderElement: any;
7
- private _currZoom;
8
- protected _zoomScale: number;
9
- protected _zoomTranslate: number[];
10
- protected _zoomRoot: any;
11
- protected _zoomGrab: any;
12
- protected _zoomG: any;
13
- private _prevZoomable;
14
- protected _marqueeSelectionRoot: any;
15
- protected _marqueeSelection: any;
16
- protected _autoSelectionMode: boolean;
17
- protected _toggleMarqueeSelection: ToggleButton;
18
- protected _toggleZoom: ToggleButton;
19
- _iconBar: IconBar;
20
- constructor();
21
- getScreenBBox(target: any): {
22
- x: any;
23
- y: any;
24
- width: number;
25
- height: number;
26
- };
27
- zoomScale(): number;
28
- zoomTranslate(): number[];
29
- zoomExtent(range: any): void;
30
- zoomTo(translate?: any, scale?: any, transitionDuration?: number): void;
31
- zoomPlus(): void;
32
- zoomMinus(): void;
33
- centerOnBBox(bbox: any, transitionDuration?: any): void;
34
- zoomToBBox(bbox: any, transitionDuration?: any, widthOnly?: boolean, scale?: number): void;
35
- zoomToScale(scale: any, transitionDuration?: any): void;
36
- zoomToWidth(transitionDuration?: any): void;
37
- zoomToFit(transitionDuration?: any): void;
38
- onZoomed(): void;
39
- zoomed(transform: any): void;
40
- updateIconBar(): void;
41
- mousedownMarqueeSelection(): void;
42
- mousemoveMarqueeSelection(): void;
43
- mouseupMarqueeSelection(): void;
44
- enter(domNode: any, _element: any): void;
45
- update(domNode: any, element: any): void;
46
- exit(domNode: any, element: any): void;
47
- startMarqueeSelection(): void;
48
- updateMarqueeSelection(rect: {
49
- x: number;
50
- y: number;
51
- width: number;
52
- height: number;
53
- }): void;
54
- endMarqueeSelection(): void;
55
- }
56
- export interface SVGZoomWidget {
57
- showToolbar(): boolean;
58
- showToolbar(_: boolean): this;
59
- zoomable(): boolean;
60
- zoomable(_: boolean): this;
61
- zoomDuration(): number;
62
- zoomDuration(_: number): this;
63
- zoomToFitLimit(): number;
64
- zoomToFitLimit(_: number): this;
65
- zoomToFitLimit_exists(): boolean;
66
- mouseMode(_: MouseMode): this;
67
- mouseMode(): MouseMode;
68
- }
1
+ import { SVGWidget } from "./SVGWidget";
2
+ import { IconBar, ToggleButton } from "./TitleBar";
3
+ import "../src/SVGZoomWidget.css";
4
+ export declare type MouseMode = "zoom" | "marqueeSelection";
5
+ export declare class SVGZoomWidget extends SVGWidget {
6
+ protected _renderElement: any;
7
+ private _currZoom;
8
+ protected _zoomScale: number;
9
+ protected _zoomTranslate: number[];
10
+ protected _zoomRoot: any;
11
+ protected _zoomGrab: any;
12
+ protected _zoomG: any;
13
+ private _prevZoomable;
14
+ protected _marqueeSelectionRoot: any;
15
+ protected _marqueeSelection: any;
16
+ protected _autoSelectionMode: boolean;
17
+ protected _toggleMarqueeSelection: ToggleButton;
18
+ protected _toggleZoom: ToggleButton;
19
+ _iconBar: IconBar;
20
+ constructor();
21
+ getScreenBBox(target: any): {
22
+ x: any;
23
+ y: any;
24
+ width: number;
25
+ height: number;
26
+ };
27
+ zoomScale(): number;
28
+ zoomTranslate(): number[];
29
+ zoomExtent(range: any): void;
30
+ zoomTo(translate?: any, scale?: any, transitionDuration?: number): void;
31
+ zoomPlus(): void;
32
+ zoomMinus(): void;
33
+ centerOnBBox(bbox: any, transitionDuration?: any): void;
34
+ zoomToBBox(bbox: any, transitionDuration?: any, widthOnly?: boolean, scale?: number): void;
35
+ zoomToScale(scale: any, transitionDuration?: any): void;
36
+ zoomToWidth(transitionDuration?: any): void;
37
+ zoomToFit(transitionDuration?: any): void;
38
+ onZoomed(): void;
39
+ zoomed(transform: any): void;
40
+ updateIconBar(): void;
41
+ mousedownMarqueeSelection(): void;
42
+ mousemoveMarqueeSelection(): void;
43
+ mouseupMarqueeSelection(): void;
44
+ enter(domNode: any, _element: any): void;
45
+ update(domNode: any, element: any): void;
46
+ exit(domNode: any, element: any): void;
47
+ startMarqueeSelection(): void;
48
+ updateMarqueeSelection(rect: {
49
+ x: number;
50
+ y: number;
51
+ width: number;
52
+ height: number;
53
+ }): void;
54
+ endMarqueeSelection(): void;
55
+ }
56
+ export interface SVGZoomWidget {
57
+ showToolbar(): boolean;
58
+ showToolbar(_: boolean): this;
59
+ zoomable(): boolean;
60
+ zoomable(_: boolean): this;
61
+ zoomDuration(): number;
62
+ zoomDuration(_: number): this;
63
+ zoomToFitLimit(): number;
64
+ zoomToFitLimit(_: number): this;
65
+ zoomToFitLimit_exists(): boolean;
66
+ mouseMode(_: MouseMode): this;
67
+ mouseMode(): MouseMode;
68
+ }
69
69
  //# sourceMappingURL=SVGZoomWidget.d.ts.map
package/types/Shape.d.ts CHANGED
@@ -1,35 +1,35 @@
1
- import { SVGWidget } from "./SVGWidget";
2
- import "../src/Shape.css";
3
- export declare class Shape extends SVGWidget {
4
- protected _tooltipElement: any;
5
- constructor();
6
- contains(point: any): any;
7
- intersection(pointA: any, pointB: any): any;
8
- enter(domNode: any, element: any): void;
9
- _prevHash: any;
10
- update(_domNode: any, element: any): void;
11
- getShapeElementTag(_shape: any): any;
12
- pinPath(): string;
13
- click(): void;
14
- dblclick(): void;
15
- }
16
- export interface Shape {
17
- shape(): string;
18
- shape(_: string): this;
19
- colorStroke(): string;
20
- colorStroke(_: string): this;
21
- colorFill(): string;
22
- colorFill(_: string): this;
23
- colorFill_exists(): boolean;
24
- radius(): number;
25
- radius(_: number): this;
26
- cornerRadius(): number;
27
- cornerRadius(_: number): this;
28
- arrowHeight(): number;
29
- arrowHeight(_: number): this;
30
- arrowWidth(): number;
31
- arrowWidth(_: number): this;
32
- tooltip(): string;
33
- tooltip(_: string): this;
34
- }
1
+ import { SVGWidget } from "./SVGWidget";
2
+ import "../src/Shape.css";
3
+ export declare class Shape extends SVGWidget {
4
+ protected _tooltipElement: any;
5
+ constructor();
6
+ contains(point: any): any;
7
+ intersection(pointA: any, pointB: any): any;
8
+ enter(domNode: any, element: any): void;
9
+ _prevHash: any;
10
+ update(_domNode: any, element: any): void;
11
+ getShapeElementTag(_shape: any): any;
12
+ pinPath(): string;
13
+ click(): void;
14
+ dblclick(): void;
15
+ }
16
+ export interface Shape {
17
+ shape(): string;
18
+ shape(_: string): this;
19
+ colorStroke(): string;
20
+ colorStroke(_: string): this;
21
+ colorFill(): string;
22
+ colorFill(_: string): this;
23
+ colorFill_exists(): boolean;
24
+ radius(): number;
25
+ radius(_: number): this;
26
+ cornerRadius(): number;
27
+ cornerRadius(_: number): this;
28
+ arrowHeight(): number;
29
+ arrowHeight(_: number): this;
30
+ arrowWidth(): number;
31
+ arrowWidth(_: number): this;
32
+ tooltip(): string;
33
+ tooltip(_: string): this;
34
+ }
35
35
  //# sourceMappingURL=Shape.d.ts.map
@@ -1,70 +1,70 @@
1
- import "d3-transition";
2
- import { SVGWidget } from "./SVGWidget";
3
- import "../src/Surface.css";
4
- export declare class Surface extends SVGWidget {
5
- _origMenuParam: any;
6
- _origShowContent: any;
7
- protected _iconWidget: any;
8
- protected _containerWidget: any;
9
- protected _titleRectWidget: any;
10
- protected _textWidget: any;
11
- _menuWidget: any;
12
- protected _surfaceButtons: any;
13
- protected _clipRect: any;
14
- protected buttonContainer: any;
15
- constructor();
16
- enter(_domNode: any, _element: any): void;
17
- update(domNode: any, element: any): void;
18
- exit(domNode: any, element: any): void;
19
- intersection(pointA: any, pointB: any): any;
20
- click(d: any): void;
21
- showTitle: {
22
- (): boolean;
23
- (_: boolean): Surface;
24
- };
25
- title: {
26
- (): string;
27
- (_: string): Surface;
28
- };
29
- titleFontSize: {
30
- (): string;
31
- (_: string): Surface;
32
- };
33
- showIcon: {
34
- (): boolean;
35
- (_: boolean): Surface;
36
- };
37
- icon_faChar: {
38
- (): string;
39
- (_: string): Surface;
40
- };
41
- icon_shape: {
42
- (): string;
43
- (_: string): Surface;
44
- };
45
- content: {
46
- (): any;
47
- (_: any): Surface;
48
- };
49
- buttonAnnotations: {
50
- (): any[];
51
- (_: any[]): Surface;
52
- };
53
- buttonGutter: {
54
- (): number;
55
- (_: number): Surface;
56
- };
57
- showContent: {
58
- (): boolean;
59
- (_: boolean): Surface;
60
- };
61
- menu: {
62
- (): any[];
63
- (_: any[]): Surface;
64
- };
65
- menuPadding: {
66
- (): number;
67
- (_: number): Surface;
68
- };
69
- }
1
+ import "d3-transition";
2
+ import { SVGWidget } from "./SVGWidget";
3
+ import "../src/Surface.css";
4
+ export declare class Surface extends SVGWidget {
5
+ _origMenuParam: any;
6
+ _origShowContent: any;
7
+ protected _iconWidget: any;
8
+ protected _containerWidget: any;
9
+ protected _titleRectWidget: any;
10
+ protected _textWidget: any;
11
+ _menuWidget: any;
12
+ protected _surfaceButtons: any;
13
+ protected _clipRect: any;
14
+ protected buttonContainer: any;
15
+ constructor();
16
+ enter(_domNode: any, _element: any): void;
17
+ update(domNode: any, element: any): void;
18
+ exit(domNode: any, element: any): void;
19
+ intersection(pointA: any, pointB: any): any;
20
+ click(d: any): void;
21
+ showTitle: {
22
+ (): boolean;
23
+ (_: boolean): Surface;
24
+ };
25
+ title: {
26
+ (): string;
27
+ (_: string): Surface;
28
+ };
29
+ titleFontSize: {
30
+ (): string;
31
+ (_: string): Surface;
32
+ };
33
+ showIcon: {
34
+ (): boolean;
35
+ (_: boolean): Surface;
36
+ };
37
+ icon_faChar: {
38
+ (): string;
39
+ (_: string): Surface;
40
+ };
41
+ icon_shape: {
42
+ (): string;
43
+ (_: string): Surface;
44
+ };
45
+ content: {
46
+ (): any;
47
+ (_: any): Surface;
48
+ };
49
+ buttonAnnotations: {
50
+ (): any[];
51
+ (_: any[]): Surface;
52
+ };
53
+ buttonGutter: {
54
+ (): number;
55
+ (_: number): Surface;
56
+ };
57
+ showContent: {
58
+ (): boolean;
59
+ (_: boolean): Surface;
60
+ };
61
+ menu: {
62
+ (): any[];
63
+ (_: any[]): Surface;
64
+ };
65
+ menuPadding: {
66
+ (): number;
67
+ (_: number): Surface;
68
+ };
69
+ }
70
70
  //# sourceMappingURL=Surface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Surface.d.ts","sourceRoot":"","sources":["../src/Surface.ts"],"names":[],"mappings":"AACA,OAAO,eAAe,CAAC;AAIvB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,oBAAoB,CAAC;AAE5B,qBAAa,OAAQ,SAAQ,SAAS;IAClC,cAAc,MAAC;IACf,gBAAgB,MAAC;IAEjB,SAAS,CAAC,WAAW,MAAC;IACtB,SAAS,CAAC,gBAAgB,MAAC;IAC3B,SAAS,CAAC,gBAAgB,MAAC;IAC3B,SAAS,CAAC,WAAW,MAAC;IACtB,WAAW,MAAC;IACZ,SAAS,CAAC,eAAe,MAAC;IAE1B,SAAS,CAAC,SAAS,MAAC;IACpB,SAAS,CAAC,eAAe,MAAC;;IAsC1B,KAAK,CAAC,QAAQ,KAAA,EAAE,QAAQ,KAAA;IAiCxB,MAAM,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IA6JvB,IAAI,CAAC,OAAO,KAAA,EAAE,OAAO,KAAA;IAsBrB,YAAY,CAAC,MAAM,KAAA,EAAE,MAAM,KAAA;IAuB3B,KAAK,CAAC,CAAC,KAAA;IAIP,SAAS,EAAE;QAAE,IAAI,OAAO,CAAC;QAAC,CAAC,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;KAAE,CAAC;IACnD,KAAK,EAAE;QAAE,IAAI,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KAAE,CAAC;IAC7C,aAAa,EAAE;QAAE,IAAI,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KAAE,CAAC;IACrD,QAAQ,EAAE;QAAE,IAAI,OAAO,CAAC;QAAC,CAAC,CAAC,EAAE,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AE,IAAI,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KAAE,CAAC;IACpD,WAAW,EAAE;QAAE,IAAI,OAAO,CAAC;QAAC,CAAC,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;KAAE,CAAC;IACrD,IAAI,EAAE;QAAE,IAAI,GAAG,EAAE,CAAC;QAAC,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;KAAE,CAAC;IAC1C,WAAW,EAAE;QAAE,IAAI,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KAAE,CAAC;CACtD"}
package/types/Text.d.ts CHANGED
@@ -1,38 +1,38 @@
1
- import { SVGWidget } from "./SVGWidget";
2
- import "../src/Text.css";
3
- export declare class Text extends SVGWidget {
4
- private _textElement;
5
- constructor();
6
- getBBox(refresh?: boolean, round?: boolean): {
7
- x: number;
8
- y: number;
9
- width: number;
10
- height: number;
11
- };
12
- enter(domNode: any, element: any): void;
13
- _prevHash: any;
14
- update(domNode: any, element: any): void;
15
- click(): void;
16
- dblclick(): void;
17
- }
18
- export interface Text {
19
- text(): string;
20
- text(_: string): this;
21
- fontFamily(): string;
22
- fontFamily(_: string): this;
23
- fontSize(): number;
24
- fontSize(_: number): this;
25
- anchor(): "start" | "middle" | "end";
26
- anchor(_: "start" | "middle" | "end"): this;
27
- colorFill(): string;
28
- colorFill(_: string): this;
29
- colorFill_default(): string;
30
- colorFill_default(_: string): this;
31
- colorStroke(): string;
32
- colorStroke(_: string): this;
33
- colorStroke_default(): string;
34
- colorStroke_default(_: string): this;
35
- rotation(): number;
36
- rotation(_: number): Text;
37
- }
1
+ import { SVGWidget } from "./SVGWidget";
2
+ import "../src/Text.css";
3
+ export declare class Text extends SVGWidget {
4
+ private _textElement;
5
+ constructor();
6
+ getBBox(refresh?: boolean, round?: boolean): {
7
+ x: number;
8
+ y: number;
9
+ width: number;
10
+ height: number;
11
+ };
12
+ enter(domNode: any, element: any): void;
13
+ _prevHash: any;
14
+ update(domNode: any, element: any): void;
15
+ click(): void;
16
+ dblclick(): void;
17
+ }
18
+ export interface Text {
19
+ text(): string;
20
+ text(_: string): this;
21
+ fontFamily(): string;
22
+ fontFamily(_: string): this;
23
+ fontSize(): number;
24
+ fontSize(_: number): this;
25
+ anchor(): "start" | "middle" | "end";
26
+ anchor(_: "start" | "middle" | "end"): this;
27
+ colorFill(): string;
28
+ colorFill(_: string): this;
29
+ colorFill_default(): string;
30
+ colorFill_default(_: string): this;
31
+ colorStroke(): string;
32
+ colorStroke(_: string): this;
33
+ colorStroke_default(): string;
34
+ colorStroke_default(_: string): this;
35
+ rotation(): number;
36
+ rotation(_: number): Text;
37
+ }
38
38
  //# sourceMappingURL=Text.d.ts.map
@@ -1,77 +1,77 @@
1
- import { Shape } from "./Shape";
2
- import { SVGWidget } from "./SVGWidget";
3
- import { Text } from "./Text";
4
- import { ISize } from "./Widget";
5
- import "../src/TextBox.css";
6
- export declare class TextBox extends SVGWidget {
7
- protected _shape: Shape;
8
- protected _text: Text;
9
- constructor();
10
- padding(_: any): this;
11
- getTextX(width: any): number;
12
- getBBox(refresh?: boolean, round?: boolean): {
13
- x: number;
14
- y: number;
15
- width: number;
16
- height: number;
17
- };
18
- enter(domNode: any, element: any): void;
19
- _prevHash: any;
20
- update(domNode: any, element: any): void;
21
- exit(domNode: any, element: any): void;
22
- click(): void;
23
- dblclick(): void;
24
- text: {
25
- (): string;
26
- (_: string): TextBox;
27
- };
28
- fontSize: {
29
- (): number;
30
- (_: number): TextBox;
31
- };
32
- shape_colorFill: {
33
- (): string;
34
- (_: string): TextBox;
35
- };
36
- shape_colorStroke: {
37
- (): string;
38
- (_: string): TextBox;
39
- };
40
- text_colorFill: {
41
- (): string;
42
- (_: string): TextBox;
43
- };
44
- text_fontFamily: {
45
- (): string;
46
- (_: string): TextBox;
47
- };
48
- paddingLeft: {
49
- (): number;
50
- (_: number): TextBox;
51
- };
52
- paddingRight: {
53
- (): number;
54
- (_: number): TextBox;
55
- };
56
- paddingTop: {
57
- (): number;
58
- (_: number): TextBox;
59
- };
60
- paddingBottom: {
61
- (): number;
62
- (_: number): TextBox;
63
- };
64
- anchor: {
65
- (): "start" | "middle" | "end";
66
- (_: "start" | "middle" | "end"): TextBox;
67
- };
68
- fixedSize: {
69
- (): ISize;
70
- (_: ISize): TextBox;
71
- };
72
- tooltip: {
73
- (): string;
74
- (_: string): TextBox;
75
- };
76
- }
1
+ import { Shape } from "./Shape";
2
+ import { SVGWidget } from "./SVGWidget";
3
+ import { Text } from "./Text";
4
+ import { ISize } from "./Widget";
5
+ import "../src/TextBox.css";
6
+ export declare class TextBox extends SVGWidget {
7
+ protected _shape: Shape;
8
+ protected _text: Text;
9
+ constructor();
10
+ padding(_: any): this;
11
+ getTextX(width: any): number;
12
+ getBBox(refresh?: boolean, round?: boolean): {
13
+ x: number;
14
+ y: number;
15
+ width: number;
16
+ height: number;
17
+ };
18
+ enter(domNode: any, element: any): void;
19
+ _prevHash: any;
20
+ update(domNode: any, element: any): void;
21
+ exit(domNode: any, element: any): void;
22
+ click(): void;
23
+ dblclick(): void;
24
+ text: {
25
+ (): string;
26
+ (_: string): TextBox;
27
+ };
28
+ fontSize: {
29
+ (): number;
30
+ (_: number): TextBox;
31
+ };
32
+ shape_colorFill: {
33
+ (): string;
34
+ (_: string): TextBox;
35
+ };
36
+ shape_colorStroke: {
37
+ (): string;
38
+ (_: string): TextBox;
39
+ };
40
+ text_colorFill: {
41
+ (): string;
42
+ (_: string): TextBox;
43
+ };
44
+ text_fontFamily: {
45
+ (): string;
46
+ (_: string): TextBox;
47
+ };
48
+ paddingLeft: {
49
+ (): number;
50
+ (_: number): TextBox;
51
+ };
52
+ paddingRight: {
53
+ (): number;
54
+ (_: number): TextBox;
55
+ };
56
+ paddingTop: {
57
+ (): number;
58
+ (_: number): TextBox;
59
+ };
60
+ paddingBottom: {
61
+ (): number;
62
+ (_: number): TextBox;
63
+ };
64
+ anchor: {
65
+ (): "start" | "middle" | "end";
66
+ (_: "start" | "middle" | "end"): TextBox;
67
+ };
68
+ fixedSize: {
69
+ (): ISize;
70
+ (_: ISize): TextBox;
71
+ };
72
+ tooltip: {
73
+ (): string;
74
+ (_: string): TextBox;
75
+ };
76
+ }
77
77
  //# sourceMappingURL=TextBox.d.ts.map