@hatiolab/things-scene 2.7.13 → 2.7.17
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/db.sqlite +0 -0
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +8 -3
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +3 -23
- package/logs/application-2021-11-30-22.log +4 -0
- package/logs/application-2021-11-30-23.log +1 -0
- package/logs/connections-2021-11-30-22.log +32 -0
- package/package.json +6 -6
- package/things-scene-ie.js +1 -1
- package/things-scene-min.js +1 -1
- package/things-scene.d.ts +361 -0
- package/things-scene.mjs +1 -1
- package/logs/application-2021-11-15-23.log +0 -4
- package/logs/connections-2021-11-08-22.log +0 -32
- package/logs/connections-2021-11-09-19.log +0 -32
- package/logs/connections-2021-11-10-23.log +0 -32
- package/logs/connections-2021-11-13-21.log +0 -32
- package/logs/connections-2021-11-15-23.log +0 -32
- package/types/animation/animate.d.ts +0 -4
- package/types/animation/animations/animation.d.ts +0 -14
- package/types/animation/animations/fade.d.ts +0 -4
- package/types/animation/animations/heartbeat.d.ts +0 -4
- package/types/animation/animations/moving.d.ts +0 -4
- package/types/animation/animations/outline.d.ts +0 -10
- package/types/animation/animations/rotation.d.ts +0 -4
- package/types/animation/animations/vibration.d.ts +0 -4
- package/types/animation/compile.d.ts +0 -1
- package/types/animation/delta.d.ts +0 -19
- package/types/animation/index.d.ts +0 -1
- package/types/command/command-change.d.ts +0 -7
- package/types/command/command-migrate.d.ts +0 -4
- package/types/command/command.d.ts +0 -5
- package/types/command/snapshot-commander.d.ts +0 -15
- package/types/components/audio.d.ts +0 -44
- package/types/components/cloud.d.ts +0 -3
- package/types/components/component.d.ts +0 -213
- package/types/components/container-abstract.d.ts +0 -48
- package/types/components/container.d.ts +0 -37
- package/types/components/data/data-mapping.d.ts +0 -15
- package/types/components/data/data.d.ts +0 -8
- package/types/components/data/evaluator.d.ts +0 -1
- package/types/components/donut.d.ts +0 -3
- package/types/components/drawer/draw-image-pendable.d.ts +0 -1
- package/types/components/drawer/effect.d.ts +0 -1
- package/types/components/drawer/fill.d.ts +0 -14
- package/types/components/drawer/format.d.ts +0 -1
- package/types/components/drawer/line.d.ts +0 -3
- package/types/components/drawer/stroke.d.ts +0 -1
- package/types/components/drawer/text-wrapper.d.ts +0 -10
- package/types/components/drawer/text.d.ts +0 -3
- package/types/components/ellipse.d.ts +0 -3
- package/types/components/file/ondropfile.d.ts +0 -1
- package/types/components/fit/fit.d.ts +0 -15
- package/types/components/geometry/transcoord.d.ts +0 -37
- package/types/components/geometry/union.d.ts +0 -6
- package/types/components/gif/super-gif.d.ts +0 -18
- package/types/components/gif-view.d.ts +0 -25
- package/types/components/global-ref.d.ts +0 -34
- package/types/components/group.d.ts +0 -15
- package/types/components/html/elements.d.ts +0 -2
- package/types/components/html/fill.d.ts +0 -1
- package/types/components/html/reposition.d.ts +0 -1
- package/types/components/html/shadow.d.ts +0 -1
- package/types/components/html-overlay-container.d.ts +0 -27
- package/types/components/html-overlay-element.d.ts +0 -25
- package/types/components/image-view.d.ts +0 -66
- package/types/components/index.d.ts +0 -31
- package/types/components/info-window.d.ts +0 -40
- package/types/components/line.d.ts +0 -16
- package/types/components/local-ref.d.ts +0 -46
- package/types/components/mixins/data-source.d.ts +0 -9
- package/types/components/mixins/html-element.d.ts +0 -23
- package/types/components/mixins/move-handle.d.ts +0 -11
- package/types/components/mixins/rect-path.d.ts +0 -12
- package/types/components/mixins/value-holder.d.ts +0 -18
- package/types/components/mutater/bounds.d.ts +0 -10
- package/types/components/mutater/path.d.ts +0 -5
- package/types/components/outline/ellipse-outline.d.ts +0 -1
- package/types/components/outline/path-outline.d.ts +0 -1
- package/types/components/path.d.ts +0 -3
- package/types/components/polygon.d.ts +0 -4
- package/types/components/polyline.d.ts +0 -4
- package/types/components/popup.d.ts +0 -47
- package/types/components/rect.d.ts +0 -35
- package/types/components/retention/retention-manager.d.ts +0 -8
- package/types/components/root-container.d.ts +0 -76
- package/types/components/ruler.d.ts +0 -15
- package/types/components/shape.d.ts +0 -22
- package/types/components/star.d.ts +0 -3
- package/types/components/text/substitutor.d.ts +0 -3
- package/types/components/text.d.ts +0 -15
- package/types/components/triangle.d.ts +0 -3
- package/types/components/variable.d.ts +0 -24
- package/types/const.d.ts +0 -31
- package/types/core/collection.d.ts +0 -8
- package/types/core/debug.d.ts +0 -1
- package/types/core/deep-equals.d.ts +0 -1
- package/types/core/dom-to-image.d.ts +0 -127
- package/types/core/event.d.ts +0 -181
- package/types/core/index.d.ts +0 -2
- package/types/core/list.d.ts +0 -32
- package/types/core/logger.d.ts +0 -3
- package/types/core/memoize.d.ts +0 -6
- package/types/core/mixin.d.ts +0 -1
- package/types/core/obj-accessor.d.ts +0 -1
- package/types/core/reference-map.d.ts +0 -14
- package/types/core/script-loader.d.ts +0 -3
- package/types/core/snapshot-taker.d.ts +0 -12
- package/types/core/stack.d.ts +0 -2
- package/types/core/timecapsule.d.ts +0 -18
- package/types/core/utils.d.ts +0 -4
- package/types/effect/gradation.d.ts +0 -1
- package/types/effect/index.d.ts +0 -1
- package/types/effect/shadow.d.ts +0 -2
- package/types/effect/turn.d.ts +0 -1
- package/types/event/event-engine.d.ts +0 -12
- package/types/event/event-pump.d.ts +0 -11
- package/types/event/event-tracker.d.ts +0 -21
- package/types/event/index.d.ts +0 -2
- package/types/event/ua-event-handler.d.ts +0 -32
- package/types/event-map/event-map.d.ts +0 -9
- package/types/event-map/index.d.ts +0 -1
- package/types/event-map/move-handler.d.ts +0 -1
- package/types/event-map/text-editor-lite.d.ts +0 -1
- package/types/index.d.ts +0 -1
- package/types/layer/action/emphasize.d.ts +0 -2
- package/types/layer/action/popup.d.ts +0 -2
- package/types/layer/action/pressed.d.ts +0 -2
- package/types/layer/guide-layer.d.ts +0 -44
- package/types/layer/index.d.ts +0 -6
- package/types/layer/layer.d.ts +0 -29
- package/types/layer/model-layer.d.ts +0 -39
- package/types/layer/modeler/control-handler.d.ts +0 -18
- package/types/layer/modeler/focus-outline.d.ts +0 -5
- package/types/layer/modeler/group-outline.d.ts +0 -5
- package/types/layer/modeler/index.d.ts +0 -6
- package/types/layer/modeler/path-handler.d.ts +0 -17
- package/types/layer/modeler/resizer.d.ts +0 -16
- package/types/layer/modeler/rotator.d.ts +0 -15
- package/types/layer/modeling-layer.d.ts +0 -47
- package/types/layer/selection-layer.d.ts +0 -42
- package/types/layer/shift-layer.d.ts +0 -18
- package/types/layer/tag-layer.d.ts +0 -28
- package/types/layout/absolute.d.ts +0 -8
- package/types/layout/card.d.ts +0 -7
- package/types/layout/html-absolute.d.ts +0 -8
- package/types/layout/index.d.ts +0 -7
- package/types/layout/layout.d.ts +0 -11
- package/types/layout/linear-horizontal.d.ts +0 -7
- package/types/layout/linear-vertical.d.ts +0 -7
- package/types/layout/table.d.ts +0 -9
- package/types/license/license.d.ts +0 -18
- package/types/link/arrow_straight.d.ts +0 -3
- package/types/link/curve.d.ts +0 -3
- package/types/link/index.d.ts +0 -4
- package/types/link/link.d.ts +0 -7
- package/types/link/right_angle_straight.d.ts +0 -3
- package/types/link/straight.d.ts +0 -3
- package/types/model/compile.d.ts +0 -1
- package/types/model/duplicate.d.ts +0 -1
- package/types/model/index.d.ts +0 -3
- package/types/model/selector.d.ts +0 -2
- package/types/style/compile.d.ts +0 -1
- package/types/style/index.d.ts +0 -1
- package/types/things-scene/api/add.d.ts +0 -5
- package/types/things-scene/api/align.d.ts +0 -1
- package/types/things-scene/api/change.d.ts +0 -2
- package/types/things-scene/api/clipboard.d.ts +0 -3
- package/types/things-scene/api/distribute.d.ts +0 -1
- package/types/things-scene/api/duplicate.d.ts +0 -4
- package/types/things-scene/api/fullscreen.d.ts +0 -1
- package/types/things-scene/api/group.d.ts +0 -8
- package/types/things-scene/api/index.d.ts +0 -14
- package/types/things-scene/api/listener.d.ts +0 -3
- package/types/things-scene/api/remove.d.ts +0 -4
- package/types/things-scene/api/symmetry.d.ts +0 -2
- package/types/things-scene/api/to-data-url.d.ts +0 -1
- package/types/things-scene/api/variables.d.ts +0 -13
- package/types/things-scene/api/zorder.d.ts +0 -2
- package/types/things-scene/application-context.d.ts +0 -33
- package/types/things-scene/config.d.ts +0 -4
- package/types/things-scene/create.d.ts +0 -12
- package/types/things-scene/fps.d.ts +0 -1
- package/types/things-scene/index.d.ts +0 -16
- package/types/things-scene/polyfill.d.ts +0 -2
- package/types/things-scene/scene.d.ts +0 -146
- package/types/things-scene/version.d.ts +0 -2
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
declare const Popup_base: {
|
|
2
|
-
new (): {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
contains(x: any, y: any): boolean;
|
|
5
|
-
path: {
|
|
6
|
-
x: any;
|
|
7
|
-
y: any;
|
|
8
|
-
}[];
|
|
9
|
-
};
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
};
|
|
12
|
-
export default class Popup extends Popup_base {
|
|
13
|
-
static get image(): any;
|
|
14
|
-
ready(): void;
|
|
15
|
-
render(context: any): void;
|
|
16
|
-
onchange(after: any, before: any): void;
|
|
17
|
-
set show(arg: any);
|
|
18
|
-
get show(): any;
|
|
19
|
-
onchangeShow(value: any): void;
|
|
20
|
-
set board(arg: any);
|
|
21
|
-
get board(): any;
|
|
22
|
-
set started(arg: any);
|
|
23
|
-
get started(): any;
|
|
24
|
-
set value(arg: any);
|
|
25
|
-
get value(): any;
|
|
26
|
-
get hasTextProperty(): boolean;
|
|
27
|
-
get nature(): {
|
|
28
|
-
mutable: boolean;
|
|
29
|
-
resizable: boolean;
|
|
30
|
-
rotatable: boolean;
|
|
31
|
-
properties: ({
|
|
32
|
-
type: string;
|
|
33
|
-
label: string;
|
|
34
|
-
name: string;
|
|
35
|
-
property?: undefined;
|
|
36
|
-
} | {
|
|
37
|
-
type: string;
|
|
38
|
-
label: string;
|
|
39
|
-
name: string;
|
|
40
|
-
property: {
|
|
41
|
-
options: string[];
|
|
42
|
-
};
|
|
43
|
-
})[];
|
|
44
|
-
help: string;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
declare const Rect_base: {
|
|
2
|
-
new (): {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
contains(x: any, y: any): boolean;
|
|
5
|
-
path: {
|
|
6
|
-
x: any;
|
|
7
|
-
y: any;
|
|
8
|
-
}[];
|
|
9
|
-
};
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
};
|
|
12
|
-
export default class Rect extends Rect_base {
|
|
13
|
-
is3dish(): boolean;
|
|
14
|
-
render(ctx: any): void;
|
|
15
|
-
get controls(): {
|
|
16
|
-
x: any;
|
|
17
|
-
y: any;
|
|
18
|
-
handler: {
|
|
19
|
-
ondragmove: (point: any, index: any, component: any) => void;
|
|
20
|
-
};
|
|
21
|
-
}[];
|
|
22
|
-
get nature(): {
|
|
23
|
-
mutable: boolean;
|
|
24
|
-
resizable: boolean;
|
|
25
|
-
rotatable: boolean;
|
|
26
|
-
properties: {
|
|
27
|
-
type: string;
|
|
28
|
-
label: string;
|
|
29
|
-
name: string;
|
|
30
|
-
property: string;
|
|
31
|
-
}[];
|
|
32
|
-
help: string;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
export default class RootContainer extends ContainerAbstract {
|
|
2
|
-
fitMode: any;
|
|
3
|
-
_app: any;
|
|
4
|
-
set target_element(arg: any);
|
|
5
|
-
get target_element(): any;
|
|
6
|
-
isRoot(): boolean;
|
|
7
|
-
get app(): any;
|
|
8
|
-
_ua_event_handler: Event.UAEventHandler;
|
|
9
|
-
_target_element: any;
|
|
10
|
-
variable(name: any, value: any): any;
|
|
11
|
-
buildVariables(variables: any): void;
|
|
12
|
-
/**
|
|
13
|
-
* Scene 모델의 단위(unit)을 감안한 기본 Scale 값을 제공한다.
|
|
14
|
-
* 통산 'mm', 'cm' 단위의 Scene은 각 값에 10배를 곱한 수치로 모델링된다.(값을 10으로 나눈값이 실제 단위와 일치한다.)
|
|
15
|
-
* unitScale의 의미는 scene에 unitScale값으로 scale하면, 각 단위값이 화면과 일치한다는 의미이다.
|
|
16
|
-
*
|
|
17
|
-
* 모델링의 수치단위가 픽셀이 아니고, mm, cm, inch 등의 단위인 경우에,
|
|
18
|
-
* 화면에서의 크기가 실물과 유사하게 보이는 수준의 기본 스케일을 제공하는 기능이다.
|
|
19
|
-
* 이 값은 내부적으로는, Ruler에서 눈금을 실제 자의 눈금과 일치시키기 위해서 사용한다.
|
|
20
|
-
*/
|
|
21
|
-
get unitScale(): number;
|
|
22
|
-
addTemplate(prefix: any, component: any): void;
|
|
23
|
-
removeTemplate(prefix: any, component: any): void;
|
|
24
|
-
findTemplateFor(id: any): any;
|
|
25
|
-
templatePrefixes: string[];
|
|
26
|
-
addIndex(id: any, component: any): void;
|
|
27
|
-
removeIndex(id: any, component: any): void;
|
|
28
|
-
findOrCreate(id: any): any;
|
|
29
|
-
resize(): void;
|
|
30
|
-
_disposeAllResources(): void;
|
|
31
|
-
set selected(arg: any);
|
|
32
|
-
get selected(): any;
|
|
33
|
-
_ready: boolean;
|
|
34
|
-
indexMap: {};
|
|
35
|
-
templateMap: {};
|
|
36
|
-
rebuildContentModel(contentModel: any): void;
|
|
37
|
-
eventEngine: Event.Engine;
|
|
38
|
-
model_layer: any;
|
|
39
|
-
assist_layers: any;
|
|
40
|
-
assist_handlers: any;
|
|
41
|
-
get root(): RootContainer;
|
|
42
|
-
/**
|
|
43
|
-
* 모델들이 다 생성되고 준비되었는지를 알려준다.
|
|
44
|
-
*/
|
|
45
|
-
get isReady(): boolean;
|
|
46
|
-
get rootModel(): any;
|
|
47
|
-
get stuck(): boolean;
|
|
48
|
-
set data(arg: any);
|
|
49
|
-
get data(): any;
|
|
50
|
-
_selected: any;
|
|
51
|
-
set focused(arg: any);
|
|
52
|
-
get focused(): any;
|
|
53
|
-
set style(arg: any);
|
|
54
|
-
get style(): any;
|
|
55
|
-
_style: any;
|
|
56
|
-
_compiled_style: any;
|
|
57
|
-
invalidate(): void;
|
|
58
|
-
get eventMap(): {
|
|
59
|
-
'(root)': {
|
|
60
|
-
'(descendant)': {
|
|
61
|
-
added: (container: any, component: any) => void;
|
|
62
|
-
removed: (container: any, component: any) => void;
|
|
63
|
-
change: (after: any, before: any, hint: any) => void;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
refreshMappings(): void;
|
|
68
|
-
_refresh_mapping_debouncer: any;
|
|
69
|
-
_addTraverse(component: any): void;
|
|
70
|
-
_removeTraverse(component: any): void;
|
|
71
|
-
onadded(container: any, component: any): void;
|
|
72
|
-
onremoved(container: any, component: any): void;
|
|
73
|
-
onchanged(after: any, before: any, hint: any): void;
|
|
74
|
-
}
|
|
75
|
-
import ContainerAbstract from "./container-abstract";
|
|
76
|
-
import * as Event from "../event";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare const Ruler_base: {
|
|
2
|
-
new (): {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
contains(x: any, y: any): boolean;
|
|
5
|
-
path: {
|
|
6
|
-
x: any;
|
|
7
|
-
y: any;
|
|
8
|
-
}[];
|
|
9
|
-
};
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
};
|
|
12
|
-
export default class Ruler extends Ruler_base {
|
|
13
|
-
render(ctx: any): void;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shape 컴포넌트는 단순한 형태의 컴포넌트의 공통 기능을 정의한 추상클래스이다.
|
|
3
|
-
* 단순한 형태의 컴포넌트란
|
|
4
|
-
* - 컴포넌트 전체에서 라인 스타일이 하나만 사용된다.
|
|
5
|
-
* - 컴포넌트 전체에서 FILL 스타일이 하나만 사용된다.
|
|
6
|
-
*
|
|
7
|
-
* 이런 단순한 컴포넌트는 render 메쏘드에서 모든 패스를 lineTo로 그리기만 하고
|
|
8
|
-
* postrender에서 Fill, Stroke을 일괄적으로 한다.
|
|
9
|
-
*/
|
|
10
|
-
export default class Shape extends Component {
|
|
11
|
-
set rotationX(arg: any);
|
|
12
|
-
get rotationX(): any;
|
|
13
|
-
set rotationY(arg: any);
|
|
14
|
-
get rotationY(): any;
|
|
15
|
-
set rotationZ(arg: any);
|
|
16
|
-
get rotationZ(): any;
|
|
17
|
-
set zPos(arg: any);
|
|
18
|
-
get zPos(): any;
|
|
19
|
-
set depth(arg: any);
|
|
20
|
-
get depth(): any;
|
|
21
|
-
}
|
|
22
|
-
import Component from "./component";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare const Text_base: {
|
|
2
|
-
new (): {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
contains(x: any, y: any): boolean;
|
|
5
|
-
path: {
|
|
6
|
-
x: any;
|
|
7
|
-
y: any;
|
|
8
|
-
}[];
|
|
9
|
-
};
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
};
|
|
12
|
-
export default class Text extends Text_base {
|
|
13
|
-
is3dish(): boolean;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
declare const Variable_base: {
|
|
2
|
-
new (): {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
contains(x: any, y: any): boolean;
|
|
5
|
-
path: {
|
|
6
|
-
x: any;
|
|
7
|
-
y: any;
|
|
8
|
-
}[];
|
|
9
|
-
};
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
};
|
|
12
|
-
export default class Variable extends Variable_base {
|
|
13
|
-
render(ctx: any): void;
|
|
14
|
-
set text(arg: any);
|
|
15
|
-
get text(): any;
|
|
16
|
-
get rotatable(): boolean;
|
|
17
|
-
get nature(): {
|
|
18
|
-
mutable: boolean;
|
|
19
|
-
resizable: boolean;
|
|
20
|
-
rotatable: boolean;
|
|
21
|
-
properties: any[];
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export {};
|
package/types/const.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export const NOTHING: {};
|
|
2
|
-
/** @constant {number} */
|
|
3
|
-
export const MODE_VIEW: 0;
|
|
4
|
-
/** @constant {number} */
|
|
5
|
-
export const MODE_EDIT: 1;
|
|
6
|
-
/** @constant {number} */
|
|
7
|
-
export const MODE_SHIFT: 2;
|
|
8
|
-
/**
|
|
9
|
-
* maximum undo queue size
|
|
10
|
-
* @constant {number}
|
|
11
|
-
* @default 30
|
|
12
|
-
*/
|
|
13
|
-
export const MAX_UNDO_SIZE: 30;
|
|
14
|
-
export const DPPX: number;
|
|
15
|
-
/** @constant {string-array} */
|
|
16
|
-
export const GESTURES: string[];
|
|
17
|
-
/** @constant {string-array} */
|
|
18
|
-
export const KEYEVENTS: string[];
|
|
19
|
-
export namespace DEFAULT {
|
|
20
|
-
const ALPHA: number;
|
|
21
|
-
const FONT_SIZE: number;
|
|
22
|
-
const FONT_FAMILY: string;
|
|
23
|
-
const FONT_COLOR: string;
|
|
24
|
-
const TEXT_ALIGN: string;
|
|
25
|
-
const TEXT_BASELINE: string;
|
|
26
|
-
const TEXT_WRAP: boolean;
|
|
27
|
-
const BOLD: boolean;
|
|
28
|
-
const ITALIC: boolean;
|
|
29
|
-
const STROKE_STYLE: string;
|
|
30
|
-
const LINE_DASH: string;
|
|
31
|
-
}
|
package/types/core/debug.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export var enabled: boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function deepEquals(actual: any, expected: any, opts: any): any;
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
export default domtoimage;
|
|
2
|
-
declare namespace domtoimage {
|
|
3
|
-
export { toSvg };
|
|
4
|
-
export { toPng };
|
|
5
|
-
export { toJpeg };
|
|
6
|
-
export { toBlob };
|
|
7
|
-
export { toPixelData };
|
|
8
|
-
export namespace impl {
|
|
9
|
-
export { fontFaces };
|
|
10
|
-
export { images };
|
|
11
|
-
export { util };
|
|
12
|
-
export { inliner };
|
|
13
|
-
export const options: {};
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @param {Node} node - The DOM Node object to render
|
|
18
|
-
* @param {Object} options - Rendering options
|
|
19
|
-
* @param {Function} options.filter - Should return true if passed node should be included in the output
|
|
20
|
-
* (excluding node means excluding it's children as well). Not called on the root node.
|
|
21
|
-
* @param {String} options.bgcolor - color for the background, any valid CSS color value.
|
|
22
|
-
* @param {Number} options.width - width to be applied to node before rendering.
|
|
23
|
-
* @param {Number} options.height - height to be applied to node before rendering.
|
|
24
|
-
* @param {Object} options.style - an object whose properties to be copied to node's style before rendering.
|
|
25
|
-
* @param {Number} options.quality - a Number between 0 and 1 indicating image quality (applicable to JPEG only),
|
|
26
|
-
defaults to 1.0.
|
|
27
|
-
* @param {String} options.imagePlaceholder - dataURL to use as a placeholder for failed images, default behaviour is to fail fast on images we can't fetch
|
|
28
|
-
* @param {Boolean} options.cacheBust - set to true to cache bust by appending the time to the request url
|
|
29
|
-
* @return {Promise} - A promise that is fulfilled with a SVG image data URL
|
|
30
|
-
* */
|
|
31
|
-
declare function toSvg(node: Node, options: {
|
|
32
|
-
filter: Function;
|
|
33
|
-
bgcolor: string;
|
|
34
|
-
width: number;
|
|
35
|
-
height: number;
|
|
36
|
-
style: any;
|
|
37
|
-
quality: number;
|
|
38
|
-
imagePlaceholder: string;
|
|
39
|
-
cacheBust: boolean;
|
|
40
|
-
}): Promise<any>;
|
|
41
|
-
/**
|
|
42
|
-
* @param {Node} node - The DOM Node object to render
|
|
43
|
-
* @param {Object} options - Rendering options, @see {@link toSvg}
|
|
44
|
-
* @return {Promise} - A promise that is fulfilled with a PNG image data URL
|
|
45
|
-
* */
|
|
46
|
-
declare function toPng(node: Node, options: any): Promise<any>;
|
|
47
|
-
/**
|
|
48
|
-
* @param {Node} node - The DOM Node object to render
|
|
49
|
-
* @param {Object} options - Rendering options, @see {@link toSvg}
|
|
50
|
-
* @return {Promise} - A promise that is fulfilled with a JPEG image data URL
|
|
51
|
-
* */
|
|
52
|
-
declare function toJpeg(node: Node, options: any): Promise<any>;
|
|
53
|
-
/**
|
|
54
|
-
* @param {Node} node - The DOM Node object to render
|
|
55
|
-
* @param {Object} options - Rendering options, @see {@link toSvg}
|
|
56
|
-
* @return {Promise} - A promise that is fulfilled with a PNG image blob
|
|
57
|
-
* */
|
|
58
|
-
declare function toBlob(node: Node, options: any): Promise<any>;
|
|
59
|
-
/**
|
|
60
|
-
* @param {Node} node - The DOM Node object to render
|
|
61
|
-
* @param {Object} options - Rendering options, @see {@link toSvg}
|
|
62
|
-
* @return {Promise} - A promise that is fulfilled with a Uint8Array containing RGBA pixel data.
|
|
63
|
-
* */
|
|
64
|
-
declare function toPixelData(node: Node, options: any): Promise<any>;
|
|
65
|
-
declare namespace fontFaces {
|
|
66
|
-
export { resolveAll };
|
|
67
|
-
export namespace impl_1 {
|
|
68
|
-
export { readAll };
|
|
69
|
-
}
|
|
70
|
-
export { impl_1 as impl };
|
|
71
|
-
}
|
|
72
|
-
declare namespace images {
|
|
73
|
-
export { inlineAll };
|
|
74
|
-
export namespace impl_2 {
|
|
75
|
-
export { newImage };
|
|
76
|
-
}
|
|
77
|
-
export { impl_2 as impl };
|
|
78
|
-
}
|
|
79
|
-
declare namespace util {
|
|
80
|
-
export { escape };
|
|
81
|
-
export { parseExtension };
|
|
82
|
-
export { mimeType };
|
|
83
|
-
export { dataAsUrl };
|
|
84
|
-
export { isDataUrl };
|
|
85
|
-
export { canvasToBlob };
|
|
86
|
-
export { resolveUrl };
|
|
87
|
-
export { getAndEncode };
|
|
88
|
-
export function uid(): string;
|
|
89
|
-
export { delay };
|
|
90
|
-
export { asArray };
|
|
91
|
-
export { escapeXhtml };
|
|
92
|
-
export { makeImage };
|
|
93
|
-
export { width };
|
|
94
|
-
export { height };
|
|
95
|
-
}
|
|
96
|
-
declare namespace inliner {
|
|
97
|
-
export { inlineAll };
|
|
98
|
-
export { shouldProcess };
|
|
99
|
-
export namespace impl_3 {
|
|
100
|
-
export { readUrls };
|
|
101
|
-
export { inline };
|
|
102
|
-
}
|
|
103
|
-
export { impl_3 as impl };
|
|
104
|
-
}
|
|
105
|
-
declare function resolveAll(): Promise<string>;
|
|
106
|
-
declare function readAll(): Promise<any>;
|
|
107
|
-
declare function inlineAll(node: any): any;
|
|
108
|
-
declare function newImage(element: any): {
|
|
109
|
-
inline: (get: any) => Promise<any>;
|
|
110
|
-
};
|
|
111
|
-
declare function parseExtension(url: any): string;
|
|
112
|
-
declare function mimeType(url: any): any;
|
|
113
|
-
declare function dataAsUrl(content: any, type: any): string;
|
|
114
|
-
declare function isDataUrl(url: any): boolean;
|
|
115
|
-
declare function canvasToBlob(canvas: any): Promise<any>;
|
|
116
|
-
declare function resolveUrl(url: any, baseUrl: any): string;
|
|
117
|
-
declare function getAndEncode(url: any): Promise<any>;
|
|
118
|
-
declare function delay(ms: any): (arg: any) => Promise<any>;
|
|
119
|
-
declare function asArray(arrayLike: any): any[];
|
|
120
|
-
declare function escapeXhtml(string: any): any;
|
|
121
|
-
declare function makeImage(uri: any): Promise<any>;
|
|
122
|
-
declare function width(node: any): any;
|
|
123
|
-
declare function height(node: any): any;
|
|
124
|
-
declare function inlineAll_1(string: any, baseUrl: any, get: any): Promise<any>;
|
|
125
|
-
declare function shouldProcess(string: any): boolean;
|
|
126
|
-
declare function readUrls(string: any): string[];
|
|
127
|
-
declare function inline(string: any, url: any, baseUrl: any, get: any): Promise<any>;
|
package/types/core/event.d.ts
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
export default Event;
|
|
2
|
-
declare namespace Event {
|
|
3
|
-
function withEvent(): void;
|
|
4
|
-
function withEvent(): void;
|
|
5
|
-
function on(name: any, callback: any, context: any): {
|
|
6
|
-
withEvent(): void;
|
|
7
|
-
on(name: any, callback: any, context: any): any;
|
|
8
|
-
once(name: any, callback: any, context: any): any;
|
|
9
|
-
off(name: any, callback: any, context: any): any;
|
|
10
|
-
delegate_on(delegator: any): any;
|
|
11
|
-
delegate_off(delegator: any): any;
|
|
12
|
-
delegate(...args: any[]): any;
|
|
13
|
-
trigger(name: any, ...args: any[]): any;
|
|
14
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
15
|
-
};
|
|
16
|
-
function on(name: any, callback: any, context: any): {
|
|
17
|
-
withEvent(): void;
|
|
18
|
-
on(name: any, callback: any, context: any): any;
|
|
19
|
-
once(name: any, callback: any, context: any): any;
|
|
20
|
-
off(name: any, callback: any, context: any): any;
|
|
21
|
-
delegate_on(delegator: any): any;
|
|
22
|
-
delegate_off(delegator: any): any;
|
|
23
|
-
delegate(...args: any[]): any;
|
|
24
|
-
trigger(name: any, ...args: any[]): any;
|
|
25
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
26
|
-
};
|
|
27
|
-
function once(name: any, callback: any, context: any): {
|
|
28
|
-
withEvent(): void;
|
|
29
|
-
on(name: any, callback: any, context: any): any;
|
|
30
|
-
once(name: any, callback: any, context: any): any;
|
|
31
|
-
off(name: any, callback: any, context: any): any;
|
|
32
|
-
delegate_on(delegator: any): any;
|
|
33
|
-
delegate_off(delegator: any): any;
|
|
34
|
-
delegate(...args: any[]): any;
|
|
35
|
-
trigger(name: any, ...args: any[]): any;
|
|
36
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
37
|
-
};
|
|
38
|
-
function once(name: any, callback: any, context: any): {
|
|
39
|
-
withEvent(): void;
|
|
40
|
-
on(name: any, callback: any, context: any): any;
|
|
41
|
-
once(name: any, callback: any, context: any): any;
|
|
42
|
-
off(name: any, callback: any, context: any): any;
|
|
43
|
-
delegate_on(delegator: any): any;
|
|
44
|
-
delegate_off(delegator: any): any;
|
|
45
|
-
delegate(...args: any[]): any;
|
|
46
|
-
trigger(name: any, ...args: any[]): any;
|
|
47
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
48
|
-
};
|
|
49
|
-
function off(name: any, callback: any, context: any): {
|
|
50
|
-
withEvent(): void;
|
|
51
|
-
on(name: any, callback: any, context: any): any;
|
|
52
|
-
once(name: any, callback: any, context: any): any;
|
|
53
|
-
off(name: any, callback: any, context: any): any;
|
|
54
|
-
delegate_on(delegator: any): any;
|
|
55
|
-
delegate_off(delegator: any): any;
|
|
56
|
-
delegate(...args: any[]): any;
|
|
57
|
-
trigger(name: any, ...args: any[]): any;
|
|
58
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
59
|
-
};
|
|
60
|
-
function off(name: any, callback: any, context: any): {
|
|
61
|
-
withEvent(): void;
|
|
62
|
-
on(name: any, callback: any, context: any): any;
|
|
63
|
-
once(name: any, callback: any, context: any): any;
|
|
64
|
-
off(name: any, callback: any, context: any): any;
|
|
65
|
-
delegate_on(delegator: any): any;
|
|
66
|
-
delegate_off(delegator: any): any;
|
|
67
|
-
delegate(...args: any[]): any;
|
|
68
|
-
trigger(name: any, ...args: any[]): any;
|
|
69
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
70
|
-
};
|
|
71
|
-
function delegate_on(delegator: any): {
|
|
72
|
-
withEvent(): void;
|
|
73
|
-
on(name: any, callback: any, context: any): any;
|
|
74
|
-
once(name: any, callback: any, context: any): any;
|
|
75
|
-
off(name: any, callback: any, context: any): any;
|
|
76
|
-
delegate_on(delegator: any): any;
|
|
77
|
-
delegate_off(delegator: any): any;
|
|
78
|
-
delegate(...args: any[]): any;
|
|
79
|
-
trigger(name: any, ...args: any[]): any;
|
|
80
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
81
|
-
};
|
|
82
|
-
function delegate_on(delegator: any): {
|
|
83
|
-
withEvent(): void;
|
|
84
|
-
on(name: any, callback: any, context: any): any;
|
|
85
|
-
once(name: any, callback: any, context: any): any;
|
|
86
|
-
off(name: any, callback: any, context: any): any;
|
|
87
|
-
delegate_on(delegator: any): any;
|
|
88
|
-
delegate_off(delegator: any): any;
|
|
89
|
-
delegate(...args: any[]): any;
|
|
90
|
-
trigger(name: any, ...args: any[]): any;
|
|
91
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
92
|
-
};
|
|
93
|
-
function delegate_off(delegator: any): {
|
|
94
|
-
withEvent(): void;
|
|
95
|
-
on(name: any, callback: any, context: any): any;
|
|
96
|
-
once(name: any, callback: any, context: any): any;
|
|
97
|
-
off(name: any, callback: any, context: any): any;
|
|
98
|
-
delegate_on(delegator: any): any;
|
|
99
|
-
delegate_off(delegator: any): any;
|
|
100
|
-
delegate(...args: any[]): any;
|
|
101
|
-
trigger(name: any, ...args: any[]): any;
|
|
102
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
103
|
-
};
|
|
104
|
-
function delegate_off(delegator: any): {
|
|
105
|
-
withEvent(): void;
|
|
106
|
-
on(name: any, callback: any, context: any): any;
|
|
107
|
-
once(name: any, callback: any, context: any): any;
|
|
108
|
-
off(name: any, callback: any, context: any): any;
|
|
109
|
-
delegate_on(delegator: any): any;
|
|
110
|
-
delegate_off(delegator: any): any;
|
|
111
|
-
delegate(...args: any[]): any;
|
|
112
|
-
trigger(name: any, ...args: any[]): any;
|
|
113
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
114
|
-
};
|
|
115
|
-
function delegate(...args: any[]): {
|
|
116
|
-
withEvent(): void;
|
|
117
|
-
on(name: any, callback: any, context: any): any;
|
|
118
|
-
once(name: any, callback: any, context: any): any;
|
|
119
|
-
off(name: any, callback: any, context: any): any;
|
|
120
|
-
delegate_on(delegator: any): any;
|
|
121
|
-
delegate_off(delegator: any): any;
|
|
122
|
-
delegate(...args: any[]): any;
|
|
123
|
-
trigger(name: any, ...args: any[]): any;
|
|
124
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
125
|
-
};
|
|
126
|
-
function delegate(...args: any[]): {
|
|
127
|
-
withEvent(): void;
|
|
128
|
-
on(name: any, callback: any, context: any): any;
|
|
129
|
-
once(name: any, callback: any, context: any): any;
|
|
130
|
-
off(name: any, callback: any, context: any): any;
|
|
131
|
-
delegate_on(delegator: any): any;
|
|
132
|
-
delegate_off(delegator: any): any;
|
|
133
|
-
delegate(...args: any[]): any;
|
|
134
|
-
trigger(name: any, ...args: any[]): any;
|
|
135
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
136
|
-
};
|
|
137
|
-
function trigger(name: any, ...args: any[]): {
|
|
138
|
-
withEvent(): void;
|
|
139
|
-
on(name: any, callback: any, context: any): any;
|
|
140
|
-
once(name: any, callback: any, context: any): any;
|
|
141
|
-
off(name: any, callback: any, context: any): any;
|
|
142
|
-
delegate_on(delegator: any): any;
|
|
143
|
-
delegate_off(delegator: any): any;
|
|
144
|
-
delegate(...args: any[]): any;
|
|
145
|
-
trigger(name: any, ...args: any[]): any;
|
|
146
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
147
|
-
};
|
|
148
|
-
function trigger(name: any, ...args: any[]): {
|
|
149
|
-
withEvent(): void;
|
|
150
|
-
on(name: any, callback: any, context: any): any;
|
|
151
|
-
once(name: any, callback: any, context: any): any;
|
|
152
|
-
off(name: any, callback: any, context: any): any;
|
|
153
|
-
delegate_on(delegator: any): any;
|
|
154
|
-
delegate_off(delegator: any): any;
|
|
155
|
-
delegate(...args: any[]): any;
|
|
156
|
-
trigger(name: any, ...args: any[]): any;
|
|
157
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
158
|
-
};
|
|
159
|
-
function stopListening(obj: any, name: any, callback: any): {
|
|
160
|
-
withEvent(): void;
|
|
161
|
-
on(name: any, callback: any, context: any): any;
|
|
162
|
-
once(name: any, callback: any, context: any): any;
|
|
163
|
-
off(name: any, callback: any, context: any): any;
|
|
164
|
-
delegate_on(delegator: any): any;
|
|
165
|
-
delegate_off(delegator: any): any;
|
|
166
|
-
delegate(...args: any[]): any;
|
|
167
|
-
trigger(name: any, ...args: any[]): any;
|
|
168
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
169
|
-
};
|
|
170
|
-
function stopListening(obj: any, name: any, callback: any): {
|
|
171
|
-
withEvent(): void;
|
|
172
|
-
on(name: any, callback: any, context: any): any;
|
|
173
|
-
once(name: any, callback: any, context: any): any;
|
|
174
|
-
off(name: any, callback: any, context: any): any;
|
|
175
|
-
delegate_on(delegator: any): any;
|
|
176
|
-
delegate_off(delegator: any): any;
|
|
177
|
-
delegate(...args: any[]): any;
|
|
178
|
-
trigger(name: any, ...args: any[]): any;
|
|
179
|
-
stopListening(obj: any, name: any, callback: any): any;
|
|
180
|
-
};
|
|
181
|
-
}
|
package/types/core/index.d.ts
DELETED
package/types/core/list.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export function insertAt(index: any, item: any): any;
|
|
2
|
-
export function append(item: any): this;
|
|
3
|
-
export class append {
|
|
4
|
-
constructor(item: any);
|
|
5
|
-
__collection__: any[];
|
|
6
|
-
}
|
|
7
|
-
export function prepend(item: any): this;
|
|
8
|
-
export class prepend {
|
|
9
|
-
constructor(item: any);
|
|
10
|
-
__collection__: any[];
|
|
11
|
-
}
|
|
12
|
-
export function remove(item: any): any;
|
|
13
|
-
export function getAt(index: any): any;
|
|
14
|
-
export function forEach(fn: any, context: any): void;
|
|
15
|
-
export function indexOf(item: any): any;
|
|
16
|
-
export function size(): any;
|
|
17
|
-
export function clear(): void;
|
|
18
|
-
export class clear {
|
|
19
|
-
__collection__: any[];
|
|
20
|
-
}
|
|
21
|
-
export function moveForward(item: any): void;
|
|
22
|
-
export function moveBackward(item: any): void;
|
|
23
|
-
export function moveToHead(item: any): void;
|
|
24
|
-
export class moveToHead {
|
|
25
|
-
constructor(item: any);
|
|
26
|
-
__collection__: any;
|
|
27
|
-
}
|
|
28
|
-
export function moveToTail(item: any): void;
|
|
29
|
-
export class moveToTail {
|
|
30
|
-
constructor(item: any);
|
|
31
|
-
__collection__: any;
|
|
32
|
-
}
|
package/types/core/logger.d.ts
DELETED
package/types/core/memoize.d.ts
DELETED
package/types/core/mixin.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function mixin(base: any, mixins: any): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function buildAccessor(accessor: any): (o: any) => any;
|