cortico-world-hands 0.20.43 → 0.20.44
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1487,8 +1487,8 @@ var Hands = class {
|
|
|
1487
1487
|
const cfg = this.cfg();
|
|
1488
1488
|
const credential = this.readToken();
|
|
1489
1489
|
const t = credential ? `t=${encodeURIComponent(credential)}` : "";
|
|
1490
|
-
const
|
|
1491
|
-
const res = await post(this.port(cfg.handPort), `/canvas/text?${t}`,
|
|
1490
|
+
const q = `text=${encodeURIComponent(text)}&x=${x}&y=${y}&size=${size}&color=${encodeURIComponent(color)}`;
|
|
1491
|
+
const res = await post(this.port(cfg.handPort), `/canvas/text?${q}&${t}`, "", 15e3);
|
|
1492
1492
|
return res.body.toString("utf8");
|
|
1493
1493
|
}
|
|
1494
1494
|
/** 画板:撤销 / 清空 / 保存 / 列表。 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cortico-world-hands",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.44",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Cortico World: hands for the desktop pet — looks at the phone screen, then taps, swipes, pinches, drags, types and presses keys through whatever actuator the device actually has",
|
|
6
6
|
"license": "MIT",
|