@zyzgroup/core-web 0.0.12 → 0.0.15
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/zyzgroup_core_web.iife.js +24 -12
- package/dist/zyzgroup_core_web.iife.js.map +1 -1
- package/dist/zyzgroup_core_web.js +18017 -6669
- package/dist/zyzgroup_core_web.js.map +1 -1
- package/dist/zyzgroup_core_web.umd.cjs +24 -12
- package/dist/zyzgroup_core_web.umd.cjs.map +1 -1
- package/package.json +2 -1
- package/types/animate.d.ts +1 -0
- package/types/animate.d.ts.map +1 -1
- package/types/bom.d.ts +1 -0
- package/types/bom.d.ts.map +1 -0
- package/types/cache.d.ts +6 -0
- package/types/cache.d.ts.map +1 -0
- package/types/canvas/index.d.ts +19 -20
- package/types/canvas/index.d.ts.map +1 -1
- package/types/canvas/konva/KonvaApp.d.ts +160 -0
- package/types/canvas/konva/KonvaApp.d.ts.map +1 -0
- package/types/canvas/konva/plugins/AlignmentPlugin.d.ts +37 -0
- package/types/canvas/konva/plugins/AlignmentPlugin.d.ts.map +1 -0
- package/types/canvas/konva/plugins/HistoryPlugin/HistoryPlugin.d.ts +51 -0
- package/types/canvas/konva/plugins/HistoryPlugin/HistoryPlugin.d.ts.map +1 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/add-object-cmd.d.ts +9 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/add-object-cmd.d.ts.map +1 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/base.d.ts +57 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/base.d.ts.map +1 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/decompose-group-cmd.d.ts +9 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/decompose-group-cmd.d.ts.map +1 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/index.d.ts +8 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/index.d.ts.map +1 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/make-group-cmd.d.ts +9 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/make-group-cmd.d.ts.map +1 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/modified-object-cmd.d.ts +9 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/modified-object-cmd.d.ts.map +1 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/move-zIndex-object-cmd.d.ts +9 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/move-zIndex-object-cmd.d.ts.map +1 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/remove-object-cmd.d.ts +9 -0
- package/types/canvas/konva/plugins/HistoryPlugin/commands/remove-object-cmd.d.ts.map +1 -0
- package/types/canvas/konva/plugins/SelectorPlugin.d.ts +72 -0
- package/types/canvas/konva/plugins/SelectorPlugin.d.ts.map +1 -0
- package/types/canvas/konva/plugins/index.d.ts +4 -0
- package/types/canvas/konva/plugins/index.d.ts.map +1 -0
- package/types/canvas/konva/polyfill/ellipse.d.ts +2 -0
- package/types/canvas/konva/polyfill/ellipse.d.ts.map +1 -0
- package/types/canvas/konva/polyfill/image.d.ts +2 -0
- package/types/canvas/konva/polyfill/image.d.ts.map +1 -0
- package/types/canvas/konva/polyfill/index.d.ts +8 -0
- package/types/canvas/konva/polyfill/index.d.ts.map +1 -0
- package/types/canvas/konva/polyfill/line.d.ts +2 -0
- package/types/canvas/konva/polyfill/line.d.ts.map +1 -0
- package/types/canvas/konva/polyfill/node.d.ts +2 -0
- package/types/canvas/konva/polyfill/node.d.ts.map +1 -0
- package/types/canvas/konva/polyfill/rect.d.ts +2 -0
- package/types/canvas/konva/polyfill/rect.d.ts.map +1 -0
- package/types/canvas/konva/polyfill/regular-polygon.d.ts +2 -0
- package/types/canvas/konva/polyfill/regular-polygon.d.ts.map +1 -0
- package/types/canvas/konva/polyfill/text.d.ts +2 -0
- package/types/canvas/konva/polyfill/text.d.ts.map +1 -0
- package/types/canvas/konva/services/Mouse.d.ts +16 -0
- package/types/canvas/konva/services/Mouse.d.ts.map +1 -0
- package/types/canvas/konva/services/Tooler.d.ts +19 -0
- package/types/canvas/konva/services/Tooler.d.ts.map +1 -0
- package/types/canvas/konva/services/index.d.ts +3 -0
- package/types/canvas/konva/services/index.d.ts.map +1 -0
- package/types/canvas/konva/services/types.d.ts +7 -0
- package/types/canvas/konva/services/types.d.ts.map +1 -0
- package/types/canvas/konva/tools/DiamondTool.d.ts +20 -0
- package/types/canvas/konva/tools/DiamondTool.d.ts.map +1 -0
- package/types/canvas/konva/tools/DrawingTool.d.ts +20 -0
- package/types/canvas/konva/tools/DrawingTool.d.ts.map +1 -0
- package/types/canvas/konva/tools/EllipseTool.d.ts +20 -0
- package/types/canvas/konva/tools/EllipseTool.d.ts.map +1 -0
- package/types/canvas/konva/tools/EraserTool.d.ts +16 -0
- package/types/canvas/konva/tools/EraserTool.d.ts.map +1 -0
- package/types/canvas/konva/tools/ImageTool.d.ts +21 -0
- package/types/canvas/konva/tools/ImageTool.d.ts.map +1 -0
- package/types/canvas/konva/tools/LineTool.d.ts +21 -0
- package/types/canvas/konva/tools/LineTool.d.ts.map +1 -0
- package/types/canvas/konva/tools/RectTool.d.ts +21 -0
- package/types/canvas/konva/tools/RectTool.d.ts.map +1 -0
- package/types/canvas/konva/tools/SelectTool.d.ts +10 -0
- package/types/canvas/konva/tools/SelectTool.d.ts.map +1 -0
- package/types/canvas/konva/tools/TextTool.d.ts +18 -0
- package/types/canvas/konva/tools/TextTool.d.ts.map +1 -0
- package/types/canvas/konva/tools/index.d.ts +10 -0
- package/types/canvas/konva/tools/index.d.ts.map +1 -0
- package/types/canvas/konva/utils/index.d.ts +22 -0
- package/types/canvas/konva/utils/index.d.ts.map +1 -0
- package/types/canvas/shapes/ball.d.ts +5 -14
- package/types/canvas/shapes/ball.d.ts.map +1 -1
- package/types/canvas/shapes/ball3d.d.ts +1 -1
- package/types/canvas/shapes/ball3d.d.ts.map +1 -1
- package/types/canvas/shapes/box.d.ts +2 -1
- package/types/canvas/shapes/box.d.ts.map +1 -1
- package/types/canvas/shapes/segment.d.ts +2 -2
- package/types/canvas/shapes/segment.d.ts.map +1 -1
- package/types/canvas/shapes/slider.d.ts.map +1 -1
- package/types/canvas/shapes/triangle-light.d.ts +3 -3
- package/types/canvas/shapes/triangle-light.d.ts.map +1 -1
- package/types/canvas/shapes/triangle.d.ts +2 -2
- package/types/canvas/shapes/triangle.d.ts.map +1 -1
- package/types/color.d.ts +21 -0
- package/types/color.d.ts.map +1 -0
- package/types/dom/DOMDetect.d.ts +19 -0
- package/types/dom/DOMDetect.d.ts.map +1 -0
- package/types/dom/DOMEvent.d.ts +7 -0
- package/types/dom/DOMEvent.d.ts.map +1 -0
- package/types/dom/DOMKey.d.ts +31 -0
- package/types/dom/DOMKey.d.ts.map +1 -0
- package/types/dom/DOMMedia.d.ts +8 -0
- package/types/dom/DOMMedia.d.ts.map +1 -0
- package/types/dom/DOMMouse.d.ts +8 -0
- package/types/dom/DOMMouse.d.ts.map +1 -0
- package/types/dom/DOMQuery.d.ts +77 -0
- package/types/dom/DOMQuery.d.ts.map +1 -0
- package/types/dom/DOMScroll.d.ts +7 -0
- package/types/dom/DOMScroll.d.ts.map +1 -0
- package/types/dom/DOMUtil.d.ts +8 -0
- package/types/dom/DOMUtil.d.ts.map +1 -0
- package/types/dom/index.d.ts +8 -0
- package/types/dom/index.d.ts.map +1 -0
- package/types/dom/zyzui.d.ts +1 -0
- package/types/dom/zyzui.d.ts.map +1 -0
- package/types/dom.d.ts +6 -6
- package/types/dom.d.ts.map +1 -1
- package/types/env.d.ts +2 -3
- package/types/env.d.ts.map +1 -1
- package/types/fetch.d.ts +10 -6
- package/types/fetch.d.ts.map +1 -1
- package/types/file.d.ts +8 -7
- package/types/file.d.ts.map +1 -1
- package/types/image-gif.d.ts +7 -0
- package/types/image-gif.d.ts.map +1 -0
- package/types/image.d.ts +1 -4
- package/types/image.d.ts.map +1 -1
- package/types/index.d.ts +11 -9
- package/types/index.d.ts.map +1 -1
- package/types/math/AnimateShape.d.ts +45 -0
- package/types/math/AnimateShape.d.ts.map +1 -0
- package/types/{sprite-math/matrix.d.ts → math/Matrix.d.ts} +6 -5
- package/types/math/Matrix.d.ts.map +1 -0
- package/types/math/Point.d.ts +27 -0
- package/types/math/Point.d.ts.map +1 -0
- package/types/math/Polygon.d.ts +16 -0
- package/types/math/Polygon.d.ts.map +1 -0
- package/types/math/Rect.d.ts +14 -0
- package/types/math/Rect.d.ts.map +1 -0
- package/types/{sprite-math/vector.d.ts → math/Vector.d.ts} +2 -2
- package/types/math/Vector.d.ts.map +1 -0
- package/types/math/index.d.ts +7 -0
- package/types/math/index.d.ts.map +1 -0
- package/types/math/math.d.ts +7 -0
- package/types/math/math.d.ts.map +1 -0
- package/types/patch.d.ts +15 -0
- package/types/patch.d.ts.map +1 -0
- package/types/position.d.ts +17 -13
- package/types/position.d.ts.map +1 -1
- package/types/qrcode.d.ts +87 -0
- package/types/qrcode.d.ts.map +1 -0
- package/types/query.d.ts +65 -0
- package/types/query.d.ts.map +1 -0
- package/types/url.d.ts +12 -4
- package/types/url.d.ts.map +1 -1
- package/types/video.d.ts +4 -0
- package/types/video.d.ts.map +1 -1
- package/types/webgl/index.d.ts +7 -0
- package/types/webgl/index.d.ts.map +1 -0
- package/types/webrtc/adapter.d.ts +9 -0
- package/types/webrtc/adapter.d.ts.map +1 -0
- package/types/webrtc/index.d.ts +29 -0
- package/types/webrtc/index.d.ts.map +1 -0
- package/types/DOMKeyboardKeyCode.d.ts +0 -11
- package/types/DOMKeyboardKeyCode.d.ts.map +0 -1
- package/types/cookie.d.ts +0 -5
- package/types/cookie.d.ts.map +0 -1
- package/types/error.d.ts +0 -15
- package/types/error.d.ts.map +0 -1
- package/types/localstorage.d.ts +0 -3
- package/types/localstorage.d.ts.map +0 -1
- package/types/onDocumentReady.d.ts +0 -2
- package/types/onDocumentReady.d.ts.map +0 -1
- package/types/patchDOM.d.ts +0 -2
- package/types/patchDOM.d.ts.map +0 -1
- package/types/scroll.d.ts +0 -6
- package/types/scroll.d.ts.map +0 -1
- package/types/sprite-math/index.d.ts +0 -4
- package/types/sprite-math/index.d.ts.map +0 -1
- package/types/sprite-math/matrix.d.ts.map +0 -1
- package/types/sprite-math/vector.d.ts.map +0 -1
- package/types/visual_util.d.ts +0 -86
- package/types/visual_util.d.ts.map +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Point from "./Point";
|
|
2
|
+
export declare class Polygon {
|
|
3
|
+
points: Point[];
|
|
4
|
+
constructor(points: Point[]);
|
|
5
|
+
get length(): number;
|
|
6
|
+
getPoint(index: number): Point;
|
|
7
|
+
isContainPoint(point: Point): boolean;
|
|
8
|
+
[Symbol.iterator](): {
|
|
9
|
+
next: () => {
|
|
10
|
+
value: Point | undefined;
|
|
11
|
+
done: boolean;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export default Polygon;
|
|
16
|
+
//# sourceMappingURL=Polygon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Polygon.d.ts","sourceRoot":"","sources":["../../src/math/Polygon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,qBAAa,OAAO;IAClB,MAAM,EAAE,KAAK,EAAE,CAAM;gBAET,MAAM,EAAE,KAAK,EAAE;IAI3B,IAAI,MAAM,WAET;IAED,QAAQ,CAAC,KAAK,EAAE,MAAM;IAItB,cAAc,CAAC,KAAK,EAAE,KAAK;IA0C3B,CAAC,MAAM,CAAC,QAAQ,CAAC;;;;;;CASlB;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AnimateShape, AnimateShapeOptions } from "./AnimateShape";
|
|
2
|
+
import Point from "./Point";
|
|
3
|
+
export declare class Rect extends AnimateShape {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
constructor(x: number, y: number, width: number, height?: number, options?: AnimateShapeOptions);
|
|
7
|
+
eq(rect: Rect): boolean;
|
|
8
|
+
isIntersectRect(rect: Rect): boolean;
|
|
9
|
+
isContainPoint(p: Point): boolean;
|
|
10
|
+
toArray(): number[];
|
|
11
|
+
clone(rect: Rect): void;
|
|
12
|
+
}
|
|
13
|
+
export default Rect;
|
|
14
|
+
//# sourceMappingURL=Rect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rect.d.ts","sourceRoot":"","sources":["../../src/math/Rect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,qBAAa,IAAK,SAAQ,YAAY;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;gBAGb,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,MAAc,EACtB,OAAO,CAAC,EAAE,mBAAmB;IAO/B,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IASvB,eAAe,CAAC,IAAI,EAAE,IAAI;IAS1B,cAAc,CAAC,CAAC,EAAE,KAAK;IASvB,OAAO,IAAI,MAAM,EAAE;IAInB,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;CAMxB;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare class Vector {
|
|
1
|
+
export declare class Vector {
|
|
2
2
|
x: number;
|
|
3
3
|
y: number;
|
|
4
4
|
z: number;
|
|
@@ -9,4 +9,4 @@ declare class Vector {
|
|
|
9
9
|
cross(v: Vector): Vector;
|
|
10
10
|
}
|
|
11
11
|
export default Vector;
|
|
12
|
-
//# sourceMappingURL=
|
|
12
|
+
//# sourceMappingURL=Vector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Vector.d.ts","sourceRoot":"","sources":["../../src/math/Vector.ts"],"names":[],"mappings":"AAAA,qBAAa,MAAM;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;gBAEE,EAAE,WAAY,EAAE,EAAE,WAAY;IAS1C,IAAI,MAAM,WAGT;IAED,IAAI;IAKJ,GAAG,CAAC,CAAC,EAAE,MAAM;IAIb,KAAK,CAAC,CAAC,EAAE,MAAM;CAchB;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/math/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const angle2radian: (angle: number) => number;
|
|
2
|
+
export declare const radian2angle: (radian: number) => number;
|
|
3
|
+
export declare function rotate(x: number, y: number, sin: number, cos: number, reverse?: boolean): {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=math.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../src/math/math.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,UAAW,MAAM,WAEzC,CAAC;AAEF,eAAO,MAAM,YAAY,WAAY,MAAM,WAE1C,CAAC;AAEF,wBAAgB,MAAM,CACpB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,OAAO,UAAQ;;;EAMhB"}
|
package/types/patch.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface VNode {
|
|
2
|
+
el?: HTMLElement;
|
|
3
|
+
tag: string;
|
|
4
|
+
props: {
|
|
5
|
+
[index: string]: any;
|
|
6
|
+
};
|
|
7
|
+
children: string | VNode[];
|
|
8
|
+
}
|
|
9
|
+
export declare function h(tag: string, props?: {
|
|
10
|
+
[index: string]: any;
|
|
11
|
+
}, children?: string | VNode[]): VNode;
|
|
12
|
+
export declare function mount(vnode: VNode, parentContainer: HTMLElement): void;
|
|
13
|
+
export declare function patch(oldVnode: VNode, newVnode: VNode): void;
|
|
14
|
+
export declare function patchDOM(oldNode: HTMLElement, newNode: HTMLElement, parent: HTMLElement): void;
|
|
15
|
+
//# sourceMappingURL=patch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../src/patch.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IAEpB,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAChC,QAAQ,EAAE,MAAM,GAAG,KAAK,EAAE,CAAC;CAC5B;AAGD,wBAAgB,CAAC,CACf,GAAG,EAAE,MAAM,EACX,KAAK,GAAE;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAAA;CAAO,EACpC,QAAQ,GAAE,MAAM,GAAG,KAAK,EAAO,SAOhC;AAGD,wBAAgB,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,QAyB/D;AAGD,wBAAgB,KAAK,CAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,QA6DrD;AAED,wBAAgB,QAAQ,CACtB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,WAAW,QAmDpB"}
|
package/types/position.d.ts
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
export declare function getDocumentElement(): HTMLElement;
|
|
2
|
+
export declare function getPageScroll(): {
|
|
3
|
+
scrollTop: number;
|
|
4
|
+
scrollLeft: number;
|
|
5
|
+
scrollWidth: number;
|
|
6
|
+
scrollHeight: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function getPageClient(): {
|
|
9
|
+
clientTop: number;
|
|
10
|
+
clientLeft: number;
|
|
11
|
+
clientWidth: number;
|
|
12
|
+
clientHeight: number;
|
|
13
|
+
};
|
|
2
14
|
export declare function getViewportSize(): {
|
|
3
15
|
width: number;
|
|
4
16
|
height: number;
|
|
@@ -7,15 +19,8 @@ export declare function getPageSize(): {
|
|
|
7
19
|
width: number;
|
|
8
20
|
height: number;
|
|
9
21
|
};
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function
|
|
12
|
-
scrollLeft: number;
|
|
13
|
-
scrollTop: number;
|
|
14
|
-
};
|
|
15
|
-
export declare function getPageClient(): {
|
|
16
|
-
clientLeft: number;
|
|
17
|
-
clientTop: number;
|
|
18
|
-
};
|
|
22
|
+
export declare function isElementInViewportSimple(el: HTMLElement): boolean;
|
|
23
|
+
export declare function isElementInViewport(el: HTMLElement, scb: (el: HTMLElement) => void, fcb?: (el: HTMLElement) => void): void;
|
|
19
24
|
export declare function getElementPositionInPage(element: HTMLElement): {
|
|
20
25
|
x: number;
|
|
21
26
|
y: number;
|
|
@@ -30,16 +35,15 @@ export declare function getElementPositionInViewport(element: HTMLElement): {
|
|
|
30
35
|
x: number;
|
|
31
36
|
y: number;
|
|
32
37
|
};
|
|
33
|
-
export declare function
|
|
34
|
-
export declare function getMouseOrTouchPositionInPage(ev: MouseEvent | Touch | PointerEvent): {
|
|
38
|
+
export declare function getMousePositionInPage(ev: MouseEvent | Touch | PointerEvent): {
|
|
35
39
|
x: number;
|
|
36
40
|
y: number;
|
|
37
41
|
};
|
|
38
|
-
export declare function
|
|
42
|
+
export declare function getMousePositionInViewport(ev: MouseEvent | Touch | PointerEvent): {
|
|
39
43
|
x: number;
|
|
40
44
|
y: number;
|
|
41
45
|
};
|
|
42
|
-
export declare function
|
|
46
|
+
export declare function getMousePositionInElement(element: HTMLElement, ev: MouseEvent | Touch | PointerEvent): {
|
|
43
47
|
x: number;
|
|
44
48
|
y: number;
|
|
45
49
|
};
|
package/types/position.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../src/position.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../src/position.ts"],"names":[],"mappings":"AAQA,wBAAgB,kBAAkB,gBAMjC;AAED,wBAAgB,aAAa;;;;;EAQ5B;AAED,wBAAgB,aAAa;;;;;EAQ5B;AAKD,wBAAgB,eAAe;;;EAM9B;AAMD,wBAAgB,WAAW;;;EAO1B;AAgBD,wBAAgB,yBAAyB,CAAC,EAAE,EAAE,WAAW,WAOxD;AAED,wBAAgB,mBAAmB,CACjC,EAAE,EAAE,WAAW,EACf,GAAG,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,EAC9B,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,QAmChC;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW;;;EAO5D;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW;;;EAK7D;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,UAO/D;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,UAO9D;AAED,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,WAAW;;;EAMhE;AAID,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,UAAU,GAAG,KAAK,GAAG,YAAY;;;EAS3E;AAED,wBAAgB,0BAA0B,CACxC,EAAE,EAAE,UAAU,GAAG,KAAK,GAAG,YAAY;;;EAMtC;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,WAAW,EACpB,EAAE,EAAE,UAAU,GAAG,KAAK,GAAG,YAAY;;;EAQtC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
declare const QRErrorCorrectLevel: {
|
|
2
|
+
M: number;
|
|
3
|
+
L: number;
|
|
4
|
+
H: number;
|
|
5
|
+
Q: number;
|
|
6
|
+
};
|
|
7
|
+
declare class QRRSBlock {
|
|
8
|
+
totalCount: number;
|
|
9
|
+
dataCount: number;
|
|
10
|
+
constructor(totalCount: number, dataCount: number);
|
|
11
|
+
static RS_BLOCK_TABLE: number[][];
|
|
12
|
+
static getRSBlocks(typeNumber: number, errorCorrectLevel: number): QRRSBlock[];
|
|
13
|
+
static getRsBlockTable(typeNumber: number, errorCorrectLevel: number): number[] | undefined;
|
|
14
|
+
}
|
|
15
|
+
declare class QRBitBuffer {
|
|
16
|
+
buffer: number[];
|
|
17
|
+
length: number;
|
|
18
|
+
constructor();
|
|
19
|
+
get(index: number): boolean;
|
|
20
|
+
put(num: number, length: number): void;
|
|
21
|
+
getLengthInBits(): number;
|
|
22
|
+
putBit(bit: boolean): void;
|
|
23
|
+
}
|
|
24
|
+
declare class QR8bitByte {
|
|
25
|
+
mode: number;
|
|
26
|
+
data: string;
|
|
27
|
+
constructor(data: string);
|
|
28
|
+
getLength(): number;
|
|
29
|
+
write(buffer: QRBitBuffer): void;
|
|
30
|
+
}
|
|
31
|
+
export declare class QRCode {
|
|
32
|
+
static PAD0: number;
|
|
33
|
+
static PAD1: number;
|
|
34
|
+
typeNumber: number;
|
|
35
|
+
errorCorrectLevel: any;
|
|
36
|
+
modules: (null | boolean)[][];
|
|
37
|
+
moduleCount: number;
|
|
38
|
+
dataCache: null | number[];
|
|
39
|
+
dataList: QR8bitByte[];
|
|
40
|
+
constructor(typeNumber: number, errorCorrectLevel: keyof typeof QRErrorCorrectLevel);
|
|
41
|
+
addData(data: string): void;
|
|
42
|
+
isDark(row: number, col: number): boolean | null;
|
|
43
|
+
getModuleCount(): number;
|
|
44
|
+
make(): void;
|
|
45
|
+
makeImpl(test: boolean, maskPattern: number): void;
|
|
46
|
+
setupPositionProbePattern(row: number, col: number): void;
|
|
47
|
+
getBestMaskPattern(): number;
|
|
48
|
+
createMovieClip(target_mc: {
|
|
49
|
+
createEmptyMovieClip: (instance_name: string, depth: number) => {
|
|
50
|
+
beginFill(x: number, y: number): void;
|
|
51
|
+
moveTo(x: number, y: number): void;
|
|
52
|
+
lineTo(x: number, y: number): void;
|
|
53
|
+
endFill(): void;
|
|
54
|
+
};
|
|
55
|
+
}, instance_name: string, depth: number): {
|
|
56
|
+
beginFill(x: number, y: number): void;
|
|
57
|
+
moveTo(x: number, y: number): void;
|
|
58
|
+
lineTo(x: number, y: number): void;
|
|
59
|
+
endFill(): void;
|
|
60
|
+
};
|
|
61
|
+
setupTimingPattern(): void;
|
|
62
|
+
setupPositionAdjustPattern(): void;
|
|
63
|
+
setupTypeNumber(test: boolean): void;
|
|
64
|
+
setupTypeInfo(test: boolean, maskPattern: number): void;
|
|
65
|
+
mapData(data: number[], maskPattern: number): void;
|
|
66
|
+
static createData(typeNumber: number, errorCorrectLevel: number, dataList: QR8bitByte[]): number[];
|
|
67
|
+
static createBytes(buffer: QRBitBuffer, rsBlocks: QRRSBlock[]): number[];
|
|
68
|
+
}
|
|
69
|
+
export declare function outputQRCodeBase64(text: string, options?: {
|
|
70
|
+
ecc?: keyof typeof QRErrorCorrectLevel;
|
|
71
|
+
size?: number;
|
|
72
|
+
padding?: number;
|
|
73
|
+
color?: string;
|
|
74
|
+
background?: string;
|
|
75
|
+
}): string;
|
|
76
|
+
export declare function drawQRCodeToCanvas(text: string, options: {
|
|
77
|
+
x?: number;
|
|
78
|
+
y?: number;
|
|
79
|
+
ctx: CanvasRenderingContext2D;
|
|
80
|
+
ecc?: keyof typeof QRErrorCorrectLevel;
|
|
81
|
+
size?: number;
|
|
82
|
+
padding?: number;
|
|
83
|
+
color?: string;
|
|
84
|
+
background?: string;
|
|
85
|
+
}): void;
|
|
86
|
+
export {};
|
|
87
|
+
//# sourceMappingURL=qrcode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qrcode.d.ts","sourceRoot":"","sources":["../src/qrcode.ts"],"names":[],"mappings":"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"}
|
package/types/query.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export function query(selector: any, context: any): Query;
|
|
2
|
+
export namespace query {
|
|
3
|
+
export function html(str: any): Query;
|
|
4
|
+
import version = Query.version;
|
|
5
|
+
export { version };
|
|
6
|
+
}
|
|
7
|
+
export class Query {
|
|
8
|
+
static version: number;
|
|
9
|
+
static _fragment(html: any): DocumentFragment;
|
|
10
|
+
static _scriptConvert(node: any): any;
|
|
11
|
+
static _fixProp(name: any): any;
|
|
12
|
+
constructor(selector: any, context: any);
|
|
13
|
+
context: any;
|
|
14
|
+
nodes: any[];
|
|
15
|
+
length: number;
|
|
16
|
+
_insert(method: any, html: any): this | undefined;
|
|
17
|
+
_save(node: any, name: any, value: any): void;
|
|
18
|
+
get(index: any): any;
|
|
19
|
+
eq(index: any): Query;
|
|
20
|
+
then(fun: any): any;
|
|
21
|
+
find(selector: any): Query;
|
|
22
|
+
filter(selector: any): Query;
|
|
23
|
+
next(): Query;
|
|
24
|
+
prev(): Query;
|
|
25
|
+
shadow(selector: any): Query;
|
|
26
|
+
closest(selector: any): Query;
|
|
27
|
+
host(all: any): Query;
|
|
28
|
+
parent(selector: any): Query;
|
|
29
|
+
parents(selector: any, firstOnly: any): Query;
|
|
30
|
+
add(more: any): Query;
|
|
31
|
+
each(func: any): this;
|
|
32
|
+
append(html: any): this | undefined;
|
|
33
|
+
prepend(html: any): this | undefined;
|
|
34
|
+
after(html: any): this | undefined;
|
|
35
|
+
before(html: any): this | undefined;
|
|
36
|
+
replace(html: any): this | undefined;
|
|
37
|
+
remove(): this;
|
|
38
|
+
css(key: any, value: any, ...args: any[]): string | this | {
|
|
39
|
+
[k: string]: any;
|
|
40
|
+
} | undefined;
|
|
41
|
+
addClass(classes: any): this;
|
|
42
|
+
removeClass(classes: any): this;
|
|
43
|
+
toggleClass(classes: any, force: any): this;
|
|
44
|
+
hasClass(classes: any): false | any[];
|
|
45
|
+
on(events: any, options: any, callback: any): this;
|
|
46
|
+
off(events: any, options: any, callback: any): this;
|
|
47
|
+
trigger(name: any, options: any): this;
|
|
48
|
+
attr(name: any, value: any): any;
|
|
49
|
+
removeAttr(): this;
|
|
50
|
+
prop(name: any, value: any): any;
|
|
51
|
+
removeProp(): this;
|
|
52
|
+
data(key: any, value: any, ...args: any[]): any;
|
|
53
|
+
removeData(key: any): this;
|
|
54
|
+
show(): this;
|
|
55
|
+
hide(): this;
|
|
56
|
+
toggle(force: any): this;
|
|
57
|
+
empty(): any;
|
|
58
|
+
html(html: any): any;
|
|
59
|
+
text(text: any): any;
|
|
60
|
+
val(value: any): any;
|
|
61
|
+
change(): this;
|
|
62
|
+
click(): this;
|
|
63
|
+
}
|
|
64
|
+
export { query as $, query as default };
|
|
65
|
+
//# sourceMappingURL=query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../src/query.js"],"names":[],"mappings":"AAkqBA,0DAWC;;IAED,sCAGC;;;;AAhrBD;IACE,uBAAqB;IAoCrB,8CAUC;IAGD,sCAoBC;IAED,gCAgBC;IArFD,yCAgCC;IA/BC,aAAkC;IAyBlC,aAAkB;IAClB,eAA0B;IA4D5B,kDA0CC;IAED,8CAUC;IAED,qBAUC;IAED,sBAKC;IAED,oBAGC;IAED,2BASC;IAED,6BAcC;IAED,cASC;IAED,cASC;IAED,6BAQC;IAED,8BASC;IAED,sBAmBC;IAED,6BAEC;IAED,8CAeC;IAED,sBAIC;IAED,sBAKC;IAED,oCAEC;IAED,qCAEC;IAED,mCAEC;IAED,oCAEC;IAED,qCAEC;IAED,eAMC;IAED;;kBA0CC;IAED,6BAGC;IAED,gCAGC;IAED,4CAiBC;IAED,sCAeC;IAED,mDAkCC;IAED,oDAgCC;IAED,uCAkBC;IAED,iCAcC;IAED,mBAOC;IAED,iCAkBC;IAED,mBAOC;IAED,gDAuCC;IAED,2BAQC;IAED,aAEC;IAED,aAEC;IAED,yBAwBC;IAED,aAEC;IAED,qBAMC;IAED,qBAEC;IAED,qBAEC;IAED,eAEC;IAED,cAEC;CACF"}
|
package/types/url.d.ts
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
export declare function
|
|
2
|
-
export declare function
|
|
1
|
+
export declare function base64URLEncode(str: string): string;
|
|
2
|
+
export declare function base64URLDecode(base64UrlStr: string): string;
|
|
3
3
|
export declare function getURL(string: string): URL;
|
|
4
|
+
export declare function parseURL(url: string): {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function parseUrlParams(str: string): Record<string, string>;
|
|
4
8
|
export declare function isURL(string: string): boolean;
|
|
5
|
-
export declare
|
|
6
|
-
export declare function
|
|
9
|
+
export declare function formDataToSearch(fd: FormData): string;
|
|
10
|
+
export declare function appendUrlSearch(url: string, search: string): string;
|
|
11
|
+
export declare function recordToSearch(params: Record<string, string>): string;
|
|
12
|
+
export declare function recordToSearch2(params: Record<string, string>): string;
|
|
13
|
+
export declare const searchToRecord: (query: string | string[][] | Record<string, string> | URLSearchParams) => Record<string, string>;
|
|
14
|
+
export declare function searchToRecord2(): Record<string, string>;
|
|
7
15
|
export declare function handleURLChange(cb: (href: string) => any): void;
|
|
8
16
|
export declare function handleHashChange(cb: (hash: string) => any): void;
|
|
9
17
|
export declare function handleHistoryChange(cb: (e: PopStateEvent) => any): void;
|
package/types/url.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../src/url.ts"],"names":[],"mappings":"AAkBA,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,UAK1C;AAED,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,UAOnD;AAkBD,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,OAEpC;AAED,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,WAGnC;AAED,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../src/url.ts"],"names":[],"mappings":"AAkBA,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,UAK1C;AAED,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,UAOnD;AAkBD,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,OAEpC;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM;;EAqBnC;AAMD,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,0BAazC;AAED,wBAAgB,KAAK,CAAC,MAAM,EAAE,MAAM,WAGnC;AAQD,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,QAAQ,UAY5C;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAM1D;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAE5D;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAS7D;AAED,eAAO,MAAM,cAAc,UAClB,MAAM,GAAG,MAAM,EAAE,EAAE,GAAG,OAAO,MAAM,EAAE,MAAM,CAAC,GAAG,eAAe,2BAQpE,CAAC;AAEJ,wBAAgB,eAAe,2BAY9B;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG,QAcxD;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG,QAIzD;AAED,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,GAAG,QAIhE"}
|
package/types/video.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export declare class VideoUtil {
|
|
2
|
+
video: HTMLVideoElement | HTMLAudioElement;
|
|
3
|
+
constructor(video: HTMLVideoElement | HTMLAudioElement);
|
|
4
|
+
setSrcObject(mediaStream: MediaStream): void;
|
|
2
5
|
static tryAutoPlayOrAutoPlayAfterClick(video: HTMLVideoElement | HTMLAudioElement): Promise<boolean>;
|
|
3
6
|
static setAutoPlayWhenClick(video: HTMLVideoElement | HTMLAudioElement): void;
|
|
4
7
|
}
|
|
8
|
+
export default VideoUtil;
|
|
5
9
|
//# sourceMappingURL=video.d.ts.map
|
package/types/video.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../src/video.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAS;IACpB,MAAM,CAAC,+BAA+B,CACpC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB;IAiB5C,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB;CAUvE"}
|
|
1
|
+
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../src/video.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAS;IACpB,KAAK,EAAE,gBAAgB,GAAG,gBAAgB,CAAC;gBAE/B,KAAK,EAAE,gBAAgB,GAAG,gBAAgB;IAItD,YAAY,CAAC,WAAW,EAAE,WAAW;IAarC,MAAM,CAAC,+BAA+B,CACpC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB;IAiB5C,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,gBAAgB,GAAG,gBAAgB;CAUvE;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/webgl/index.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAa;IACxB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,EAAE,EAAE,gBAAgB,GAAG,IAAI,CAAC;gBAEhB,MAAM,EAAE,iBAAiB;CAQtC;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare function maybeFixConfiguration(pcConfig: any): void;
|
|
2
|
+
declare var RTCPeerConnection: any;
|
|
3
|
+
declare var getUserMedia: any;
|
|
4
|
+
declare var attachMediaStream: any;
|
|
5
|
+
declare var reattachMediaStream: any;
|
|
6
|
+
declare var webrtcDetectedBrowser: any;
|
|
7
|
+
declare var webrtcDetectedVersion: any;
|
|
8
|
+
declare var result: RegExpMatchArray | null;
|
|
9
|
+
//# sourceMappingURL=adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../src/webrtc/adapter.js"],"names":[],"mappings":"AAoBA,4DAUC;AAjBD,mCAA6B;AAC7B,8BAAwB;AACxB,mCAA6B;AAC7B,qCAA+B;AAC/B,uCAAiC;AACjC,uCAAiC;AA8G/B,4CAAmE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import "./adapter";
|
|
2
|
+
import { VideoUtil } from "../video";
|
|
3
|
+
export declare class WebRTCClient {
|
|
4
|
+
localVideoUtil: VideoUtil;
|
|
5
|
+
remoteVideoUtil: VideoUtil;
|
|
6
|
+
localPeerConnection: RTCPeerConnection | null;
|
|
7
|
+
remotePeerConnection: RTCPeerConnection | null;
|
|
8
|
+
constructor(localVideoEl: HTMLVideoElement, remoteVideoEl: HTMLVideoElement);
|
|
9
|
+
start(): void;
|
|
10
|
+
end(): void;
|
|
11
|
+
getLocalMediaStream(): Promise<MediaStream>;
|
|
12
|
+
gotRemoteMediaStream(event: RTCTrackEvent): void;
|
|
13
|
+
call(localStream: MediaStream): void;
|
|
14
|
+
handleConnection(event: RTCPeerConnectionIceEvent): void;
|
|
15
|
+
handleConnectionSuccess(peerConnection: RTCPeerConnection): void;
|
|
16
|
+
handleConnectionFailure(peerConnection: RTCPeerConnection, error: any): void;
|
|
17
|
+
handleConnectionChange(event: Event): void;
|
|
18
|
+
createdOffer(description: RTCSessionDescriptionInit): void;
|
|
19
|
+
createdAnswer(description: RTCSessionDescriptionInit): void;
|
|
20
|
+
setSessionDescriptionError(error: any): void;
|
|
21
|
+
setDescriptionSuccess(peerConnection: RTCPeerConnection, functionName: string): void;
|
|
22
|
+
setLocalDescriptionSuccess(peerConnection: RTCPeerConnection): void;
|
|
23
|
+
setRemoteDescriptionSuccess(peerConnection: RTCPeerConnection): void;
|
|
24
|
+
trace(text: string): void;
|
|
25
|
+
getOtherPeer(peerConnection: RTCPeerConnection): RTCPeerConnection | null;
|
|
26
|
+
getPeerName(peerConnection: RTCPeerConnection): "localPeerConnection" | "remotePeerConnection";
|
|
27
|
+
}
|
|
28
|
+
export default WebRTCClient;
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/webrtc/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,CAAC;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,qBAAa,YAAY;IACvB,cAAc,EAAE,SAAS,CAAC;IAC1B,eAAe,EAAE,SAAS,CAAC;IAC3B,mBAAmB,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IACrD,oBAAoB,EAAE,iBAAiB,GAAG,IAAI,CAAQ;gBAE1C,YAAY,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB;IAK3E,KAAK;IAML,GAAG;IAQH,mBAAmB;IAkBnB,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAMzC,IAAI,CAAC,WAAW,EAAE,WAAW;IAiD7B,gBAAgB,CAAC,KAAK,EAAE,yBAAyB;IAyBjD,uBAAuB,CAAC,cAAc,EAAE,iBAAiB;IAIzD,uBAAuB,CAAC,cAAc,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG;IAOrE,sBAAsB,CAAC,KAAK,EAAE,KAAK;IAWnC,YAAY,CAAC,WAAW,EAAE,yBAAyB;IA8BnD,aAAa,CAAC,WAAW,EAAE,yBAAyB;IAwBpD,0BAA0B,CAAC,KAAK,EAAE,GAAG;IAIrC,qBAAqB,CACnB,cAAc,EAAE,iBAAiB,EACjC,YAAY,EAAE,MAAM;IAMtB,0BAA0B,CAAC,cAAc,EAAE,iBAAiB;IAI5D,2BAA2B,CAAC,cAAc,EAAE,iBAAiB;IAI7D,KAAK,CAAC,IAAI,EAAE,MAAM;IASlB,YAAY,CAAC,cAAc,EAAE,iBAAiB;IAM9C,WAAW,CAAC,cAAc,EAAE,iBAAiB;CAK9C;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare class DOMKeyboardKeyCode {
|
|
2
|
-
static getEvent(event: KeyboardEvent): {
|
|
3
|
-
code: number;
|
|
4
|
-
key: string;
|
|
5
|
-
};
|
|
6
|
-
static keyToCode(keyName: string): number;
|
|
7
|
-
static codeToKey(code: number): string;
|
|
8
|
-
private static keyToCodes;
|
|
9
|
-
private static codeToKeys;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=DOMKeyboardKeyCode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DOMKeyboardKeyCode.d.ts","sourceRoot":"","sources":["../src/DOMKeyboardKeyCode.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAkB;WACf,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE;WAiB7D,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;WAqBlC,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAa7C,OAAO,CAAC,MAAM,CAAC,UAAU,CAyGvB;IAEF,OAAO,CAAC,MAAM,CAAC,UAAU,CAyGvB;CACH"}
|
package/types/cookie.d.ts
DELETED
package/types/cookie.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cookie.d.ts","sourceRoot":"","sources":["../src/cookie.js"],"names":[],"mappings":"AAAA,sEAKC;AAED,8CASC;AAGM,sCAIsE;AAGtE,qCAQF"}
|
package/types/error.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare class BaseError extends Error {
|
|
2
|
-
cause?: Error;
|
|
3
|
-
constructor(message: string, options?: ErrorOptions);
|
|
4
|
-
}
|
|
5
|
-
export declare class EnvironmentError extends BaseError {
|
|
6
|
-
constructor();
|
|
7
|
-
}
|
|
8
|
-
export declare class FileSelectCancelError extends BaseError {
|
|
9
|
-
constructor();
|
|
10
|
-
}
|
|
11
|
-
export declare class IllegalFileError extends BaseError {
|
|
12
|
-
accepts: string[];
|
|
13
|
-
constructor(accepts: string[]);
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=error.d.ts.map
|
package/types/error.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../src/error.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAU,SAAQ,KAAK;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC;gBAEF,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD;AAED,qBAAa,gBAAiB,SAAQ,SAAS;;CAI9C;AAED,qBAAa,qBAAsB,SAAQ,SAAS;;CAInD;AAED,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,OAAO,EAAE,MAAM,EAAE,CAAC;gBAEN,OAAO,EAAE,MAAM,EAAE;CAI9B"}
|
package/types/localstorage.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"localstorage.d.ts","sourceRoot":"","sources":["../src/localstorage.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,6BASrD;AAED,wBAAgB,QAAQ,CAAC,KAAK,SAAK,QASlC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"onDocumentReady.d.ts","sourceRoot":"","sources":["../src/onDocumentReady.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,IAAI,QAU7C"}
|
package/types/patchDOM.d.ts
DELETED
package/types/patchDOM.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"patchDOM.d.ts","sourceRoot":"","sources":["../src/patchDOM.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CACtB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,WAAW,QAmDpB"}
|
package/types/scroll.d.ts
DELETED
package/types/scroll.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scroll.d.ts","sourceRoot":"","sources":["../src/scroll.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,cAAc;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,SAClB,CAAC;AAE1C,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,iBAAiB,QAM7D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sprite-math/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../src/sprite-math/matrix.ts"],"names":[],"mappings":"AAEA,cAAM,MAAM;IACV,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;gBAQlD,CAAC,GAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAsB;IAK1E,IAAI;IAKJ,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;IA4BrE,OAAO;IA0BP,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAQ9B,MAAM,CAAC,GAAG,EAAE,MAAM;IAYlB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,SAAI;IAa3B,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;IAI5B,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;IASrC,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;CAQvC;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vector.d.ts","sourceRoot":"","sources":["../../src/sprite-math/vector.ts"],"names":[],"mappings":"AAAA,cAAM,MAAM;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;gBAEE,EAAE,WAAY,EAAE,EAAE,WAAY;IAS1C,IAAI,MAAM,WAGT;IAED,IAAI;IAKJ,GAAG,CAAC,CAAC,EAAE,MAAM;IAIb,KAAK,CAAC,CAAC,EAAE,MAAM;CAchB;AAED,eAAe,MAAM,CAAC"}
|
package/types/visual_util.d.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
export type VisualPoint = {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
radius?: number;
|
|
5
|
-
};
|
|
6
|
-
export type VisualRect = {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
width: number;
|
|
10
|
-
height: number;
|
|
11
|
-
};
|
|
12
|
-
export type VisualPolygon = VisualPoint[];
|
|
13
|
-
export type VisualPointerEvent = {
|
|
14
|
-
x: number;
|
|
15
|
-
y: number;
|
|
16
|
-
isDown: boolean;
|
|
17
|
-
};
|
|
18
|
-
export type VisualKeyboardEvent = {
|
|
19
|
-
code: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const angle2radian: (angle: number) => number;
|
|
22
|
-
export declare const radian2angle: (radian: number) => number;
|
|
23
|
-
export declare const pointDistance: (p1: VisualPoint, p2: VisualPoint) => number;
|
|
24
|
-
export declare const pointMiddle: (p1: VisualPoint, p2: VisualPoint) => VisualPoint;
|
|
25
|
-
export declare const pointRotationRadian: (source: VisualPoint, dest: VisualPoint) => number;
|
|
26
|
-
export declare const newPointDependOnLengthAndRotation: (length: number, radian: number) => {
|
|
27
|
-
x: number;
|
|
28
|
-
y: number;
|
|
29
|
-
};
|
|
30
|
-
export declare const nextFramePoint: (p: VisualPoint & {
|
|
31
|
-
vx: number;
|
|
32
|
-
vy: number;
|
|
33
|
-
ax?: number;
|
|
34
|
-
ay?: number;
|
|
35
|
-
}, gravity?: number, friction?: number) => void;
|
|
36
|
-
export declare const nextFramePointEaseToTarget: (p: VisualPoint & {
|
|
37
|
-
vx: number;
|
|
38
|
-
vy: number;
|
|
39
|
-
}, target: VisualPoint, easing?: number, friction?: number, gravity?: number) => void;
|
|
40
|
-
export declare const nextFramePointSpringToTarget: (p: VisualPoint & {
|
|
41
|
-
vx: number;
|
|
42
|
-
vy: number;
|
|
43
|
-
}, target: VisualPoint | VisualPoint[], spring?: number, friction?: number, gravity?: number) => void;
|
|
44
|
-
export declare const nextFramePointSpringConnect: (p1: VisualPoint & {
|
|
45
|
-
vx: number;
|
|
46
|
-
vy: number;
|
|
47
|
-
}, p2: VisualPoint & {
|
|
48
|
-
vx: number;
|
|
49
|
-
vy: number;
|
|
50
|
-
}, springLength?: number, spring?: number, friction?: number, gravity?: number) => void;
|
|
51
|
-
export declare function trackVelocity(oldPoint: VisualPoint, newPoint: VisualPoint): {
|
|
52
|
-
vx: number;
|
|
53
|
-
vy: number;
|
|
54
|
-
};
|
|
55
|
-
export declare const isRectIntersectRect: (rectA: VisualRect, rectB: VisualRect) => boolean;
|
|
56
|
-
export declare const isRectContainPoint: (rect: VisualRect, p: VisualPoint) => boolean;
|
|
57
|
-
export declare const isPolygonContainPoint: (area: VisualPolygon, point: VisualPoint) => boolean;
|
|
58
|
-
export declare function rotate(x: number, y: number, sin: number, cos: number, reverse?: boolean): {
|
|
59
|
-
x: number;
|
|
60
|
-
y: number;
|
|
61
|
-
};
|
|
62
|
-
export declare function checkAnimatedPointCollision(ball0: Required<VisualPoint> & {
|
|
63
|
-
vx: number;
|
|
64
|
-
vy: number;
|
|
65
|
-
mass: number;
|
|
66
|
-
}, ball1: Required<VisualPoint> & {
|
|
67
|
-
vx: number;
|
|
68
|
-
vy: number;
|
|
69
|
-
mass: number;
|
|
70
|
-
}): void;
|
|
71
|
-
export declare function checkAnimatedPointWalls(ball: Required<VisualPoint> & {
|
|
72
|
-
vx: number;
|
|
73
|
-
vy: number;
|
|
74
|
-
}, left: number | undefined, top: number | undefined, right: number, bottom: number, bounce?: number): void;
|
|
75
|
-
export declare const isHexColor: (color: string) => boolean;
|
|
76
|
-
export declare const randomColorNumber: () => number;
|
|
77
|
-
export declare const randomColorHex: () => string;
|
|
78
|
-
export declare const randomColorHex2: () => string;
|
|
79
|
-
export declare const parseColor: (color: number | string, toNumber: boolean) => string | number;
|
|
80
|
-
export declare const colorToRGB: (color: number | string, alpha: number) => string;
|
|
81
|
-
export declare const RGBToHex: (rgb: string) => string;
|
|
82
|
-
export declare const captureKeyboard: () => VisualKeyboardEvent;
|
|
83
|
-
export declare const captureMouse: (element: HTMLElement) => VisualPointerEvent;
|
|
84
|
-
export declare const captureTouch: (element: HTMLElement) => VisualPointerEvent;
|
|
85
|
-
export declare const capturePointer: (element: HTMLElement) => VisualPointerEvent;
|
|
86
|
-
//# sourceMappingURL=visual_util.d.ts.map
|