@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,20 +1,20 @@
1
- export interface PaletteFunc {
2
- switch(id?: string, colors?: string[]): any;
3
- type(): "ordinal" | "rainbow";
4
- }
5
- export interface OrdinalPaletteFunc extends PaletteFunc {
6
- (label: string): string;
7
- }
8
- export declare function fetchOrdinalItem(): string[];
9
- export declare function fetchOrdinalItem(id: string, colors?: string[]): OrdinalPaletteFunc;
10
- export interface RainbowPaletteFunc extends PaletteFunc {
11
- (value: number, domainLow: number, domainHigh: number): string;
12
- }
13
- export declare function fetchRainbowItem(): string[];
14
- export declare function fetchRainbowItem(id: string): RainbowPaletteFunc;
15
- export declare function fetchRainbowItem(id: string, colors: string[], steps?: number): RainbowPaletteFunc;
16
- export declare function test(ordinalDivID: any, brewerDivID: any, customDivID: any, customArr: any, steps: any): void;
17
- export declare const ordinal: typeof fetchOrdinalItem;
18
- export declare const rainbow: typeof fetchRainbowItem;
19
- export declare function textColor(backgroundColor: string): string;
1
+ export interface PaletteFunc {
2
+ switch(id?: string, colors?: string[]): any;
3
+ type(): "ordinal" | "rainbow";
4
+ }
5
+ export interface OrdinalPaletteFunc extends PaletteFunc {
6
+ (label: string): string;
7
+ }
8
+ export declare function fetchOrdinalItem(): string[];
9
+ export declare function fetchOrdinalItem(id: string, colors?: string[]): OrdinalPaletteFunc;
10
+ export interface RainbowPaletteFunc extends PaletteFunc {
11
+ (value: number, domainLow: number, domainHigh: number): string;
12
+ }
13
+ export declare function fetchRainbowItem(): string[];
14
+ export declare function fetchRainbowItem(id: string): RainbowPaletteFunc;
15
+ export declare function fetchRainbowItem(id: string, colors: string[], steps?: number): RainbowPaletteFunc;
16
+ export declare function test(ordinalDivID: any, brewerDivID: any, customDivID: any, customArr: any, steps: any): void;
17
+ export declare const ordinal: typeof fetchOrdinalItem;
18
+ export declare const rainbow: typeof fetchRainbowItem;
19
+ export declare function textColor(backgroundColor: string): string;
20
20
  //# sourceMappingURL=Palette.d.ts.map
@@ -1,6 +1,6 @@
1
- export declare function version(): string;
2
- export declare const ieVersion: number;
3
- export declare const isIE: boolean;
4
- export declare const svgMarkerGlitch: boolean;
5
- export declare function getScrollbarWidth(): any;
1
+ export declare function version(): string;
2
+ export declare const ieVersion: number;
3
+ export declare const isIE: boolean;
4
+ export declare const svgMarkerGlitch: boolean;
5
+ export declare function getScrollbarWidth(): any;
6
6
  //# sourceMappingURL=Platform.d.ts.map
@@ -1,22 +1,22 @@
1
- import { PropertyExt, publish } from "./PropertyExt";
2
- export declare class ProgressBar extends PropertyExt {
3
- halfLife: publish<this, number>;
4
- decay: publish<this, number>;
5
- size: publish<this, number>;
6
- color: publish<this, string>;
7
- blurBar: publish<this, boolean>;
8
- blurSize: publish<this, number>;
9
- blurColor: publish<this, string>;
10
- blurOpacity: publish<this, number>;
11
- protected _elementID: string;
12
- protected _running: boolean;
13
- protected _style: any;
14
- constructor();
15
- calcCSS(halflife: number, perc: number): string;
16
- start(): void;
17
- finish(): void;
18
- enter(domNode: any, element: any): void;
19
- exit(_domNode: any, _element: any): void;
20
- protected updateProgress(halflife: number, perc: number): void;
21
- }
1
+ import { PropertyExt, publish } from "./PropertyExt";
2
+ export declare class ProgressBar extends PropertyExt {
3
+ halfLife: publish<this, number>;
4
+ decay: publish<this, number>;
5
+ size: publish<this, number>;
6
+ color: publish<this, string>;
7
+ blurBar: publish<this, boolean>;
8
+ blurSize: publish<this, number>;
9
+ blurColor: publish<this, string>;
10
+ blurOpacity: publish<this, number>;
11
+ protected _elementID: string;
12
+ protected _running: boolean;
13
+ protected _style: any;
14
+ constructor();
15
+ calcCSS(halflife: number, perc: number): string;
16
+ start(): void;
17
+ finish(): void;
18
+ enter(domNode: any, element: any): void;
19
+ exit(_domNode: any, _element: any): void;
20
+ protected updateProgress(halflife: number, perc: number): void;
21
+ }
22
22
  //# sourceMappingURL=ProgressBar.d.ts.map
@@ -1,115 +1,115 @@
1
- import { Class } from "./Class";
2
- export interface IAutoExpand extends PropertyExt {
3
- owner(): PropertyExt;
4
- owner(_: PropertyExt): this;
5
- valid(): boolean;
6
- }
7
- export declare type TagTypes = "Private" | "Shared" | "Basic" | "Intermediate" | "Advanced" | "Theme" | "Serial";
8
- export declare type PublishTypes = "any" | "number" | "boolean" | "string" | "set" | "array" | "object" | "widget" | "widgetArray" | "propertyArray" | "html-color" | "proxy";
9
- export interface IPublishExt {
10
- override?: boolean;
11
- disable?: (w: any) => boolean;
12
- validate?: (w: any) => boolean;
13
- hidden?: (w: any) => boolean;
14
- optional?: boolean;
15
- tags?: TagTypes[];
16
- autoExpand?: new () => IAutoExpand;
17
- noDeserialize?: boolean;
18
- render?: boolean;
19
- icons?: string[];
20
- editor_input?: (context: any, widget: any, cell: any, param: any) => void;
21
- saveButton?: string;
22
- saveButtonID?: string;
23
- number?: any;
24
- reset?: boolean;
25
- min?: number;
26
- max?: number;
27
- step?: number;
28
- inputType?: string;
29
- internal?: boolean;
30
- range?: {
31
- min: number;
32
- max: number;
33
- step: number;
34
- };
35
- multiline?: boolean;
36
- }
37
- export declare class Meta {
38
- id: any;
39
- type: PublishTypes;
40
- origDefaultValue: any;
41
- defaultValue: any;
42
- description: any;
43
- set: any;
44
- ext: IPublishExt;
45
- checkedAssign: any;
46
- constructor(id: any, defaultValue: any, type: any, description: any, set: any, ext?: IPublishExt);
47
- }
48
- declare class MetaProxy {
49
- id: string;
50
- type: any;
51
- proxy: any;
52
- method: any;
53
- defaultValue: any;
54
- ext: IPublishExt;
55
- constructor(id: string, proxy: any, method: any, defaultValue: any, ext?: IPublishExt);
56
- }
57
- export interface IMonitorHandle {
58
- remove(): void;
59
- }
60
- export declare class PropertyExt extends Class {
61
- protected _id: string;
62
- private _watchArrIdx;
63
- private _watchArr;
64
- private _publishedProperties;
65
- constructor();
66
- id(): string;
67
- id(_: string): this;
68
- calcPublishedProperties(includePrivate?: boolean, expandProxies?: boolean): void;
69
- resolvePublishedProxy(meta: Meta | MetaProxy): Meta;
70
- publishedProperties(includePrivate?: boolean, expandProxies?: boolean): Meta[];
71
- widgetWalker(visitor: (item: PropertyExt) => void): void;
72
- propertyWalker(visitor: (context: this, publishItem: Meta) => void, filter?: (context: this, publishItem: Meta) => boolean): void;
73
- serialize(): {
74
- __class: any;
75
- [id: string]: any;
76
- };
77
- deserialize(props?: {
78
- __class: any;
79
- [id: string]: any;
80
- }): this;
81
- publishedProperty(id: any): any;
82
- publishedModified(): boolean;
83
- publishReset(privateArr?: any, exceptionsArr?: any): void;
84
- static prevClassID: string;
85
- publish(id: string, defaultValue: any, type?: PublishTypes, description?: string, set?: string[] | (() => string[] | Array<{
86
- value: string;
87
- text: string;
88
- }>) | IPublishExt, ext?: IPublishExt): void;
89
- publishWidget(prefix: any, WidgetType: any, id: any): void;
90
- publishProxy(id: string, proxy: any, method?: any, defaultValue?: any): void;
91
- monitorProperty(propID: string, func: (id: string, newVal: any, oldVal: any) => void): IMonitorHandle;
92
- monitor(func: (id: string, newVal: any, oldVal: any, source: PropertyExt) => void): {
93
- remove: () => void;
94
- };
95
- broadcast(key: any, newVal: any, oldVal: any, source?: any): void;
96
- applyTheme(theme: any): void;
97
- copyPropsTo(other: PropertyExt, ignore?: string[]): this;
98
- private metaHash;
99
- propertyHash(properties?: string[], more?: {}): string;
100
- hashSum(ignore?: string[], more?: {}): string;
101
- on(eventID: any, func: any, stopPropagation?: boolean): this;
102
- }
103
- export declare function publish(defaultValue: any, type?: PublishTypes, description?: string, set?: string[] | (() => string[] | Array<{
104
- value: string;
105
- text: string;
106
- }>) | IPublishExt, ext?: IPublishExt): (target: any, key: string) => void;
107
- export declare type publish<T, U> = {
108
- (_: U): T;
109
- (): U;
110
- };
111
- export declare function publishProxy(proxy: string, method?: string, defaultValue?: any, ext?: {
112
- reset?: boolean;
113
- }): (target: any, key: string) => void;
114
- export {};
1
+ import { Class } from "./Class";
2
+ export interface IAutoExpand extends PropertyExt {
3
+ owner(): PropertyExt;
4
+ owner(_: PropertyExt): this;
5
+ valid(): boolean;
6
+ }
7
+ export declare type TagTypes = "Private" | "Shared" | "Basic" | "Intermediate" | "Advanced" | "Theme" | "Serial";
8
+ export declare type PublishTypes = "any" | "number" | "boolean" | "string" | "set" | "array" | "object" | "widget" | "widgetArray" | "propertyArray" | "html-color" | "proxy";
9
+ export interface IPublishExt {
10
+ override?: boolean;
11
+ disable?: (w: any) => boolean;
12
+ validate?: (w: any) => boolean;
13
+ hidden?: (w: any) => boolean;
14
+ optional?: boolean;
15
+ tags?: TagTypes[];
16
+ autoExpand?: new () => IAutoExpand;
17
+ noDeserialize?: boolean;
18
+ render?: boolean;
19
+ icons?: string[];
20
+ editor_input?: (context: any, widget: any, cell: any, param: any) => void;
21
+ saveButton?: string;
22
+ saveButtonID?: string;
23
+ number?: any;
24
+ reset?: boolean;
25
+ min?: number;
26
+ max?: number;
27
+ step?: number;
28
+ inputType?: string;
29
+ internal?: boolean;
30
+ range?: {
31
+ min: number;
32
+ max: number;
33
+ step: number;
34
+ };
35
+ multiline?: boolean;
36
+ }
37
+ export declare class Meta {
38
+ id: any;
39
+ type: PublishTypes;
40
+ origDefaultValue: any;
41
+ defaultValue: any;
42
+ description: any;
43
+ set: any;
44
+ ext: IPublishExt;
45
+ checkedAssign: any;
46
+ constructor(id: any, defaultValue: any, type: any, description: any, set: any, ext?: IPublishExt);
47
+ }
48
+ declare class MetaProxy {
49
+ id: string;
50
+ type: any;
51
+ proxy: any;
52
+ method: any;
53
+ defaultValue: any;
54
+ ext: IPublishExt;
55
+ constructor(id: string, proxy: any, method: any, defaultValue: any, ext?: IPublishExt);
56
+ }
57
+ export interface IMonitorHandle {
58
+ remove(): void;
59
+ }
60
+ export declare class PropertyExt extends Class {
61
+ protected _id: string;
62
+ private _watchArrIdx;
63
+ private _watchArr;
64
+ private _publishedProperties;
65
+ constructor();
66
+ id(): string;
67
+ id(_: string): this;
68
+ calcPublishedProperties(includePrivate?: boolean, expandProxies?: boolean): void;
69
+ resolvePublishedProxy(meta: Meta | MetaProxy): Meta;
70
+ publishedProperties(includePrivate?: boolean, expandProxies?: boolean): Meta[];
71
+ widgetWalker(visitor: (item: PropertyExt) => void): void;
72
+ propertyWalker(visitor: (context: this, publishItem: Meta) => void, filter?: (context: this, publishItem: Meta) => boolean): void;
73
+ serialize(): {
74
+ __class: any;
75
+ [id: string]: any;
76
+ };
77
+ deserialize(props?: {
78
+ __class: any;
79
+ [id: string]: any;
80
+ }): this;
81
+ publishedProperty(id: any): any;
82
+ publishedModified(): boolean;
83
+ publishReset(privateArr?: any, exceptionsArr?: any): void;
84
+ static prevClassID: string;
85
+ publish(id: string, defaultValue: any, type?: PublishTypes, description?: string, set?: string[] | (() => string[] | Array<{
86
+ value: string;
87
+ text: string;
88
+ }>) | IPublishExt, ext?: IPublishExt): void;
89
+ publishWidget(prefix: any, WidgetType: any, id: any): void;
90
+ publishProxy(id: string, proxy: any, method?: any, defaultValue?: any): void;
91
+ monitorProperty(propID: string, func: (id: string, newVal: any, oldVal: any) => void): IMonitorHandle;
92
+ monitor(func: (id: string, newVal: any, oldVal: any, source: PropertyExt) => void): {
93
+ remove: () => void;
94
+ };
95
+ broadcast(key: any, newVal: any, oldVal: any, source?: any): void;
96
+ applyTheme(theme: any): void;
97
+ copyPropsTo(other: PropertyExt, ignore?: string[]): this;
98
+ private metaHash;
99
+ propertyHash(properties?: string[], more?: {}): string;
100
+ hashSum(ignore?: string[], more?: {}): string;
101
+ on(eventID: any, func: any, stopPropagation?: boolean): this;
102
+ }
103
+ export declare function publish(defaultValue: any, type?: PublishTypes, description?: string, set?: string[] | (() => string[] | Array<{
104
+ value: string;
105
+ text: string;
106
+ }>) | IPublishExt, ext?: IPublishExt): (target: any, key: string) => void;
107
+ export declare type publish<T, U> = {
108
+ (_: U): T;
109
+ (): U;
110
+ };
111
+ export declare function publishProxy(proxy: string, method?: string, defaultValue?: any, ext?: {
112
+ reset?: boolean;
113
+ }): (target: any, key: string) => void;
114
+ export {};
115
115
  //# sourceMappingURL=PropertyExt.d.ts.map
@@ -1,24 +1,24 @@
1
- import { Surface } from "./Surface";
2
- import "../src/ResizeSurface.css";
3
- export declare class ResizeSurface extends Surface {
4
- protected handleWidth: any;
5
- protected handles: any;
6
- protected dispatch: any;
7
- protected drag: any;
8
- protected _domNode: any;
9
- protected _dragHandlePos: any;
10
- protected _dragStartPos: any;
11
- protected _dragStartSize: any;
12
- protected _prevPosSize: any;
13
- protected _textPosSize: any;
14
- protected _iconPosSize: any;
15
- constructor();
16
- move(_: any): any;
17
- update(domNode: any, element: any): void;
18
- updateHandles(_domNode: any, _element: any): void;
19
- allowResize: {
20
- (): boolean;
21
- (_: boolean): ResizeSurface;
22
- };
23
- }
1
+ import { Surface } from "./Surface";
2
+ import "../src/ResizeSurface.css";
3
+ export declare class ResizeSurface extends Surface {
4
+ protected handleWidth: any;
5
+ protected handles: any;
6
+ protected dispatch: any;
7
+ protected drag: any;
8
+ protected _domNode: any;
9
+ protected _dragHandlePos: any;
10
+ protected _dragStartPos: any;
11
+ protected _dragStartSize: any;
12
+ protected _prevPosSize: any;
13
+ protected _textPosSize: any;
14
+ protected _iconPosSize: any;
15
+ constructor();
16
+ move(_: any): any;
17
+ update(domNode: any, element: any): void;
18
+ updateHandles(_domNode: any, _element: any): void;
19
+ allowResize: {
20
+ (): boolean;
21
+ (_: boolean): ResizeSurface;
22
+ };
23
+ }
24
24
  //# sourceMappingURL=ResizeSurface.d.ts.map
@@ -1,78 +1,78 @@
1
- import { ISize, Widget } from "./Widget";
2
- declare type Point = {
3
- x: number;
4
- y: number;
5
- };
6
- declare type Rect = {
7
- x: number;
8
- y: number;
9
- width: number;
10
- height: number;
11
- };
12
- export declare class SVGGlowFilter {
13
- protected filter: any;
14
- protected feOffset: any;
15
- protected feColorMatrix: any;
16
- protected feGaussianBlur: any;
17
- protected feBlend: any;
18
- constructor(target: any, id: string);
19
- rgb2ColorMatrix(color: string): string;
20
- update(color: string): void;
21
- }
22
- export declare class SVGWidget extends Widget {
23
- static _class: string;
24
- _tag: any;
25
- protected _boundingBox: any;
26
- protected transition: any;
27
- protected _drawStartPos: "center" | "origin";
28
- protected _svgSelectionFilter: any;
29
- protected _parentRelativeDiv: any;
30
- protected _parentOverlay: any;
31
- constructor();
32
- move(_: any, transitionDuration?: any): this;
33
- _enableOverflow: boolean;
34
- enableOverflow(): boolean;
35
- enableOverflow(_: boolean): this;
36
- _enableOverflowScroll: boolean;
37
- enableOverflowScroll(): boolean;
38
- enableOverflowScroll(_: boolean): this;
39
- size(): ISize;
40
- size(_: any): this;
41
- resize(_size?: {
42
- width: number;
43
- height: number;
44
- }): any;
45
- svgGlowID(): string;
46
- target(): null | HTMLElement | SVGElement;
47
- target(_: null | string | HTMLElement | SVGElement): this;
48
- parentOverlay(): any;
49
- enter(domNode: any, element: any): void;
50
- update(domNode: any, element: any): void;
51
- postUpdate(domNode: any, element: any): void;
52
- exit(domNode?: any, element?: any): void;
53
- getOffsetPos(): Point;
54
- getBBox(refresh?: boolean, round?: boolean): Rect;
55
- contains(point: Point): boolean;
56
- containsRect(point: Point): boolean;
57
- containsCircle(radius: number, point: Point): boolean;
58
- intersection(pointA: Point, pointB: Point): Point | null;
59
- intersectRect(pointA: Point, pointB: Point): Point | null;
60
- intersectRectRect(rect1: Rect, rect2: Rect): Rect;
61
- intersectCircle(radius: number, pointA: Point, pointB: Point): Point | null;
62
- distance(pointA: Point, pointB: Point): number;
63
- serializeSVG(extraStyles?: string): string;
64
- toBlob(extraStyles?: string): Blob;
65
- rasterize(extraStyles?: string, ...extraWidgets: SVGWidget[]): Promise<Blob>;
66
- downloadSVG(extraStyles?: string): void;
67
- downloadPNG(filename?: string, extraStyles?: string, ...extraWidgets: SVGWidget[]): void;
68
- _pushMarkers(element?: any): void;
69
- _popMarkers(element?: any): void;
70
- _popMarkersDebounced: (..._dummyArgs: any[]) => void;
71
- _fixIEMarkers(element?: any): void;
72
- }
73
- export interface SVGWidget {
74
- selectionGlowColor(): string;
75
- selectionGlowColor(_: string): this;
76
- }
77
- export {};
1
+ import { ISize, Widget } from "./Widget";
2
+ declare type Point = {
3
+ x: number;
4
+ y: number;
5
+ };
6
+ declare type Rect = {
7
+ x: number;
8
+ y: number;
9
+ width: number;
10
+ height: number;
11
+ };
12
+ export declare class SVGGlowFilter {
13
+ protected filter: any;
14
+ protected feOffset: any;
15
+ protected feColorMatrix: any;
16
+ protected feGaussianBlur: any;
17
+ protected feBlend: any;
18
+ constructor(target: any, id: string);
19
+ rgb2ColorMatrix(color: string): string;
20
+ update(color: string): void;
21
+ }
22
+ export declare class SVGWidget extends Widget {
23
+ static _class: string;
24
+ _tag: any;
25
+ protected _boundingBox: any;
26
+ protected transition: any;
27
+ protected _drawStartPos: "center" | "origin";
28
+ protected _svgSelectionFilter: any;
29
+ protected _parentRelativeDiv: any;
30
+ protected _parentOverlay: any;
31
+ constructor();
32
+ move(_: any, transitionDuration?: any): this;
33
+ _enableOverflow: boolean;
34
+ enableOverflow(): boolean;
35
+ enableOverflow(_: boolean): this;
36
+ _enableOverflowScroll: boolean;
37
+ enableOverflowScroll(): boolean;
38
+ enableOverflowScroll(_: boolean): this;
39
+ size(): ISize;
40
+ size(_: any): this;
41
+ resize(_size?: {
42
+ width: number;
43
+ height: number;
44
+ }): any;
45
+ svgGlowID(): string;
46
+ target(): null | HTMLElement | SVGElement;
47
+ target(_: null | string | HTMLElement | SVGElement): this;
48
+ parentOverlay(): any;
49
+ enter(domNode: any, element: any): void;
50
+ update(domNode: any, element: any): void;
51
+ postUpdate(domNode: any, element: any): void;
52
+ exit(domNode?: any, element?: any): void;
53
+ getOffsetPos(): Point;
54
+ getBBox(refresh?: boolean, round?: boolean): Rect;
55
+ contains(point: Point): boolean;
56
+ containsRect(point: Point): boolean;
57
+ containsCircle(radius: number, point: Point): boolean;
58
+ intersection(pointA: Point, pointB: Point): Point | null;
59
+ intersectRect(pointA: Point, pointB: Point): Point | null;
60
+ intersectRectRect(rect1: Rect, rect2: Rect): Rect;
61
+ intersectCircle(radius: number, pointA: Point, pointB: Point): Point | null;
62
+ distance(pointA: Point, pointB: Point): number;
63
+ serializeSVG(extraStyles?: string): string;
64
+ toBlob(extraStyles?: string): Blob;
65
+ rasterize(extraStyles?: string, ...extraWidgets: SVGWidget[]): Promise<Blob>;
66
+ downloadSVG(extraStyles?: string): void;
67
+ downloadPNG(filename?: string, extraStyles?: string, ...extraWidgets: SVGWidget[]): void;
68
+ _pushMarkers(element?: any): void;
69
+ _popMarkers(element?: any): void;
70
+ _popMarkersDebounced: (..._dummyArgs: any[]) => void;
71
+ _fixIEMarkers(element?: any): void;
72
+ }
73
+ export interface SVGWidget {
74
+ selectionGlowColor(): string;
75
+ selectionGlowColor(_: string): this;
76
+ }
77
+ export {};
78
78
  //# sourceMappingURL=SVGWidget.d.ts.map