@hpcc-js/common 2.73.0 → 3.2.0
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/dist/index.js +294 -15311
- package/dist/index.js.map +7 -1
- package/package.json +31 -36
- package/src/CanvasWidget.ts +1 -1
- package/src/Class.ts +5 -0
- package/src/Database.ts +10 -6
- package/src/Entity.ts +5 -5
- package/src/EntityCard.ts +1 -1
- package/src/EntityPin.ts +1 -1
- package/src/EntityRect.ts +54 -36
- package/src/EntityVertex.ts +2 -2
- package/src/FAChar.ts +14 -7
- package/src/HTMLWidget.ts +1 -1
- package/src/Icon.ts +27 -15
- package/src/Image.ts +16 -7
- package/src/List.ts +8 -5
- package/src/Menu.ts +11 -6
- package/src/Palette.ts +6 -6
- package/src/ProgressBar.ts +28 -18
- package/src/PropertyExt.ts +7 -30
- package/src/ResizeSurface.ts +6 -2
- package/src/SVGWidget.ts +6 -8
- package/src/SVGZoomWidget.ts +4 -3
- package/src/Shape.ts +1 -1
- package/src/Surface.ts +32 -17
- package/src/Text.ts +1 -1
- package/src/TextBox.ts +34 -19
- package/src/TitleBar.ts +3 -3
- package/src/Transition.ts +3 -3
- package/src/Utility.ts +3 -3
- package/src/Widget.ts +11 -10
- package/src/WidgetArray.ts +7 -5
- package/src/__package__.ts +2 -2
- package/src/index.ts +32 -32
- package/types/CanvasWidget.d.ts +1 -2
- package/types/Class.d.ts +2 -1
- package/types/Database.d.ts +9 -18
- package/types/Entity.d.ts +5 -6
- package/types/EntityCard.d.ts +1 -2
- package/types/EntityPin.d.ts +1 -2
- package/types/EntityRect.d.ts +35 -20
- package/types/EntityVertex.d.ts +2 -3
- package/types/FAChar.d.ts +11 -18
- package/types/HTMLWidget.d.ts +1 -2
- package/types/IList.d.ts +0 -1
- package/types/IMenu.d.ts +0 -1
- package/types/Icon.d.ts +23 -40
- package/types/Image.d.ts +15 -26
- package/types/List.d.ts +6 -7
- package/types/Menu.d.ts +10 -13
- package/types/Palette.d.ts +0 -1
- package/types/Platform.d.ts +0 -1
- package/types/ProgressBar.d.ts +19 -10
- package/types/PropertyExt.d.ts +1 -13
- package/types/ResizeSurface.d.ts +5 -6
- package/types/SVGWidget.d.ts +2 -4
- package/types/SVGZoomWidget.d.ts +2 -3
- package/types/Shape.d.ts +1 -2
- package/types/Surface.d.ts +27 -50
- package/types/Text.d.ts +1 -2
- package/types/TextBox.d.ts +32 -57
- package/types/TitleBar.d.ts +2 -3
- package/types/Transition.d.ts +3 -4
- package/types/Utility.d.ts +3 -4
- package/types/Widget.d.ts +6 -6
- package/types/WidgetArray.d.ts +5 -4
- package/types/__package__.d.ts +2 -3
- package/types/index.d.ts +32 -33
- package/dist/index.es6.js +0 -15067
- package/dist/index.es6.js.map +0 -1
- package/dist/index.min.js +0 -2
- package/dist/index.min.js.map +0 -1
- package/font-awesome/css/font-awesome.css +0 -2337
- package/font-awesome/css/font-awesome.css.map +0 -7
- package/font-awesome/css/font-awesome.min.css +0 -4
- package/types/CanvasWidget.d.ts.map +0 -1
- package/types/Class.d.ts.map +0 -1
- package/types/Database.d.ts.map +0 -1
- package/types/Entity.d.ts.map +0 -1
- package/types/EntityCard.d.ts.map +0 -1
- package/types/EntityPin.d.ts.map +0 -1
- package/types/EntityRect.d.ts.map +0 -1
- package/types/EntityVertex.d.ts.map +0 -1
- package/types/FAChar.d.ts.map +0 -1
- package/types/HTMLWidget.d.ts.map +0 -1
- package/types/IList.d.ts.map +0 -1
- package/types/IMenu.d.ts.map +0 -1
- package/types/Icon.d.ts.map +0 -1
- package/types/Image.d.ts.map +0 -1
- package/types/List.d.ts.map +0 -1
- package/types/Menu.d.ts.map +0 -1
- package/types/Palette.d.ts.map +0 -1
- package/types/Platform.d.ts.map +0 -1
- package/types/ProgressBar.d.ts.map +0 -1
- package/types/PropertyExt.d.ts.map +0 -1
- package/types/ResizeSurface.d.ts.map +0 -1
- package/types/SVGWidget.d.ts.map +0 -1
- package/types/SVGZoomWidget.d.ts.map +0 -1
- package/types/Shape.d.ts.map +0 -1
- package/types/Surface.d.ts.map +0 -1
- package/types/Text.d.ts.map +0 -1
- package/types/TextBox.d.ts.map +0 -1
- package/types/TitleBar.d.ts.map +0 -1
- package/types/Transition.d.ts.map +0 -1
- package/types/Utility.d.ts.map +0 -1
- package/types/Widget.d.ts.map +0 -1
- package/types/WidgetArray.d.ts.map +0 -1
- package/types/__package__.d.ts.map +0 -1
- package/types/index.d.ts.map +0 -1
- package/types-3.4/CanvasWidget.d.ts +0 -9
- package/types-3.4/Class.d.ts +0 -13
- package/types-3.4/Database.d.ts +0 -137
- package/types-3.4/Entity.d.ts +0 -89
- package/types-3.4/EntityCard.d.ts +0 -14
- package/types-3.4/EntityPin.d.ts +0 -23
- package/types-3.4/EntityRect.d.ts +0 -46
- package/types-3.4/EntityVertex.d.ts +0 -31
- package/types-3.4/FAChar.d.ts +0 -30
- package/types-3.4/HTMLWidget.d.ts +0 -28
- package/types-3.4/IList.d.ts +0 -5
- package/types-3.4/IMenu.d.ts +0 -6
- package/types-3.4/Icon.d.ts +0 -63
- package/types-3.4/Image.d.ts +0 -34
- package/types-3.4/List.d.ts +0 -16
- package/types-3.4/Menu.d.ts +0 -29
- package/types-3.4/Palette.d.ts +0 -20
- package/types-3.4/Platform.d.ts +0 -6
- package/types-3.4/ProgressBar.d.ts +0 -22
- package/types-3.4/PropertyExt.d.ts +0 -115
- package/types-3.4/ResizeSurface.d.ts +0 -24
- package/types-3.4/SVGWidget.d.ts +0 -78
- package/types-3.4/SVGZoomWidget.d.ts +0 -74
- package/types-3.4/Shape.d.ts +0 -35
- package/types-3.4/Surface.d.ts +0 -70
- package/types-3.4/Text.d.ts +0 -38
- package/types-3.4/TextBox.d.ts +0 -77
- package/types-3.4/TitleBar.d.ts +0 -118
- package/types-3.4/Transition.d.ts +0 -12
- package/types-3.4/Utility.d.ts +0 -103
- package/types-3.4/Widget.d.ts +0 -154
- package/types-3.4/WidgetArray.d.ts +0 -7
- package/types-3.4/__package__.d.ts +0 -4
- package/types-3.4/index.d.ts +0 -53
package/types-3.4/IMenu.d.ts
DELETED
package/types-3.4/Icon.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { SVGWidget } from "./SVGWidget";
|
|
2
|
-
import "../src/Icon.css";
|
|
3
|
-
export declare class Icon extends SVGWidget {
|
|
4
|
-
protected _shapeWidget: any;
|
|
5
|
-
protected _faChar: any;
|
|
6
|
-
protected _defs: any;
|
|
7
|
-
protected _root: any;
|
|
8
|
-
protected _tooltipElement: any;
|
|
9
|
-
constructor();
|
|
10
|
-
getBBox(refresh?: boolean, round?: boolean): {
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
width: number;
|
|
14
|
-
height: number;
|
|
15
|
-
};
|
|
16
|
-
contains(point: any): any;
|
|
17
|
-
intersection(pointA: any, pointB: any): any;
|
|
18
|
-
enter(domNode: any, element: any): void;
|
|
19
|
-
click(_domNode: any): void;
|
|
20
|
-
dblclick(_domNode: any): void;
|
|
21
|
-
_prevHash: any;
|
|
22
|
-
update(domNode: any, element: any): void;
|
|
23
|
-
exit(domNode: any, element: any): void;
|
|
24
|
-
shape: {
|
|
25
|
-
(): string;
|
|
26
|
-
(_: string): Icon;
|
|
27
|
-
};
|
|
28
|
-
faChar: {
|
|
29
|
-
(): string;
|
|
30
|
-
(_: string): Icon;
|
|
31
|
-
};
|
|
32
|
-
imageUrl: {
|
|
33
|
-
(): string;
|
|
34
|
-
(_: string): Icon;
|
|
35
|
-
};
|
|
36
|
-
image_colorFill: {
|
|
37
|
-
(): string;
|
|
38
|
-
(_: string): Icon;
|
|
39
|
-
};
|
|
40
|
-
image_colorFill_exists: () => boolean;
|
|
41
|
-
tooltip: {
|
|
42
|
-
(): string;
|
|
43
|
-
(_: string): Icon;
|
|
44
|
-
};
|
|
45
|
-
diameter: {
|
|
46
|
-
(): number;
|
|
47
|
-
(_: number): Icon;
|
|
48
|
-
};
|
|
49
|
-
paddingPercent: {
|
|
50
|
-
(): number;
|
|
51
|
-
(_: number): Icon;
|
|
52
|
-
};
|
|
53
|
-
shape_colorFill: {
|
|
54
|
-
(): string;
|
|
55
|
-
(_: string): Icon;
|
|
56
|
-
};
|
|
57
|
-
shape_colorFill_exists: () => boolean;
|
|
58
|
-
shape_colorStroke: {
|
|
59
|
-
(): string;
|
|
60
|
-
(_: string): Icon;
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=Icon.d.ts.map
|
package/types-3.4/Image.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { HTMLWidget } from "./HTMLWidget";
|
|
2
|
-
export declare class Image extends HTMLWidget {
|
|
3
|
-
private _imgElement;
|
|
4
|
-
constructor();
|
|
5
|
-
enter(domNode: any, element: any): void;
|
|
6
|
-
update(domNode: any, element: any): void;
|
|
7
|
-
styleImageElement(): void;
|
|
8
|
-
exit(domNode: any, element: any): void;
|
|
9
|
-
source: {
|
|
10
|
-
(): string;
|
|
11
|
-
(_: string): Image;
|
|
12
|
-
};
|
|
13
|
-
sizing: {
|
|
14
|
-
(): string;
|
|
15
|
-
(_: string): Image;
|
|
16
|
-
};
|
|
17
|
-
customWidth: {
|
|
18
|
-
(): string;
|
|
19
|
-
(_: string): Image;
|
|
20
|
-
};
|
|
21
|
-
customHeight: {
|
|
22
|
-
(): string;
|
|
23
|
-
(_: string): Image;
|
|
24
|
-
};
|
|
25
|
-
lockAspectRatio: {
|
|
26
|
-
(): boolean;
|
|
27
|
-
(_: boolean): Image;
|
|
28
|
-
};
|
|
29
|
-
alignment: {
|
|
30
|
-
(): string;
|
|
31
|
-
(_: string): Image;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=Image.d.ts.map
|
package/types-3.4/List.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IList } from "./IList";
|
|
2
|
-
import { SVGWidget } from "./SVGWidget";
|
|
3
|
-
import "../src/List.css";
|
|
4
|
-
export declare class List extends SVGWidget implements IList {
|
|
5
|
-
protected _listWidgets: any;
|
|
6
|
-
constructor();
|
|
7
|
-
update(domNode: any, element: any): void;
|
|
8
|
-
exit(domNode: any, element: any): void;
|
|
9
|
-
click(d: any): void;
|
|
10
|
-
dblclick(d: any): void;
|
|
11
|
-
anchor: {
|
|
12
|
-
(): string;
|
|
13
|
-
(_: string): List;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=List.d.ts.map
|
package/types-3.4/Menu.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Icon } from "./Icon";
|
|
2
|
-
import { IMenu } from "./IMenu";
|
|
3
|
-
import { List } from "./List";
|
|
4
|
-
import { SVGWidget } from "./SVGWidget";
|
|
5
|
-
import "../src/Menu.css";
|
|
6
|
-
export declare class Menu extends SVGWidget implements IMenu {
|
|
7
|
-
protected _icon: Icon;
|
|
8
|
-
protected _list: List;
|
|
9
|
-
protected _open: any;
|
|
10
|
-
constructor();
|
|
11
|
-
toggleMenu(): void;
|
|
12
|
-
showMenu(): void;
|
|
13
|
-
hideMenu(): void;
|
|
14
|
-
enter(domNode: any, element: any): void;
|
|
15
|
-
update(domNode: any, element: any): void;
|
|
16
|
-
exit(domNode: any, element: any): void;
|
|
17
|
-
click(d: any): void;
|
|
18
|
-
preShowMenu(): void;
|
|
19
|
-
postHideMenu(): void;
|
|
20
|
-
faChar: {
|
|
21
|
-
(): string;
|
|
22
|
-
(_: string): Menu;
|
|
23
|
-
};
|
|
24
|
-
paddingPercent: {
|
|
25
|
-
(): number;
|
|
26
|
-
(_: number): Menu;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=Menu.d.ts.map
|
package/types-3.4/Palette.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=Palette.d.ts.map
|
package/types-3.4/Platform.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=ProgressBar.d.ts.map
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { Class } from "./Class";
|
|
2
|
-
export interface IAutoExpand extends PropertyExt {
|
|
3
|
-
owner(): PropertyExt;
|
|
4
|
-
owner(_: PropertyExt): this;
|
|
5
|
-
valid(): boolean;
|
|
6
|
-
}
|
|
7
|
-
export type TagTypes = "Private" | "Shared" | "Basic" | "Intermediate" | "Advanced" | "Theme" | "Serial";
|
|
8
|
-
export 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 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
|
-
//# sourceMappingURL=PropertyExt.d.ts.map
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=ResizeSurface.d.ts.map
|
package/types-3.4/SVGWidget.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { ISize, Widget } from "./Widget";
|
|
2
|
-
type Point = {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
};
|
|
6
|
-
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
|
-
//# sourceMappingURL=SVGWidget.d.ts.map
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { SVGWidget } from "./SVGWidget";
|
|
2
|
-
import { IconBar, ToggleButton } from "./TitleBar";
|
|
3
|
-
import "../src/SVGZoomWidget.css";
|
|
4
|
-
export 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
|
-
getRenderElementBBox(): any;
|
|
35
|
-
calcZoomToBBox(bbox: any, widthOnly?: boolean, scale?: number): {
|
|
36
|
-
translate: number[];
|
|
37
|
-
newScale: number;
|
|
38
|
-
};
|
|
39
|
-
zoomToBBox(bbox: any, transitionDuration?: any, widthOnly?: boolean, scale?: number): void;
|
|
40
|
-
zoomToScale(scale: any, transitionDuration?: any): void;
|
|
41
|
-
zoomToWidth(transitionDuration?: any): void;
|
|
42
|
-
zoomToFit(transitionDuration?: any): void;
|
|
43
|
-
onZoomed(): void;
|
|
44
|
-
zoomed(transform: any): void;
|
|
45
|
-
updateIconBar(): void;
|
|
46
|
-
mousedownMarqueeSelection(): void;
|
|
47
|
-
mousemoveMarqueeSelection(): void;
|
|
48
|
-
mouseupMarqueeSelection(): void;
|
|
49
|
-
enter(domNode: any, _element: any): void;
|
|
50
|
-
update(domNode: any, element: any): void;
|
|
51
|
-
exit(domNode: any, element: any): void;
|
|
52
|
-
startMarqueeSelection(): void;
|
|
53
|
-
updateMarqueeSelection(rect: {
|
|
54
|
-
x: number;
|
|
55
|
-
y: number;
|
|
56
|
-
width: number;
|
|
57
|
-
height: number;
|
|
58
|
-
}): void;
|
|
59
|
-
endMarqueeSelection(): void;
|
|
60
|
-
}
|
|
61
|
-
export interface SVGZoomWidget {
|
|
62
|
-
showToolbar(): boolean;
|
|
63
|
-
showToolbar(_: boolean): this;
|
|
64
|
-
zoomable(): boolean;
|
|
65
|
-
zoomable(_: boolean): this;
|
|
66
|
-
zoomDuration(): number;
|
|
67
|
-
zoomDuration(_: number): this;
|
|
68
|
-
zoomToFitLimit(): number;
|
|
69
|
-
zoomToFitLimit(_: number): this;
|
|
70
|
-
zoomToFitLimit_exists(): boolean;
|
|
71
|
-
mouseMode(_: MouseMode): this;
|
|
72
|
-
mouseMode(): MouseMode;
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=SVGZoomWidget.d.ts.map
|
package/types-3.4/Shape.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=Shape.d.ts.map
|
package/types-3.4/Surface.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=Surface.d.ts.map
|
package/types-3.4/Text.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
//# sourceMappingURL=Text.d.ts.map
|