clickgo 3.16.15 → 3.16.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/README.md +1 -1
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/control/arteditor.cgc +0 -0
- package/dist/control/box.cgc +0 -0
- package/dist/control/captcha.cgc +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/control/desc.cgc +0 -0
- package/dist/control/drawer.cgc +0 -0
- package/dist/control/echarts.cgc +0 -0
- package/dist/control/form.cgc +0 -0
- package/dist/control/iconview.cgc +0 -0
- package/dist/control/jodit.cgc +0 -0
- package/dist/control/map.cgc +0 -0
- package/dist/control/monaco.cgc +0 -0
- package/dist/control/mpegts.cgc +0 -0
- package/dist/control/nav.cgc +0 -0
- package/dist/control/page.cgc +0 -0
- package/dist/control/pdf.cgc +0 -0
- package/dist/control/property.cgc +0 -0
- package/dist/control/qrcode.cgc +0 -0
- package/dist/control/table.cgc +0 -0
- package/dist/control/task.cgc +0 -0
- package/dist/control/tplink.cgc +0 -0
- package/dist/control/tuieditor.cgc +0 -0
- package/dist/control/tuiviewer.cgc +0 -0
- package/dist/control/xterm.cgc +0 -0
- package/dist/lib/dom.js +7 -7
- package/dist/lib/dom.ts +3 -3
- package/dist/theme/blue.cgt +0 -0
- package/dist/theme/byterun.cgt +0 -0
- package/dist/theme/light.cgt +0 -0
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Load the module loader first, and then load it using the module loader.
|
|
|
25
25
|
**index.html**
|
|
26
26
|
|
|
27
27
|
```html
|
|
28
|
-
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.8/dist/loader.min.js?path=index&npm={'clickgo':'3.16.
|
|
28
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.8/dist/loader.min.js?path=index&npm={'clickgo':'3.16.17'}"></script>
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
**index.js**
|
package/dist/clickgo.js
CHANGED
package/dist/clickgo.ts
CHANGED
|
Binary file
|
package/dist/control/box.cgc
CHANGED
|
Binary file
|
package/dist/control/captcha.cgc
CHANGED
|
Binary file
|
package/dist/control/common.cgc
CHANGED
|
Binary file
|
package/dist/control/desc.cgc
CHANGED
|
Binary file
|
package/dist/control/drawer.cgc
CHANGED
|
Binary file
|
package/dist/control/echarts.cgc
CHANGED
|
Binary file
|
package/dist/control/form.cgc
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/control/jodit.cgc
CHANGED
|
Binary file
|
package/dist/control/map.cgc
CHANGED
|
Binary file
|
package/dist/control/monaco.cgc
CHANGED
|
Binary file
|
package/dist/control/mpegts.cgc
CHANGED
|
Binary file
|
package/dist/control/nav.cgc
CHANGED
|
Binary file
|
package/dist/control/page.cgc
CHANGED
|
Binary file
|
package/dist/control/pdf.cgc
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/control/qrcode.cgc
CHANGED
|
Binary file
|
package/dist/control/table.cgc
CHANGED
|
Binary file
|
package/dist/control/task.cgc
CHANGED
|
Binary file
|
package/dist/control/tplink.cgc
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/control/xterm.cgc
CHANGED
|
Binary file
|
package/dist/lib/dom.js
CHANGED
|
@@ -154,7 +154,7 @@ function hasTouchButMouse(e) {
|
|
|
154
154
|
return true;
|
|
155
155
|
}
|
|
156
156
|
const now = Date.now();
|
|
157
|
-
if (now - lastTouchTime <
|
|
157
|
+
if (now - lastTouchTime < 60000) {
|
|
158
158
|
return true;
|
|
159
159
|
}
|
|
160
160
|
return false;
|
|
@@ -1650,7 +1650,7 @@ window.addEventListener('keyup', function (e) {
|
|
|
1650
1650
|
core.trigger('keyup', e);
|
|
1651
1651
|
});
|
|
1652
1652
|
function bindMove(e, opt) {
|
|
1653
|
-
var _a, _b, _c, _d;
|
|
1653
|
+
var _a, _b, _c, _d, _e;
|
|
1654
1654
|
if (hasTouchButMouse(e)) {
|
|
1655
1655
|
return {
|
|
1656
1656
|
'left': 0,
|
|
@@ -1660,7 +1660,7 @@ function bindMove(e, opt) {
|
|
|
1660
1660
|
};
|
|
1661
1661
|
}
|
|
1662
1662
|
exports.is.move = true;
|
|
1663
|
-
setGlobalCursor(opt.cursor ?
|
|
1663
|
+
setGlobalCursor((_a = opt.cursor) !== null && _a !== void 0 ? _a : getComputedStyle(e.target).cursor);
|
|
1664
1664
|
let tx = e instanceof MouseEvent ? e.clientX : e.touches[0].clientX;
|
|
1665
1665
|
let ty = e instanceof MouseEvent ? e.clientY : e.touches[0].clientY;
|
|
1666
1666
|
let left, top, right, bottom;
|
|
@@ -1679,10 +1679,10 @@ function bindMove(e, opt) {
|
|
|
1679
1679
|
}
|
|
1680
1680
|
else {
|
|
1681
1681
|
const area = core.getAvailArea();
|
|
1682
|
-
left = (
|
|
1683
|
-
top = (
|
|
1684
|
-
right = (
|
|
1685
|
-
bottom = (
|
|
1682
|
+
left = (_b = opt.left) !== null && _b !== void 0 ? _b : area.left;
|
|
1683
|
+
top = (_c = opt.top) !== null && _c !== void 0 ? _c : area.top;
|
|
1684
|
+
right = (_d = opt.right) !== null && _d !== void 0 ? _d : area.width;
|
|
1685
|
+
bottom = (_e = opt.bottom) !== null && _e !== void 0 ? _e : area.height;
|
|
1686
1686
|
}
|
|
1687
1687
|
if (opt.offsetLeft) {
|
|
1688
1688
|
left += opt.offsetLeft;
|
package/dist/lib/dom.ts
CHANGED
|
@@ -100,8 +100,8 @@ export function hasTouchButMouse(e: MouseEvent | TouchEvent | PointerEvent): boo
|
|
|
100
100
|
return true;
|
|
101
101
|
}
|
|
102
102
|
const now = Date.now();
|
|
103
|
-
if (now - lastTouchTime <
|
|
104
|
-
// --- 当前是 mouse 但是
|
|
103
|
+
if (now - lastTouchTime < 60_000) {
|
|
104
|
+
// --- 当前是 mouse 但是 60_000ms 内有 touch start ---
|
|
105
105
|
return true;
|
|
106
106
|
}
|
|
107
107
|
return false;
|
|
@@ -2094,7 +2094,7 @@ export function bindMove(e: MouseEvent | TouchEvent, opt: types.IBindMoveOptions
|
|
|
2094
2094
|
};
|
|
2095
2095
|
}
|
|
2096
2096
|
is.move = true;
|
|
2097
|
-
setGlobalCursor(opt.cursor
|
|
2097
|
+
setGlobalCursor(opt.cursor ?? getComputedStyle(e.target as Element).cursor);
|
|
2098
2098
|
/** --- 上一次的 x 坐标 --- */
|
|
2099
2099
|
let tx: number = e instanceof MouseEvent ? e.clientX : e.touches[0].clientX;
|
|
2100
2100
|
/** --- 上一次的 y 坐标 --- */
|
package/dist/theme/blue.cgt
CHANGED
|
Binary file
|
package/dist/theme/byterun.cgt
CHANGED
|
Binary file
|
package/dist/theme/light.cgt
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clickgo",
|
|
3
|
-
"version": "3.16.
|
|
3
|
+
"version": "3.16.17",
|
|
4
4
|
"description": "Background interface, software interface, mobile phone APP interface operation library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deskrt",
|
|
@@ -19,11 +19,13 @@
|
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@litert/eslint-plugin-rules": "^0.3.1",
|
|
22
|
-
"@
|
|
23
|
-
"@types/node": "^24.0.1",
|
|
22
|
+
"@types/node": "^24.0.3",
|
|
24
23
|
"electron": "^36.4.0",
|
|
25
|
-
"
|
|
26
|
-
"terser": "^5.42.0",
|
|
24
|
+
"terser": "^5.43.0",
|
|
27
25
|
"typescript": "^5.8.3"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@litert/loader": "^3.5.9",
|
|
29
|
+
"jszip": "^3.10.1"
|
|
28
30
|
}
|
|
29
31
|
}
|