@hpcc-js/common 2.62.0 → 2.66.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.
- package/LICENSE +43 -43
- package/README.md +59 -59
- package/dist/index.es6.js +6607 -6607
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +6607 -6607
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +23 -39
- package/src/CanvasWidget.ts +31 -31
- package/src/Class.ts +67 -67
- package/src/Database.ts +856 -856
- package/src/Entity.ts +235 -235
- package/src/EntityCard.ts +66 -66
- package/src/EntityPin.ts +103 -103
- package/src/EntityRect.css +15 -15
- package/src/EntityRect.ts +236 -236
- package/src/EntityVertex.ts +86 -86
- package/src/FAChar.css +2 -2
- package/src/FAChar.ts +82 -82
- package/src/HTMLWidget.ts +191 -191
- package/src/IList.ts +4 -4
- package/src/IMenu.ts +5 -5
- package/src/Icon.css +9 -9
- package/src/Icon.ts +164 -164
- package/src/Image.ts +95 -95
- package/src/List.css +13 -13
- package/src/List.ts +99 -99
- package/src/Menu.css +23 -23
- package/src/Menu.ts +138 -138
- package/src/Palette.ts +341 -341
- package/src/Platform.ts +125 -125
- package/src/ProgressBar.ts +105 -105
- package/src/PropertyExt.ts +793 -793
- package/src/ResizeSurface.css +39 -39
- package/src/ResizeSurface.ts +221 -221
- package/src/SVGWidget.ts +567 -567
- package/src/SVGZoomWidget.css +12 -12
- package/src/SVGZoomWidget.ts +416 -416
- package/src/Shape.css +3 -3
- package/src/Shape.ts +186 -186
- package/src/Surface.css +35 -35
- package/src/Surface.ts +350 -350
- package/src/Text.css +4 -4
- package/src/Text.ts +131 -131
- package/src/TextBox.css +4 -4
- package/src/TextBox.ts +168 -168
- package/src/TitleBar.css +99 -99
- package/src/TitleBar.ts +401 -401
- package/src/Transition.ts +45 -45
- package/src/Utility.ts +820 -820
- package/src/Widget.css +8 -8
- package/src/Widget.ts +712 -712
- package/src/WidgetArray.ts +13 -13
- package/src/__package__.ts +2 -2
- package/src/index.ts +55 -55
- package/types/CanvasWidget.d.ts +8 -8
- package/types/Class.d.ts +12 -12
- package/types/Database.d.ts +136 -136
- package/types/Entity.d.ts +88 -88
- package/types/EntityCard.d.ts +13 -13
- package/types/EntityPin.d.ts +22 -22
- package/types/EntityRect.d.ts +45 -45
- package/types/EntityVertex.d.ts +30 -30
- package/types/FAChar.d.ts +29 -29
- package/types/HTMLWidget.d.ts +27 -27
- package/types/IList.d.ts +4 -4
- package/types/IMenu.d.ts +5 -5
- package/types/Icon.d.ts +62 -62
- package/types/Image.d.ts +33 -33
- package/types/List.d.ts +15 -15
- package/types/Menu.d.ts +28 -28
- package/types/Palette.d.ts +19 -19
- package/types/Platform.d.ts +5 -5
- package/types/ProgressBar.d.ts +21 -21
- package/types/PropertyExt.d.ts +114 -114
- package/types/ResizeSurface.d.ts +23 -23
- package/types/SVGWidget.d.ts +77 -77
- package/types/SVGZoomWidget.d.ts +68 -68
- package/types/Shape.d.ts +34 -34
- package/types/Surface.d.ts +69 -69
- package/types/Text.d.ts +37 -37
- package/types/TextBox.d.ts +76 -76
- package/types/TitleBar.d.ts +117 -117
- package/types/Transition.d.ts +11 -11
- package/types/Utility.d.ts +100 -100
- package/types/Widget.d.ts +149 -149
- package/types/WidgetArray.d.ts +6 -6
- package/types/__package__.d.ts +3 -3
- package/types/__package__.d.ts.map +1 -1
- package/types/index.d.ts +52 -52
- package/types-3.4/__package__.d.ts +2 -2
package/types/Platform.d.ts
CHANGED
|
@@ -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
|
package/types/ProgressBar.d.ts
CHANGED
|
@@ -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
|
package/types/PropertyExt.d.ts
CHANGED
|
@@ -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
|
package/types/ResizeSurface.d.ts
CHANGED
|
@@ -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
|
package/types/SVGWidget.d.ts
CHANGED
|
@@ -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
|
package/types/SVGZoomWidget.d.ts
CHANGED
|
@@ -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
|