deepsky 2.25.4 → 2.28.2
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/a182a6cb545f72f36fa4.woff2 +0 -0
- package/dist/fonts/iconfont-47f3d6ad7dc7dff10831.woff +0 -0
- package/dist/fonts/{iconfont-122f729edaf3fca9a486.ttf → iconfont-ec8908f735ed475031f1.ttf} +0 -0
- package/dist/index.css +781 -775
- package/dist/index.d.ts +920 -890
- package/dist/index.js +2 -2
- package/dist/index.js.LICENSE.txt +9 -0
- package/package.json +1 -1
- package/dist/74a02454579003378aae.woff2 +0 -0
- package/dist/fonts/iconfont-3f25c53463fc3543196d.woff +0 -0
- /package/dist/chunk/{1037-2db24ea86d7ba8077473.js → 1037-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1066-2db24ea86d7ba8077473.js → 1066-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1216-2db24ea86d7ba8077473.js → 1216-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1230-2db24ea86d7ba8077473.js → 1230-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1425-2db24ea86d7ba8077473.js → 1425-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1432-2db24ea86d7ba8077473.js → 1432-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1476-2db24ea86d7ba8077473.js → 1476-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1545-2db24ea86d7ba8077473.js → 1545-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{16-2db24ea86d7ba8077473.js → 16-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1624-2db24ea86d7ba8077473.js → 1624-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1631-2db24ea86d7ba8077473.js → 1631-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1655-2db24ea86d7ba8077473.js → 1655-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1708-2db24ea86d7ba8077473.js → 1708-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{172-2db24ea86d7ba8077473.js → 172-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1729-2db24ea86d7ba8077473.js → 1729-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1757-2db24ea86d7ba8077473.js → 1757-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1803-2db24ea86d7ba8077473.js → 1803-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1839-2db24ea86d7ba8077473.js → 1839-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1857-2db24ea86d7ba8077473.js → 1857-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1931-2db24ea86d7ba8077473.js → 1931-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2062-2db24ea86d7ba8077473.js → 2062-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2068-2db24ea86d7ba8077473.js → 2068-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2071-2db24ea86d7ba8077473.js → 2071-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2108-2db24ea86d7ba8077473.js → 2108-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{212-2db24ea86d7ba8077473.js → 212-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2142-2db24ea86d7ba8077473.js → 2142-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2173-2db24ea86d7ba8077473.js → 2173-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2184-2db24ea86d7ba8077473.js → 2184-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2215-2db24ea86d7ba8077473.js → 2215-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{224-2db24ea86d7ba8077473.js → 224-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2266-2db24ea86d7ba8077473.js → 2266-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2354-2db24ea86d7ba8077473.js → 2354-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2419-2db24ea86d7ba8077473.js → 2419-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{245-2db24ea86d7ba8077473.js → 245-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2473-2db24ea86d7ba8077473.js → 2473-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2492-2db24ea86d7ba8077473.js → 2492-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2505-2db24ea86d7ba8077473.js → 2505-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2535-2db24ea86d7ba8077473.js → 2535-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2660-2db24ea86d7ba8077473.js → 2660-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2691-2db24ea86d7ba8077473.js → 2691-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2723-2db24ea86d7ba8077473.js → 2723-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{284-2db24ea86d7ba8077473.js → 284-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2860-2db24ea86d7ba8077473.js → 2860-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2861-2db24ea86d7ba8077473.js → 2861-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2934-2db24ea86d7ba8077473.js → 2934-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3032-2db24ea86d7ba8077473.js → 3032-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3043-2db24ea86d7ba8077473.js → 3043-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3052-2db24ea86d7ba8077473.js → 3052-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3124-2db24ea86d7ba8077473.js → 3124-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3170-2db24ea86d7ba8077473.js → 3170-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{321-2db24ea86d7ba8077473.js → 321-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3227-2db24ea86d7ba8077473.js → 3227-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3247-2db24ea86d7ba8077473.js → 3247-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{327-2db24ea86d7ba8077473.js → 327-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3279-2db24ea86d7ba8077473.js → 3279-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3330-2db24ea86d7ba8077473.js → 3330-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3403-2db24ea86d7ba8077473.js → 3403-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3454-2db24ea86d7ba8077473.js → 3454-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3492-2db24ea86d7ba8077473.js → 3492-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3516-2db24ea86d7ba8077473.js → 3516-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3593-2db24ea86d7ba8077473.js → 3593-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3646-2db24ea86d7ba8077473.js → 3646-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3702-2db24ea86d7ba8077473.js → 3702-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3720-2db24ea86d7ba8077473.js → 3720-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3837-2db24ea86d7ba8077473.js → 3837-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3874-2db24ea86d7ba8077473.js → 3874-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3894-2db24ea86d7ba8077473.js → 3894-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3906-2db24ea86d7ba8077473.js → 3906-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3941-2db24ea86d7ba8077473.js → 3941-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3947-2db24ea86d7ba8077473.js → 3947-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3949-2db24ea86d7ba8077473.js → 3949-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{396-2db24ea86d7ba8077473.js → 396-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3972-2db24ea86d7ba8077473.js → 3972-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4007-2db24ea86d7ba8077473.js → 4007-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4009-2db24ea86d7ba8077473.js → 4009-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{402-2db24ea86d7ba8077473.js → 402-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4081-2db24ea86d7ba8077473.js → 4081-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{41-2db24ea86d7ba8077473.js → 41-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4108-2db24ea86d7ba8077473.js → 4108-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4112-2db24ea86d7ba8077473.js → 4112-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{415-2db24ea86d7ba8077473.js → 415-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4199-2db24ea86d7ba8077473.js → 4199-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4214-2db24ea86d7ba8077473.js → 4214-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4236-2db24ea86d7ba8077473.js → 4236-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4283-2db24ea86d7ba8077473.js → 4283-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4292-2db24ea86d7ba8077473.js → 4292-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4311-2db24ea86d7ba8077473.js → 4311-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4354-2db24ea86d7ba8077473.js → 4354-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4385-2db24ea86d7ba8077473.js → 4385-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4408-2db24ea86d7ba8077473.js → 4408-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4445-2db24ea86d7ba8077473.js → 4445-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4451-2db24ea86d7ba8077473.js → 4451-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4452-2db24ea86d7ba8077473.js → 4452-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4465-2db24ea86d7ba8077473.js → 4465-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4520-2db24ea86d7ba8077473.js → 4520-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{454-2db24ea86d7ba8077473.js → 454-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4546-2db24ea86d7ba8077473.js → 4546-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4552-2db24ea86d7ba8077473.js → 4552-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4598-2db24ea86d7ba8077473.js → 4598-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4614-2db24ea86d7ba8077473.js → 4614-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4660-2db24ea86d7ba8077473.js → 4660-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4697-2db24ea86d7ba8077473.js → 4697-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4709-2db24ea86d7ba8077473.js → 4709-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4714-2db24ea86d7ba8077473.js → 4714-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4780-2db24ea86d7ba8077473.js → 4780-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4838-2db24ea86d7ba8077473.js → 4838-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4843-2db24ea86d7ba8077473.js → 4843-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4862-2db24ea86d7ba8077473.js → 4862-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4877-2db24ea86d7ba8077473.js → 4877-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4886-2db24ea86d7ba8077473.js → 4886-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{489-2db24ea86d7ba8077473.js → 489-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4914-2db24ea86d7ba8077473.js → 4914-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4940-2db24ea86d7ba8077473.js → 4940-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4962-2db24ea86d7ba8077473.js → 4962-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5026-2db24ea86d7ba8077473.js → 5026-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5034-2db24ea86d7ba8077473.js → 5034-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5050-2db24ea86d7ba8077473.js → 5050-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5099-2db24ea86d7ba8077473.js → 5099-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5119-2db24ea86d7ba8077473.js → 5119-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5141-2db24ea86d7ba8077473.js → 5141-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5143-2db24ea86d7ba8077473.js → 5143-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5177-2db24ea86d7ba8077473.js → 5177-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5203-2db24ea86d7ba8077473.js → 5203-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5283-2db24ea86d7ba8077473.js → 5283-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5314-2db24ea86d7ba8077473.js → 5314-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{535-2db24ea86d7ba8077473.js → 535-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5363-2db24ea86d7ba8077473.js → 5363-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{542-2db24ea86d7ba8077473.js → 542-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5424-2db24ea86d7ba8077473.js → 5424-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5443-2db24ea86d7ba8077473.js → 5443-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5521-2db24ea86d7ba8077473.js → 5521-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5536-2db24ea86d7ba8077473.js → 5536-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5542-2db24ea86d7ba8077473.js → 5542-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5585-2db24ea86d7ba8077473.js → 5585-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5589-2db24ea86d7ba8077473.js → 5589-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5601-2db24ea86d7ba8077473.js → 5601-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5611-2db24ea86d7ba8077473.js → 5611-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5628-2db24ea86d7ba8077473.js → 5628-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5638-2db24ea86d7ba8077473.js → 5638-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5647-2db24ea86d7ba8077473.js → 5647-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5709-2db24ea86d7ba8077473.js → 5709-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5728-2db24ea86d7ba8077473.js → 5728-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5731-2db24ea86d7ba8077473.js → 5731-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5744-2db24ea86d7ba8077473.js → 5744-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5814-2db24ea86d7ba8077473.js → 5814-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5827-2db24ea86d7ba8077473.js → 5827-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5884-2db24ea86d7ba8077473.js → 5884-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5891-2db24ea86d7ba8077473.js → 5891-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5936-2db24ea86d7ba8077473.js → 5936-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5954-2db24ea86d7ba8077473.js → 5954-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6010-2db24ea86d7ba8077473.js → 6010-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6045-2db24ea86d7ba8077473.js → 6045-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6083-2db24ea86d7ba8077473.js → 6083-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6124-2db24ea86d7ba8077473.js → 6124-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6173-2db24ea86d7ba8077473.js → 6173-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6239-2db24ea86d7ba8077473.js → 6239-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6262-2db24ea86d7ba8077473.js → 6262-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6283-2db24ea86d7ba8077473.js → 6283-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6297-2db24ea86d7ba8077473.js → 6297-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6324-2db24ea86d7ba8077473.js → 6324-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6343-2db24ea86d7ba8077473.js → 6343-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6356-2db24ea86d7ba8077473.js → 6356-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{638-2db24ea86d7ba8077473.js → 638-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6405-2db24ea86d7ba8077473.js → 6405-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6514-2db24ea86d7ba8077473.js → 6514-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6517-2db24ea86d7ba8077473.js → 6517-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6563-2db24ea86d7ba8077473.js → 6563-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6577-2db24ea86d7ba8077473.js → 6577-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6677-2db24ea86d7ba8077473.js → 6677-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6736-2db24ea86d7ba8077473.js → 6736-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6757-2db24ea86d7ba8077473.js → 6757-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6865-2db24ea86d7ba8077473.js → 6865-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6940-2db24ea86d7ba8077473.js → 6940-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6957-2db24ea86d7ba8077473.js → 6957-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6964-2db24ea86d7ba8077473.js → 6964-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6967-2db24ea86d7ba8077473.js → 6967-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{697-2db24ea86d7ba8077473.js → 697-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6980-2db24ea86d7ba8077473.js → 6980-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7095-2db24ea86d7ba8077473.js → 7095-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7141-2db24ea86d7ba8077473.js → 7141-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7145-2db24ea86d7ba8077473.js → 7145-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7148-2db24ea86d7ba8077473.js → 7148-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7217-2db24ea86d7ba8077473.js → 7217-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7258-2db24ea86d7ba8077473.js → 7258-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7328-2db24ea86d7ba8077473.js → 7328-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7374-2db24ea86d7ba8077473.js → 7374-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7434-2db24ea86d7ba8077473.js → 7434-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7470-2db24ea86d7ba8077473.js → 7470-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7504-2db24ea86d7ba8077473.js → 7504-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{753-2db24ea86d7ba8077473.js → 753-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7549-2db24ea86d7ba8077473.js → 7549-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7561-2db24ea86d7ba8077473.js → 7561-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7567-2db24ea86d7ba8077473.js → 7567-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7611-2db24ea86d7ba8077473.js → 7611-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7615-2db24ea86d7ba8077473.js → 7615-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7625-2db24ea86d7ba8077473.js → 7625-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7642-2db24ea86d7ba8077473.js → 7642-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7670-2db24ea86d7ba8077473.js → 7670-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7681-2db24ea86d7ba8077473.js → 7681-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7688-2db24ea86d7ba8077473.js → 7688-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7765-2db24ea86d7ba8077473.js → 7765-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7768-2db24ea86d7ba8077473.js → 7768-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7788-2db24ea86d7ba8077473.js → 7788-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7789-2db24ea86d7ba8077473.js → 7789-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{780-2db24ea86d7ba8077473.js → 780-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7817-2db24ea86d7ba8077473.js → 7817-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7824-2db24ea86d7ba8077473.js → 7824-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7831-2db24ea86d7ba8077473.js → 7831-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7900-2db24ea86d7ba8077473.js → 7900-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7922-2db24ea86d7ba8077473.js → 7922-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7927-2db24ea86d7ba8077473.js → 7927-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{794-2db24ea86d7ba8077473.js → 794-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7966-2db24ea86d7ba8077473.js → 7966-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8003-2db24ea86d7ba8077473.js → 8003-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8093-2db24ea86d7ba8077473.js → 8093-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8107-2db24ea86d7ba8077473.js → 8107-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8201-2db24ea86d7ba8077473.js → 8201-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8212-2db24ea86d7ba8077473.js → 8212-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8234-2db24ea86d7ba8077473.js → 8234-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8235-2db24ea86d7ba8077473.js → 8235-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8237-2db24ea86d7ba8077473.js → 8237-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8249-2db24ea86d7ba8077473.js → 8249-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8320-2db24ea86d7ba8077473.js → 8320-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8389-2db24ea86d7ba8077473.js → 8389-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8393-2db24ea86d7ba8077473.js → 8393-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8418-2db24ea86d7ba8077473.js → 8418-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8426-2db24ea86d7ba8077473.js → 8426-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8436-2db24ea86d7ba8077473.js → 8436-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{845-2db24ea86d7ba8077473.js → 845-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8485-2db24ea86d7ba8077473.js → 8485-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8499-2db24ea86d7ba8077473.js → 8499-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8553-2db24ea86d7ba8077473.js → 8553-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8617-2db24ea86d7ba8077473.js → 8617-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8684-2db24ea86d7ba8077473.js → 8684-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8700-2db24ea86d7ba8077473.js → 8700-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8709-2db24ea86d7ba8077473.js → 8709-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8711-2db24ea86d7ba8077473.js → 8711-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{874-2db24ea86d7ba8077473.js → 874-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8753-2db24ea86d7ba8077473.js → 8753-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8849-2db24ea86d7ba8077473.js → 8849-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8931-2db24ea86d7ba8077473.js → 8931-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9017-2db24ea86d7ba8077473.js → 9017-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9045-2db24ea86d7ba8077473.js → 9045-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9057-2db24ea86d7ba8077473.js → 9057-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9077-2db24ea86d7ba8077473.js → 9077-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9079-2db24ea86d7ba8077473.js → 9079-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9096-2db24ea86d7ba8077473.js → 9096-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9104-2db24ea86d7ba8077473.js → 9104-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{914-2db24ea86d7ba8077473.js → 914-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9175-2db24ea86d7ba8077473.js → 9175-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9179-2db24ea86d7ba8077473.js → 9179-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9198-2db24ea86d7ba8077473.js → 9198-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9206-2db24ea86d7ba8077473.js → 9206-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9225-2db24ea86d7ba8077473.js → 9225-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9270-2db24ea86d7ba8077473.js → 9270-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9281-2db24ea86d7ba8077473.js → 9281-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9294-2db24ea86d7ba8077473.js → 9294-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9478-2db24ea86d7ba8077473.js → 9478-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9524-2db24ea86d7ba8077473.js → 9524-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9526-2db24ea86d7ba8077473.js → 9526-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9556-2db24ea86d7ba8077473.js → 9556-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9641-2db24ea86d7ba8077473.js → 9641-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9661-2db24ea86d7ba8077473.js → 9661-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9681-2db24ea86d7ba8077473.js → 9681-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9689-2db24ea86d7ba8077473.js → 9689-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9692-2db24ea86d7ba8077473.js → 9692-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9728-2db24ea86d7ba8077473.js → 9728-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9730-2db24ea86d7ba8077473.js → 9730-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9780-2db24ea86d7ba8077473.js → 9780-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9788-2db24ea86d7ba8077473.js → 9788-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9806-2db24ea86d7ba8077473.js → 9806-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9809-2db24ea86d7ba8077473.js → 9809-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9819-2db24ea86d7ba8077473.js → 9819-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9831-2db24ea86d7ba8077473.js → 9831-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9845-2db24ea86d7ba8077473.js → 9845-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9876-2db24ea86d7ba8077473.js → 9876-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9904-2db24ea86d7ba8077473.js → 9904-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9910-2db24ea86d7ba8077473.js → 9910-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9965-2db24ea86d7ba8077473.js → 9965-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9976-2db24ea86d7ba8077473.js → 9976-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9982-2db24ea86d7ba8077473.js → 9982-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9983-2db24ea86d7ba8077473.js → 9983-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9984-2db24ea86d7ba8077473.js → 9984-0a3715fad581fbdb27ba.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { Ref, Reactive, ShallowReactive, ShallowRef, ComputedRef } from 'vue';
|
|
3
|
+
import { HotkeysEvent } from 'hotkeys-js';
|
|
3
4
|
import { IMath, DragList } from 'cook-web';
|
|
4
5
|
import { KatexOptions } from 'katex';
|
|
5
6
|
import { Token, Tokens, Marked, TokensList } from 'marked';
|
|
@@ -30,7 +31,7 @@ declare namespace IText {
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
declare namespace
|
|
34
|
+
declare namespace ICommandCube {
|
|
34
35
|
type Names = "cube:reset" | "cube:delete" | "cube:insert" | "cube:insert-child" | "cube:delete-child" | "cube:delete-adjacent" | "cube:set-selection-css" | "cube:partition" | "cube:reorder" | "cube:set-css" | "cube:set-attr" | "cube:move" | "cube:merge" | "cube:postil-add" | "cube:postil-remove" | "code:change-lang" | "code:change-active" | "code:change-theme" | "code:update" | "code:add" | "code:remove" | "code:rename" | "detail-list:insert-row" | "detail-list:remove-row" | "detail-list:change-width-col1" | "formula:update" | "linker:update" | "list:add" | "list:remove" | "list:indent" | "list:reset" | "list:transform" | "list-ordered:add" | "list-ordered:remove" | "list-ordered:indent" | "list-ordered:reset" | "rt:reset" | "table:add-title" | "table:remove-title" | "table:add-cell" | "table:remove-cell" | "table:add-row" | "table:remove-row" | "table:add-col" | "table:remove-col" | "table:add-grid-col" | "table:remove-grid-col" | "table:add-grid-row" | "table:remove-grid-row" | "table:merge" | "table:moveto" | "table:update-area" | "table:reorder" | "table:col-resize" | "text:reset" | "text:break" | "text-link:update" | "todo:add" | "todo:remove" | "todo:indent" | "todo:status" | "todo:reset" | "node:layout-update" | "node:append-child" | "map:node-add" | "map:node-remove" | "map:linker-add" | "map:linker-remove" | "map:update-attrs" | "map:node-drag" | "map:sibling-reorder" | "cursor:in-head" | "cursor:in-tail" | "cursor:loc" | (string & {});
|
|
35
36
|
type DeleteDir = "forward" | "backward";
|
|
36
37
|
type CursorFrom = "left" | "right" | "none";
|
|
@@ -38,50 +39,50 @@ declare namespace ICubeCommand {
|
|
|
38
39
|
id: string;
|
|
39
40
|
name: Names;
|
|
40
41
|
}
|
|
41
|
-
interface Reset extends
|
|
42
|
+
interface Reset extends ICommandCube.BaseCommand {
|
|
42
43
|
name: "cube:reset";
|
|
43
44
|
data: ICubeBase.Data[];
|
|
44
45
|
}
|
|
45
|
-
interface InsertChild extends
|
|
46
|
+
interface InsertChild extends ICommandCube.BaseCommand {
|
|
46
47
|
name: "cube:insert-child";
|
|
47
48
|
data: ICubeBase.Data[];
|
|
48
49
|
pos: number | INote.CubeSide;
|
|
49
50
|
}
|
|
50
|
-
interface Delete extends
|
|
51
|
+
interface Delete extends ICommandCube.BaseCommand {
|
|
51
52
|
name: "cube:delete";
|
|
52
|
-
dir:
|
|
53
|
+
dir: ICommandCube.DeleteDir;
|
|
53
54
|
start_id: ICubeBase.CubeId | null;
|
|
54
55
|
end_id: ICubeBase.CubeId | null;
|
|
55
56
|
offset_start: number | INote.CubeSide;
|
|
56
57
|
offset_end: number | INote.CubeSide;
|
|
57
58
|
reserve: boolean;
|
|
58
59
|
}
|
|
59
|
-
interface DeleteAdjacent extends
|
|
60
|
+
interface DeleteAdjacent extends ICommandCube.BaseCommand {
|
|
60
61
|
name: "cube:delete-adjacent";
|
|
61
|
-
from:
|
|
62
|
+
from: ICommandCube.CursorFrom;
|
|
62
63
|
offset: number;
|
|
63
64
|
from_id: ICubeBase.CubeId;
|
|
64
65
|
}
|
|
65
66
|
type CssMethod = "cover" | "toggle" | "replace";
|
|
66
|
-
interface SetCss extends
|
|
67
|
+
interface SetCss extends ICommandCube.BaseCommand {
|
|
67
68
|
name: "cube:set-css";
|
|
68
69
|
css: Record<string, string | null>;
|
|
69
70
|
method: CssMethod;
|
|
70
71
|
}
|
|
71
|
-
interface SetAttr extends
|
|
72
|
+
interface SetAttr extends ICommandCube.BaseCommand {
|
|
72
73
|
name: "cube:set-attr";
|
|
73
74
|
attr: Record<string, string | null>;
|
|
74
75
|
}
|
|
75
|
-
interface SetSelectionCss extends
|
|
76
|
+
interface SetSelectionCss extends ICommandCube.BaseCommand {
|
|
76
77
|
name: "cube:set-selection-css";
|
|
77
78
|
css: Record<string, any>;
|
|
78
79
|
start_id: ICubeBase.CubeId | null;
|
|
79
80
|
end_id: ICubeBase.CubeId | null;
|
|
80
81
|
offset_start: number | INote.CubeSide;
|
|
81
82
|
offset_end: number | INote.CubeSide;
|
|
82
|
-
method:
|
|
83
|
+
method: ICommandCube.CssMethod;
|
|
83
84
|
}
|
|
84
|
-
interface Insert extends
|
|
85
|
+
interface Insert extends ICommandCube.BaseCommand {
|
|
85
86
|
name: "cube:insert";
|
|
86
87
|
data: ICubeBase.Data[];
|
|
87
88
|
start_id: ICubeBase.CubeId;
|
|
@@ -89,52 +90,52 @@ declare namespace ICubeCommand {
|
|
|
89
90
|
offset_start: number;
|
|
90
91
|
offset_end: number;
|
|
91
92
|
}
|
|
92
|
-
interface DeleteChild extends
|
|
93
|
+
interface DeleteChild extends ICommandCube.BaseCommand {
|
|
93
94
|
name: "cube:delete-child";
|
|
94
|
-
dir:
|
|
95
|
+
dir: ICommandCube.DeleteDir;
|
|
95
96
|
range: [number, number];
|
|
96
97
|
reserve: boolean;
|
|
97
98
|
}
|
|
98
|
-
interface Partition extends
|
|
99
|
+
interface Partition extends ICommandCube.BaseCommand {
|
|
99
100
|
name: "cube:partition";
|
|
100
101
|
start_id: ICubeBase.CubeId;
|
|
101
102
|
end_id: ICubeBase.CubeId;
|
|
102
103
|
offset_start: number;
|
|
103
104
|
offset_end: number;
|
|
104
105
|
}
|
|
105
|
-
interface Reorder extends
|
|
106
|
+
interface Reorder extends ICommandCube.BaseCommand {
|
|
106
107
|
name: "cube:reorder";
|
|
107
108
|
cubeid: ICubeBase.CubeId;
|
|
108
109
|
index: number | INote.CubeSide;
|
|
109
110
|
}
|
|
110
|
-
interface Merge extends
|
|
111
|
+
interface Merge extends ICommandCube.BaseCommand {
|
|
111
112
|
id: ICubeBase.CubeId;
|
|
112
113
|
name: "cube:merge";
|
|
113
114
|
method: INote.CubeMergeMethod;
|
|
114
115
|
cubeid: ICubeBase.CubeId;
|
|
115
116
|
offset: number;
|
|
116
117
|
}
|
|
117
|
-
interface PostilAdd extends
|
|
118
|
+
interface PostilAdd extends ICommandCube.BaseCommand {
|
|
118
119
|
name: "cube:postil-add";
|
|
119
120
|
data: ICubeBase.Data[];
|
|
120
121
|
}
|
|
121
|
-
interface PostilRemove extends
|
|
122
|
+
interface PostilRemove extends ICommandCube.BaseCommand {
|
|
122
123
|
name: "cube:postil-remove";
|
|
123
124
|
range: [number, number];
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
|
|
127
|
-
declare namespace
|
|
128
|
-
interface Loc extends
|
|
128
|
+
declare namespace ICommandCursor {
|
|
129
|
+
interface Loc extends ICommandCube.BaseCommand {
|
|
129
130
|
name: "cursor:loc";
|
|
130
131
|
from: string;
|
|
131
132
|
from_offset: number;
|
|
132
133
|
offset: number;
|
|
133
134
|
}
|
|
134
|
-
interface InHead extends
|
|
135
|
+
interface InHead extends ICommandCube.BaseCommand {
|
|
135
136
|
name: "cursor:in-head";
|
|
136
137
|
}
|
|
137
|
-
interface InTail extends
|
|
138
|
+
interface InTail extends ICommandCube.BaseCommand {
|
|
138
139
|
name: "cursor:in-tail";
|
|
139
140
|
}
|
|
140
141
|
}
|
|
@@ -155,30 +156,30 @@ declare namespace IMapTools {
|
|
|
155
156
|
type Matrix2DArray = [number, number, number, number, number, number];
|
|
156
157
|
}
|
|
157
158
|
|
|
158
|
-
declare namespace
|
|
159
|
-
interface NodeAdd extends
|
|
159
|
+
declare namespace ICommandMap {
|
|
160
|
+
interface NodeAdd extends ICommandCube.BaseCommand {
|
|
160
161
|
name: "map:node-add";
|
|
161
162
|
data: INodeBase.Base[];
|
|
162
163
|
}
|
|
163
|
-
interface NodeRemove extends
|
|
164
|
+
interface NodeRemove extends ICommandCube.BaseCommand {
|
|
164
165
|
name: "map:node-remove";
|
|
165
166
|
data: ICubeBase.CubeId[];
|
|
166
167
|
}
|
|
167
|
-
interface LinkerAdd extends
|
|
168
|
+
interface LinkerAdd extends ICommandCube.BaseCommand {
|
|
168
169
|
name: "map:linker-add";
|
|
169
170
|
data: LinkerInfo[];
|
|
170
171
|
to_root?: boolean;
|
|
171
172
|
}
|
|
172
|
-
interface LinkerRemove extends
|
|
173
|
+
interface LinkerRemove extends ICommandCube.BaseCommand {
|
|
173
174
|
name: "map:linker-remove";
|
|
174
175
|
data: ICubeBase.CubeId[];
|
|
175
176
|
to_root?: boolean;
|
|
176
177
|
}
|
|
177
|
-
interface NodeMove extends
|
|
178
|
+
interface NodeMove extends ICommandCube.BaseCommand {
|
|
178
179
|
name: "map:node-drag";
|
|
179
180
|
data: NodeMoveInfo[];
|
|
180
181
|
}
|
|
181
|
-
interface SiblingReorder extends
|
|
182
|
+
interface SiblingReorder extends ICommandCube.BaseCommand {
|
|
182
183
|
name: "map:sibling-reorder";
|
|
183
184
|
upstream_id: ICubeBase.CubeId;
|
|
184
185
|
order: ICubeBase.CubeId[];
|
|
@@ -206,7 +207,7 @@ declare abstract class Map2D {
|
|
|
206
207
|
abstract get rect(): IMath.Rect;
|
|
207
208
|
}
|
|
208
209
|
|
|
209
|
-
declare abstract class
|
|
210
|
+
declare abstract class CubeAdapterBase {
|
|
210
211
|
abstract get meta(): INote.CubeMeta;
|
|
211
212
|
get version(): number;
|
|
212
213
|
get type(): INote.Cubes;
|
|
@@ -216,233 +217,13 @@ declare abstract class AdapterCubeBase {
|
|
|
216
217
|
abstract replace_id(versions: INote.CubesVersion, data: any, map: Record<string, string>): ICubeBase.ReplaceIdResult;
|
|
217
218
|
}
|
|
218
219
|
|
|
219
|
-
declare class
|
|
220
|
-
get meta(): INote.CubeMeta;
|
|
221
|
-
get_data(css?: Record<string, any>, attrs?: Record<string, any>): _CubeTextAnnotation;
|
|
222
|
-
replace_id(versions: INote.CubesVersion, data: _CubeTextAnnotation, map?: Record<string, string>): ICubeBase.ReplaceIdResult<_CubeTextAnnotation>;
|
|
223
|
-
update_data(versions: INote.CubesVersion, data: _CubeTextAnnotation): ICubeBase.CubeUpdateResult;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
declare class AdapterCubeApi extends AdapterCubeBase {
|
|
227
|
-
get meta(): INote.CubeMeta;
|
|
228
|
-
get type_argument(): Record<string, string>;
|
|
229
|
-
get type_funciton(): Record<string, string>;
|
|
230
|
-
get_line_function(funcname?: string): ILine.Data;
|
|
231
|
-
get_text_function_type(): IText.Data;
|
|
232
|
-
get_text_function(funcname?: string): IText.Data;
|
|
233
|
-
get_text_argument(argname?: string): IText.Data;
|
|
234
|
-
get_text_argument_type(): IText.Data;
|
|
235
|
-
get_data(css?: INote.Css, attrs?: INote.Attrs): IApi.Data;
|
|
236
|
-
update_data(versions: INote.CubesVersion, data: any): ICubeBase.CubeUpdateResult<IApi.Data>;
|
|
237
|
-
to_v2(versions: INote.CubesVersion, data: IApi.V1): IApi.V2;
|
|
238
|
-
replace_id(versions: INote.CubesVersion, data: IApi.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IApi.Data>;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
declare class AdapterCubeBoxColumns extends AdapterCubeBase {
|
|
242
|
-
get meta(): INote.CubeMeta;
|
|
243
|
-
replace_id(versions: INote.CubesVersion, data: ICubeBoxColumns.Data, map: Record<string, string>): ICubeBase.ReplaceIdResult<ICubeBoxColumns.Data>;
|
|
244
|
-
get_data(): ICubeBoxColumns.Data;
|
|
245
|
-
update_data(versions: INote.CubesVersion, data: ICubeBoxColumns.Data): ICubeBase.CubeUpdateResult<ICubeBoxColumns.Data>;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
declare class AdapterCubeBoxFolder extends AdapterCubeBase {
|
|
249
|
-
get meta(): INote.CubeMeta;
|
|
250
|
-
filter_out_empty(cubes: ICubeBase.Data[]): ICubeBase.Data[];
|
|
251
|
-
get_data(content?: ICubeBase.Data[], css?: Record<string, any>, attrs?: Partial<ICubeBase.Attrs>): ICubeBoxFolder.Data;
|
|
252
|
-
replace_id(versions: INote.CubesVersion, data: ICubeBoxFolder.Data, map: Record<string, string>): ICubeBase.ReplaceIdResult<ICubeBoxFolder.Data>;
|
|
253
|
-
update_data(versions: INote.CubesVersion, data: ICubeBoxFolder.Data): ICubeBase.CubeUpdateResult<ICubeBoxFolder.Data>;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
declare class AdapterCubeBoxRoot extends AdapterCubeBase {
|
|
257
|
-
filter_out_empty(cubes: ICubeBase.Data[]): ICubeBase.Data[];
|
|
258
|
-
get meta(): INote.CubeMeta;
|
|
259
|
-
get_data(content?: ICubeBase.Data[], css?: Record<string, any>, attrs?: ICubeBase.Attrs): ICubeBoxRoot.Data;
|
|
260
|
-
replace_id(versions: INote.CubesVersion, data: ICubeBoxRoot.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ICubeBoxRoot.Data>;
|
|
261
|
-
update_data(versions: INote.CubesVersion, data: ICubeBoxRoot.Data): ICubeBase.CubeUpdateResult;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
declare class AdapterCubeBox extends AdapterCubeBase {
|
|
265
|
-
get meta(): INote.CubeMeta;
|
|
266
|
-
get_data(content?: ICubeBase.Data[], css?: Record<string, any>, attrs?: Record<string, any>): IBox.Data;
|
|
267
|
-
replace_id(versions: INote.CubesVersion, data: IBox.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IBox.Data>;
|
|
268
|
-
update_data(versions: INote.CubesVersion, data: IBox.Data): ICubeBase.CubeUpdateResult;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
declare class AdapterCubeCode extends AdapterCubeBase {
|
|
272
|
-
protected _langs: string[];
|
|
273
|
-
protected _themes: string[];
|
|
274
|
-
protected _highlighter: Highlighter | undefined;
|
|
275
|
-
get langs(): string[];
|
|
276
|
-
get themes(): string[];
|
|
277
|
-
get meta(): INote.CubeMeta;
|
|
278
|
-
get highlighter(): Highlighter | undefined;
|
|
279
|
-
get lang_map(): {
|
|
280
|
-
[x: string]: ICode.Langs;
|
|
281
|
-
};
|
|
282
|
-
constructor();
|
|
283
|
-
get_data(): ICode.Data;
|
|
284
|
-
get_data_by_string(lang?: string, code?: string): ICode.Data;
|
|
285
|
-
replace_id(versions: INote.CubesVersion, data: ICode.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ICode.Data>;
|
|
286
|
-
get_format_from_lang(lang: string): string;
|
|
287
|
-
get_lang_from_format(format: string): ICode.Langs;
|
|
288
|
-
update_data(versions: INote.CubesVersion, data: ICode.Data): ICubeBase.CubeUpdateResult;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
declare class AdapterCubeDetailList extends AdapterCubeBase {
|
|
292
|
-
get meta(): INote.CubeMeta;
|
|
293
|
-
get_data(info?: IDetailList.BoxDataMap[], css?: Record<string, any>, attrs?: Record<string, any>): IDetailList.Data;
|
|
294
|
-
replace_id(versions: INote.CubesVersion, data: IDetailList.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IDetailList.Data>;
|
|
295
|
-
update_data(versions: INote.CubesVersion, data: IDetailList.Data): ICubeBase.CubeUpdateResult<IDetailList.Data>;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
declare class AdapterCubeDoc extends AdapterCubeBase {
|
|
299
|
-
get meta(): INote.CubeMeta;
|
|
300
|
-
get_data(): IDoc.Data;
|
|
301
|
-
replace_id(versions: INote.CubesVersion, data: IDoc.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IDoc.Data>;
|
|
302
|
-
update_data(versions: INote.CubesVersion, data: IDoc.Data): ICubeBase.CubeUpdateResult;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
declare class AdapterCubeFormula extends AdapterCubeBase {
|
|
306
|
-
get meta(): INote.CubeMeta;
|
|
307
|
-
get_data(formula?: string, css?: Record<string, string>, attrs?: Partial<IFormula.Attrs>): IFormula.Data;
|
|
308
|
-
replace_id(versions: INote.CubesVersion, data: IFormula.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IFormula.Data>;
|
|
309
|
-
update_data(versions: INote.CubesVersion, data: IFormula.Data): ICubeBase.CubeUpdateResult;
|
|
310
|
-
render(latex: string, options?: KatexOptions): string;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
declare class AdapterCubeImg extends AdapterCubeBase {
|
|
220
|
+
declare class AdapterCubeImg extends CubeAdapterBase {
|
|
314
221
|
get meta(): INote.CubeMeta;
|
|
315
222
|
replace_id(versions: INote.CubesVersion, data: IImg.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IImg.Data>;
|
|
316
223
|
get_data(src?: string, css?: Record<string, any>, attrs?: Record<string, any>): IImg.Data;
|
|
317
224
|
update_data(versions: INote.CubesVersion, data: IImg.Data): ICubeBase.CubeUpdateResult;
|
|
318
225
|
}
|
|
319
226
|
|
|
320
|
-
declare class AdapterCubeLine extends AdapterCubeBase {
|
|
321
|
-
get meta(): INote.CubeMeta;
|
|
322
|
-
filter_out_empty(cubes: ICubeBase.Data[]): ICubeBase.Data[];
|
|
323
|
-
get_data(cubelist?: ICubeBase.Data[], css?: Record<string, any>, attrs?: Record<string, any>): ILine.Data;
|
|
324
|
-
get_data_by_string(text?: string, css?: Record<string, any>, attrs?: Record<string, any>): ILine.Data;
|
|
325
|
-
replace_id(versions: INote.CubesVersion, data: ILine.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ILine.Data>;
|
|
326
|
-
update_data(versions: INote.CubesVersion, data: ILine.Data): ICubeBase.CubeUpdateResult;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
declare class AdapterCubeLinker extends AdapterCubeBase {
|
|
330
|
-
get meta(): INote.CubeMeta;
|
|
331
|
-
replace_id(versions: INote.CubesVersion, data: ILinker.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ILinker.Data>;
|
|
332
|
-
get_data(from: string, to: string, type?: INodeBase.Line): ILinker.Data;
|
|
333
|
-
update_data(versions: INote.CubesVersion, data: ILinker.Data): ICubeBase.CubeUpdateResult<ILinker.Data>;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
declare class AdapterCubeListOrdered extends AdapterCubeBase {
|
|
337
|
-
get meta(): INote.CubeMeta;
|
|
338
|
-
get_data(): IListOrdered.Data;
|
|
339
|
-
get_list_item(cubedata: ICubeBase.Data[]): IList.ListItemData;
|
|
340
|
-
replace_id(versions: INote.CubesVersion, data: IListOrdered.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IListOrdered.Data>;
|
|
341
|
-
update_data(versions: INote.CubesVersion, data: IListOrdered.Data): {
|
|
342
|
-
data: IListOrdered.Data;
|
|
343
|
-
usable: boolean;
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
declare class AdapterCubeList extends AdapterCubeBase {
|
|
348
|
-
get meta(): INote.CubeMeta;
|
|
349
|
-
get_data(children?: ICubeBase.Data[]): IList.Data;
|
|
350
|
-
get_list_item(cubedata: ICubeBase.Data[]): IList.ListItemData;
|
|
351
|
-
replace_id(versions: INote.CubesVersion, data: IList.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IList.Data>;
|
|
352
|
-
update_data(versions: INote.CubesVersion, data: IList.Data): {
|
|
353
|
-
data: IList.Data;
|
|
354
|
-
usable: boolean;
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
declare class AdapterCubeLost extends AdapterCubeBase {
|
|
359
|
-
get meta(): INote.CubeMeta;
|
|
360
|
-
get_data(cubedata: ICubeBase.Data): ILost.Data;
|
|
361
|
-
replace_id(versions: INote.CubesVersion, data: ILost.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ILost.Data>;
|
|
362
|
-
update_data(versions: INote.CubesVersion, data: ILost.Data): {
|
|
363
|
-
data: ILost.Data;
|
|
364
|
-
usable: boolean;
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
declare class AdapterCubeMap extends AdapterCubeBase {
|
|
369
|
-
get meta(): INote.CubeMeta;
|
|
370
|
-
get_data(): IMap.Data;
|
|
371
|
-
replace_id(versions: INote.CubesVersion, data: IMap.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IMap.Data>;
|
|
372
|
-
update_data(versions: INote.CubesVersion, data: IMap.Data): ICubeBase.CubeUpdateResult;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
declare class AdapterCubeNode extends AdapterCubeBase {
|
|
376
|
-
get meta(): INote.CubeMeta;
|
|
377
|
-
replace_id(versions: INote.CubesVersion, data: INode.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<INode.Data>;
|
|
378
|
-
get_data(p: IMath.Point, data?: ICubeBoxRoot.Data[], shape?: INodeBase.Shape): INode.Data;
|
|
379
|
-
update_data(versions: INote.CubesVersion, data: INode.Data): ICubeBase.CubeUpdateResult<any>;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
declare class AdapterCubePostil extends AdapterCubeBase {
|
|
383
|
-
get meta(): INote.CubeMeta;
|
|
384
|
-
get_data(data?: ICubeBase.Data[], css?: Record<string, any>): IPostil.V1;
|
|
385
|
-
replace_id(versions: INote.CubesVersion, data: any, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IPostil.Data>;
|
|
386
|
-
update_data(versions: INote.CubesVersion, data: any): ICubeBase.CubeUpdateResult<IPostil.Data>;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
declare class AdapterCubeRt extends AdapterCubeBase {
|
|
390
|
-
get min_size(): number;
|
|
391
|
-
get scale(): number;
|
|
392
|
-
get meta(): INote.CubeMeta;
|
|
393
|
-
get_data(text?: string, explanation?: string, css?: Record<string, string>): IRt.Data;
|
|
394
|
-
replace_id(versions: INote.CubesVersion, data: IRt.Data, map: Record<string, string>): ICubeBase.ReplaceIdResult<IRt.Data>;
|
|
395
|
-
update_data(versions: INote.CubesVersion, data: IRt.Data): ICubeBase.CubeUpdateResult<IRt.Data>;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
declare class AdapterCubeSubmap extends AdapterCubeBase {
|
|
399
|
-
get meta(): INote.CubeMeta;
|
|
400
|
-
get_data(width?: number, height?: number): ISubMap.Data;
|
|
401
|
-
replace_id(versions: INote.CubesVersion, data: ISubMap.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ISubMap.Data>;
|
|
402
|
-
update_data(versions: INote.CubesVersion, data: ISubMap.Data): ICubeBase.CubeUpdateResult<ISubMap.Data>;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
declare class AdapterCubeTable extends AdapterCubeBase {
|
|
406
|
-
get meta(): INote.CubeMeta;
|
|
407
|
-
get_data(row?: number, col?: number): ITable.Data;
|
|
408
|
-
get_data_by_data(size: [number, number], cells: ITable.CellData[]): ITable.Data;
|
|
409
|
-
replace_id(versions: INote.CubesVersion, data: ITable.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ITable.Data>;
|
|
410
|
-
update_data(versions: INote.CubesVersion, data: ITable.Data): ICubeBase.CubeUpdateResult<ITable.Data>;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
declare class AdapterCubeText extends AdapterCubeBase {
|
|
414
|
-
drop_zero_width_space(text: string, pos: number): INoteCursor.Location;
|
|
415
|
-
drop_zero_intelligence(text: string, pos: number): INoteCursor.Location;
|
|
416
|
-
is_empty_text(cube: ICubeBase.Data): boolean;
|
|
417
|
-
get meta(): INote.CubeMeta;
|
|
418
|
-
get_data(text?: string, css?: Record<string, any>, attrs?: Record<string, any>): IText.Data;
|
|
419
|
-
replace_id(versions: INote.CubesVersion, data: IText.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IText.Data>;
|
|
420
|
-
update_data(versions: INote.CubesVersion, data: IText.Data): ICubeBase.CubeUpdateResult<IText.Data>;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
declare class AdapterCubeTextLink extends AdapterCubeBase {
|
|
424
|
-
get meta(): INote.CubeMeta;
|
|
425
|
-
get_data(url: string, title: string, css?: Record<string, any>, attrs?: Record<string, any>): ITextLink.Data;
|
|
426
|
-
replace_id(versions: INote.CubesVersion, data: ITextLink.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ITextLink.Data>;
|
|
427
|
-
update_data(versions: INote.CubesVersion, data: ITextLink.Data): ICubeBase.CubeUpdateResult<ITextLink.Data>;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
declare class AdapterCubeTip extends AdapterCubeBase {
|
|
431
|
-
get meta(): INote.CubeMeta;
|
|
432
|
-
get_data(cubes: ICubeBase.Data[], css?: Record<string, string>, attrs?: Record<string, string>): ITip.Data;
|
|
433
|
-
get_data_by_string(info: string, css?: Record<string, string>, attrs?: Record<string, string>): ITip.Data;
|
|
434
|
-
replace_id(versions: INote.CubesVersion, data: ITip.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ITip.Data>;
|
|
435
|
-
update_data(versions: INote.CubesVersion, data: ITip.Data): ICubeBase.CubeUpdateResult<ITip.Data>;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
declare class AdapterCubeTodo extends AdapterCubeBase {
|
|
439
|
-
get meta(): INote.CubeMeta;
|
|
440
|
-
get_data(): ITodo.Data;
|
|
441
|
-
get_todo_item(cubedata: ICubeBase.Data[], done?: boolean): _CubeTodoItemData;
|
|
442
|
-
replace_id(versions: INote.CubesVersion, data: ITodo.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ITodo.Data>;
|
|
443
|
-
update_data(versions: INote.CubesVersion, data: ITodo.Data): ICubeBase.CubeUpdateResult<ITodo.Data>;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
227
|
declare abstract class CubeChild<T extends ICubeBase.Data = any> extends CubeBase<T> {
|
|
447
228
|
protected _pcube: INote.NoteCube;
|
|
448
229
|
protected _children: CubeChild[];
|
|
@@ -489,7 +270,7 @@ declare abstract class CubeChild<T extends ICubeBase.Data = any> extends CubeBas
|
|
|
489
270
|
base_export(): T;
|
|
490
271
|
copy(left: number, right: number): ICubeBase.Data[];
|
|
491
272
|
get_upstream_sum_scale(): _FigScale;
|
|
492
|
-
remove_self(dir?:
|
|
273
|
+
remove_self(dir?: ICommandCube.DeleteDir): Recorder | undefined;
|
|
493
274
|
merge(method: INote.CubeMergeMethod): Recorder | undefined;
|
|
494
275
|
find_cube(id: ICubeBase.CubeId): INote.NoteChild | undefined;
|
|
495
276
|
filter(func: ICubeBase.CubeFilterFunc): INote.NoteChild[];
|
|
@@ -502,33 +283,34 @@ declare abstract class CubeChild<T extends ICubeBase.Data = any> extends CubeBas
|
|
|
502
283
|
find_child_index(id: ICubeBase.CubeId): number;
|
|
503
284
|
find_next_cube(id: ICubeBase.CubeId): INote.NoteChild | undefined;
|
|
504
285
|
find_prev_cube(id: ICubeBase.CubeId): INote.NoteChild | undefined;
|
|
505
|
-
protected on_cube_set_selection_css(command:
|
|
506
|
-
protected on_insert(command:
|
|
507
|
-
protected on_cube_delete(command:
|
|
508
|
-
protected on_cube_set_css(command:
|
|
509
|
-
protected on_cube_set_attr(command:
|
|
510
|
-
protected on_cube_delete_adjacent(command:
|
|
511
|
-
protected on_postil_add(cmd:
|
|
512
|
-
protected on_postil_remove(command:
|
|
513
|
-
protected on_cursor_in_head(command:
|
|
514
|
-
protected on_cursor_in_tail(command:
|
|
286
|
+
protected on_cube_set_selection_css(command: ICommandCube.SetSelectionCss): Recorder | void;
|
|
287
|
+
protected on_insert(command: ICommandCube.Insert): Recorder | void;
|
|
288
|
+
protected on_cube_delete(command: ICommandCube.Delete): Recorder | void;
|
|
289
|
+
protected on_cube_set_css(command: ICommandCube.SetCss): Recorder | void;
|
|
290
|
+
protected on_cube_set_attr(command: ICommandCube.SetAttr): Recorder | void;
|
|
291
|
+
protected on_cube_delete_adjacent(command: ICommandCube.DeleteAdjacent): Recorder | void;
|
|
292
|
+
protected on_postil_add(cmd: ICommandCube.PostilAdd): Recorder | void;
|
|
293
|
+
protected on_postil_remove(command: ICommandCube.PostilRemove): Recorder | void;
|
|
294
|
+
protected on_cursor_in_head(command: ICommandCursor.InHead): Recorder | undefined;
|
|
295
|
+
protected on_cursor_in_tail(command: ICommandCursor.InTail): Recorder | undefined;
|
|
515
296
|
is_valid_range(range: [number, number], check_collapse?: boolean): boolean;
|
|
516
297
|
get_valid_index(pos: number | INote.CubeSide): number;
|
|
517
298
|
get_valid_range(range: [number, number]): [number, number];
|
|
518
299
|
}
|
|
519
300
|
|
|
520
|
-
declare class
|
|
301
|
+
declare class ImgStatus extends CubeStatusBase<IImg.Data> {
|
|
521
302
|
constructor(cube: CubeImg);
|
|
522
303
|
}
|
|
523
304
|
|
|
524
305
|
declare class CubeImg extends CubeChild<IImg.Data> {
|
|
525
|
-
protected _status:
|
|
306
|
+
protected _status: ImgStatus;
|
|
526
307
|
constructor(note: Note, data: IImg.Data, pcube: CubeChild);
|
|
527
308
|
get adapter(): AdapterCubeImg;
|
|
528
|
-
get status():
|
|
309
|
+
get status(): ImgStatus;
|
|
529
310
|
get is_empty(): boolean;
|
|
530
311
|
get meta(): INote.CubeMeta<INote.Cubes>;
|
|
531
312
|
get component(): any;
|
|
313
|
+
get url(): any;
|
|
532
314
|
build_child(): void;
|
|
533
315
|
float_image(dir: "L" | "R"): Recorder;
|
|
534
316
|
clear_float(): Recorder;
|
|
@@ -536,16 +318,26 @@ declare class CubeImg extends CubeChild<IImg.Data> {
|
|
|
536
318
|
export(): IImg.Data;
|
|
537
319
|
}
|
|
538
320
|
|
|
539
|
-
declare class
|
|
321
|
+
declare class AdapterCubeLost extends CubeAdapterBase {
|
|
322
|
+
get meta(): INote.CubeMeta;
|
|
323
|
+
get_data(cubedata: ICubeBase.Data): ILost.Data;
|
|
324
|
+
replace_id(versions: INote.CubesVersion, data: ILost.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ILost.Data>;
|
|
325
|
+
update_data(versions: INote.CubesVersion, data: ILost.Data): {
|
|
326
|
+
data: ILost.Data;
|
|
327
|
+
usable: boolean;
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
declare class LostStatus extends CubeStatusBase<ILost.Data> {
|
|
540
332
|
constructor(cube: CubeLost);
|
|
541
333
|
}
|
|
542
334
|
|
|
543
335
|
declare class CubeLost extends CubeChild<ILost.Data> {
|
|
544
|
-
protected _status:
|
|
336
|
+
protected _status: LostStatus;
|
|
545
337
|
protected _msg: vue.Ref<string, string>;
|
|
546
338
|
constructor(note: Note, data: any, pcube: any, reason: string);
|
|
547
339
|
get adapter(): AdapterCubeLost;
|
|
548
|
-
get status():
|
|
340
|
+
get status(): LostStatus;
|
|
549
341
|
get msg(): string;
|
|
550
342
|
set msg(v: string);
|
|
551
343
|
get component(): any;
|
|
@@ -555,11 +347,30 @@ declare class CubeLost extends CubeChild<ILost.Data> {
|
|
|
555
347
|
build_child(): void;
|
|
556
348
|
gc(): void;
|
|
557
349
|
export(): ILost.Data;
|
|
558
|
-
on_cursor_in_head(command:
|
|
559
|
-
on_cursor_in_tail(command:
|
|
350
|
+
on_cursor_in_head(command: ICommandCursor.InHead): Recorder;
|
|
351
|
+
on_cursor_in_tail(command: ICommandCursor.InTail): Recorder;
|
|
560
352
|
}
|
|
561
353
|
|
|
562
|
-
declare class
|
|
354
|
+
declare class AdapterCubeLine extends CubeAdapterBase {
|
|
355
|
+
get meta(): INote.CubeMeta;
|
|
356
|
+
filter_out_empty(cubes: ICubeBase.Data[]): ICubeBase.Data[];
|
|
357
|
+
get_data(cubelist?: ICubeBase.Data[], css?: Record<string, any>, attrs?: Record<string, any>): ILine.Data;
|
|
358
|
+
get_data_by_string(text?: string, css?: Record<string, any>, attrs?: Record<string, any>): ILine.Data;
|
|
359
|
+
replace_id(versions: INote.CubesVersion, data: ILine.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ILine.Data>;
|
|
360
|
+
update_data(versions: INote.CubesVersion, data: ILine.Data): ICubeBase.CubeUpdateResult;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
declare class AdapterCubeText extends CubeAdapterBase {
|
|
364
|
+
drop_zero_width_space(text: string, pos: number): INoteCursor.Location;
|
|
365
|
+
drop_zero_intelligence(text: string, pos: number): INoteCursor.Location;
|
|
366
|
+
is_empty_text(cube: ICubeBase.Data): boolean;
|
|
367
|
+
get meta(): INote.CubeMeta;
|
|
368
|
+
get_data(text?: string, css?: Record<string, any>, attrs?: Record<string, any>): IText.Data;
|
|
369
|
+
replace_id(versions: INote.CubesVersion, data: IText.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IText.Data>;
|
|
370
|
+
update_data(versions: INote.CubesVersion, data: IText.Data): ICubeBase.CubeUpdateResult<IText.Data>;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
declare class TextStatus extends CubeStatusBase<IText.Data> {
|
|
563
374
|
constructor(cube: CubeText);
|
|
564
375
|
get cube(): CubeText;
|
|
565
376
|
get text(): string;
|
|
@@ -567,10 +378,10 @@ declare class StatusText extends StatusCube<IText.Data> {
|
|
|
567
378
|
}
|
|
568
379
|
|
|
569
380
|
declare class CubeText extends CubeChild<IText.Data> {
|
|
570
|
-
protected _status:
|
|
381
|
+
protected _status: TextStatus;
|
|
571
382
|
constructor(note: Note, data: IText.Data, pcube: CubeChild);
|
|
572
383
|
get adapter(): AdapterCubeText;
|
|
573
|
-
get status():
|
|
384
|
+
get status(): TextStatus;
|
|
574
385
|
get attrs(): IText.Attrs;
|
|
575
386
|
get component(): any;
|
|
576
387
|
get is_empty(): boolean;
|
|
@@ -585,44 +396,39 @@ declare class CubeText extends CubeChild<IText.Data> {
|
|
|
585
396
|
find_child_cube(id: ICubeBase.CubeId): CubeChild | undefined;
|
|
586
397
|
export(): IText.Data;
|
|
587
398
|
protected merge_text(offset: number): Recorder;
|
|
588
|
-
protected on_text_reset(command:
|
|
589
|
-
protected on_cursor_loc(cmd:
|
|
590
|
-
protected on_partition(cmd:
|
|
591
|
-
protected on_cube_merge(command:
|
|
592
|
-
protected on_cube_insert(command:
|
|
593
|
-
protected on_cube_delete(command:
|
|
594
|
-
protected on_cube_set_selection_css(command:
|
|
595
|
-
protected on_cube_break(command:
|
|
596
|
-
protected on_cube_delete_adjacent(command:
|
|
399
|
+
protected on_text_reset(command: ICommandText.Reset): Recorder;
|
|
400
|
+
protected on_cursor_loc(cmd: ICommandCursor.Loc): Recorder;
|
|
401
|
+
protected on_partition(cmd: ICommandCube.Partition): Recorder | void;
|
|
402
|
+
protected on_cube_merge(command: ICommandCube.Merge): Recorder | void;
|
|
403
|
+
protected on_cube_insert(command: ICommandCube.Insert): Recorder | undefined;
|
|
404
|
+
protected on_cube_delete(command: ICommandCube.Delete): Recorder | undefined;
|
|
405
|
+
protected on_cube_set_selection_css(command: ICommandCube.SetSelectionCss): Recorder | void;
|
|
406
|
+
protected on_cube_break(command: ICommandText.Break): Recorder | void;
|
|
407
|
+
protected on_cube_delete_adjacent(command: ICommandCube.DeleteAdjacent): Recorder | undefined;
|
|
597
408
|
add_link(title: string, link: string): Recorder;
|
|
598
|
-
add_annotation(annotation?:
|
|
409
|
+
add_annotation(annotation?: ICubeBoxRoot.Data): Recorder;
|
|
599
410
|
set_cursor_in_head(offset?: number): void;
|
|
600
411
|
set_cursor_in_tail(offset?: number): void;
|
|
601
412
|
find_text_nav_pos(pos: number, dir: "left" | "right"): number;
|
|
602
413
|
find_text_deleted(pos: number, dir: "left" | "right"): IText.DeleteInfo;
|
|
603
|
-
is_text_remain(dir:
|
|
414
|
+
is_text_remain(dir: ICommandCube.DeleteDir, range: [number, number]): boolean;
|
|
604
415
|
drop_zero_width_space(pos: number): INoteCursor.Location;
|
|
605
416
|
can_merge_with(cube: CubeText): boolean;
|
|
606
417
|
get_valid_range(range: [number, number]): [number, number];
|
|
607
418
|
get_valid_index(pos: number | INote.CubeSide): number;
|
|
608
419
|
is_valid_pos(pos: number): boolean;
|
|
609
|
-
protected _delete_edge(dir:
|
|
420
|
+
protected _delete_edge(dir: ICommandCube.DeleteDir): Recorder | undefined;
|
|
610
421
|
}
|
|
611
422
|
|
|
612
|
-
declare class
|
|
613
|
-
static reset(id: string, info: string, pos?: number, pos_before?: number): ITextCommand.Reset;
|
|
614
|
-
static break(id: string, offset: number): ITextCommand.Break;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
declare class StatusLine extends StatusCube<ILine.Data> {
|
|
423
|
+
declare class LineStatus extends CubeStatusBase<ILine.Data> {
|
|
618
424
|
constructor(cube: CubeLine);
|
|
619
425
|
}
|
|
620
426
|
|
|
621
427
|
declare class CubeLine extends CubeChild<ILine.Data> {
|
|
622
|
-
protected _status:
|
|
428
|
+
protected _status: LineStatus;
|
|
623
429
|
constructor(note: Note, data: ILine.Data, pcube: CubeChild);
|
|
624
430
|
get adapter(): AdapterCubeLine;
|
|
625
|
-
get status():
|
|
431
|
+
get status(): LineStatus;
|
|
626
432
|
get children(): CubeChild[];
|
|
627
433
|
get component(): any;
|
|
628
434
|
get editable(): boolean;
|
|
@@ -638,22 +444,30 @@ declare class CubeLine extends CubeChild<ILine.Data> {
|
|
|
638
444
|
update_data(versions: INote.CubesVersion, data: ILine.Data): ICubeBase.CubeUpdateResult;
|
|
639
445
|
gc(): void;
|
|
640
446
|
inherit_line(data: ICubeBase.Data[]): void;
|
|
641
|
-
on_cube_merge(command:
|
|
642
|
-
on_cube_reset(command:
|
|
643
|
-
on_insert_child(command:
|
|
644
|
-
on_delete_child(command:
|
|
645
|
-
on_cube_delete_adjacent(command:
|
|
447
|
+
on_cube_merge(command: ICommandCube.Merge): Recorder | void;
|
|
448
|
+
on_cube_reset(command: ICommandCube.Reset): Recorder | void;
|
|
449
|
+
on_insert_child(command: ICommandCube.InsertChild): Recorder | void;
|
|
450
|
+
on_delete_child(command: ICommandCube.DeleteChild): Recorder | void;
|
|
451
|
+
on_cube_delete_adjacent(command: ICommandCube.DeleteAdjacent): Recorder | void;
|
|
646
452
|
}
|
|
647
453
|
|
|
648
|
-
declare class
|
|
454
|
+
declare class AdapterCubeBoxRoot extends CubeAdapterBase {
|
|
455
|
+
filter_out_empty(cubes: ICubeBase.Data[]): ICubeBase.Data[];
|
|
456
|
+
get meta(): INote.CubeMeta;
|
|
457
|
+
get_data(content?: ICubeBase.Data[], css?: Record<string, any>, attrs?: ICubeBase.Attrs): ICubeBoxRoot.Data;
|
|
458
|
+
replace_id(versions: INote.CubesVersion, data: ICubeBoxRoot.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ICubeBoxRoot.Data>;
|
|
459
|
+
update_data(versions: INote.CubesVersion, data: ICubeBoxRoot.Data): ICubeBase.CubeUpdateResult;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
declare class BoxRootStatus extends CubeStatusBase<ICubeBoxRoot.Data> {
|
|
649
463
|
constructor(cube: CubeBoxRoot);
|
|
650
464
|
}
|
|
651
465
|
|
|
652
466
|
declare class CubeBoxRoot extends CubeChild<ICubeBoxRoot.Data> {
|
|
653
|
-
protected _status:
|
|
467
|
+
protected _status: BoxRootStatus;
|
|
654
468
|
constructor(note: Note, data: ICubeBoxRoot.Data, pcube: INote.NoteCube);
|
|
655
469
|
get adapter(): AdapterCubeBoxRoot;
|
|
656
|
-
get status():
|
|
470
|
+
get status(): BoxRootStatus;
|
|
657
471
|
get children(): CubeChild[];
|
|
658
472
|
get component(): any;
|
|
659
473
|
get is_empty(): boolean;
|
|
@@ -661,27 +475,31 @@ declare class CubeBoxRoot extends CubeChild<ICubeBoxRoot.Data> {
|
|
|
661
475
|
build_child(data: ICubeBoxRoot.Data): void;
|
|
662
476
|
gc(): void;
|
|
663
477
|
export(): ICubeBoxRoot.Data;
|
|
664
|
-
on_cube_delete_adjacent(command:
|
|
665
|
-
on_merge(command:
|
|
666
|
-
on_cube_reorder(command:
|
|
667
|
-
on_cube_reset(command:
|
|
668
|
-
on_insert_child(command:
|
|
669
|
-
on_delete_child(command:
|
|
478
|
+
on_cube_delete_adjacent(command: ICommandCube.DeleteAdjacent): Recorder;
|
|
479
|
+
on_merge(command: ICommandCube.Merge): Recorder | void;
|
|
480
|
+
on_cube_reorder(command: ICommandCube.Reorder): Recorder | void;
|
|
481
|
+
on_cube_reset(command: ICommandCube.Reset): Recorder | void;
|
|
482
|
+
on_insert_child(command: ICommandCube.InsertChild): Recorder | void;
|
|
483
|
+
on_delete_child(command: ICommandCube.DeleteChild): Recorder | void;
|
|
670
484
|
get_valid_index(pos: number | INote.CubeSide): number;
|
|
671
485
|
}
|
|
672
486
|
|
|
673
|
-
declare class
|
|
487
|
+
declare class AdapterCubeBox extends CubeAdapterBase {
|
|
488
|
+
get meta(): INote.CubeMeta;
|
|
489
|
+
get_data(content?: ICubeBase.Data[], css?: Record<string, any>, attrs?: Record<string, any>): IBox.Data;
|
|
490
|
+
replace_id(versions: INote.CubesVersion, data: IBox.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IBox.Data>;
|
|
491
|
+
update_data(versions: INote.CubesVersion, data: IBox.Data): ICubeBase.CubeUpdateResult;
|
|
674
492
|
}
|
|
675
493
|
|
|
676
|
-
declare class
|
|
494
|
+
declare class BoxStatus extends CubeStatusBase<IBox.Data> {
|
|
677
495
|
constructor(cube: CubeBox);
|
|
678
496
|
}
|
|
679
497
|
|
|
680
498
|
declare class CubeBox extends CubeChild<IBox.Data> {
|
|
681
|
-
protected _status:
|
|
499
|
+
protected _status: BoxStatus;
|
|
682
500
|
constructor(note: Note, data: IBox.Data, pcube: CubeChild);
|
|
683
501
|
get adapter(): AdapterCubeBox;
|
|
684
|
-
get status():
|
|
502
|
+
get status(): BoxStatus;
|
|
685
503
|
get children(): CubeChild[];
|
|
686
504
|
get component(): any;
|
|
687
505
|
get attrs(): IBox.Attrs;
|
|
@@ -690,24 +508,32 @@ declare class CubeBox extends CubeChild<IBox.Data> {
|
|
|
690
508
|
build_child(data: IBox.Data): void;
|
|
691
509
|
export(): IBox.Data;
|
|
692
510
|
gc(): void;
|
|
693
|
-
on_merge(command:
|
|
694
|
-
on_box_order(command:
|
|
695
|
-
on_insert_child(command:
|
|
696
|
-
on_delete_child(command:
|
|
697
|
-
on_box_reset(command:
|
|
698
|
-
on_cube_delete_adjacent(command:
|
|
511
|
+
on_merge(command: ICommandCube.Merge): Recorder | void;
|
|
512
|
+
on_box_order(command: ICommandCube.Reorder): Recorder | void;
|
|
513
|
+
on_insert_child(command: ICommandCube.InsertChild): Recorder | void;
|
|
514
|
+
on_delete_child(command: ICommandCube.DeleteChild): Recorder | void;
|
|
515
|
+
on_box_reset(command: ICommandCube.Reset): Recorder | void;
|
|
516
|
+
on_cube_delete_adjacent(command: ICommandCube.DeleteAdjacent): Recorder;
|
|
699
517
|
get_valid_index(pos: number | INote.CubeSide): number;
|
|
700
518
|
}
|
|
701
519
|
|
|
702
|
-
declare class
|
|
520
|
+
declare class AdapterCubeBoxFolder extends CubeAdapterBase {
|
|
521
|
+
get meta(): INote.CubeMeta;
|
|
522
|
+
filter_out_empty(cubes: ICubeBase.Data[]): ICubeBase.Data[];
|
|
523
|
+
get_data(content?: ICubeBase.Data[], css?: Record<string, any>, attrs?: Partial<ICubeBase.Attrs>): ICubeBoxFolder.Data;
|
|
524
|
+
replace_id(versions: INote.CubesVersion, data: ICubeBoxFolder.Data, map: Record<string, string>): ICubeBase.ReplaceIdResult<ICubeBoxFolder.Data>;
|
|
525
|
+
update_data(versions: INote.CubesVersion, data: ICubeBoxFolder.Data): ICubeBase.CubeUpdateResult<ICubeBoxFolder.Data>;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
declare class BoxFolderStatus extends CubeStatusBase<ICubeBoxFolder.Data> {
|
|
703
529
|
constructor(cube: CubeBoxFolder);
|
|
704
530
|
}
|
|
705
531
|
|
|
706
532
|
declare class CubeBoxFolder extends CubeChild<ICubeBoxFolder.Data> {
|
|
707
|
-
protected _status:
|
|
533
|
+
protected _status: BoxFolderStatus;
|
|
708
534
|
constructor(note: Note, data: ICubeBoxFolder.Data, pcube: CubeChild);
|
|
709
535
|
get adapter(): AdapterCubeBoxFolder;
|
|
710
|
-
get status():
|
|
536
|
+
get status(): BoxFolderStatus;
|
|
711
537
|
get children(): CubeChild[];
|
|
712
538
|
get component(): any;
|
|
713
539
|
get is_empty(): boolean;
|
|
@@ -715,28 +541,32 @@ declare class CubeBoxFolder extends CubeChild<ICubeBoxFolder.Data> {
|
|
|
715
541
|
build_child(data: ICubeBoxFolder.Data): void;
|
|
716
542
|
gc(): void;
|
|
717
543
|
export(): ICubeBoxFolder.Data;
|
|
718
|
-
on_cube_delete_adjacent(command:
|
|
719
|
-
on_merge(command:
|
|
720
|
-
on_cube_reorder(command:
|
|
721
|
-
on_cube_reset(command:
|
|
722
|
-
on_insert_child(command:
|
|
723
|
-
on_delete_child(command:
|
|
544
|
+
on_cube_delete_adjacent(command: ICommandCube.DeleteAdjacent): Recorder;
|
|
545
|
+
on_merge(command: ICommandCube.Merge): Recorder | void;
|
|
546
|
+
on_cube_reorder(command: ICommandCube.Reorder): Recorder | void;
|
|
547
|
+
on_cube_reset(command: ICommandCube.Reset): Recorder | void;
|
|
548
|
+
on_insert_child(command: ICommandCube.InsertChild): Recorder | void;
|
|
549
|
+
on_delete_child(command: ICommandCube.DeleteChild): Recorder | void;
|
|
724
550
|
get_valid_index(pos: number | INote.CubeSide): number;
|
|
725
551
|
}
|
|
726
552
|
|
|
727
|
-
declare class
|
|
553
|
+
declare class AdapterCubeDoc extends CubeAdapterBase {
|
|
554
|
+
get meta(): INote.CubeMeta;
|
|
555
|
+
get_data(): IDoc.Data;
|
|
556
|
+
replace_id(versions: INote.CubesVersion, data: IDoc.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IDoc.Data>;
|
|
557
|
+
update_data(versions: INote.CubesVersion, data: IDoc.Data): ICubeBase.CubeUpdateResult;
|
|
728
558
|
}
|
|
729
559
|
|
|
730
|
-
declare class
|
|
560
|
+
declare class DocStatus extends CubeStatusBaseRoot<IDoc.Data> {
|
|
731
561
|
constructor(cube: CubeDoc);
|
|
732
562
|
}
|
|
733
563
|
|
|
734
564
|
declare class CubeDoc extends CubeRoot<IDoc.Data> {
|
|
735
|
-
protected _status:
|
|
565
|
+
protected _status: DocStatus;
|
|
736
566
|
protected _app: any;
|
|
737
567
|
constructor(note: Note, data: IDoc.Data);
|
|
738
568
|
get adapter(): AdapterCubeDoc;
|
|
739
|
-
get status():
|
|
569
|
+
get status(): DocStatus;
|
|
740
570
|
get app(): any;
|
|
741
571
|
get component(): any;
|
|
742
572
|
get meta(): INote.CubeMeta<INote.Cubes>;
|
|
@@ -747,7 +577,21 @@ declare class CubeDoc extends CubeRoot<IDoc.Data> {
|
|
|
747
577
|
render(dom: HTMLElement): void;
|
|
748
578
|
}
|
|
749
579
|
|
|
750
|
-
declare class
|
|
580
|
+
declare class AdapterCubeMap extends CubeAdapterBase {
|
|
581
|
+
get meta(): INote.CubeMeta;
|
|
582
|
+
get_data(): IMap.Data;
|
|
583
|
+
replace_id(versions: INote.CubesVersion, data: IMap.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IMap.Data>;
|
|
584
|
+
update_data(versions: INote.CubesVersion, data: IMap.Data): ICubeBase.CubeUpdateResult;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
declare class AdapterCubeLinker extends CubeAdapterBase {
|
|
588
|
+
get meta(): INote.CubeMeta;
|
|
589
|
+
replace_id(versions: INote.CubesVersion, data: ILinker.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ILinker.Data>;
|
|
590
|
+
get_data(from: string, to: string, type?: INodeBase.Line): ILinker.Data;
|
|
591
|
+
update_data(versions: INote.CubesVersion, data: ILinker.Data): ICubeBase.CubeUpdateResult<ILinker.Data>;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
declare class LinkerStatus extends CubeStatusBase<ILinker.Data> {
|
|
751
595
|
protected _path: Ref<string, string>;
|
|
752
596
|
protected _sample: Reactive<IMath.Point[]>;
|
|
753
597
|
protected _point_from: IMath.Point;
|
|
@@ -801,7 +645,7 @@ declare class Linker2D extends Map2D {
|
|
|
801
645
|
protected _prev_to_rect: IMath.Rect;
|
|
802
646
|
constructor(cube: CubeLinker);
|
|
803
647
|
get linker(): CubeLinker;
|
|
804
|
-
get status():
|
|
648
|
+
get status(): LinkerStatus;
|
|
805
649
|
get path(): string;
|
|
806
650
|
get attrs(): Record<string, any>;
|
|
807
651
|
get sample(): IMath.Point[];
|
|
@@ -819,12 +663,12 @@ declare class Linker2D extends Map2D {
|
|
|
819
663
|
}
|
|
820
664
|
|
|
821
665
|
declare class CubeLinker extends MapChild<ILinker.Data> {
|
|
822
|
-
protected _status:
|
|
666
|
+
protected _status: LinkerStatus;
|
|
823
667
|
protected _map2d: Linker2D;
|
|
824
668
|
constructor(note: Note, data: ILinker.Data, pcube: _Map);
|
|
825
669
|
get adapter(): AdapterCubeLinker;
|
|
826
670
|
get map2d(): Linker2D;
|
|
827
|
-
get status():
|
|
671
|
+
get status(): LinkerStatus;
|
|
828
672
|
get show(): boolean;
|
|
829
673
|
get info(): ILinker.Info;
|
|
830
674
|
get rect(): IMath.Rect;
|
|
@@ -836,8 +680,8 @@ declare class CubeLinker extends MapChild<ILinker.Data> {
|
|
|
836
680
|
get id(): string;
|
|
837
681
|
export(): ILinker.Data;
|
|
838
682
|
build_child(data: ILinker.Data): void;
|
|
839
|
-
get_linker_info():
|
|
840
|
-
protected on_linker_update(cmd:
|
|
683
|
+
get_linker_info(): ICommandMap.LinkerInfo | undefined;
|
|
684
|
+
protected on_linker_update(cmd: ICommandLinker.Update): Recorder;
|
|
841
685
|
}
|
|
842
686
|
|
|
843
687
|
declare class LinkerLine {
|
|
@@ -887,10 +731,6 @@ declare class LinkerPoint {
|
|
|
887
731
|
static free_to_any(from: MapNodeBase, to: MapNodeBase): IMapTools.LinePoints | undefined;
|
|
888
732
|
}
|
|
889
733
|
|
|
890
|
-
declare class CommandLinker {
|
|
891
|
-
static update(id: ICubeBase.CubeId, attrs: ILinkerCommand.UpdateAttr): ILinkerCommand.Update;
|
|
892
|
-
}
|
|
893
|
-
|
|
894
734
|
declare abstract class NoteBase {
|
|
895
735
|
protected _note: Note;
|
|
896
736
|
constructor(note: Note);
|
|
@@ -903,6 +743,7 @@ declare abstract class NoteBase {
|
|
|
903
743
|
get api(): typeof NoteApi;
|
|
904
744
|
get courier(): NoteCourier;
|
|
905
745
|
get history(): NoteHistory;
|
|
746
|
+
get interaction(): NoteInteraction;
|
|
906
747
|
get cursor(): NoteCursor;
|
|
907
748
|
get event(): NoteEvent;
|
|
908
749
|
get listener(): NoteListener;
|
|
@@ -911,7 +752,6 @@ declare abstract class NoteBase {
|
|
|
911
752
|
get painter(): NotePainter;
|
|
912
753
|
get cubes(): NoteCubes;
|
|
913
754
|
get flag(): NoteFlag;
|
|
914
|
-
get hotkeys(): NoteHotkeys;
|
|
915
755
|
get action(): NoteAction;
|
|
916
756
|
}
|
|
917
757
|
|
|
@@ -979,24 +819,97 @@ declare class MapInteraction extends NoteBase {
|
|
|
979
819
|
contextmenu(e: MouseEvent): void;
|
|
980
820
|
}
|
|
981
821
|
|
|
822
|
+
declare abstract class NoteHotkeyBase extends NoteBase {
|
|
823
|
+
protected _config: INoteInteraction.HotkeyConfig;
|
|
824
|
+
protected _registered: boolean;
|
|
825
|
+
abstract get default_config(): INoteInteraction.HotkeyConfig;
|
|
826
|
+
abstract execution(e: KeyboardEvent, event: HotkeysEvent): any;
|
|
827
|
+
get id(): string;
|
|
828
|
+
get note(): Note;
|
|
829
|
+
get root(): CubeRoot<any>;
|
|
830
|
+
get config(): {
|
|
831
|
+
id: string;
|
|
832
|
+
name: string;
|
|
833
|
+
shortcut: string;
|
|
834
|
+
scope: INoteInteraction.Scope;
|
|
835
|
+
group: INoteInteraction.Groups;
|
|
836
|
+
show?: boolean;
|
|
837
|
+
cursor?: boolean;
|
|
838
|
+
capture?: boolean;
|
|
839
|
+
keyup?: boolean;
|
|
840
|
+
};
|
|
841
|
+
get shortcut(): string;
|
|
842
|
+
get scope(): INoteInteraction.Scope;
|
|
843
|
+
check_allow(e: KeyboardEvent, event: HotkeysEvent): boolean;
|
|
844
|
+
init(note: Note, config?: INoteInteraction.HotkeyConfig): void;
|
|
845
|
+
register(): void;
|
|
846
|
+
export(): INoteInteraction.HotkeyConfig;
|
|
847
|
+
}
|
|
848
|
+
|
|
982
849
|
declare class NoteInteraction extends NoteBase {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
protected
|
|
986
|
-
|
|
987
|
-
protected _note_interaction_keyboard: Map<string, INoteInteraction.KeyboardApi>;
|
|
850
|
+
protected _hotkeys: Map<string, NoteHotkeyBase>;
|
|
851
|
+
protected _inited: boolean;
|
|
852
|
+
protected _useable_keyboard: boolean;
|
|
853
|
+
data: Reactive<Record<string, INoteInteraction.HotkeyConfig>>;
|
|
988
854
|
constructor(note: Note);
|
|
855
|
+
get meta(): INote.CoreMeta;
|
|
856
|
+
set_scope(scope: INoteInteraction.Scope): void;
|
|
989
857
|
get useable_keyboard(): boolean;
|
|
990
|
-
get map_interactions_keyboard(): IMapInteraction.KeyboardApi[];
|
|
991
|
-
get note_interactions_keyboard(): INoteInteraction.KeyboardApi[];
|
|
992
|
-
add_note_interaction_keyboard(interaction: INoteInteraction.KeyboardApi): void;
|
|
993
|
-
add_map_interaction_keyboard(interaction: IMapInteraction.KeyboardApi): void;
|
|
994
858
|
set_useable_keyboard(useable: boolean): void;
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
859
|
+
listen(dom: HTMLElement): void;
|
|
860
|
+
init(config?: Partial<INoteInteraction.Data>): void;
|
|
861
|
+
register(hotkey: NoteHotkeyBase, config?: INoteInteraction.HotkeyConfig): void;
|
|
862
|
+
protected init_hotkey(hotkey: NoteHotkeyBase, config?: INoteInteraction.HotkeyConfig): void;
|
|
863
|
+
protected set_data(config: INoteInteraction.HotkeyConfig): void;
|
|
864
|
+
reset(data: Record<string, INoteInteraction.HotkeyConfig>): void;
|
|
865
|
+
export(): INoteInteraction.Data;
|
|
866
|
+
update_data(...args: any[]): object;
|
|
867
|
+
get_hotkey_str(name: string): string;
|
|
868
|
+
which(e: KeyboardEvent): INoteInteraction.HotkeyConfig | undefined;
|
|
869
|
+
validate_hotkeys(e: KeyboardEvent, cursor?: "all" | "cursor" | "uncursor"): boolean;
|
|
870
|
+
validate(e: KeyboardEvent, info: INoteInteraction.HotkeyConfig): boolean;
|
|
871
|
+
protected configs(): INoteInteraction.HotkeyConfig[];
|
|
872
|
+
protected validate_shortcut(e: KeyboardEvent, shortcut: string): boolean;
|
|
873
|
+
protected normalize_key(key: string): string;
|
|
998
874
|
}
|
|
999
875
|
|
|
876
|
+
declare abstract class NoteEventListenerBase<E extends Event = Event> {
|
|
877
|
+
protected records: WeakMap<Note, {
|
|
878
|
+
host: HTMLElement;
|
|
879
|
+
handler: EventListener;
|
|
880
|
+
}>;
|
|
881
|
+
abstract get type(): string;
|
|
882
|
+
protected abstract get_host(note: Note, dom: HTMLElement): HTMLElement;
|
|
883
|
+
protected abstract handle(note: Note, e: E): any;
|
|
884
|
+
register(note: Note, dom: HTMLElement): void;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
declare class PasteEventListener extends NoteEventListenerBase<ClipboardEvent> {
|
|
888
|
+
get type(): string;
|
|
889
|
+
protected get_host(note: Note, dom: HTMLElement): HTMLElement;
|
|
890
|
+
protected handle(note: Note, e: ClipboardEvent): Promise<void>;
|
|
891
|
+
}
|
|
892
|
+
declare const paste_event_listener: PasteEventListener;
|
|
893
|
+
|
|
894
|
+
declare class CopyEventListener extends NoteEventListenerBase<ClipboardEvent> {
|
|
895
|
+
get type(): string;
|
|
896
|
+
protected get_host(note: Note, dom: HTMLElement): HTMLElement;
|
|
897
|
+
protected handle(note: Note, e: ClipboardEvent): void;
|
|
898
|
+
}
|
|
899
|
+
declare const copy_event_listener: CopyEventListener;
|
|
900
|
+
|
|
901
|
+
declare class CutEventListener extends NoteEventListenerBase<ClipboardEvent> {
|
|
902
|
+
get type(): string;
|
|
903
|
+
protected get_host(note: Note, dom: HTMLElement): HTMLElement;
|
|
904
|
+
protected handle(note: Note, e: ClipboardEvent): void;
|
|
905
|
+
}
|
|
906
|
+
declare const cut_event_listener: CutEventListener;
|
|
907
|
+
|
|
908
|
+
declare const NoteEventListeners: NoteEventListenerBase[];
|
|
909
|
+
|
|
910
|
+
declare const MapHotkeys: Map<string, NoteHotkeyBase>;
|
|
911
|
+
declare function hotkey(cls: typeof NoteHotkeyBase): void;
|
|
912
|
+
|
|
1000
913
|
declare class Waiter {
|
|
1001
914
|
protected _promise: Promise<any>;
|
|
1002
915
|
protected _resolve: Function;
|
|
@@ -1008,7 +921,7 @@ declare class Waiter {
|
|
|
1008
921
|
}
|
|
1009
922
|
declare const waiter_map_svg: Waiter;
|
|
1010
923
|
|
|
1011
|
-
declare class
|
|
924
|
+
declare class MapStatus extends CubeStatusBaseRoot<IMap.Data> implements IMapBase.Status {
|
|
1012
925
|
protected _nodes_count: vue.Ref<number, number>;
|
|
1013
926
|
protected _view_rect: IMath.Rect;
|
|
1014
927
|
protected _nodes_view: ShallowReactive<Set<MapNodeBase>>;
|
|
@@ -1123,7 +1036,7 @@ declare class MapCanvas extends NoteBase {
|
|
|
1123
1036
|
}
|
|
1124
1037
|
|
|
1125
1038
|
declare class CubeMap extends CubeRoot<IMap.Data> implements IMapBase.Api {
|
|
1126
|
-
protected _status:
|
|
1039
|
+
protected _status: MapStatus;
|
|
1127
1040
|
protected _map_interaction: MapInteraction;
|
|
1128
1041
|
protected _grider: MapGrider;
|
|
1129
1042
|
protected _canvas: MapCanvas;
|
|
@@ -1154,7 +1067,7 @@ declare class CubeMap extends CubeRoot<IMap.Data> implements IMapBase.Api {
|
|
|
1154
1067
|
get linkers_view(): Set<CubeLinker>;
|
|
1155
1068
|
get line_deleted(): Set<MapNodeBase<any> | CubeLinker>;
|
|
1156
1069
|
get id(): string;
|
|
1157
|
-
get status():
|
|
1070
|
+
get status(): MapStatus;
|
|
1158
1071
|
get grider(): MapGrider;
|
|
1159
1072
|
get canvas(): MapCanvas;
|
|
1160
1073
|
get map_interaction(): MapInteraction;
|
|
@@ -1175,7 +1088,7 @@ declare class CubeMap extends CubeRoot<IMap.Data> implements IMapBase.Api {
|
|
|
1175
1088
|
find_child_cube(id: ICubeBase.CubeId): INote.NoteChild | undefined;
|
|
1176
1089
|
pick(...elements: MapChild[]): void;
|
|
1177
1090
|
remove_node(node: MapNodeBase): void;
|
|
1178
|
-
remove_linker(linker: CubeLinker):
|
|
1091
|
+
remove_linker(linker: CubeLinker): ICommandMap.LinkerInfo | undefined;
|
|
1179
1092
|
build_child(data: IMap.Data): Promise<void>;
|
|
1180
1093
|
init_env(): void;
|
|
1181
1094
|
init_map2d(): void;
|
|
@@ -1185,12 +1098,12 @@ declare class CubeMap extends CubeRoot<IMap.Data> implements IMapBase.Api {
|
|
|
1185
1098
|
render(dom: HTMLElement): Promise<void>;
|
|
1186
1099
|
protected is_noop_sibling_move(siblings: string[], node_id: string, target_id: string, type: "prev" | "next"): boolean;
|
|
1187
1100
|
protected reorder_siblings(siblings: string[], node_id: string, target_id: string, type: "prev" | "next"): boolean;
|
|
1188
|
-
protected on_sibling_reorder(cmd:
|
|
1189
|
-
protected on_node_add(cmd:
|
|
1190
|
-
protected on_node_remove(cmd:
|
|
1191
|
-
protected on_linker_add(cmd:
|
|
1192
|
-
protected on_linker_remove(cmd:
|
|
1193
|
-
protected on_node_drag(cmd:
|
|
1101
|
+
protected on_sibling_reorder(cmd: ICommandMap.SiblingReorder): Recorder | void;
|
|
1102
|
+
protected on_node_add(cmd: ICommandMap.NodeAdd): Recorder;
|
|
1103
|
+
protected on_node_remove(cmd: ICommandMap.NodeRemove): Recorder | undefined;
|
|
1104
|
+
protected on_linker_add(cmd: ICommandMap.LinkerAdd): Recorder | undefined;
|
|
1105
|
+
protected on_linker_remove(cmd: ICommandMap.LinkerRemove): Recorder | undefined;
|
|
1106
|
+
protected on_node_drag(cmd: ICommandMap.NodeMove): Recorder | undefined;
|
|
1194
1107
|
get_nodes_intersection(rect: IMath.Rect): MapNodeBase[];
|
|
1195
1108
|
get_linker_id(from_id: string, to_id: string): string;
|
|
1196
1109
|
get_linker(id: string): CubeLinker | undefined;
|
|
@@ -1243,22 +1156,29 @@ declare class CubeMap extends CubeRoot<IMap.Data> implements IMapBase.Api {
|
|
|
1243
1156
|
check_show_throttle: () => Promise<boolean>;
|
|
1244
1157
|
}
|
|
1245
1158
|
|
|
1159
|
+
declare class AdapterCubeNode extends CubeAdapterBase {
|
|
1160
|
+
get meta(): INote.CubeMeta;
|
|
1161
|
+
replace_id(versions: INote.CubesVersion, data: INode.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<INode.Data>;
|
|
1162
|
+
get_data(p: IMath.Point, data?: ICubeBoxRoot.Data[], shape?: INodeBase.Shape): INode.Data;
|
|
1163
|
+
update_data(versions: INote.CubesVersion, data: INode.Data): ICubeBase.CubeUpdateResult<any>;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1246
1166
|
declare class Node2D extends NodeBase2D {
|
|
1247
1167
|
constructor(cube: CubeNode);
|
|
1248
1168
|
get cube(): CubeNode;
|
|
1249
1169
|
}
|
|
1250
1170
|
|
|
1251
|
-
declare class
|
|
1171
|
+
declare class NodeStatus extends NodeStatusBase<INode.Data> {
|
|
1252
1172
|
constructor(cube: CubeNode);
|
|
1253
1173
|
}
|
|
1254
1174
|
|
|
1255
1175
|
declare class CubeNode extends MapNodeBase<INode.Data> {
|
|
1256
|
-
protected _status:
|
|
1176
|
+
protected _status: NodeStatus;
|
|
1257
1177
|
protected _map2d: Node2D;
|
|
1258
1178
|
constructor(note: Note, data: INode.Data, pcube: _Map);
|
|
1259
1179
|
get adapter(): AdapterCubeNode;
|
|
1260
1180
|
get map2d(): Node2D;
|
|
1261
|
-
get status():
|
|
1181
|
+
get status(): NodeStatus;
|
|
1262
1182
|
get component(): any;
|
|
1263
1183
|
build_child(data: INode.Data): void;
|
|
1264
1184
|
export(): INode.Data;
|
|
@@ -1280,15 +1200,30 @@ declare class NodeShape {
|
|
|
1280
1200
|
static circle(map2d: NodeBase2D, padding?: number): string;
|
|
1281
1201
|
}
|
|
1282
1202
|
|
|
1203
|
+
declare class AdapterCubeApi extends CubeAdapterBase {
|
|
1204
|
+
get meta(): INote.CubeMeta;
|
|
1205
|
+
get type_argument(): Record<string, string>;
|
|
1206
|
+
get type_funciton(): Record<string, string>;
|
|
1207
|
+
get_line_function(funcname?: string): ILine.Data;
|
|
1208
|
+
get_text_function_type(): IText.Data;
|
|
1209
|
+
get_text_function(funcname?: string): IText.Data;
|
|
1210
|
+
get_text_argument(argname?: string): IText.Data;
|
|
1211
|
+
get_text_argument_type(): IText.Data;
|
|
1212
|
+
get_data(css?: INote.Css, attrs?: INote.Attrs): IApi.Data;
|
|
1213
|
+
update_data(versions: INote.CubesVersion, data: any): ICubeBase.CubeUpdateResult<IApi.Data>;
|
|
1214
|
+
to_v2(versions: INote.CubesVersion, data: IApi.V1): IApi.V2;
|
|
1215
|
+
replace_id(versions: INote.CubesVersion, data: IApi.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IApi.Data>;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1283
1218
|
declare class CubeApi extends CubeChild<IApi.Data> {
|
|
1284
|
-
protected _status:
|
|
1219
|
+
protected _status: ApiStatus;
|
|
1285
1220
|
protected _functions: CubeList;
|
|
1286
1221
|
protected _arguments: CubeList | undefined;
|
|
1287
1222
|
protected _exceptions: CubeList | undefined;
|
|
1288
1223
|
protected _temp_funcnames: string[];
|
|
1289
1224
|
constructor(note: Note, data: IApi.Data, pcube: CubeChild);
|
|
1290
1225
|
get adapter(): AdapterCubeApi;
|
|
1291
|
-
get status():
|
|
1226
|
+
get status(): ApiStatus;
|
|
1292
1227
|
get functions(): CubeList;
|
|
1293
1228
|
get arguments(): CubeList | undefined;
|
|
1294
1229
|
set arguments(val: CubeList | undefined);
|
|
@@ -1305,10 +1240,18 @@ declare class CubeApi extends CubeChild<IApi.Data> {
|
|
|
1305
1240
|
export(): IApi.Data;
|
|
1306
1241
|
}
|
|
1307
1242
|
|
|
1308
|
-
declare class
|
|
1243
|
+
declare class AdapterCubeList extends CubeAdapterBase {
|
|
1244
|
+
get meta(): INote.CubeMeta;
|
|
1245
|
+
get_data(children?: ICubeBase.Data[]): IList.Data;
|
|
1246
|
+
get_list_item(cubedata: ICubeBase.Data[]): IList.ListItemData;
|
|
1247
|
+
replace_id(versions: INote.CubesVersion, data: IList.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IList.Data>;
|
|
1248
|
+
update_data(versions: INote.CubesVersion, data: IList.Data): {
|
|
1249
|
+
data: IList.Data;
|
|
1250
|
+
usable: boolean;
|
|
1251
|
+
};
|
|
1309
1252
|
}
|
|
1310
1253
|
|
|
1311
|
-
declare class
|
|
1254
|
+
declare class ListStatus extends CubeStatusBase<IList.Data> {
|
|
1312
1255
|
protected _items: IList.ListItem[];
|
|
1313
1256
|
constructor(cube: CubeList);
|
|
1314
1257
|
get cube(): CubeList;
|
|
@@ -1320,11 +1263,11 @@ declare class StatusList extends StatusCube<IList.Data> {
|
|
|
1320
1263
|
}
|
|
1321
1264
|
|
|
1322
1265
|
declare class CubeList extends CubeChild<IList.Data> {
|
|
1323
|
-
protected _status:
|
|
1266
|
+
protected _status: ListStatus;
|
|
1324
1267
|
protected _items: IList.ListItem[];
|
|
1325
1268
|
constructor(note: Note, data: IList.Data, pcube: CubeChild);
|
|
1326
1269
|
get adapter(): AdapterCubeList;
|
|
1327
|
-
get status():
|
|
1270
|
+
get status(): ListStatus;
|
|
1328
1271
|
get component(): any;
|
|
1329
1272
|
get items(): IList.ListItem[];
|
|
1330
1273
|
get children(): CubeBox[];
|
|
@@ -1340,14 +1283,14 @@ declare class CubeList extends CubeChild<IList.Data> {
|
|
|
1340
1283
|
splice_items(index: number, delete_count: number, ...insert: IList.ListItem[]): ICubeBase.CubeSpliceResult<IList.ListItem, IList.ListItemData>;
|
|
1341
1284
|
create(data: IList.ListItemData[]): IList.ListItem[];
|
|
1342
1285
|
create_item_data(indent?: number): IList.ListItemData;
|
|
1343
|
-
protected on_reset(cmd:
|
|
1344
|
-
protected add_item(cmd:
|
|
1345
|
-
protected remove_item(cmd:
|
|
1346
|
-
protected indent_item(cmd:
|
|
1347
|
-
on_delete_child(command:
|
|
1286
|
+
protected on_reset(cmd: ICommandList.Reset): Recorder;
|
|
1287
|
+
protected add_item(cmd: ICommandList.AddItem): Recorder;
|
|
1288
|
+
protected remove_item(cmd: ICommandList.RemoveItem): Recorder | undefined;
|
|
1289
|
+
protected indent_item(cmd: ICommandList.IndentItem): Recorder;
|
|
1290
|
+
on_delete_child(command: ICommandCube.DeleteChild): Recorder | void;
|
|
1348
1291
|
}
|
|
1349
1292
|
|
|
1350
|
-
declare class
|
|
1293
|
+
declare class ApiStatus extends CubeStatusBase<IApi.Data> {
|
|
1351
1294
|
protected _arguments: ShallowRef<CubeList | undefined>;
|
|
1352
1295
|
protected _exceptions: ShallowRef<CubeList | undefined>;
|
|
1353
1296
|
constructor(cube: CubeApi);
|
|
@@ -1357,25 +1300,14 @@ declare class StatusApi extends StatusCube<IApi.Data> {
|
|
|
1357
1300
|
update_exceptions(excs: CubeList | undefined): Promise<void>;
|
|
1358
1301
|
}
|
|
1359
1302
|
|
|
1360
|
-
declare class
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
protected _status: StatusAnnotation;
|
|
1366
|
-
constructor(note: Note, data: _CubeTextAnnotation, pcube: CubeChild);
|
|
1367
|
-
get adapter(): AdapterCubeAnnotation;
|
|
1368
|
-
get status(): StatusAnnotation;
|
|
1369
|
-
get component(): any;
|
|
1370
|
-
gc(): void;
|
|
1371
|
-
export(): _CubeTextAnnotation;
|
|
1372
|
-
build_child(data: _CubeTextAnnotation): void;
|
|
1373
|
-
on_insert_child(command: ICubeCommand.InsertChild): Recorder | void;
|
|
1374
|
-
on_delete_child(command: ICubeCommand.DeleteChild): Recorder | void;
|
|
1375
|
-
on_reset(cmd: ICubeCommand.Reset): Recorder | void;
|
|
1303
|
+
declare class AdapterCubeDetailList extends CubeAdapterBase {
|
|
1304
|
+
get meta(): INote.CubeMeta;
|
|
1305
|
+
get_data(info?: IDetailList.BoxDataMap[], css?: Record<string, any>, attrs?: Record<string, any>): IDetailList.Data;
|
|
1306
|
+
replace_id(versions: INote.CubesVersion, data: IDetailList.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IDetailList.Data>;
|
|
1307
|
+
update_data(versions: INote.CubesVersion, data: IDetailList.Data): ICubeBase.CubeUpdateResult<IDetailList.Data>;
|
|
1376
1308
|
}
|
|
1377
1309
|
|
|
1378
|
-
declare class
|
|
1310
|
+
declare class DetailListStatus extends CubeStatusBase<IDetailList.Data> {
|
|
1379
1311
|
protected _rows: IDetailList.BoxMap[];
|
|
1380
1312
|
constructor(cube: CubeDetailList);
|
|
1381
1313
|
get children(): CubeBox[];
|
|
@@ -1402,29 +1334,29 @@ declare namespace IDetailList {
|
|
|
1402
1334
|
}
|
|
1403
1335
|
}
|
|
1404
1336
|
|
|
1405
|
-
declare namespace
|
|
1406
|
-
interface InsertRow extends
|
|
1337
|
+
declare namespace ICommandDetailList {
|
|
1338
|
+
interface InsertRow extends ICommandCube.BaseCommand {
|
|
1407
1339
|
name: "detail-list:insert-row";
|
|
1408
1340
|
pos: number | INote.CubeSide;
|
|
1409
1341
|
rows: IDetailList.BoxDataMap[];
|
|
1410
1342
|
}
|
|
1411
|
-
interface RemoveRow extends
|
|
1343
|
+
interface RemoveRow extends ICommandCube.BaseCommand {
|
|
1412
1344
|
name: "detail-list:remove-row";
|
|
1413
1345
|
range: [number, number];
|
|
1414
1346
|
reserve: boolean;
|
|
1415
1347
|
}
|
|
1416
|
-
interface ChangeWidthCol1 extends
|
|
1348
|
+
interface ChangeWidthCol1 extends ICommandCube.BaseCommand {
|
|
1417
1349
|
name: "detail-list:change-width-col1";
|
|
1418
1350
|
width: number;
|
|
1419
1351
|
}
|
|
1420
1352
|
}
|
|
1421
1353
|
|
|
1422
1354
|
declare class CubeDetailList extends CubeChild<IDetailList.Data> {
|
|
1423
|
-
protected _status:
|
|
1355
|
+
protected _status: DetailListStatus;
|
|
1424
1356
|
protected _rows: IDetailList.BoxMap[];
|
|
1425
1357
|
constructor(note: Note, data: IDetailList.Data, pcube: CubeChild);
|
|
1426
1358
|
get adapter(): AdapterCubeDetailList;
|
|
1427
|
-
get status():
|
|
1359
|
+
get status(): DetailListStatus;
|
|
1428
1360
|
get rows(): IDetailList.BoxMap[];
|
|
1429
1361
|
get component(): any;
|
|
1430
1362
|
get children(): CubeBox[];
|
|
@@ -1442,19 +1374,20 @@ declare class CubeDetailList extends CubeChild<IDetailList.Data> {
|
|
|
1442
1374
|
export(): IDetailList.Data;
|
|
1443
1375
|
splice_rows(pos: number, deletecount: number, ...items: IDetailList.BoxMap[]): IDetailList.BoxMap[];
|
|
1444
1376
|
check_delete_edge(child: CubeChild): boolean;
|
|
1445
|
-
insert_row(cmd:
|
|
1446
|
-
remove_row(cmd:
|
|
1447
|
-
protected change_width_col1(cmd:
|
|
1448
|
-
delete_cube(command:
|
|
1377
|
+
insert_row(cmd: ICommandDetailList.InsertRow): Recorder | void;
|
|
1378
|
+
remove_row(cmd: ICommandDetailList.RemoveRow): Recorder | void;
|
|
1379
|
+
protected change_width_col1(cmd: ICommandDetailList.ChangeWidthCol1): Recorder;
|
|
1380
|
+
delete_cube(command: ICommandCube.DeleteChild): Recorder | void;
|
|
1449
1381
|
}
|
|
1450
1382
|
|
|
1451
|
-
declare class
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1383
|
+
declare class AdapterCubePostil extends CubeAdapterBase {
|
|
1384
|
+
get meta(): INote.CubeMeta;
|
|
1385
|
+
get_data(data?: ICubeBase.Data[], css?: Record<string, any>): IPostil.V1;
|
|
1386
|
+
replace_id(versions: INote.CubesVersion, data: any, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IPostil.Data>;
|
|
1387
|
+
update_data(versions: INote.CubesVersion, data: any): ICubeBase.CubeUpdateResult<IPostil.Data>;
|
|
1455
1388
|
}
|
|
1456
1389
|
|
|
1457
|
-
declare class
|
|
1390
|
+
declare class PostilStatus extends CubeStatusBase<IPostil.V1> {
|
|
1458
1391
|
protected _show: vue.Ref<boolean, boolean>;
|
|
1459
1392
|
protected _pointer_angle: vue.Ref<number, number>;
|
|
1460
1393
|
constructor(cube: CubePostil);
|
|
@@ -1466,14 +1399,14 @@ declare class StatusPostil extends StatusCube<IPostil.V1> {
|
|
|
1466
1399
|
}
|
|
1467
1400
|
|
|
1468
1401
|
declare class CubePostil extends CubeChild<IPostil.V1> {
|
|
1469
|
-
protected _status:
|
|
1402
|
+
protected _status: PostilStatus;
|
|
1470
1403
|
protected _handler_update_pos: any;
|
|
1471
1404
|
protected _handler_corrent: any;
|
|
1472
1405
|
protected _timer_corrent: any;
|
|
1473
1406
|
protected _show: boolean;
|
|
1474
1407
|
constructor(note: Note, data: IPostil.V1, pcube: INote.NoteChild);
|
|
1475
1408
|
get adapter(): AdapterCubePostil;
|
|
1476
|
-
get status():
|
|
1409
|
+
get status(): PostilStatus;
|
|
1477
1410
|
get default_size(): IMath.Rect;
|
|
1478
1411
|
get show(): boolean;
|
|
1479
1412
|
set show(v: boolean);
|
|
@@ -1483,23 +1416,30 @@ declare class CubePostil extends CubeChild<IPostil.V1> {
|
|
|
1483
1416
|
protected build_child(data: IPostil.Data): void;
|
|
1484
1417
|
export(): IPostil.V1;
|
|
1485
1418
|
gc(): void;
|
|
1486
|
-
protected on_insert_child(command:
|
|
1487
|
-
protected on_delete_child(command:
|
|
1488
|
-
protected on_reset(cmd:
|
|
1419
|
+
protected on_insert_child(command: ICommandCube.InsertChild): Recorder | void;
|
|
1420
|
+
protected on_delete_child(command: ICommandCube.DeleteChild): Recorder | void;
|
|
1421
|
+
protected on_reset(cmd: ICommandCube.Reset): Recorder | void;
|
|
1489
1422
|
visible(show: boolean): void;
|
|
1490
1423
|
update_pos(fresh?: boolean): void;
|
|
1491
1424
|
update_pointer(): void;
|
|
1492
1425
|
}
|
|
1493
1426
|
|
|
1494
|
-
declare class
|
|
1427
|
+
declare class AdapterCubeTextLink extends CubeAdapterBase {
|
|
1428
|
+
get meta(): INote.CubeMeta;
|
|
1429
|
+
get_data(url: string, title: string, css?: Record<string, any>, attrs?: Record<string, any>): ITextLink.Data;
|
|
1430
|
+
replace_id(versions: INote.CubesVersion, data: ITextLink.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ITextLink.Data>;
|
|
1431
|
+
update_data(versions: INote.CubesVersion, data: ITextLink.Data): ICubeBase.CubeUpdateResult<ITextLink.Data>;
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
declare class TextLinkStatus extends CubeStatusBase<ITextLink.Data> {
|
|
1495
1435
|
constructor(cube: CubeTextLink);
|
|
1496
1436
|
}
|
|
1497
1437
|
|
|
1498
1438
|
declare class CubeTextLink extends CubeChild<ITextLink.Data> {
|
|
1499
|
-
protected _status:
|
|
1439
|
+
protected _status: TextLinkStatus;
|
|
1500
1440
|
constructor(note: Note, data: ITextLink.Data, pcube: CubeChild);
|
|
1501
1441
|
get adapter(): AdapterCubeTextLink;
|
|
1502
|
-
get status():
|
|
1442
|
+
get status(): TextLinkStatus;
|
|
1503
1443
|
get info(): ITextLink.Info;
|
|
1504
1444
|
get component(): any;
|
|
1505
1445
|
get url(): string;
|
|
@@ -1507,11 +1447,15 @@ declare class CubeTextLink extends CubeChild<ITextLink.Data> {
|
|
|
1507
1447
|
protected build_child(data: ITextLink.Data): void;
|
|
1508
1448
|
gc(): void;
|
|
1509
1449
|
export(): ITextLink.Data;
|
|
1510
|
-
protected on_update_info(command:
|
|
1450
|
+
protected on_update_info(command: ICommandTextLink.Update): Recorder | void;
|
|
1511
1451
|
}
|
|
1512
1452
|
|
|
1513
|
-
declare class
|
|
1514
|
-
|
|
1453
|
+
declare class AdapterCubeTodo extends CubeAdapterBase {
|
|
1454
|
+
get meta(): INote.CubeMeta;
|
|
1455
|
+
get_data(): ITodo.Data;
|
|
1456
|
+
get_todo_item(cubedata: ICubeBase.Data[], done?: boolean): _CubeTodoItemData;
|
|
1457
|
+
replace_id(versions: INote.CubesVersion, data: ITodo.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ITodo.Data>;
|
|
1458
|
+
update_data(versions: INote.CubesVersion, data: ITodo.Data): ICubeBase.CubeUpdateResult<ITodo.Data>;
|
|
1515
1459
|
}
|
|
1516
1460
|
|
|
1517
1461
|
declare namespace IBox {
|
|
@@ -1541,25 +1485,25 @@ interface _CubeTodoItem {
|
|
|
1541
1485
|
data: CubeBox;
|
|
1542
1486
|
}
|
|
1543
1487
|
|
|
1544
|
-
declare namespace
|
|
1545
|
-
interface Reset extends
|
|
1488
|
+
declare namespace ICommandTodo {
|
|
1489
|
+
interface Reset extends ICommandCube.BaseCommand {
|
|
1546
1490
|
name: "todo:reset";
|
|
1547
1491
|
data: _CubeTodoItemData[];
|
|
1548
1492
|
}
|
|
1549
|
-
interface AddItem extends
|
|
1493
|
+
interface AddItem extends ICommandCube.BaseCommand {
|
|
1550
1494
|
name: "todo:add";
|
|
1551
1495
|
data: _CubeTodoItemData[];
|
|
1552
1496
|
pos: number;
|
|
1553
1497
|
}
|
|
1554
|
-
interface RemoveItem extends
|
|
1498
|
+
interface RemoveItem extends ICommandCube.BaseCommand {
|
|
1555
1499
|
name: "todo:remove";
|
|
1556
1500
|
range: [number, number];
|
|
1557
1501
|
}
|
|
1558
|
-
interface Indent extends
|
|
1502
|
+
interface Indent extends ICommandCube.BaseCommand {
|
|
1559
1503
|
name: "todo:indent";
|
|
1560
1504
|
items: ItemIndentInfo[];
|
|
1561
1505
|
}
|
|
1562
|
-
interface Status extends
|
|
1506
|
+
interface Status extends ICommandCube.BaseCommand {
|
|
1563
1507
|
name: "todo:status";
|
|
1564
1508
|
index: number;
|
|
1565
1509
|
done: boolean;
|
|
@@ -1570,7 +1514,7 @@ declare namespace ITodoCommand {
|
|
|
1570
1514
|
}
|
|
1571
1515
|
}
|
|
1572
1516
|
|
|
1573
|
-
declare class
|
|
1517
|
+
declare class TodoStatus extends CubeStatusBase<ITodo.Data> {
|
|
1574
1518
|
protected _items: _CubeTodoItem[];
|
|
1575
1519
|
constructor(cube: CubeTodo);
|
|
1576
1520
|
get items(): _CubeTodoItem[];
|
|
@@ -1583,11 +1527,11 @@ declare class StatusTodo extends StatusCube<ITodo.Data> {
|
|
|
1583
1527
|
}
|
|
1584
1528
|
|
|
1585
1529
|
declare class CubeTodo extends CubeChild<ITodo.Data> {
|
|
1586
|
-
protected _status:
|
|
1530
|
+
protected _status: TodoStatus;
|
|
1587
1531
|
protected _items: _CubeTodoItem[];
|
|
1588
1532
|
constructor(note: Note, data: ITodo.Data, pcube: CubeChild);
|
|
1589
1533
|
get adapter(): AdapterCubeTodo;
|
|
1590
|
-
get status():
|
|
1534
|
+
get status(): TodoStatus;
|
|
1591
1535
|
get items(): _CubeTodoItem[];
|
|
1592
1536
|
get component(): any;
|
|
1593
1537
|
get children(): CubeBox[];
|
|
@@ -1601,23 +1545,26 @@ declare class CubeTodo extends CubeChild<ITodo.Data> {
|
|
|
1601
1545
|
splice_items(index: number, delete_count: number, ...insert: _CubeTodoItem[]): ICubeBase.CubeSpliceResult<_CubeTodoItem, _CubeTodoItemData>;
|
|
1602
1546
|
create(data: _CubeTodoItemData[]): _CubeTodoItem[];
|
|
1603
1547
|
create_item_data(indent?: number): _CubeTodoItemData;
|
|
1604
|
-
protected on_reset(cmd:
|
|
1605
|
-
protected add_item(cmd:
|
|
1606
|
-
protected remove_item(cmd:
|
|
1607
|
-
protected indent_todoitem(cmd:
|
|
1608
|
-
update_status(cmd:
|
|
1609
|
-
on_delete_child(command:
|
|
1548
|
+
protected on_reset(cmd: ICommandTodo.Reset): Recorder;
|
|
1549
|
+
protected add_item(cmd: ICommandTodo.AddItem): Recorder;
|
|
1550
|
+
protected remove_item(cmd: ICommandTodo.RemoveItem): Recorder | undefined;
|
|
1551
|
+
protected indent_todoitem(cmd: ICommandTodo.Indent): Recorder;
|
|
1552
|
+
update_status(cmd: ICommandTodo.Status): Recorder | undefined;
|
|
1553
|
+
on_delete_child(command: ICommandCube.DeleteChild): Recorder | void;
|
|
1610
1554
|
}
|
|
1611
1555
|
|
|
1612
|
-
declare class
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1556
|
+
declare class AdapterCubeListOrdered extends CubeAdapterBase {
|
|
1557
|
+
get meta(): INote.CubeMeta;
|
|
1558
|
+
get_data(): IListOrdered.Data;
|
|
1559
|
+
get_list_item(cubedata: ICubeBase.Data[]): IList.ListItemData;
|
|
1560
|
+
replace_id(versions: INote.CubesVersion, data: IListOrdered.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IListOrdered.Data>;
|
|
1561
|
+
update_data(versions: INote.CubesVersion, data: IListOrdered.Data): {
|
|
1562
|
+
data: IListOrdered.Data;
|
|
1563
|
+
usable: boolean;
|
|
1564
|
+
};
|
|
1618
1565
|
}
|
|
1619
1566
|
|
|
1620
|
-
declare class
|
|
1567
|
+
declare class ListOrderedStatus extends CubeStatusBase<IListOrdered.Data> {
|
|
1621
1568
|
protected _items: IList.ListItem[];
|
|
1622
1569
|
constructor(cube: CubeListOrdered);
|
|
1623
1570
|
get cube(): CubeListOrdered;
|
|
@@ -1629,10 +1576,10 @@ declare class StatusListOrdered extends StatusCube<IListOrdered.Data> {
|
|
|
1629
1576
|
}
|
|
1630
1577
|
|
|
1631
1578
|
declare class CubeListOrdered extends CubeChild<IListOrdered.Data> {
|
|
1632
|
-
protected _status:
|
|
1579
|
+
protected _status: ListOrderedStatus;
|
|
1633
1580
|
protected _items: IList.ListItem[];
|
|
1634
1581
|
constructor(note: Note, data: IListOrdered.Data, pcube: CubeChild);
|
|
1635
|
-
get status():
|
|
1582
|
+
get status(): ListOrderedStatus;
|
|
1636
1583
|
get component(): any;
|
|
1637
1584
|
get children(): CubeBox[];
|
|
1638
1585
|
get items(): IList.ListItem[];
|
|
@@ -1647,31 +1594,34 @@ declare class CubeListOrdered extends CubeChild<IListOrdered.Data> {
|
|
|
1647
1594
|
splice_items(index: number, delete_count: number, ...insert: IList.ListItem[]): ICubeBase.CubeSpliceResult<IList.ListItem, IList.ListItemData>;
|
|
1648
1595
|
create(data: IList.ListItemData[]): IList.ListItem[];
|
|
1649
1596
|
create_item_data(indent?: number): IList.ListItemData;
|
|
1650
|
-
protected on_reset(cmd:
|
|
1651
|
-
protected add_item(cmd:
|
|
1652
|
-
protected remove_item(cmd:
|
|
1653
|
-
protected indent_item(cmd:
|
|
1654
|
-
on_delete_child(command:
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
declare class CommandListOrdered {
|
|
1658
|
-
static reset(id: string, data: IList.ListItemData[]): IListOrderedCommand.Reset;
|
|
1659
|
-
static add(id: string, data: IList.ListItemData[], pos: number): IListOrderedCommand.AddItem;
|
|
1660
|
-
static remove(id: string, range: [number, number]): IListOrderedCommand.RemoveItem;
|
|
1661
|
-
static indent(id: string, items: IListCommand.ItemIndentInfo[]): IListOrderedCommand.IndentItem;
|
|
1597
|
+
protected on_reset(cmd: ICommandListOrdered.Reset): Recorder;
|
|
1598
|
+
protected add_item(cmd: ICommandListOrdered.AddItem): Recorder;
|
|
1599
|
+
protected remove_item(cmd: ICommandListOrdered.RemoveItem): Recorder | undefined;
|
|
1600
|
+
protected indent_item(cmd: ICommandListOrdered.IndentItem): Recorder;
|
|
1601
|
+
on_delete_child(command: ICommandCube.DeleteChild): Recorder | void;
|
|
1662
1602
|
}
|
|
1663
1603
|
|
|
1664
|
-
declare class
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1604
|
+
declare class AdapterCubeCode extends CubeAdapterBase {
|
|
1605
|
+
protected _langs: string[];
|
|
1606
|
+
protected _themes: string[];
|
|
1607
|
+
protected _highlighter: Highlighter | undefined;
|
|
1608
|
+
get langs(): string[];
|
|
1609
|
+
get themes(): string[];
|
|
1610
|
+
get meta(): INote.CubeMeta;
|
|
1611
|
+
get highlighter(): Highlighter | undefined;
|
|
1612
|
+
get lang_map(): {
|
|
1613
|
+
[x: string]: ICode.Langs;
|
|
1614
|
+
};
|
|
1615
|
+
constructor();
|
|
1616
|
+
get_data(): ICode.Data;
|
|
1617
|
+
get_data_by_string(lang?: string, code?: string): ICode.Data;
|
|
1618
|
+
replace_id(versions: INote.CubesVersion, data: ICode.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ICode.Data>;
|
|
1619
|
+
get_format_from_lang(lang: string): string;
|
|
1620
|
+
get_lang_from_format(format: string): ICode.Langs;
|
|
1621
|
+
update_data(versions: INote.CubesVersion, data: ICode.Data): ICubeBase.CubeUpdateResult;
|
|
1672
1622
|
}
|
|
1673
1623
|
|
|
1674
|
-
declare class
|
|
1624
|
+
declare class CodeStatus extends CubeStatusBase<ICode.Data> {
|
|
1675
1625
|
protected _code_html: vue.Ref<string, string>;
|
|
1676
1626
|
protected _bg: vue.Ref<string, string>;
|
|
1677
1627
|
protected _fg: vue.Ref<string, string>;
|
|
@@ -1699,13 +1649,13 @@ declare class StatusCode extends StatusCube<ICode.Data> {
|
|
|
1699
1649
|
}
|
|
1700
1650
|
|
|
1701
1651
|
declare class CubeCode extends CubeChild<ICode.Data> {
|
|
1702
|
-
protected _status:
|
|
1652
|
+
protected _status: CodeStatus;
|
|
1703
1653
|
protected _code_html: string;
|
|
1704
1654
|
_draglist: DragList | undefined;
|
|
1705
1655
|
constructor(note: Note, data: ICode.Data, pcube: CubeChild);
|
|
1706
1656
|
get adapter(): AdapterCubeCode;
|
|
1707
1657
|
get highlighter(): Highlighter | undefined;
|
|
1708
|
-
get status():
|
|
1658
|
+
get status(): CodeStatus;
|
|
1709
1659
|
get tabbar_height(): number;
|
|
1710
1660
|
get max_height_auto(): number;
|
|
1711
1661
|
get langs(): string[];
|
|
@@ -1731,18 +1681,26 @@ declare class CubeCode extends CubeChild<ICode.Data> {
|
|
|
1731
1681
|
update_code_html(): void;
|
|
1732
1682
|
create_tab(lang: ICode.Langs, name: string, theme?: string): ICode.TabItem;
|
|
1733
1683
|
copy_code(): Function | undefined;
|
|
1734
|
-
protected change_lang(cmd:
|
|
1735
|
-
protected change_theme(cmd:
|
|
1736
|
-
protected code_update(cmd:
|
|
1737
|
-
protected code_add(cmd:
|
|
1738
|
-
protected code_remove(cmd:
|
|
1739
|
-
protected code_rename(cmd:
|
|
1740
|
-
protected change_active(cmd:
|
|
1741
|
-
on_cursor_in_tail(command:
|
|
1742
|
-
on_cursor_in_head(command:
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
declare class
|
|
1684
|
+
protected change_lang(cmd: ICommandCode.ChangeLang): Recorder | undefined;
|
|
1685
|
+
protected change_theme(cmd: ICommandCode.ChangeTheme): Recorder | undefined;
|
|
1686
|
+
protected code_update(cmd: ICommandCode.Update): Recorder | undefined;
|
|
1687
|
+
protected code_add(cmd: ICommandCode.Add): Recorder;
|
|
1688
|
+
protected code_remove(cmd: ICommandCode.Remove): Recorder | undefined;
|
|
1689
|
+
protected code_rename(cmd: ICommandCode.Rename): Recorder | undefined;
|
|
1690
|
+
protected change_active(cmd: ICommandCode.TabActive): Recorder | undefined;
|
|
1691
|
+
on_cursor_in_tail(command: ICommandCursor.InTail): Recorder;
|
|
1692
|
+
on_cursor_in_head(command: ICommandCursor.InHead): Recorder;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
declare class AdapterCubeFormula extends CubeAdapterBase {
|
|
1696
|
+
get meta(): INote.CubeMeta;
|
|
1697
|
+
get_data(formula?: string, css?: Record<string, string>, attrs?: Partial<IFormula.Attrs>): IFormula.Data;
|
|
1698
|
+
replace_id(versions: INote.CubesVersion, data: IFormula.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<IFormula.Data>;
|
|
1699
|
+
update_data(versions: INote.CubesVersion, data: IFormula.Data): ICubeBase.CubeUpdateResult;
|
|
1700
|
+
render(latex: string, options?: KatexOptions): string;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
declare class FormulaStatus extends CubeStatusBase<IFormula.Data> {
|
|
1746
1704
|
constructor(cube: CubeFormula);
|
|
1747
1705
|
protected _mathml: vue.ComputedRef<string>;
|
|
1748
1706
|
get cube(): CubeFormula;
|
|
@@ -1752,10 +1710,10 @@ declare class Statusformula extends StatusCube<IFormula.Data> {
|
|
|
1752
1710
|
}
|
|
1753
1711
|
|
|
1754
1712
|
declare class CubeFormula extends CubeChild<IFormula.Data> {
|
|
1755
|
-
protected _status:
|
|
1713
|
+
protected _status: FormulaStatus;
|
|
1756
1714
|
constructor(note: Note, data: IFormula.Data, pcube: CubeChild);
|
|
1757
1715
|
get adapter(): AdapterCubeFormula;
|
|
1758
|
-
get status():
|
|
1716
|
+
get status(): FormulaStatus;
|
|
1759
1717
|
get component(): any;
|
|
1760
1718
|
get attrs(): IFormula.Attrs;
|
|
1761
1719
|
get meta(): INote.CubeMeta<INote.Cubes>;
|
|
@@ -1763,14 +1721,18 @@ declare class CubeFormula extends CubeChild<IFormula.Data> {
|
|
|
1763
1721
|
protected build_child(data: IFormula.Data): void;
|
|
1764
1722
|
export(): IFormula.Data;
|
|
1765
1723
|
gc(): void;
|
|
1766
|
-
protected update(cmd:
|
|
1724
|
+
protected update(cmd: ICommandFormula.Update): Recorder;
|
|
1767
1725
|
}
|
|
1768
1726
|
|
|
1769
|
-
declare class
|
|
1770
|
-
|
|
1727
|
+
declare class AdapterCubeTable extends CubeAdapterBase {
|
|
1728
|
+
get meta(): INote.CubeMeta;
|
|
1729
|
+
get_data(row?: number, col?: number): ITable.Data;
|
|
1730
|
+
get_data_by_data(size: [number, number], cells: ITable.CellData[]): ITable.Data;
|
|
1731
|
+
replace_id(versions: INote.CubesVersion, data: ITable.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ITable.Data>;
|
|
1732
|
+
update_data(versions: INote.CubesVersion, data: ITable.Data): ICubeBase.CubeUpdateResult<ITable.Data>;
|
|
1771
1733
|
}
|
|
1772
1734
|
|
|
1773
|
-
declare class
|
|
1735
|
+
declare class TableStatus extends CubeStatusBase<ITable.Data> {
|
|
1774
1736
|
protected _cells: ITable.Cell[];
|
|
1775
1737
|
protected _title: ShallowRef<CubeBox | undefined>;
|
|
1776
1738
|
constructor(cube: CubeTable);
|
|
@@ -1787,12 +1749,12 @@ declare class StatusTable extends StatusCube<ITable.Data> {
|
|
|
1787
1749
|
}
|
|
1788
1750
|
|
|
1789
1751
|
declare class CubeTable extends CubeChild<ITable.Data> {
|
|
1790
|
-
protected _status:
|
|
1752
|
+
protected _status: TableStatus;
|
|
1791
1753
|
protected _cells: ITable.Cell[];
|
|
1792
1754
|
protected _title: CubeBox | undefined;
|
|
1793
1755
|
constructor(note: Note, data: ITable.Data, pcube: CubeChild);
|
|
1794
1756
|
get adapter(): AdapterCubeTable;
|
|
1795
|
-
get status():
|
|
1757
|
+
get status(): TableStatus;
|
|
1796
1758
|
get title(): CubeBox | undefined;
|
|
1797
1759
|
set title(v: CubeBox | undefined);
|
|
1798
1760
|
get component(): any;
|
|
@@ -1830,54 +1792,43 @@ declare class CubeTable extends CubeChild<ITable.Data> {
|
|
|
1830
1792
|
get_selection_size(): [number, number] | undefined;
|
|
1831
1793
|
get_selection_text(): string;
|
|
1832
1794
|
copy_selection_table(): ITable.Data | undefined;
|
|
1833
|
-
add_title(cmd:
|
|
1834
|
-
remove_title(cmd:
|
|
1835
|
-
add_cell(cmd:
|
|
1836
|
-
remove_cell(cmd:
|
|
1837
|
-
add_row(cmd:
|
|
1838
|
-
remove_row(cmd:
|
|
1839
|
-
add_col(cmd:
|
|
1840
|
-
remove_col(cmd:
|
|
1841
|
-
moveto(cmd:
|
|
1842
|
-
protected update_area(cmd:
|
|
1843
|
-
merge_cell(cmd:
|
|
1844
|
-
add_grid_col(cmd:
|
|
1845
|
-
remove_grid_col(cmd:
|
|
1846
|
-
add_grid_row(cmd:
|
|
1847
|
-
remove_grid_row(cmd:
|
|
1848
|
-
col_resize(cmd:
|
|
1849
|
-
delete_child(cmd:
|
|
1795
|
+
add_title(cmd: ICommandTable.AddTitle): Recorder;
|
|
1796
|
+
remove_title(cmd: ICommandTable.RemoveTitle): Recorder | undefined;
|
|
1797
|
+
add_cell(cmd: ICommandTable.AddCell): Recorder;
|
|
1798
|
+
remove_cell(cmd: ICommandTable.RemoveCell): Recorder | undefined;
|
|
1799
|
+
add_row(cmd: ICommandTable.AddRow): Recorder;
|
|
1800
|
+
remove_row(cmd: ICommandTable.RemoveRow): Recorder;
|
|
1801
|
+
add_col(cmd: ICommandTable.AddCol): Recorder;
|
|
1802
|
+
remove_col(cmd: ICommandTable.RemoveCol): Function | Recorder | undefined;
|
|
1803
|
+
moveto(cmd: ICommandTable.CellMoveTo): Recorder | undefined;
|
|
1804
|
+
protected update_area(cmd: ICommandTable.CellUpdateArea): Recorder | undefined;
|
|
1805
|
+
merge_cell(cmd: ICommandTable.Merge): Recorder | undefined;
|
|
1806
|
+
add_grid_col(cmd: ICommandTable.AddGridCol): Recorder;
|
|
1807
|
+
remove_grid_col(cmd: ICommandTable.RemoveGridCol): Recorder | undefined;
|
|
1808
|
+
add_grid_row(cmd: ICommandTable.AddGridRow): Recorder;
|
|
1809
|
+
remove_grid_row(cmd: ICommandTable.RemoveGridRow): Recorder | undefined;
|
|
1810
|
+
col_resize(cmd: ICommandTable.ColResize): Recorder | undefined;
|
|
1811
|
+
delete_child(cmd: ICommandCube.DeleteChild): Recorder | undefined;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
declare class AdapterCubeTip extends CubeAdapterBase {
|
|
1815
|
+
get meta(): INote.CubeMeta;
|
|
1816
|
+
get_data(cubes: ICubeBase.Data[], css?: Record<string, string>, attrs?: Record<string, string>): ITip.Data;
|
|
1817
|
+
get_data_by_string(info: string, css?: Record<string, string>, attrs?: Record<string, string>): ITip.Data;
|
|
1818
|
+
replace_id(versions: INote.CubesVersion, data: ITip.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ITip.Data>;
|
|
1819
|
+
update_data(versions: INote.CubesVersion, data: ITip.Data): ICubeBase.CubeUpdateResult<ITip.Data>;
|
|
1850
1820
|
}
|
|
1851
1821
|
|
|
1852
|
-
declare class
|
|
1853
|
-
static add_title(id: ICubeBase.CubeId, data: IBox.Data): ITableCommand.AddTitle;
|
|
1854
|
-
static remove_title(id: ICubeBase.CubeId): ITableCommand.RemoveTitle;
|
|
1855
|
-
static add_cell(id: ICubeBase.CubeId, data: ITable.CellData): ITableCommand.AddCell;
|
|
1856
|
-
static remove_cell(id: ICubeBase.CubeId, cid: ICubeBase.CubeId): ITableCommand.RemoveCell;
|
|
1857
|
-
static add_row(id: ICubeBase.CubeId, index: number, rows: IBox.Data[]): ITableCommand.AddRow;
|
|
1858
|
-
static remove_row(id: ICubeBase.CubeId, index: number): ITableCommand.RemoveRow;
|
|
1859
|
-
static add_col(id: ICubeBase.CubeId, index: number, cols: IBox.Data[]): ITableCommand.AddCol;
|
|
1860
|
-
static remove_col(id: ICubeBase.CubeId, index: number): ITableCommand.RemoveCol;
|
|
1861
|
-
static moveto(id: ICubeBase.CubeId, tid: ICubeBase.CubeId, cells: ICubeBase.CubeId[]): ITableCommand.CellMoveTo;
|
|
1862
|
-
static merge(id: ICubeBase.CubeId, area: ITable.CellArea): ITableCommand.Merge;
|
|
1863
|
-
static update_cell_area(id: ICubeBase.CubeId, tid: ICubeBase.CubeId, area: ITable.CellRect): ITableCommand.CellUpdateArea;
|
|
1864
|
-
static add_grid_col(id: ICubeBase.CubeId, index: number, width: number): ITableCommand.AddGridCol;
|
|
1865
|
-
static remove_grid_col(id: ICubeBase.CubeId, index: number): ITableCommand.RemoveGridCol;
|
|
1866
|
-
static add_grid_row(id: ICubeBase.CubeId, index: number): ITableCommand.AddGridRow;
|
|
1867
|
-
static remove_grid_row(id: ICubeBase.CubeId, index: number): ITableCommand.RemoveGridRow;
|
|
1868
|
-
static col_resize(id: ICubeBase.CubeId, cols: [number, number], step: number): ITableCommand.ColResize;
|
|
1869
|
-
}
|
|
1870
|
-
|
|
1871
|
-
declare class StatusTip extends StatusCube<ITip.Data> {
|
|
1822
|
+
declare class TipStatus extends CubeStatusBase<ITip.Data> {
|
|
1872
1823
|
constructor(cube: CubeTip);
|
|
1873
1824
|
}
|
|
1874
1825
|
|
|
1875
1826
|
declare class CubeTip extends CubeChild<ITip.Data> {
|
|
1876
|
-
protected _status:
|
|
1827
|
+
protected _status: TipStatus;
|
|
1877
1828
|
protected _box: CubeBox;
|
|
1878
1829
|
constructor(note: Note, data: ITip.Data, pcube: CubeChild);
|
|
1879
1830
|
get adapter(): AdapterCubeTip;
|
|
1880
|
-
get status():
|
|
1831
|
+
get status(): TipStatus;
|
|
1881
1832
|
get component(): any;
|
|
1882
1833
|
get box(): CubeBox;
|
|
1883
1834
|
set box(value: CubeBox);
|
|
@@ -1885,11 +1836,18 @@ declare class CubeTip extends CubeChild<ITip.Data> {
|
|
|
1885
1836
|
protected build_child(data: ITip.Data): void;
|
|
1886
1837
|
export(): ITip.Data;
|
|
1887
1838
|
gc(): void;
|
|
1888
|
-
on_insert_child(command:
|
|
1889
|
-
on_delete_child(command:
|
|
1839
|
+
on_insert_child(command: ICommandCube.InsertChild): Recorder | void;
|
|
1840
|
+
on_delete_child(command: ICommandCube.DeleteChild): Recorder | void;
|
|
1890
1841
|
}
|
|
1891
1842
|
|
|
1892
|
-
declare class
|
|
1843
|
+
declare class AdapterCubeSubmap extends CubeAdapterBase {
|
|
1844
|
+
get meta(): INote.CubeMeta;
|
|
1845
|
+
get_data(width?: number, height?: number): ISubMap.Data;
|
|
1846
|
+
replace_id(versions: INote.CubesVersion, data: ISubMap.Data, map?: Record<string, string>): ICubeBase.ReplaceIdResult<ISubMap.Data>;
|
|
1847
|
+
update_data(versions: INote.CubesVersion, data: ISubMap.Data): ICubeBase.CubeUpdateResult<ISubMap.Data>;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
declare class SubmapStatus extends CubeStatusBase<ISubMap.Data> implements IMapBase.Status {
|
|
1893
1851
|
protected _nodes_count: vue.Ref<number, number>;
|
|
1894
1852
|
protected _view_rect: IMath.Rect;
|
|
1895
1853
|
protected _nodes_view: ShallowReactive<Set<MapNodeBase>>;
|
|
@@ -1978,7 +1936,7 @@ declare class StatusSubmap extends StatusCube<ISubMap.Data> implements IMapBase.
|
|
|
1978
1936
|
}
|
|
1979
1937
|
|
|
1980
1938
|
declare class CubeSubMap extends CubeChild<ISubMap.Data> implements IMapBase.Api {
|
|
1981
|
-
protected _status:
|
|
1939
|
+
protected _status: SubmapStatus;
|
|
1982
1940
|
protected _map_interaction: MapInteraction;
|
|
1983
1941
|
protected _grider: MapGrider;
|
|
1984
1942
|
protected _has_layout: boolean;
|
|
@@ -1997,7 +1955,7 @@ declare class CubeSubMap extends CubeChild<ISubMap.Data> implements IMapBase.Api
|
|
|
1997
1955
|
protected _view_rect: Reactive<IMath.Rect>;
|
|
1998
1956
|
constructor(note: Note, data: ISubMap.Data, pcube: CubeChild);
|
|
1999
1957
|
get adapter(): AdapterCubeSubmap;
|
|
2000
|
-
get status():
|
|
1958
|
+
get status(): SubmapStatus;
|
|
2001
1959
|
get grider(): MapGrider;
|
|
2002
1960
|
get nodes(): Map<string, MapNodeBase<any>>;
|
|
2003
1961
|
get linkers(): Map<string, CubeLinker>;
|
|
@@ -2043,15 +2001,15 @@ declare class CubeSubMap extends CubeChild<ISubMap.Data> implements IMapBase.Api
|
|
|
2043
2001
|
init_grider(): void;
|
|
2044
2002
|
export(): ISubMap.Data;
|
|
2045
2003
|
remove_node(node: MapNodeBase): void;
|
|
2046
|
-
remove_linker(linker: CubeLinker):
|
|
2004
|
+
remove_linker(linker: CubeLinker): ICommandMap.LinkerInfo | undefined;
|
|
2047
2005
|
protected is_noop_sibling_move(siblings: string[], node_id: string, target_id: string, type: "prev" | "next"): boolean;
|
|
2048
2006
|
protected reorder_siblings(siblings: string[], node_id: string, target_id: string, type: "prev" | "next"): boolean;
|
|
2049
|
-
protected on_sibling_reorder(cmd:
|
|
2050
|
-
protected on_node_add(cmd:
|
|
2051
|
-
protected on_node_remove(cmd:
|
|
2052
|
-
protected on_linker_add(cmd:
|
|
2053
|
-
protected on_linker_remove(cmd:
|
|
2054
|
-
protected on_node_drag(cmd:
|
|
2007
|
+
protected on_sibling_reorder(cmd: ICommandMap.SiblingReorder): Recorder | void;
|
|
2008
|
+
protected on_node_add(cmd: ICommandMap.NodeAdd): Recorder;
|
|
2009
|
+
protected on_node_remove(cmd: ICommandMap.NodeRemove): Recorder | undefined;
|
|
2010
|
+
protected on_linker_add(cmd: ICommandMap.LinkerAdd): Recorder | undefined;
|
|
2011
|
+
protected on_linker_remove(cmd: ICommandMap.LinkerRemove): Recorder | undefined;
|
|
2012
|
+
protected on_node_drag(cmd: ICommandMap.NodeMove): Recorder | undefined;
|
|
2055
2013
|
pick(...elements: MapChild[]): void;
|
|
2056
2014
|
get_nodes_all(): {
|
|
2057
2015
|
clear(): void;
|
|
@@ -2135,7 +2093,14 @@ declare class CubeSubMap extends CubeChild<ISubMap.Data> implements IMapBase.Api
|
|
|
2135
2093
|
};
|
|
2136
2094
|
}
|
|
2137
2095
|
|
|
2138
|
-
declare class
|
|
2096
|
+
declare class AdapterCubeBoxColumns extends CubeAdapterBase {
|
|
2097
|
+
get meta(): INote.CubeMeta;
|
|
2098
|
+
replace_id(versions: INote.CubesVersion, data: ICubeBoxColumns.Data, map: Record<string, string>): ICubeBase.ReplaceIdResult<ICubeBoxColumns.Data>;
|
|
2099
|
+
get_data(): ICubeBoxColumns.Data;
|
|
2100
|
+
update_data(versions: INote.CubesVersion, data: ICubeBoxColumns.Data): ICubeBase.CubeUpdateResult<ICubeBoxColumns.Data>;
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
declare class BoxColumnsStatus extends CubeStatusBase<ICubeBoxColumns.Data> {
|
|
2139
2104
|
constructor(cube: CubeBoxColumns);
|
|
2140
2105
|
get css(): {
|
|
2141
2106
|
width: string;
|
|
@@ -2143,39 +2108,44 @@ declare class StatusBoxColumns extends StatusCube<ICubeBoxColumns.Data> {
|
|
|
2143
2108
|
}
|
|
2144
2109
|
|
|
2145
2110
|
declare class CubeBoxColumns extends CubeChild<ICubeBoxColumns.Data> {
|
|
2146
|
-
protected _status:
|
|
2111
|
+
protected _status: BoxColumnsStatus;
|
|
2147
2112
|
constructor(note: Note, data: ICubeBoxColumns.Data, pcube: CubeChild);
|
|
2148
2113
|
get adapter(): AdapterCubeBoxColumns;
|
|
2149
|
-
get status():
|
|
2114
|
+
get status(): BoxColumnsStatus;
|
|
2150
2115
|
get component(): any;
|
|
2151
2116
|
get attrs(): ICubeBoxColumns.Attrs;
|
|
2152
2117
|
get min_width(): number;
|
|
2153
2118
|
protected build_child(data: ICubeBoxColumns.Data): void;
|
|
2154
2119
|
export(): ICubeBoxColumns.Data;
|
|
2155
2120
|
gc(): void;
|
|
2156
|
-
protected on_insert_child(cmd:
|
|
2157
|
-
protected on_delete_child(cmd:
|
|
2121
|
+
protected on_insert_child(cmd: ICommandCube.InsertChild): Recorder;
|
|
2122
|
+
protected on_delete_child(cmd: ICommandCube.DeleteChild): Recorder | undefined;
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
declare class AdapterCubeRt extends CubeAdapterBase {
|
|
2126
|
+
get min_size(): number;
|
|
2127
|
+
get scale(): number;
|
|
2128
|
+
get meta(): INote.CubeMeta;
|
|
2129
|
+
get_data(text?: string, explanation?: string, css?: Record<string, string>): IRt.Data;
|
|
2130
|
+
replace_id(versions: INote.CubesVersion, data: IRt.Data, map: Record<string, string>): ICubeBase.ReplaceIdResult<IRt.Data>;
|
|
2131
|
+
update_data(versions: INote.CubesVersion, data: IRt.Data): ICubeBase.CubeUpdateResult<IRt.Data>;
|
|
2158
2132
|
}
|
|
2159
2133
|
|
|
2160
|
-
declare class
|
|
2134
|
+
declare class RtStatus extends CubeStatusBase<IRt.Data> {
|
|
2161
2135
|
constructor(cube: CubeRt);
|
|
2162
2136
|
}
|
|
2163
2137
|
|
|
2164
2138
|
declare class CubeRt extends CubeChild<IRt.Data> {
|
|
2165
|
-
protected _status:
|
|
2139
|
+
protected _status: RtStatus;
|
|
2166
2140
|
constructor(note: Note, data: IRt.Data, pcube: CubeChild);
|
|
2167
2141
|
get adapter(): AdapterCubeRt;
|
|
2168
|
-
get status():
|
|
2142
|
+
get status(): RtStatus;
|
|
2169
2143
|
get info(): IRt.Info;
|
|
2170
2144
|
get component(): any;
|
|
2171
2145
|
protected build_child(data: IRt.Data): void;
|
|
2172
2146
|
export(): IRt.Data;
|
|
2173
2147
|
gc(): void;
|
|
2174
|
-
protected reset(cmd:
|
|
2175
|
-
}
|
|
2176
|
-
|
|
2177
|
-
declare class CommandRt {
|
|
2178
|
-
static reset(id: ICubeBase.CubeId, explanation: string): IRtCommand.Reset;
|
|
2148
|
+
protected reset(cmd: ICommandRt.Reset): Recorder;
|
|
2179
2149
|
}
|
|
2180
2150
|
|
|
2181
2151
|
declare class NoteScope extends NoteBase {
|
|
@@ -2214,7 +2184,7 @@ declare class NoteScope extends NoteBase {
|
|
|
2214
2184
|
declare class NoteScopes extends NoteBase {
|
|
2215
2185
|
protected _scopes: Set<NoteScope>;
|
|
2216
2186
|
constructor(note: Note);
|
|
2217
|
-
get status():
|
|
2187
|
+
get status(): CubeStatusBaseRoot<any>;
|
|
2218
2188
|
get count(): number;
|
|
2219
2189
|
get first(): NoteScope | undefined;
|
|
2220
2190
|
get last(): NoteScope | undefined;
|
|
@@ -2234,7 +2204,7 @@ declare class NoteScopes extends NoteBase {
|
|
|
2234
2204
|
get_scope_cubes_data(): ICubeBase.Data[];
|
|
2235
2205
|
}
|
|
2236
2206
|
|
|
2237
|
-
declare class
|
|
2207
|
+
declare class CubeStatusBaseRoot<T extends ICubeRootBase.Data> extends CubeStatusBase<T> {
|
|
2238
2208
|
protected _scopes: ShallowReactive<Set<NoteScope>>;
|
|
2239
2209
|
protected _postils: Map<string, any>;
|
|
2240
2210
|
constructor(cube: CubeRoot);
|
|
@@ -2259,7 +2229,7 @@ declare abstract class CubeRoot<T extends ICubeRootBase.Data = any> extends Cube
|
|
|
2259
2229
|
protected _dom: HTMLElement | undefined;
|
|
2260
2230
|
protected _children: INote.NoteChild[];
|
|
2261
2231
|
abstract get component(): any;
|
|
2262
|
-
abstract get status():
|
|
2232
|
+
abstract get status(): CubeStatusBaseRoot<T>;
|
|
2263
2233
|
abstract render(dom: HTMLElement): any;
|
|
2264
2234
|
abstract build_child(data: T): any;
|
|
2265
2235
|
abstract export(): T;
|
|
@@ -2309,23 +2279,22 @@ declare abstract class CubeRoot<T extends ICubeRootBase.Data = any> extends Cube
|
|
|
2309
2279
|
filter(func: ICubeBase.CubeFilterFunc): INote.NoteChild[];
|
|
2310
2280
|
each(func: ICubeBase.CubeEachFunc): void;
|
|
2311
2281
|
find_upstream_untill(): undefined;
|
|
2312
|
-
delete_edge(child: CubeText, dir:
|
|
2282
|
+
delete_edge(child: CubeText, dir: ICommandCube.DeleteDir): Recorder | undefined;
|
|
2313
2283
|
splice<T = any, K = any>(index: number, delete_count: number, ...insert: INote.NoteChild[]): ICubeBase.CubeSpliceResult<T, K>;
|
|
2314
2284
|
get_sdk_version(): INote.SDKMeta;
|
|
2315
|
-
protected on_reset(command:
|
|
2316
|
-
protected on_cube_reorder(command:
|
|
2317
|
-
protected on_insert_cube(command:
|
|
2318
|
-
protected on_delete_cube(command:
|
|
2319
|
-
protected on_cube_set_selection_css(command:
|
|
2320
|
-
protected on_cube_insert(command:
|
|
2321
|
-
protected on_cube_delete(command:
|
|
2322
|
-
protected on_cube_set_attr(command:
|
|
2323
|
-
protected on_cursor_in_tail(command:
|
|
2285
|
+
protected on_reset(command: ICommandCube.Reset): Recorder | void;
|
|
2286
|
+
protected on_cube_reorder(command: ICommandCube.Reorder): Recorder | void;
|
|
2287
|
+
protected on_insert_cube(command: ICommandCube.InsertChild): Recorder;
|
|
2288
|
+
protected on_delete_cube(command: ICommandCube.DeleteChild): Recorder | undefined;
|
|
2289
|
+
protected on_cube_set_selection_css(command: ICommandCube.SetSelectionCss): Recorder | void;
|
|
2290
|
+
protected on_cube_insert(command: ICommandCube.Insert): Recorder | void;
|
|
2291
|
+
protected on_cube_delete(command: ICommandCube.Delete): Recorder | void;
|
|
2292
|
+
protected on_cube_set_attr(command: ICommandCube.SetAttr): Recorder | void;
|
|
2293
|
+
protected on_cursor_in_tail(command: ICommandCursor.InTail): Recorder | undefined;
|
|
2324
2294
|
is_valid_range(range: [number, number], check_collapse?: boolean): boolean;
|
|
2325
2295
|
get_valid_range(range: [number, number]): [number, number];
|
|
2326
2296
|
}
|
|
2327
2297
|
|
|
2328
|
-
declare const AdapterAnnotation: AdapterCubeAnnotation;
|
|
2329
2298
|
declare const AdapterApi: AdapterCubeApi;
|
|
2330
2299
|
declare const AdapterBoxColumns: AdapterCubeBoxColumns;
|
|
2331
2300
|
declare const AdapterBoxFolder: AdapterCubeBoxFolder;
|
|
@@ -2355,13 +2324,13 @@ declare class AdapterCubesGlobal {
|
|
|
2355
2324
|
get versions(): INote.CubesVersion;
|
|
2356
2325
|
get metas(): Map<string, INote.CubeMeta>;
|
|
2357
2326
|
find_cube(type: INote.Cubes): any;
|
|
2358
|
-
find_adapter(type: INote.Cubes):
|
|
2327
|
+
find_adapter(type: INote.Cubes): CubeAdapterBase | undefined;
|
|
2359
2328
|
get_cmd_handler(cubetype: INote.Cubes, cmd: string): ICubeHandler.Handler | undefined;
|
|
2360
2329
|
set_cmd_handler(cubetype: INote.Cubes, cmd: string, func: ICubeHandler.Handler): void;
|
|
2361
2330
|
init_cmd_handler(cube: CubeBase): void;
|
|
2362
|
-
register_adapter(type: INote.Cubes, adapter:
|
|
2363
|
-
register_cube(type: INote.Cubes, cls: typeof CubeChild | typeof MapChild | typeof CubeRoot): typeof
|
|
2364
|
-
register_handler(type: INote.Cubes, cmd:
|
|
2331
|
+
register_adapter(type: INote.Cubes, adapter: CubeAdapterBase): CubeAdapterBase;
|
|
2332
|
+
register_cube(type: INote.Cubes, cls: typeof CubeChild | typeof MapChild | typeof CubeRoot): typeof CubeChild | typeof MapChild | typeof CubeRoot;
|
|
2333
|
+
register_handler(type: INote.Cubes, cmd: ICommandCube.Names, func: ICubeHandler.Handler): ICubeHandler.Handler;
|
|
2365
2334
|
replace_id(versions: INote.CubesVersion, data: ICubeBase.Data[], map?: Record<string, string>): ICubeBase.ReplaceIdResult<ICubeBase.Data[]>;
|
|
2366
2335
|
update_data(versions: INote.CubesVersion, data: ICubeBase.Data): ICubeBase.CubeUpdateResult;
|
|
2367
2336
|
update_bulk(versions: INote.CubesVersion, data: ICubeBase.Data[]): any[];
|
|
@@ -2372,7 +2341,7 @@ declare class AdapterCubesGlobal {
|
|
|
2372
2341
|
}
|
|
2373
2342
|
declare const AdapterCubes: AdapterCubesGlobal;
|
|
2374
2343
|
|
|
2375
|
-
declare function cmd(cmd:
|
|
2344
|
+
declare function cmd(cmd: ICommandCube.Names): (cls: any, name: string) => void;
|
|
2376
2345
|
declare function cube(name: INote.Cubes): (cls: any) => void;
|
|
2377
2346
|
|
|
2378
2347
|
declare class DialogBase extends NoteBase {
|
|
@@ -3194,6 +3163,8 @@ declare class UiSidebar extends UiBase {
|
|
|
3194
3163
|
get folded(): boolean;
|
|
3195
3164
|
set_visible(visible: boolean): void;
|
|
3196
3165
|
set(active: IUi.Core | "", folded: boolean): void;
|
|
3166
|
+
open(type: IUiSidebar.Type): void;
|
|
3167
|
+
close(): void;
|
|
3197
3168
|
toggle(type: IUiSidebar.Type): void;
|
|
3198
3169
|
export(): {};
|
|
3199
3170
|
}
|
|
@@ -3247,8 +3218,24 @@ declare class UITheme extends UiBase {
|
|
|
3247
3218
|
protected _style: HTMLStyleElement;
|
|
3248
3219
|
protected _builtin_theme: Record<string, IUiTheme.ThemeItem<IUiTheme.Names>>;
|
|
3249
3220
|
protected _backgrounds: Record<string, IUiTheme.BackgroundItem>;
|
|
3221
|
+
protected _background_virtual_config: IUiTheme.BackgroundVirtualConfig;
|
|
3222
|
+
protected _background_virtual: IUiTheme.BackgroundVirtualState;
|
|
3250
3223
|
constructor(note: Note);
|
|
3251
3224
|
get backgrounds(): Record<string, IUiTheme.BackgroundItem>;
|
|
3225
|
+
get background_items(): IUiTheme.BackgroundItem[];
|
|
3226
|
+
get background_virtual_config(): IUiTheme.BackgroundVirtualConfig;
|
|
3227
|
+
get background_virtual(): IUiTheme.BackgroundVirtualState;
|
|
3228
|
+
get background_virtual_row_height(): number;
|
|
3229
|
+
get background_virtual_total_rows(): number;
|
|
3230
|
+
get background_virtual_start_row(): number;
|
|
3231
|
+
get background_virtual_end_row(): number;
|
|
3232
|
+
get background_visible_items(): IUiTheme.BackgroundVirtualItem[];
|
|
3233
|
+
get background_virtual_start_spacer_height(): number;
|
|
3234
|
+
get background_virtual_end_spacer_height(): number;
|
|
3235
|
+
get background_virtual_grid_style(): {
|
|
3236
|
+
gridTemplateColumns: string;
|
|
3237
|
+
gap: string;
|
|
3238
|
+
};
|
|
3252
3239
|
get builtin_theme(): Record<string, IUiTheme.ThemeItem<IUiTheme.Names>>;
|
|
3253
3240
|
get themes(): Record<string, IUiTheme.ThemeItem<IUiTheme.Names>>;
|
|
3254
3241
|
get adapter(): {
|
|
@@ -3278,6 +3265,8 @@ declare class UITheme extends UiBase {
|
|
|
3278
3265
|
filter: string;
|
|
3279
3266
|
};
|
|
3280
3267
|
protected init(): void;
|
|
3268
|
+
protected get_background_virtual_spacer_height(rows: number): number;
|
|
3269
|
+
update_background_virtual_metrics(scroll_top: number, viewport_height: number, grid_top: number, grid_width: number): void;
|
|
3281
3270
|
get_filter(id?: string, create?: boolean): IUiTheme.BackgroundFilter | undefined;
|
|
3282
3271
|
get_filter_string(id?: string, create?: boolean): string;
|
|
3283
3272
|
get_theme(id: string): IUiTheme.ThemeItem | undefined;
|
|
@@ -3324,7 +3313,7 @@ declare class UiTips extends UiBase {
|
|
|
3324
3313
|
}
|
|
3325
3314
|
|
|
3326
3315
|
declare abstract class ToolBase extends NoteBase {
|
|
3327
|
-
abstract get name(): IUiToolbar.Name
|
|
3316
|
+
abstract get name(): IUiToolbar.Name;
|
|
3328
3317
|
abstract tools: IUiToolbar.Tool[];
|
|
3329
3318
|
abstract get_subtools(): Promise<IUiToolbar.ToolItem[]>;
|
|
3330
3319
|
constructor(note: Note);
|
|
@@ -3444,90 +3433,14 @@ declare class NoteCubes extends NoteBase {
|
|
|
3444
3433
|
static get meta(): INote.CoreMeta;
|
|
3445
3434
|
}
|
|
3446
3435
|
|
|
3447
|
-
declare const keymap: Map<INoteHotkeys.HotKeys, INoteHotkeys.HotKeyHandler>;
|
|
3448
|
-
declare function key(keyfunc: INoteHotkeys.HotKeys): (instance: NoteHotkeys, attr: keyof NoteHotkeys) => void;
|
|
3449
|
-
declare class NoteHotkeys extends NoteBase {
|
|
3450
|
-
handlers: Map<string, INoteHotkeys.HotKeyHandler>;
|
|
3451
|
-
data: Reactive<INoteHotkeys.NoteHotkeys>;
|
|
3452
|
-
constructor(note: Note);
|
|
3453
|
-
get meta(): INote.CoreMeta<INote.Cores>;
|
|
3454
|
-
listen(dom: HTMLElement): void;
|
|
3455
|
-
protected listen_cursor_hotkey(dom: HTMLElement): void;
|
|
3456
|
-
protected listen_uncursor_hotkey(dom: HTMLElement): void;
|
|
3457
|
-
protected listen_cvx(dom: HTMLElement): void;
|
|
3458
|
-
register(func: INoteHotkeys.HotKeyHandler, info: INoteHotkeys.HotKeyInfo): void;
|
|
3459
|
-
reset(data: Record<string, INoteHotkeys.HotKeyInfo>): void;
|
|
3460
|
-
reset_handler(hotkey_name: string, func: INoteHotkeys.HotKeyHandler): void;
|
|
3461
|
-
export(): INoteHotkeys.NoteHotkeys;
|
|
3462
|
-
update_data(...args: any[]): object;
|
|
3463
|
-
validate(e: KeyboardEvent, info: INoteHotkeys.HotKeyInfo): boolean;
|
|
3464
|
-
which(e: KeyboardEvent): INoteHotkeys.HotKeyInfo | undefined;
|
|
3465
|
-
validate_hotkeys(e: KeyboardEvent, cursor?: "all" | "cursor" | "uncursor"): boolean;
|
|
3466
|
-
get_hotkey_str(name: string): string;
|
|
3467
|
-
clear_scope(e: KeyboardEvent): void;
|
|
3468
|
-
clear_css(e: KeyboardEvent): void;
|
|
3469
|
-
bold(e: KeyboardEvent): void;
|
|
3470
|
-
unindent_line(e: KeyboardEvent): void;
|
|
3471
|
-
indent_line(e: KeyboardEvent): void;
|
|
3472
|
-
undo(e: KeyboardEvent): void;
|
|
3473
|
-
redo(e: KeyboardEvent): void;
|
|
3474
|
-
cursor_navigation(e: KeyboardEvent): Promise<void>;
|
|
3475
|
-
cursor_extend_navigation(e: KeyboardEvent): void;
|
|
3476
|
-
text_break(e: KeyboardEvent): void;
|
|
3477
|
-
break(e: KeyboardEvent): Promise<void>;
|
|
3478
|
-
break_root(e: KeyboardEvent): Promise<void>;
|
|
3479
|
-
text_partition(e: KeyboardEvent): Function | undefined;
|
|
3480
|
-
add_scope(e: KeyboardEvent): void;
|
|
3481
|
-
underline(e: KeyboardEvent): void;
|
|
3482
|
-
copy_format(e: KeyboardEvent): void;
|
|
3483
|
-
apply_format(e: KeyboardEvent): void;
|
|
3484
|
-
italic(e: KeyboardEvent): void;
|
|
3485
|
-
align_left(e: KeyboardEvent): void;
|
|
3486
|
-
align_center(e: KeyboardEvent): void;
|
|
3487
|
-
align_right(e: KeyboardEvent): void;
|
|
3488
|
-
next_root(e: KeyboardEvent): void;
|
|
3489
|
-
prev_root(e: KeyboardEvent): void;
|
|
3490
|
-
add_annotation(e: KeyboardEvent): Function | Recorder | undefined;
|
|
3491
|
-
fold_block(e: KeyboardEvent): void;
|
|
3492
|
-
add_bookmark(e: KeyboardEvent): void;
|
|
3493
|
-
fontsize_up(e: KeyboardEvent): void;
|
|
3494
|
-
fontsize_down(e: KeyboardEvent): void;
|
|
3495
|
-
link(e: KeyboardEvent): void;
|
|
3496
|
-
search_doc(e: KeyboardEvent): void;
|
|
3497
|
-
show_formula_editor(e: KeyboardEvent): void;
|
|
3498
|
-
show_cubelist(e: KeyboardEvent): void;
|
|
3499
|
-
text_rt(e: KeyboardEvent): void;
|
|
3500
|
-
static get meta(): INote.CoreMeta;
|
|
3501
|
-
static get default_hotkeys(): INoteHotkeys.NoteHotkeys;
|
|
3502
|
-
}
|
|
3503
|
-
|
|
3504
|
-
declare abstract class HotkeyBase {
|
|
3505
|
-
protected _note: Note;
|
|
3506
|
-
protected _config: INoteHotkeys.Config;
|
|
3507
|
-
constructor(note: Note, config: INoteHotkeys.Config);
|
|
3508
|
-
get id(): string;
|
|
3509
|
-
get note(): Note;
|
|
3510
|
-
get config(): {
|
|
3511
|
-
id: string;
|
|
3512
|
-
name: string;
|
|
3513
|
-
shortcut: string;
|
|
3514
|
-
scope: INoteHotkeys.Scope;
|
|
3515
|
-
capture?: boolean;
|
|
3516
|
-
keyup?: boolean;
|
|
3517
|
-
};
|
|
3518
|
-
get shortcut(): string;
|
|
3519
|
-
get scope(): INoteHotkeys.Scope;
|
|
3520
|
-
abstract get default_config(): INoteHotkeys.Config;
|
|
3521
|
-
abstract register(): void;
|
|
3522
|
-
abstract export(): INoteHotkeys.Config;
|
|
3523
|
-
}
|
|
3524
|
-
|
|
3525
3436
|
declare class NoteCursor extends NoteBase {
|
|
3526
3437
|
protected _selection: Selection;
|
|
3438
|
+
protected _cursor_text: string;
|
|
3527
3439
|
cursor_step: number;
|
|
3528
3440
|
scroll_distance: number;
|
|
3529
3441
|
safa_distance: number;
|
|
3530
3442
|
constructor(note: Note);
|
|
3443
|
+
get cursor_text(): string;
|
|
3531
3444
|
get selection(): Selection;
|
|
3532
3445
|
get meta(): INote.CoreMeta<INote.Cores>;
|
|
3533
3446
|
get has_selection(): boolean;
|
|
@@ -3550,6 +3463,7 @@ declare class NoteCursor extends NoteBase {
|
|
|
3550
3463
|
get cube_end(): CubeText | undefined;
|
|
3551
3464
|
get cube_focus(): CubeChild | undefined;
|
|
3552
3465
|
get cube_anchor(): CubeChild | undefined;
|
|
3466
|
+
check_cursor(): boolean;
|
|
3553
3467
|
get_cursor_info(): INoteCursor.CursorInfo;
|
|
3554
3468
|
protected locate_next_line(dir: "up" | "down", line: CubeLine, pos: INoteCursor.EdgeRect): void;
|
|
3555
3469
|
protected locate_current_line(dir: "up" | "down", line: CubeLine, pos: INoteCursor.EdgeRect): boolean;
|
|
@@ -3589,13 +3503,13 @@ declare class NoteCursor extends NoteBase {
|
|
|
3589
3503
|
}
|
|
3590
3504
|
|
|
3591
3505
|
declare class NoteCourier extends NoteBase {
|
|
3592
|
-
protected command_group_do:
|
|
3593
|
-
protected command_group_undo:
|
|
3506
|
+
protected command_group_do: ICommandCube.BaseCommand[];
|
|
3507
|
+
protected command_group_undo: ICommandCube.BaseCommand[];
|
|
3594
3508
|
constructor(note: Note);
|
|
3595
3509
|
get meta(): INote.CoreMeta<INote.Cores>;
|
|
3596
|
-
protected execute_command_group(cmds:
|
|
3510
|
+
protected execute_command_group(cmds: ICommandCube.BaseCommand[]): void;
|
|
3597
3511
|
get_recorder(): Recorder;
|
|
3598
|
-
pass(command:
|
|
3512
|
+
pass(command: ICommandCube.BaseCommand): Recorder | void;
|
|
3599
3513
|
load(): void;
|
|
3600
3514
|
export(): {};
|
|
3601
3515
|
update_data(...args: any[]): object;
|
|
@@ -3639,14 +3553,14 @@ declare class NotePainter extends NoteBase {
|
|
|
3639
3553
|
get meta(): INote.CoreMeta<INote.Cores>;
|
|
3640
3554
|
get format_brush(): {};
|
|
3641
3555
|
constructor(note: Note);
|
|
3642
|
-
paint(style: Record<string, string | null>, method?:
|
|
3556
|
+
paint(style: Record<string, string | null>, method?: ICommandCube.CssMethod): void;
|
|
3643
3557
|
clear(): void;
|
|
3644
3558
|
text_align(dir: "left" | "center" | "right"): Recorder;
|
|
3645
3559
|
indent(): void;
|
|
3646
3560
|
unindent(): void;
|
|
3647
3561
|
copy_format(): void;
|
|
3648
3562
|
apply_format_brush(): void;
|
|
3649
|
-
set_bulk_css(css: Record<string, string>, cubes: INote.NoteChild[], method?:
|
|
3563
|
+
set_bulk_css(css: Record<string, string>, cubes: INote.NoteChild[], method?: ICommandCube.CssMethod): void;
|
|
3650
3564
|
remove_bulk_css(css: string[], cubes: INote.NoteCube[]): void;
|
|
3651
3565
|
static get meta(): INote.CoreMeta;
|
|
3652
3566
|
}
|
|
@@ -3669,9 +3583,9 @@ declare class NoteEvent extends NoteBase {
|
|
|
3669
3583
|
on_replace_id(func: INoteEvent.ListenerReplaceId): Function;
|
|
3670
3584
|
emit_replace_id(map: Record<string, string>): Promise<any[]>;
|
|
3671
3585
|
on_edit_before(func: INoteEvent.ListenerEdit): Function;
|
|
3672
|
-
emit_edit_before(cube: INote.NoteCube, cmd:
|
|
3586
|
+
emit_edit_before(cube: INote.NoteCube, cmd: ICommandCube.BaseCommand): Promise<any[]>;
|
|
3673
3587
|
on_edit_after(func: INoteEvent.ListenerEdit): Function;
|
|
3674
|
-
emit_edit_after(cube: INote.NoteCube, cmd:
|
|
3588
|
+
emit_edit_after(cube: INote.NoteCube, cmd: ICommandCube.BaseCommand): Promise<any[]>;
|
|
3675
3589
|
on_text_merge(func: INoteEvent.ListenerTextMerge): Function;
|
|
3676
3590
|
emit_text_merge(from: string, to: string): Promise<any[]>;
|
|
3677
3591
|
on_esc(func: INoteEvent.ListenerEsc): Function;
|
|
@@ -3826,9 +3740,9 @@ declare class NoteAction extends NoteBase {
|
|
|
3826
3740
|
constructor(note: Note);
|
|
3827
3741
|
ins(text: string): Recorder;
|
|
3828
3742
|
insert(cubes: ICubeBase.Data[]): Recorder;
|
|
3829
|
-
delete(dir:
|
|
3830
|
-
set_css(cube: INote.NoteCube, css: INote.Css, method?:
|
|
3831
|
-
set_selection_css(css: INote.Css, method?:
|
|
3743
|
+
delete(dir: ICommandCube.DeleteDir, reserve?: boolean): Recorder | undefined;
|
|
3744
|
+
set_css(cube: INote.NoteCube, css: INote.Css, method?: ICommandCube.CssMethod): Recorder;
|
|
3745
|
+
set_selection_css(css: INote.Css, method?: ICommandCube.CssMethod): Recorder | undefined;
|
|
3832
3746
|
}
|
|
3833
3747
|
|
|
3834
3748
|
declare class Note {
|
|
@@ -3840,7 +3754,6 @@ declare class Note {
|
|
|
3840
3754
|
protected _isdev: boolean;
|
|
3841
3755
|
protected _uidata: IUi.Data;
|
|
3842
3756
|
protected _cubes: NoteCubes;
|
|
3843
|
-
protected _hotkeys: NoteHotkeys;
|
|
3844
3757
|
protected _history: NoteHistory;
|
|
3845
3758
|
protected _cursor: NoteCursor;
|
|
3846
3759
|
protected _courier: NoteCourier;
|
|
@@ -3863,7 +3776,6 @@ declare class Note {
|
|
|
3863
3776
|
get convertor(): typeof NoteConvertor;
|
|
3864
3777
|
get cubes(): NoteCubes;
|
|
3865
3778
|
get api(): typeof NoteApi;
|
|
3866
|
-
get hotkeys(): NoteHotkeys;
|
|
3867
3779
|
get history(): NoteHistory;
|
|
3868
3780
|
get cursor(): NoteCursor;
|
|
3869
3781
|
get courier(): NoteCourier;
|
|
@@ -3879,13 +3791,13 @@ declare class Note {
|
|
|
3879
3791
|
get versions(): INote.CubesVersion;
|
|
3880
3792
|
get metas(): Map<string, INote.CubeMeta>;
|
|
3881
3793
|
find_cube(type: INote.Cubes): any;
|
|
3882
|
-
find_adapter(type: INote.Cubes):
|
|
3794
|
+
find_adapter(type: INote.Cubes): CubeAdapterBase | undefined;
|
|
3883
3795
|
get_cmd_handler(cubetype: INote.Cubes, cmd: string): ICubeHandler.Handler | undefined;
|
|
3884
3796
|
set_cmd_handler(cubetype: INote.Cubes, cmd: string, func: ICubeHandler.Handler): void;
|
|
3885
3797
|
init_cmd_handler(cube: CubeBase): void;
|
|
3886
|
-
register_adapter(type: INote.Cubes, adapter:
|
|
3887
|
-
register_cube(type: INote.Cubes, cls: typeof CubeChild | typeof MapChild | typeof CubeRoot): typeof
|
|
3888
|
-
register_handler(type: INote.Cubes, cmd:
|
|
3798
|
+
register_adapter(type: INote.Cubes, adapter: CubeAdapterBase): CubeAdapterBase;
|
|
3799
|
+
register_cube(type: INote.Cubes, cls: typeof CubeChild | typeof MapChild | typeof CubeRoot): typeof CubeChild | typeof MapChild | typeof CubeRoot;
|
|
3800
|
+
register_handler(type: INote.Cubes, cmd: ICommandCube.Names, func: ICubeHandler.Handler): ICubeHandler.Handler;
|
|
3889
3801
|
replace_id(versions: INote.CubesVersion, data: ICubeBase.Data[], map?: Record<string, string>): ICubeBase.ReplaceIdResult<ICubeBase.Data[]>;
|
|
3890
3802
|
update_data(versions: INote.CubesVersion, data: ICubeBase.Data): ICubeBase.CubeUpdateResult;
|
|
3891
3803
|
update_bulk(versions: INote.CubesVersion, data: ICubeBase.Data[]): any[];
|
|
@@ -3899,7 +3811,7 @@ declare class Note {
|
|
|
3899
3811
|
render_pdf(dom: HTMLElement): void;
|
|
3900
3812
|
emit_event_after_render(): void;
|
|
3901
3813
|
find_cube(type: INote.Cubes): any;
|
|
3902
|
-
find_adapter(type: INote.Cubes):
|
|
3814
|
+
find_adapter(type: INote.Cubes): CubeAdapterBase | undefined;
|
|
3903
3815
|
get_sdk_meta(): _SDKMeta;
|
|
3904
3816
|
export(): INote.Data;
|
|
3905
3817
|
set_dev(isdev: boolean): void;
|
|
@@ -3910,22 +3822,22 @@ declare class Note {
|
|
|
3910
3822
|
}
|
|
3911
3823
|
|
|
3912
3824
|
declare class Recorder extends NoteBase {
|
|
3913
|
-
protected do:
|
|
3914
|
-
protected undo:
|
|
3915
|
-
protected _bubble: Map<INote.NoteCube, Map<INote.NoteCube,
|
|
3825
|
+
protected do: ICommandCube.BaseCommand[];
|
|
3826
|
+
protected undo: ICommandCube.BaseCommand[];
|
|
3827
|
+
protected _bubble: Map<INote.NoteCube, Map<INote.NoteCube, ICommandCube.BaseCommand[]>>;
|
|
3916
3828
|
constructor(note: Note);
|
|
3917
3829
|
get len_do(): number;
|
|
3918
3830
|
get len_undo(): number;
|
|
3919
|
-
get stack_do():
|
|
3920
|
-
get stack_undo():
|
|
3921
|
-
protected set_bubble(cube: INote.NoteCube, cmd:
|
|
3831
|
+
get stack_do(): ICommandCube.BaseCommand[];
|
|
3832
|
+
get stack_undo(): ICommandCube.BaseCommand[];
|
|
3833
|
+
protected set_bubble(cube: INote.NoteCube, cmd: ICommandCube.BaseCommand): void;
|
|
3922
3834
|
bubble(): void;
|
|
3923
|
-
add_cmd(cmd:
|
|
3924
|
-
add_recover(command:
|
|
3925
|
-
pass(cmd:
|
|
3926
|
-
tick(cmd:
|
|
3927
|
-
tell(cube: INote.NoteCube | undefined, ...cmds:
|
|
3928
|
-
exe(cube: INote.NoteCube | undefined, ...cmds:
|
|
3835
|
+
add_cmd(cmd: ICommandCube.BaseCommand): void;
|
|
3836
|
+
add_recover(command: ICommandCube.BaseCommand): void;
|
|
3837
|
+
pass(cmd: ICommandCube.BaseCommand): void;
|
|
3838
|
+
tick(cmd: ICommandCube.BaseCommand, cube?: INote.NoteCube): void;
|
|
3839
|
+
tell(cube: INote.NoteCube | undefined, ...cmds: ICommandCube.BaseCommand[]): Recorder;
|
|
3840
|
+
exe(cube: INote.NoteCube | undefined, ...cmds: ICommandCube.BaseCommand[]): Recorder;
|
|
3929
3841
|
merge(record: Recorder | void | undefined | null): Recorder;
|
|
3930
3842
|
}
|
|
3931
3843
|
|
|
@@ -3936,7 +3848,7 @@ declare class NoteHistory extends NoteBase {
|
|
|
3936
3848
|
get len_undo(): number;
|
|
3937
3849
|
get len_redo(): number;
|
|
3938
3850
|
constructor(note: Note);
|
|
3939
|
-
protected execute_command_group(cmds:
|
|
3851
|
+
protected execute_command_group(cmds: ICommandCube.BaseCommand[]): void;
|
|
3940
3852
|
undo(): Function | undefined;
|
|
3941
3853
|
redo(): Function | undefined;
|
|
3942
3854
|
record(recorder: Recorder | undefined | void | null): void;
|
|
@@ -3949,11 +3861,11 @@ declare class NoteHistory extends NoteBase {
|
|
|
3949
3861
|
|
|
3950
3862
|
declare class EventBubble {
|
|
3951
3863
|
readonly recorder: Recorder;
|
|
3952
|
-
readonly map: Map<INote.NoteCube,
|
|
3953
|
-
constructor(recorder: Recorder, map: Map<INote.NoteCube,
|
|
3864
|
+
readonly map: Map<INote.NoteCube, ICommandCube.BaseCommand[]>;
|
|
3865
|
+
constructor(recorder: Recorder, map: Map<INote.NoteCube, ICommandCube.BaseCommand[]>);
|
|
3954
3866
|
}
|
|
3955
3867
|
|
|
3956
|
-
declare class
|
|
3868
|
+
declare class CubeStatusBase<T extends ICubeBase.Data> {
|
|
3957
3869
|
protected __children: INote.NoteChild[];
|
|
3958
3870
|
protected _cube: INote.NoteCube;
|
|
3959
3871
|
protected _data: Reactive<T>;
|
|
@@ -3981,17 +3893,17 @@ declare class StatusCube<T extends ICubeBase.Data> {
|
|
|
3981
3893
|
}
|
|
3982
3894
|
|
|
3983
3895
|
declare abstract class CubeBase<T extends ICubeBase.Data = any> {
|
|
3984
|
-
protected handler: Map<
|
|
3985
|
-
protected handler_vip: Map<
|
|
3896
|
+
protected handler: Map<ICommandCube.Names, ICubeHandler.Handler>;
|
|
3897
|
+
protected handler_vip: Map<ICommandCube.Names, ICubeHandler.Handler>;
|
|
3986
3898
|
protected _note: Note;
|
|
3987
3899
|
abstract data: T;
|
|
3988
3900
|
abstract get id(): string;
|
|
3989
|
-
abstract get component(): any;
|
|
3990
|
-
abstract get adapter(): AdapterCubeBase;
|
|
3991
|
-
abstract get status(): StatusCube<T>;
|
|
3992
3901
|
abstract find_cube(id: ICubeBase.CubeId, ...args: any[]): CubeBase | undefined;
|
|
3993
3902
|
abstract export(): T;
|
|
3994
3903
|
abstract gc(): any;
|
|
3904
|
+
abstract get component(): any;
|
|
3905
|
+
abstract get status(): CubeStatusBase<T>;
|
|
3906
|
+
abstract get adapter(): CubeAdapterBase;
|
|
3995
3907
|
protected abstract build_child(data: T): any;
|
|
3996
3908
|
constructor(note: Note);
|
|
3997
3909
|
get meta(): INote.CubeMeta<INote.Cubes>;
|
|
@@ -4003,7 +3915,6 @@ declare abstract class CubeBase<T extends ICubeBase.Data = any> {
|
|
|
4003
3915
|
get root(): CubeRoot<any>;
|
|
4004
3916
|
get cubes(): NoteCubes;
|
|
4005
3917
|
get api(): typeof NoteApi;
|
|
4006
|
-
get hotkeys(): NoteHotkeys;
|
|
4007
3918
|
get history(): NoteHistory;
|
|
4008
3919
|
get cursor(): NoteCursor;
|
|
4009
3920
|
get courier(): NoteCourier;
|
|
@@ -4014,14 +3925,17 @@ declare abstract class CubeBase<T extends ICubeBase.Data = any> {
|
|
|
4014
3925
|
get listener(): NoteListener;
|
|
4015
3926
|
get interaction(): NoteInteraction;
|
|
4016
3927
|
update_data(versions: INote.CubesVersion, data: any): ICubeBase.CubeUpdateResult<T>;
|
|
4017
|
-
on(cmd:
|
|
4018
|
-
get_cmd_handler(name:
|
|
4019
|
-
get_cmd_handler_vip(name:
|
|
4020
|
-
set_cmd_handler(name:
|
|
4021
|
-
set_cmd_handler_vip(name:
|
|
3928
|
+
on(cmd: ICommandCube.BaseCommand): void | Recorder;
|
|
3929
|
+
get_cmd_handler(name: ICommandCube.Names): ICubeHandler.Handler | undefined;
|
|
3930
|
+
get_cmd_handler_vip(name: ICommandCube.Names): ICubeHandler.Handler | undefined;
|
|
3931
|
+
set_cmd_handler(name: ICommandCube.Names, handler: ICubeHandler.Handler): void;
|
|
3932
|
+
set_cmd_handler_vip(name: ICommandCube.Names, handler: ICubeHandler.Handler): void;
|
|
4022
3933
|
event_bubble(event: EventBubble): void;
|
|
4023
3934
|
}
|
|
4024
3935
|
|
|
3936
|
+
declare class CubeListenerBase {
|
|
3937
|
+
}
|
|
3938
|
+
|
|
4025
3939
|
declare abstract class MapChild<T extends ICubeBase.Data = any> extends CubeBase<T> {
|
|
4026
3940
|
abstract get show(): boolean;
|
|
4027
3941
|
abstract get map2d(): Map2D;
|
|
@@ -4068,7 +3982,7 @@ declare abstract class MapChild<T extends ICubeBase.Data = any> extends CubeBase
|
|
|
4068
3982
|
base_export(): T;
|
|
4069
3983
|
copy(left: number, right: number): ICubeBase.Data[];
|
|
4070
3984
|
get_upstream_sum_scale(): _FigScale;
|
|
4071
|
-
remove_self(dir?:
|
|
3985
|
+
remove_self(dir?: ICommandCube.DeleteDir): Recorder;
|
|
4072
3986
|
merge(method: INote.CubeMergeMethod): Recorder | undefined;
|
|
4073
3987
|
find_cube(id: ICubeBase.CubeId): CubeChild | MapChild | undefined;
|
|
4074
3988
|
filter(func: ICubeBase.CubeFilterFunc): Array<CubeChild | MapChild>;
|
|
@@ -4081,16 +3995,16 @@ declare abstract class MapChild<T extends ICubeBase.Data = any> extends CubeBase
|
|
|
4081
3995
|
find_child_index(id: ICubeBase.CubeId): number;
|
|
4082
3996
|
find_next_cube(id: ICubeBase.CubeId): CubeChild | undefined;
|
|
4083
3997
|
find_prev_cube(id: ICubeBase.CubeId): CubeChild | undefined;
|
|
4084
|
-
protected on_cube_set_selection_css(command:
|
|
4085
|
-
protected on_insert(command:
|
|
4086
|
-
protected on_cube_delete(command:
|
|
4087
|
-
protected on_cube_set_css(command:
|
|
4088
|
-
protected on_cube_set_attr(command:
|
|
4089
|
-
protected on_cube_delete_adjacent(command:
|
|
4090
|
-
protected on_postil_add(cmd:
|
|
4091
|
-
protected on_postil_remove(command:
|
|
4092
|
-
protected on_cursor_in_head(command:
|
|
4093
|
-
protected on_cursor_in_tail(command:
|
|
3998
|
+
protected on_cube_set_selection_css(command: ICommandCube.SetSelectionCss): Recorder | void;
|
|
3999
|
+
protected on_insert(command: ICommandCube.Insert): Recorder | void;
|
|
4000
|
+
protected on_cube_delete(command: ICommandCube.Delete): Recorder | void;
|
|
4001
|
+
protected on_cube_set_css(command: ICommandCube.SetCss): Recorder | void;
|
|
4002
|
+
protected on_cube_set_attr(command: ICommandCube.SetAttr): Recorder | void;
|
|
4003
|
+
protected on_cube_delete_adjacent(command: ICommandCube.DeleteAdjacent): Recorder | void;
|
|
4004
|
+
protected on_postil_add(cmd: ICommandCube.PostilAdd): Recorder | void;
|
|
4005
|
+
protected on_postil_remove(command: ICommandCube.PostilRemove): Recorder | void;
|
|
4006
|
+
protected on_cursor_in_head(command: ICommandCursor.InHead): Recorder | undefined;
|
|
4007
|
+
protected on_cursor_in_tail(command: ICommandCursor.InTail): Recorder | undefined;
|
|
4094
4008
|
is_valid_range(range: [number, number], check_collapse?: boolean): boolean;
|
|
4095
4009
|
get_valid_index(pos: number | INote.CubeSide): number;
|
|
4096
4010
|
get_valid_range(range: [number, number]): [number, number];
|
|
@@ -4102,7 +4016,7 @@ declare abstract class MapNodeBase<T extends INodeBase.Base = any> extends MapCh
|
|
|
4102
4016
|
protected _layouted: boolean;
|
|
4103
4017
|
protected _env: MapNodeLayoutEnv;
|
|
4104
4018
|
abstract map2d: NodeBase2D;
|
|
4105
|
-
abstract get status():
|
|
4019
|
+
abstract get status(): NodeStatusBase<T>;
|
|
4106
4020
|
constructor(note: Note, data: T, pcube: _Map);
|
|
4107
4021
|
get layouted(): boolean;
|
|
4108
4022
|
set layouted(v: boolean);
|
|
@@ -4148,13 +4062,13 @@ declare abstract class MapNodeBase<T extends INodeBase.Base = any> extends MapCh
|
|
|
4148
4062
|
break_link_node(id: string): void;
|
|
4149
4063
|
remove_self(): Recorder;
|
|
4150
4064
|
find_dom_cube(node: Node): INote.NoteChild | undefined;
|
|
4151
|
-
protected on_reset(command:
|
|
4152
|
-
protected on_cube_reorder(command:
|
|
4153
|
-
protected on_insert_child(command:
|
|
4154
|
-
protected on_delete_child(command:
|
|
4155
|
-
protected on_cube_insert(command:
|
|
4156
|
-
protected on_layout_update(cmd:
|
|
4157
|
-
protected on_append_child(cmd:
|
|
4065
|
+
protected on_reset(command: ICommandCube.Reset): Recorder | void;
|
|
4066
|
+
protected on_cube_reorder(command: ICommandCube.Reorder): Recorder | void;
|
|
4067
|
+
protected on_insert_child(command: ICommandCube.InsertChild): Recorder;
|
|
4068
|
+
protected on_delete_child(command: ICommandCube.DeleteChild): Recorder | undefined;
|
|
4069
|
+
protected on_cube_insert(command: ICommandCube.Insert): Recorder | void;
|
|
4070
|
+
protected on_layout_update(cmd: ICommandNode.LayoutUpdate): Recorder;
|
|
4071
|
+
protected on_append_child(cmd: ICommandNode.AppendChild): Recorder;
|
|
4158
4072
|
static get_default_node_size(padding?: number): IMath.RectArea;
|
|
4159
4073
|
static get_default_node_pos(pos: _PointView, map: INote.NoteCube & IMapBase.Api): {
|
|
4160
4074
|
x: number;
|
|
@@ -4178,7 +4092,7 @@ declare class MapNodeLayoutEnv {
|
|
|
4178
4092
|
index: number;
|
|
4179
4093
|
};
|
|
4180
4094
|
get root(): MapNodeBase | undefined;
|
|
4181
|
-
get status():
|
|
4095
|
+
get status(): NodeStatusBase<any>;
|
|
4182
4096
|
get map2d(): NodeBase2D;
|
|
4183
4097
|
get map(): _Map;
|
|
4184
4098
|
get to(): Set<string>;
|
|
@@ -4218,7 +4132,7 @@ declare class MapNodeLayoutEnv {
|
|
|
4218
4132
|
get_downstream_layout_type(node: MapNodeBase): INodeBase.Layout;
|
|
4219
4133
|
}
|
|
4220
4134
|
|
|
4221
|
-
declare class
|
|
4135
|
+
declare class NodeStatusBase<T extends INodeBase.Base = any> extends CubeStatusBase<T> {
|
|
4222
4136
|
protected _rect_cbox: IMath.Rect;
|
|
4223
4137
|
protected _rect: IMath.Rect;
|
|
4224
4138
|
protected _editable: Ref<boolean, boolean>;
|
|
@@ -4269,7 +4183,7 @@ declare class StatusNodeBase<T extends INodeBase.Base = any> extends StatusCube<
|
|
|
4269
4183
|
f: number;
|
|
4270
4184
|
};
|
|
4271
4185
|
get is_layout_root(): boolean;
|
|
4272
|
-
get upstatus():
|
|
4186
|
+
get upstatus(): NodeStatusBase | undefined;
|
|
4273
4187
|
get node_fill(): string | undefined;
|
|
4274
4188
|
get node_line_type(): INodeBase.Line;
|
|
4275
4189
|
get node_line_width(): number;
|
|
@@ -4339,7 +4253,7 @@ declare abstract class NodeBase2D extends Map2D {
|
|
|
4339
4253
|
get map(): _Map;
|
|
4340
4254
|
get meter(): NodeLayoutMeter;
|
|
4341
4255
|
get env(): MapNodeLayoutEnv;
|
|
4342
|
-
get status():
|
|
4256
|
+
get status(): NodeStatusBase<any>;
|
|
4343
4257
|
get matrix2d(): {
|
|
4344
4258
|
a: number;
|
|
4345
4259
|
b: number;
|
|
@@ -4626,26 +4540,26 @@ declare namespace INodeBaseEnv {
|
|
|
4626
4540
|
}
|
|
4627
4541
|
}
|
|
4628
4542
|
|
|
4629
|
-
declare namespace
|
|
4630
|
-
interface LayoutUpdate extends
|
|
4543
|
+
declare namespace ICommandNode {
|
|
4544
|
+
interface LayoutUpdate extends ICommandCube.BaseCommand {
|
|
4631
4545
|
name: "node:layout-update";
|
|
4632
4546
|
attrs: Partial<INodeBase.Attrs>;
|
|
4633
4547
|
}
|
|
4634
|
-
interface AppendChild extends
|
|
4548
|
+
interface AppendChild extends ICommandCube.BaseCommand {
|
|
4635
4549
|
name: "node:append-child";
|
|
4636
4550
|
nodes: INodeBase.Base[];
|
|
4637
4551
|
previd?: string | null;
|
|
4638
4552
|
}
|
|
4639
4553
|
}
|
|
4640
4554
|
|
|
4641
|
-
declare namespace
|
|
4642
|
-
interface Reset extends
|
|
4555
|
+
declare namespace ICommandText {
|
|
4556
|
+
interface Reset extends ICommandCube.BaseCommand {
|
|
4643
4557
|
name: "text:reset";
|
|
4644
4558
|
info: string;
|
|
4645
4559
|
pos: number;
|
|
4646
4560
|
pos_before: number;
|
|
4647
4561
|
}
|
|
4648
|
-
interface Break extends
|
|
4562
|
+
interface Break extends ICommandCube.BaseCommand {
|
|
4649
4563
|
name: "text:break";
|
|
4650
4564
|
offset: number;
|
|
4651
4565
|
}
|
|
@@ -4669,7 +4583,7 @@ declare namespace IDoc {
|
|
|
4669
4583
|
}
|
|
4670
4584
|
}
|
|
4671
4585
|
|
|
4672
|
-
declare namespace
|
|
4586
|
+
declare namespace ICommandDoc { }
|
|
4673
4587
|
|
|
4674
4588
|
declare namespace IMap {
|
|
4675
4589
|
interface Data extends ICubeRootBase.Data {
|
|
@@ -4790,8 +4704,8 @@ declare namespace ITextLink {
|
|
|
4790
4704
|
}
|
|
4791
4705
|
}
|
|
4792
4706
|
|
|
4793
|
-
declare namespace
|
|
4794
|
-
interface Update extends
|
|
4707
|
+
declare namespace ICommandTextLink {
|
|
4708
|
+
interface Update extends ICommandCube.BaseCommand {
|
|
4795
4709
|
name: "text-link:update";
|
|
4796
4710
|
url: string;
|
|
4797
4711
|
title: string;
|
|
@@ -4813,21 +4727,21 @@ declare namespace IList {
|
|
|
4813
4727
|
}
|
|
4814
4728
|
}
|
|
4815
4729
|
|
|
4816
|
-
declare namespace
|
|
4817
|
-
interface Reset extends
|
|
4730
|
+
declare namespace ICommandList {
|
|
4731
|
+
interface Reset extends ICommandCube.BaseCommand {
|
|
4818
4732
|
name: "list:reset";
|
|
4819
4733
|
data: IList.ListItemData[];
|
|
4820
4734
|
}
|
|
4821
|
-
interface AddItem extends
|
|
4735
|
+
interface AddItem extends ICommandCube.BaseCommand {
|
|
4822
4736
|
name: "list:add";
|
|
4823
4737
|
data: IList.ListItemData[];
|
|
4824
4738
|
pos: number;
|
|
4825
4739
|
}
|
|
4826
|
-
interface RemoveItem extends
|
|
4740
|
+
interface RemoveItem extends ICommandCube.BaseCommand {
|
|
4827
4741
|
name: "list:remove";
|
|
4828
4742
|
range: [number, number];
|
|
4829
4743
|
}
|
|
4830
|
-
interface IndentItem extends
|
|
4744
|
+
interface IndentItem extends ICommandCube.BaseCommand {
|
|
4831
4745
|
name: "list:indent";
|
|
4832
4746
|
items: ItemIndentInfo[];
|
|
4833
4747
|
}
|
|
@@ -4891,7 +4805,7 @@ declare namespace IApi {
|
|
|
4891
4805
|
}
|
|
4892
4806
|
}
|
|
4893
4807
|
|
|
4894
|
-
declare namespace
|
|
4808
|
+
declare namespace ICommandApi { }
|
|
4895
4809
|
|
|
4896
4810
|
declare namespace ITip {
|
|
4897
4811
|
interface Data extends ICubeBase.Data {
|
|
@@ -4900,23 +4814,23 @@ declare namespace ITip {
|
|
|
4900
4814
|
}
|
|
4901
4815
|
}
|
|
4902
4816
|
|
|
4903
|
-
declare namespace
|
|
4904
|
-
interface Reset extends
|
|
4817
|
+
declare namespace ICommandListOrdered {
|
|
4818
|
+
interface Reset extends ICommandCube.BaseCommand {
|
|
4905
4819
|
name: "list-ordered:reset";
|
|
4906
4820
|
data: IList.ListItemData[];
|
|
4907
4821
|
}
|
|
4908
|
-
interface AddItem extends
|
|
4822
|
+
interface AddItem extends ICommandCube.BaseCommand {
|
|
4909
4823
|
name: "list-ordered:add";
|
|
4910
4824
|
data: IList.ListItemData[];
|
|
4911
4825
|
pos: number;
|
|
4912
4826
|
}
|
|
4913
|
-
interface RemoveItem extends
|
|
4827
|
+
interface RemoveItem extends ICommandCube.BaseCommand {
|
|
4914
4828
|
name: "list-ordered:remove";
|
|
4915
4829
|
range: [number, number];
|
|
4916
4830
|
}
|
|
4917
|
-
interface IndentItem extends
|
|
4831
|
+
interface IndentItem extends ICommandCube.BaseCommand {
|
|
4918
4832
|
name: "list-ordered:indent";
|
|
4919
|
-
items:
|
|
4833
|
+
items: ICommandList.ItemIndentInfo[];
|
|
4920
4834
|
}
|
|
4921
4835
|
}
|
|
4922
4836
|
|
|
@@ -4956,36 +4870,36 @@ declare namespace ICode {
|
|
|
4956
4870
|
type LanguagesMap = Record<string, Langs>;
|
|
4957
4871
|
}
|
|
4958
4872
|
|
|
4959
|
-
declare namespace
|
|
4960
|
-
interface Update extends
|
|
4873
|
+
declare namespace ICommandCode {
|
|
4874
|
+
interface Update extends ICommandCube.BaseCommand {
|
|
4961
4875
|
name: "code:update";
|
|
4962
4876
|
tabid: string;
|
|
4963
4877
|
code: string;
|
|
4964
4878
|
}
|
|
4965
|
-
interface TabActive extends
|
|
4879
|
+
interface TabActive extends ICommandCube.BaseCommand {
|
|
4966
4880
|
name: "code:change-active";
|
|
4967
4881
|
tabid: string;
|
|
4968
4882
|
}
|
|
4969
|
-
interface Add extends
|
|
4883
|
+
interface Add extends ICommandCube.BaseCommand {
|
|
4970
4884
|
name: "code:add";
|
|
4971
4885
|
item: ICode.TabItem;
|
|
4972
4886
|
focus: boolean;
|
|
4973
4887
|
}
|
|
4974
|
-
interface Remove extends
|
|
4888
|
+
interface Remove extends ICommandCube.BaseCommand {
|
|
4975
4889
|
name: "code:remove";
|
|
4976
4890
|
tabid: string;
|
|
4977
4891
|
}
|
|
4978
|
-
interface Rename extends
|
|
4892
|
+
interface Rename extends ICommandCube.BaseCommand {
|
|
4979
4893
|
name: "code:rename";
|
|
4980
4894
|
tabid: string;
|
|
4981
4895
|
filename: string;
|
|
4982
4896
|
}
|
|
4983
|
-
interface ChangeLang extends
|
|
4897
|
+
interface ChangeLang extends ICommandCube.BaseCommand {
|
|
4984
4898
|
name: "code:change-lang";
|
|
4985
4899
|
tabid: string;
|
|
4986
4900
|
lang: string;
|
|
4987
4901
|
}
|
|
4988
|
-
interface ChangeTheme extends
|
|
4902
|
+
interface ChangeTheme extends ICommandCube.BaseCommand {
|
|
4989
4903
|
name: "code:change-theme";
|
|
4990
4904
|
tabid: string;
|
|
4991
4905
|
theme: string;
|
|
@@ -5013,8 +4927,8 @@ declare namespace IFormula {
|
|
|
5013
4927
|
}
|
|
5014
4928
|
}
|
|
5015
4929
|
|
|
5016
|
-
declare namespace
|
|
5017
|
-
interface Update extends
|
|
4930
|
+
declare namespace ICommandFormula {
|
|
4931
|
+
interface Update extends ICommandCube.BaseCommand {
|
|
5018
4932
|
name: "formula:update";
|
|
5019
4933
|
latex: string;
|
|
5020
4934
|
size: IFormula.Size;
|
|
@@ -5085,72 +4999,72 @@ declare namespace ITable {
|
|
|
5085
4999
|
}
|
|
5086
5000
|
}
|
|
5087
5001
|
|
|
5088
|
-
declare namespace
|
|
5089
|
-
interface AddTitle extends
|
|
5002
|
+
declare namespace ICommandTable {
|
|
5003
|
+
interface AddTitle extends ICommandCube.BaseCommand {
|
|
5090
5004
|
name: "table:add-title";
|
|
5091
5005
|
data: IBox.Data;
|
|
5092
5006
|
}
|
|
5093
|
-
interface RemoveTitle extends
|
|
5007
|
+
interface RemoveTitle extends ICommandCube.BaseCommand {
|
|
5094
5008
|
name: "table:remove-title";
|
|
5095
5009
|
}
|
|
5096
|
-
interface AddCell extends
|
|
5010
|
+
interface AddCell extends ICommandCube.BaseCommand {
|
|
5097
5011
|
name: "table:add-cell";
|
|
5098
5012
|
data: ITable.CellData;
|
|
5099
5013
|
}
|
|
5100
|
-
interface RemoveCell extends
|
|
5014
|
+
interface RemoveCell extends ICommandCube.BaseCommand {
|
|
5101
5015
|
name: "table:remove-cell";
|
|
5102
5016
|
cid: ICubeBase.CubeId;
|
|
5103
5017
|
}
|
|
5104
|
-
interface AddRow extends
|
|
5018
|
+
interface AddRow extends ICommandCube.BaseCommand {
|
|
5105
5019
|
name: "table:add-row";
|
|
5106
5020
|
index: number;
|
|
5107
5021
|
rows: IBox.Data[];
|
|
5108
5022
|
}
|
|
5109
|
-
interface RemoveRow extends
|
|
5023
|
+
interface RemoveRow extends ICommandCube.BaseCommand {
|
|
5110
5024
|
name: "table:remove-row";
|
|
5111
5025
|
index: number;
|
|
5112
5026
|
}
|
|
5113
|
-
interface AddCol extends
|
|
5027
|
+
interface AddCol extends ICommandCube.BaseCommand {
|
|
5114
5028
|
name: "table:add-col";
|
|
5115
5029
|
index: number;
|
|
5116
5030
|
cols: IBox.Data[];
|
|
5117
5031
|
}
|
|
5118
|
-
interface RemoveCol extends
|
|
5032
|
+
interface RemoveCol extends ICommandCube.BaseCommand {
|
|
5119
5033
|
name: "table:remove-col";
|
|
5120
5034
|
index: number;
|
|
5121
5035
|
}
|
|
5122
|
-
interface Merge extends
|
|
5036
|
+
interface Merge extends ICommandCube.BaseCommand {
|
|
5123
5037
|
name: "table:merge";
|
|
5124
5038
|
area: ITable.CellArea;
|
|
5125
5039
|
}
|
|
5126
|
-
interface CellMoveTo extends
|
|
5040
|
+
interface CellMoveTo extends ICommandCube.BaseCommand {
|
|
5127
5041
|
name: "table:moveto";
|
|
5128
5042
|
tid: string;
|
|
5129
5043
|
cells: string[];
|
|
5130
5044
|
}
|
|
5131
|
-
interface CellUpdateArea extends
|
|
5045
|
+
interface CellUpdateArea extends ICommandCube.BaseCommand {
|
|
5132
5046
|
name: "table:update-area";
|
|
5133
5047
|
tid: ICubeBase.CubeId;
|
|
5134
5048
|
area: ITable.CellRect;
|
|
5135
5049
|
}
|
|
5136
|
-
interface AddGridCol extends
|
|
5050
|
+
interface AddGridCol extends ICommandCube.BaseCommand {
|
|
5137
5051
|
name: "table:add-grid-col";
|
|
5138
5052
|
index: number;
|
|
5139
5053
|
width: number;
|
|
5140
5054
|
}
|
|
5141
|
-
interface RemoveGridCol extends
|
|
5055
|
+
interface RemoveGridCol extends ICommandCube.BaseCommand {
|
|
5142
5056
|
name: "table:remove-grid-col";
|
|
5143
5057
|
index: number;
|
|
5144
5058
|
}
|
|
5145
|
-
interface AddGridRow extends
|
|
5059
|
+
interface AddGridRow extends ICommandCube.BaseCommand {
|
|
5146
5060
|
name: "table:add-grid-row";
|
|
5147
5061
|
index: number;
|
|
5148
5062
|
}
|
|
5149
|
-
interface RemoveGridRow extends
|
|
5063
|
+
interface RemoveGridRow extends ICommandCube.BaseCommand {
|
|
5150
5064
|
name: "table:remove-grid-row";
|
|
5151
5065
|
index: number;
|
|
5152
5066
|
}
|
|
5153
|
-
interface ColResize extends
|
|
5067
|
+
interface ColResize extends ICommandCube.BaseCommand {
|
|
5154
5068
|
name: "table:col-resize";
|
|
5155
5069
|
cols: [number, number];
|
|
5156
5070
|
step: number;
|
|
@@ -5193,8 +5107,8 @@ declare namespace ILinker {
|
|
|
5193
5107
|
type Finder = (from: MapNodeBase, to: MapNodeBase) => IMapTools.LinePoints;
|
|
5194
5108
|
}
|
|
5195
5109
|
|
|
5196
|
-
declare namespace
|
|
5197
|
-
interface Update extends
|
|
5110
|
+
declare namespace ICommandLinker {
|
|
5111
|
+
interface Update extends ICommandCube.BaseCommand {
|
|
5198
5112
|
name: "linker:update";
|
|
5199
5113
|
attrs: UpdateAttr;
|
|
5200
5114
|
}
|
|
@@ -5245,8 +5159,8 @@ declare namespace IRt {
|
|
|
5245
5159
|
}
|
|
5246
5160
|
}
|
|
5247
5161
|
|
|
5248
|
-
declare namespace
|
|
5249
|
-
interface Reset extends
|
|
5162
|
+
declare namespace ICommandRt {
|
|
5163
|
+
interface Reset extends ICommandCube.BaseCommand {
|
|
5250
5164
|
name: "rt:reset";
|
|
5251
5165
|
explanation: string;
|
|
5252
5166
|
}
|
|
@@ -5370,31 +5284,118 @@ declare namespace IMapInteraction {
|
|
|
5370
5284
|
}
|
|
5371
5285
|
|
|
5372
5286
|
declare namespace INoteInteraction {
|
|
5373
|
-
|
|
5374
|
-
|
|
5287
|
+
type Scope = "all" | "note" | "none";
|
|
5288
|
+
type Groups = string;
|
|
5289
|
+
interface Data {
|
|
5290
|
+
hotkeys: Record<string, HotkeyConfig>;
|
|
5375
5291
|
}
|
|
5376
|
-
type Operations = "note:scope-delete";
|
|
5377
5292
|
interface KeyboardScope {
|
|
5378
|
-
key: string;
|
|
5379
5293
|
note_mode: INote.Mode;
|
|
5380
|
-
|
|
5294
|
+
}
|
|
5295
|
+
interface HotkeyConfig {
|
|
5296
|
+
id: string;
|
|
5297
|
+
name: string;
|
|
5298
|
+
shortcut: string;
|
|
5299
|
+
scope: Scope;
|
|
5300
|
+
group: Groups;
|
|
5301
|
+
show?: boolean;
|
|
5302
|
+
cursor?: boolean;
|
|
5303
|
+
capture?: boolean;
|
|
5304
|
+
keyup?: boolean;
|
|
5305
|
+
}
|
|
5306
|
+
interface Api {
|
|
5307
|
+
get name(): string;
|
|
5381
5308
|
}
|
|
5382
5309
|
interface KeyboardApi extends Api {
|
|
5383
|
-
get name():
|
|
5310
|
+
get name(): string;
|
|
5384
5311
|
check_allow(e: KeyboardEvent, scope: KeyboardScope): boolean;
|
|
5385
5312
|
keydown(e: KeyboardEvent, scope: KeyboardScope): any;
|
|
5386
5313
|
keyup(e: KeyboardEvent, scope: KeyboardScope): any;
|
|
5387
5314
|
}
|
|
5388
5315
|
}
|
|
5389
5316
|
|
|
5317
|
+
declare namespace INoteHotkeys {
|
|
5318
|
+
type Scope = "global" | "note" | "map" | "none";
|
|
5319
|
+
interface Config {
|
|
5320
|
+
id: string;
|
|
5321
|
+
name: string;
|
|
5322
|
+
shortcut: string;
|
|
5323
|
+
scope: Scope;
|
|
5324
|
+
capture?: boolean;
|
|
5325
|
+
keyup?: boolean;
|
|
5326
|
+
}
|
|
5327
|
+
enum HotKeys {
|
|
5328
|
+
"format-brush-apply" = "\u5E94\u7528\u683C\u5F0F\u5237",
|
|
5329
|
+
"format-brush-copy" = "\u590D\u5236\u683C\u5F0F\u5237",
|
|
5330
|
+
"undo" = "\u64A4\u9500",
|
|
5331
|
+
"redo" = "\u91CD\u505A",
|
|
5332
|
+
"indent-line" = "\u7F29\u8FDB",
|
|
5333
|
+
"unindent-line" = "\u53CD\u5411\u7F29\u8FDB",
|
|
5334
|
+
"cursor-nav" = "\u5149\u6807\u5BFC\u822A",
|
|
5335
|
+
"cursor-nav-extend" = "\u5149\u6807\u590D\u9009",
|
|
5336
|
+
"line-break" = "\u6362\u884C",
|
|
5337
|
+
"scope-clear" = "\u6E05\u7A7A\u5757\u9009\u533A",
|
|
5338
|
+
"scope-add" = "\u6DFB\u52A0\u5757\u9009\u533A",
|
|
5339
|
+
"root-add-next" = "\u5411\u540E\u6DFB\u52A0\u6839\u7EA7\u5757",
|
|
5340
|
+
"root-add-prev" = "\u5411\u524D\u6DFB\u52A0\u6839\u7EA7\u5757",
|
|
5341
|
+
"root-break" = "\u5206\u88C2\u6839\u7EA7\u5757",
|
|
5342
|
+
"text-add-annotation" = "\u6DFB\u52A0\u6279\u6CE8",
|
|
5343
|
+
"text-italic" = "\u659C\u4F53",
|
|
5344
|
+
"text-bold" = "\u52A0\u7C97",
|
|
5345
|
+
"text-underline" = "\u4E0B\u5212\u7EBF",
|
|
5346
|
+
"text-align-left" = "\u5DE6\u5BF9\u9F50",
|
|
5347
|
+
"text-align-center" = "\u5C45\u4E2D\u5BF9\u9F50",
|
|
5348
|
+
"text-align-right" = "\u53F3\u5BF9\u9F50",
|
|
5349
|
+
"text-partition" = "\u5206\u88C2\u6587\u672C\u5757",
|
|
5350
|
+
"text-fontsize-up" = "\u589E\u52A0\u5B57\u53F7",
|
|
5351
|
+
"text-fontsize-down" = "\u51CF\u5C0F\u5B57\u53F7",
|
|
5352
|
+
"text-rt" = "\u6DFB\u52A0\u6587\u5B57\u6807\u6CE8",
|
|
5353
|
+
"text-add-link" = "\u6DFB\u52A0\u8D85\u94FE\u63A5",
|
|
5354
|
+
"text-break" = "\u6587\u672C\u5757\u6362\u884C",
|
|
5355
|
+
"css-clear" = "\u91CD\u7F6E\u6837\u5F0F",
|
|
5356
|
+
"fold-block" = "\u6298\u53E0\u6240\u5728\u5757",
|
|
5357
|
+
"bookmark-add" = "\u6DFB\u52A0\u4E66\u7B7E",
|
|
5358
|
+
"search-doc" = "\u641C\u7D22",
|
|
5359
|
+
"float-formula" = "\u516C\u5F0F\u9762\u677F",
|
|
5360
|
+
"float-cubelist" = "\u5143\u7D20\u9762\u677F",
|
|
5361
|
+
"paste-md" = "\u7C98\u8D34markdown"
|
|
5362
|
+
}
|
|
5363
|
+
enum Group {
|
|
5364
|
+
core = "\u6838\u5FC3",
|
|
5365
|
+
common = "\u901A\u7528",
|
|
5366
|
+
text = "\u6587\u672C\u5757",
|
|
5367
|
+
block = "\u5757",
|
|
5368
|
+
scope = "\u5757\u9009\u533A",
|
|
5369
|
+
dict = "\u5B57\u5178",
|
|
5370
|
+
bookmark = "\u4E66\u7B7E",
|
|
5371
|
+
search = "\u641C\u7D22",
|
|
5372
|
+
css = "\u6837\u5F0F",
|
|
5373
|
+
float = "\u9762\u677F",
|
|
5374
|
+
other = "\u5176\u4ED6"
|
|
5375
|
+
}
|
|
5376
|
+
interface HotKeyInfo {
|
|
5377
|
+
name: string;
|
|
5378
|
+
show: boolean;
|
|
5379
|
+
meta: boolean;
|
|
5380
|
+
shift: boolean;
|
|
5381
|
+
alt: boolean;
|
|
5382
|
+
ctrl: boolean;
|
|
5383
|
+
key: string[];
|
|
5384
|
+
group: string;
|
|
5385
|
+
cursor?: boolean;
|
|
5386
|
+
}
|
|
5387
|
+
type NoteHotkeys = Record<string, HotKeyInfo>;
|
|
5388
|
+
type HotKeyHandler = (e: KeyboardEvent) => any;
|
|
5389
|
+
}
|
|
5390
|
+
|
|
5390
5391
|
declare namespace ICubeHandler {
|
|
5391
5392
|
type Handler = (cmd: any, ...args: any[]) => Recorder | void;
|
|
5392
5393
|
}
|
|
5393
5394
|
|
|
5394
5395
|
declare namespace INoteHistory {
|
|
5395
5396
|
interface RecorderData {
|
|
5396
|
-
do:
|
|
5397
|
-
undo:
|
|
5397
|
+
do: ICommandCube.BaseCommand[];
|
|
5398
|
+
undo: ICommandCube.BaseCommand[];
|
|
5398
5399
|
}
|
|
5399
5400
|
interface Stack {
|
|
5400
5401
|
version: number;
|
|
@@ -5564,7 +5565,7 @@ declare namespace INoteEvent {
|
|
|
5564
5565
|
type ListenerAssetDownload = (type: INote.AssetType, filename: string) => Promise<boolean>;
|
|
5565
5566
|
type ListenerAssetCopy = (noteid: string, asset_type: INote.AssetType, filename: string) => Promise<boolean>;
|
|
5566
5567
|
type ListenerReplaceId = (map: Record<string, string>) => any;
|
|
5567
|
-
type ListenerEdit = (cube: CubeChild, cmd:
|
|
5568
|
+
type ListenerEdit = (cube: CubeChild, cmd: ICommandCube.BaseCommand) => any;
|
|
5568
5569
|
type ListenerTextMerge = (from: string, to: string) => any;
|
|
5569
5570
|
type ListenerEsc = () => any;
|
|
5570
5571
|
type ListenerSelectionChange = (e: Event) => any;
|
|
@@ -5594,80 +5595,6 @@ declare namespace INoteFlag {
|
|
|
5594
5595
|
declare namespace INoteFloat {
|
|
5595
5596
|
}
|
|
5596
5597
|
|
|
5597
|
-
declare namespace INoteHotkeys {
|
|
5598
|
-
type Scope = "global" | "note" | "map" | "none";
|
|
5599
|
-
interface Config {
|
|
5600
|
-
id: string;
|
|
5601
|
-
name: string;
|
|
5602
|
-
shortcut: string;
|
|
5603
|
-
scope: Scope;
|
|
5604
|
-
capture?: boolean;
|
|
5605
|
-
keyup?: boolean;
|
|
5606
|
-
}
|
|
5607
|
-
enum HotKeys {
|
|
5608
|
-
"format-brush-apply" = "\u5E94\u7528\u683C\u5F0F\u5237",
|
|
5609
|
-
"format-brush-copy" = "\u590D\u5236\u683C\u5F0F\u5237",
|
|
5610
|
-
"undo" = "\u64A4\u9500",
|
|
5611
|
-
"redo" = "\u91CD\u505A",
|
|
5612
|
-
"indent-line" = "\u7F29\u8FDB",
|
|
5613
|
-
"unindent-line" = "\u53CD\u5411\u7F29\u8FDB",
|
|
5614
|
-
"cursor-nav" = "\u5149\u6807\u5BFC\u822A",
|
|
5615
|
-
"cursor-nav-extend" = "\u5149\u6807\u590D\u9009",
|
|
5616
|
-
"line-break" = "\u6362\u884C",
|
|
5617
|
-
"scope-clear" = "\u6E05\u7A7A\u5757\u9009\u533A",
|
|
5618
|
-
"scope-add" = "\u6DFB\u52A0\u5757\u9009\u533A",
|
|
5619
|
-
"root-add-next" = "\u5411\u540E\u6DFB\u52A0\u6839\u7EA7\u5757",
|
|
5620
|
-
"root-add-prev" = "\u5411\u524D\u6DFB\u52A0\u6839\u7EA7\u5757",
|
|
5621
|
-
"root-break" = "\u5206\u88C2\u6839\u7EA7\u5757",
|
|
5622
|
-
"text-add-annotation" = "\u6DFB\u52A0\u6279\u6CE8",
|
|
5623
|
-
"text-italic" = "\u659C\u4F53",
|
|
5624
|
-
"text-bold" = "\u52A0\u7C97",
|
|
5625
|
-
"text-underline" = "\u4E0B\u5212\u7EBF",
|
|
5626
|
-
"text-align-left" = "\u5DE6\u5BF9\u9F50",
|
|
5627
|
-
"text-align-center" = "\u5C45\u4E2D\u5BF9\u9F50",
|
|
5628
|
-
"text-align-right" = "\u53F3\u5BF9\u9F50",
|
|
5629
|
-
"text-partition" = "\u5206\u88C2\u6587\u672C\u5757",
|
|
5630
|
-
"text-fontsize-up" = "\u589E\u52A0\u5B57\u53F7",
|
|
5631
|
-
"text-fontsize-down" = "\u51CF\u5C0F\u5B57\u53F7",
|
|
5632
|
-
"text-rt" = "\u6DFB\u52A0\u6587\u5B57\u6807\u6CE8",
|
|
5633
|
-
"text-add-link" = "\u6DFB\u52A0\u8D85\u94FE\u63A5",
|
|
5634
|
-
"text-break" = "\u6587\u672C\u5757\u6362\u884C",
|
|
5635
|
-
"css-clear" = "\u91CD\u7F6E\u6837\u5F0F",
|
|
5636
|
-
"fold-block" = "\u6298\u53E0\u6240\u5728\u5757",
|
|
5637
|
-
"bookmark-add" = "\u6DFB\u52A0\u4E66\u7B7E",
|
|
5638
|
-
"search-doc" = "\u641C\u7D22",
|
|
5639
|
-
"float-formula" = "\u516C\u5F0F\u9762\u677F",
|
|
5640
|
-
"float-cubelist" = "\u5143\u7D20\u9762\u677F",
|
|
5641
|
-
"paste-md" = "\u7C98\u8D34markdown"
|
|
5642
|
-
}
|
|
5643
|
-
enum Group {
|
|
5644
|
-
core = "\u6838\u5FC3",
|
|
5645
|
-
common = "\u901A\u7528",
|
|
5646
|
-
text = "\u6587\u672C\u5757",
|
|
5647
|
-
block = "\u5757",
|
|
5648
|
-
scope = "\u5757\u9009\u533A",
|
|
5649
|
-
dict = "\u5B57\u5178",
|
|
5650
|
-
bookmark = "\u4E66\u7B7E",
|
|
5651
|
-
search = "\u641C\u7D22",
|
|
5652
|
-
css = "\u6837\u5F0F",
|
|
5653
|
-
float = "\u9762\u677F",
|
|
5654
|
-
other = "\u5176\u4ED6"
|
|
5655
|
-
}
|
|
5656
|
-
interface HotKeyInfo {
|
|
5657
|
-
name: string;
|
|
5658
|
-
show: boolean;
|
|
5659
|
-
meta: boolean;
|
|
5660
|
-
shift: boolean;
|
|
5661
|
-
alt: boolean;
|
|
5662
|
-
ctrl: boolean;
|
|
5663
|
-
key: string[];
|
|
5664
|
-
group: string;
|
|
5665
|
-
cursor?: boolean;
|
|
5666
|
-
}
|
|
5667
|
-
type NoteHotkeys = Record<string, HotKeyInfo>;
|
|
5668
|
-
type HotKeyHandler = (e: KeyboardEvent) => any;
|
|
5669
|
-
}
|
|
5670
|
-
|
|
5671
5598
|
declare namespace INoteClipboard {
|
|
5672
5599
|
interface NoteData {
|
|
5673
5600
|
noteid: string;
|
|
@@ -5703,6 +5630,22 @@ declare namespace IUiTheme {
|
|
|
5703
5630
|
path: string;
|
|
5704
5631
|
filters?: BackgroundFilter;
|
|
5705
5632
|
}
|
|
5633
|
+
interface BackgroundVirtualConfig {
|
|
5634
|
+
card_min_width: number;
|
|
5635
|
+
card_height: number;
|
|
5636
|
+
grid_gap: number;
|
|
5637
|
+
overscan_rows: number;
|
|
5638
|
+
}
|
|
5639
|
+
interface BackgroundVirtualState {
|
|
5640
|
+
scroll_top: number;
|
|
5641
|
+
viewport_height: number;
|
|
5642
|
+
grid_top: number;
|
|
5643
|
+
columns: number;
|
|
5644
|
+
}
|
|
5645
|
+
interface BackgroundVirtualItem {
|
|
5646
|
+
item: BackgroundItem;
|
|
5647
|
+
index: number;
|
|
5648
|
+
}
|
|
5706
5649
|
interface ThemeItem<T extends string = Names> {
|
|
5707
5650
|
id: T;
|
|
5708
5651
|
name: string;
|
|
@@ -6026,7 +5969,7 @@ declare namespace IUiTips {
|
|
|
6026
5969
|
}
|
|
6027
5970
|
|
|
6028
5971
|
declare namespace IUiToolbar {
|
|
6029
|
-
type Name = "align" | "annotation" | "border" | "bookmark" | "bold-italic" | "color" | "compose" | "emphasis" | "fold" | "formula" | "font" | "format-brush" | "history" | "indent" | "paste" | "speak" | "scope" | "spacing" | "underline" | "write-mode" | "rt";
|
|
5972
|
+
type Name = "align" | "annotation" | "border" | "bookmark" | "bold-italic" | "color" | "compose" | "emphasis" | "fold" | "formula" | "font" | "format-brush" | "history" | "indent" | "paste" | "speak" | "scope" | "spacing" | "underline" | "write-mode" | "rt" | (string & {});
|
|
6030
5973
|
interface Tool {
|
|
6031
5974
|
class: string[];
|
|
6032
5975
|
tooltip: string;
|
|
@@ -6061,29 +6004,130 @@ declare global {
|
|
|
6061
6004
|
const _SDK_PUB_DATE: number;
|
|
6062
6005
|
}
|
|
6063
6006
|
|
|
6007
|
+
declare class CommandApi {
|
|
6008
|
+
}
|
|
6009
|
+
|
|
6010
|
+
declare class CommandBoxFolder {
|
|
6011
|
+
}
|
|
6012
|
+
|
|
6013
|
+
declare class CommandBoxRoot {
|
|
6014
|
+
}
|
|
6015
|
+
|
|
6016
|
+
declare class CommandCode {
|
|
6017
|
+
static update(id: string, tabid: string, code: string): ICommandCode.Update;
|
|
6018
|
+
static add(id: string, item: ICode.TabItem, focus?: boolean): ICommandCode.Add;
|
|
6019
|
+
static remove(id: string, tabid: string): ICommandCode.Remove;
|
|
6020
|
+
static rename(id: string, tabid: string, filename: string): ICommandCode.Rename;
|
|
6021
|
+
static change_lang(id: string, tabid: string, lang: string): ICommandCode.ChangeLang;
|
|
6022
|
+
static change_active(id: string, tabid: string): ICommandCode.TabActive;
|
|
6023
|
+
static change_theme(id: string, tabid: string, theme: string): ICommandCode.ChangeTheme;
|
|
6024
|
+
}
|
|
6025
|
+
|
|
6064
6026
|
declare class CommandCube {
|
|
6065
|
-
static insert_child(id: string, data: ICubeBase.Data[], pos: number | INote.CubeSide):
|
|
6066
|
-
static delete_child(id: string, dir:
|
|
6067
|
-
static insert(id: string, data: ICubeBase.Data[], start_id: ICubeBase.CubeId, end_id: ICubeBase.CubeId, offset_start: number, offset_end: number):
|
|
6068
|
-
static delete(id: string, dir:
|
|
6069
|
-
static delete_adjacent(id: string, from:
|
|
6070
|
-
static set_selection_css(id: ICubeBase.CubeId, css: Record<string, any>, start_id: ICubeBase.CubeId | null, end_id: ICubeBase.CubeId | null, offset_start: number | INote.CubeSide, offset_end: number | INote.CubeSide, method?:
|
|
6071
|
-
static set_css(id: ICubeBase.CubeId, css: Record<string, any>, method?:
|
|
6072
|
-
static partition(id: ICubeBase.CubeId, start_id: ICubeBase.CubeId, end_id: ICubeBase.CubeId, offset_start: number, offset_end: number):
|
|
6073
|
-
static reorder(id: ICubeBase.CubeId, cubeid: ICubeBase.CubeId, index: number | INote.CubeSide):
|
|
6074
|
-
static reset(id: ICubeBase.CubeId, data: ICubeBase.Data[]):
|
|
6075
|
-
static merge(id: ICubeBase.CubeId, method: INote.CubeMergeMethod, cubeid: ICubeBase.CubeId, offset: number):
|
|
6076
|
-
static postil_add(id: ICubeBase.CubeId, data?: ICubeBase.Data[]):
|
|
6077
|
-
static postil_remove(id: ICubeBase.CubeId, range: [number, number]):
|
|
6078
|
-
static set_attr(id: ICubeBase.CubeId, attr: Partial<ICubeBase.Attrs>):
|
|
6079
|
-
static resize(id: ICubeBase.CubeId, width: number, height?: number):
|
|
6080
|
-
static fold(id: ICubeBase.CubeId, fold: boolean):
|
|
6027
|
+
static insert_child(id: string, data: ICubeBase.Data[], pos: number | INote.CubeSide): ICommandCube.InsertChild;
|
|
6028
|
+
static delete_child(id: string, dir: ICommandCube.DeleteDir, range: [number, number], reserve?: boolean): ICommandCube.DeleteChild;
|
|
6029
|
+
static insert(id: string, data: ICubeBase.Data[], start_id: ICubeBase.CubeId, end_id: ICubeBase.CubeId, offset_start: number, offset_end: number): ICommandCube.Insert;
|
|
6030
|
+
static delete(id: string, dir: ICommandCube.DeleteDir, start_id: ICubeBase.CubeId | null, end_id: ICubeBase.CubeId | null, offset_start: number | INote.CubeSide, offset_end: number | INote.CubeSide, reserve?: boolean): ICommandCube.Delete;
|
|
6031
|
+
static delete_adjacent(id: string, from: ICommandCube.CursorFrom, from_id: ICubeBase.CubeId, offset: number): ICommandCube.DeleteAdjacent;
|
|
6032
|
+
static set_selection_css(id: ICubeBase.CubeId, css: Record<string, any>, start_id: ICubeBase.CubeId | null, end_id: ICubeBase.CubeId | null, offset_start: number | INote.CubeSide, offset_end: number | INote.CubeSide, method?: ICommandCube.CssMethod): ICommandCube.SetSelectionCss;
|
|
6033
|
+
static set_css(id: ICubeBase.CubeId, css: Record<string, any>, method?: ICommandCube.CssMethod): ICommandCube.SetCss;
|
|
6034
|
+
static partition(id: ICubeBase.CubeId, start_id: ICubeBase.CubeId, end_id: ICubeBase.CubeId, offset_start: number, offset_end: number): ICommandCube.Partition;
|
|
6035
|
+
static reorder(id: ICubeBase.CubeId, cubeid: ICubeBase.CubeId, index: number | INote.CubeSide): ICommandCube.Reorder;
|
|
6036
|
+
static reset(id: ICubeBase.CubeId, data: ICubeBase.Data[]): ICommandCube.Reset;
|
|
6037
|
+
static merge(id: ICubeBase.CubeId, method: INote.CubeMergeMethod, cubeid: ICubeBase.CubeId, offset: number): ICommandCube.Merge;
|
|
6038
|
+
static postil_add(id: ICubeBase.CubeId, data?: ICubeBase.Data[]): ICommandCube.PostilAdd;
|
|
6039
|
+
static postil_remove(id: ICubeBase.CubeId, range: [number, number]): ICommandCube.PostilRemove;
|
|
6040
|
+
static set_attr(id: ICubeBase.CubeId, attr: Partial<ICubeBase.Attrs>): ICommandCube.SetAttr;
|
|
6041
|
+
static resize(id: ICubeBase.CubeId, width: number, height?: number): ICommandCube.SetAttr;
|
|
6042
|
+
static fold(id: ICubeBase.CubeId, fold: boolean): ICommandCube.SetAttr;
|
|
6081
6043
|
}
|
|
6082
6044
|
|
|
6083
6045
|
declare class CommandCursor {
|
|
6084
|
-
static loc(id: string, offset: number, from: string, from_offset: number):
|
|
6085
|
-
static in_head(id: string):
|
|
6086
|
-
static in_tail(id: string):
|
|
6046
|
+
static loc(id: string, offset: number, from: string, from_offset: number): ICommandCursor.Loc;
|
|
6047
|
+
static in_head(id: string): ICommandCursor.InHead;
|
|
6048
|
+
static in_tail(id: string): ICommandCursor.InTail;
|
|
6049
|
+
}
|
|
6050
|
+
|
|
6051
|
+
declare class CommandDetailList {
|
|
6052
|
+
static insert_row(id: ICubeBase.CubeId, pos: number | INote.CubeSide, rows: IDetailList.BoxDataMap[]): ICommandDetailList.InsertRow;
|
|
6053
|
+
static remove_row(id: ICubeBase.CubeId, range: [number, number], reserve?: boolean): ICommandDetailList.RemoveRow;
|
|
6054
|
+
static change_width_col1(id: ICubeBase.CubeId, width: number): ICommandDetailList.ChangeWidthCol1;
|
|
6055
|
+
}
|
|
6056
|
+
|
|
6057
|
+
declare class CommandFormula {
|
|
6058
|
+
static update(id: string, latex: string, size: IFormula.Size, block?: boolean): ICommandFormula.Update;
|
|
6059
|
+
}
|
|
6060
|
+
|
|
6061
|
+
declare class CommandMap {
|
|
6062
|
+
static node_add(id: ICubeBase.CubeId, data: INodeBase.Base[]): ICommandMap.NodeAdd;
|
|
6063
|
+
static node_remove(id: ICubeBase.CubeId, data: ICubeBase.CubeId[]): ICommandMap.NodeRemove;
|
|
6064
|
+
static linker_add(id: ICubeBase.CubeId, data: ICommandMap.LinkerInfo[], to_root?: boolean): ICommandMap.LinkerAdd;
|
|
6065
|
+
static linker_remove(id: ICubeBase.CubeId, data: ICubeBase.CubeId[], to_root?: boolean): ICommandMap.LinkerRemove;
|
|
6066
|
+
static node_drag(id: ICubeBase.CubeId, data: ICommandMap.NodeMoveInfo[]): ICommandMap.NodeMove;
|
|
6067
|
+
static sibling_reorder(id: ICubeBase.CubeId, upstream_id: ICubeBase.CubeId, order: ICubeBase.CubeId[]): ICommandMap.SiblingReorder;
|
|
6068
|
+
}
|
|
6069
|
+
|
|
6070
|
+
declare class CommandNode {
|
|
6071
|
+
static layout_change(id: ICubeBase.CubeId, attrs: Partial<INodeBase.Attrs>): ICommandNode.LayoutUpdate;
|
|
6072
|
+
static append_child(id: ICubeBase.CubeId, nodes: INodeBase.Base[], previd?: string | null): ICommandNode.AppendChild;
|
|
6073
|
+
}
|
|
6074
|
+
|
|
6075
|
+
declare class CommandLinker {
|
|
6076
|
+
static update(id: ICubeBase.CubeId, attrs: ICommandLinker.UpdateAttr): ICommandLinker.Update;
|
|
6077
|
+
}
|
|
6078
|
+
|
|
6079
|
+
declare class CommandList {
|
|
6080
|
+
static reset(id: string, data: IList.ListItemData[]): ICommandList.Reset;
|
|
6081
|
+
static add(id: string, data: IList.ListItemData[], pos: number): ICommandList.AddItem;
|
|
6082
|
+
static remove(id: string, range: [number, number]): ICommandList.RemoveItem;
|
|
6083
|
+
static indent(id: string, items: ICommandList.ItemIndentInfo[]): ICommandList.IndentItem;
|
|
6084
|
+
}
|
|
6085
|
+
|
|
6086
|
+
declare class CommandListOrdered {
|
|
6087
|
+
static reset(id: string, data: IList.ListItemData[]): ICommandListOrdered.Reset;
|
|
6088
|
+
static add(id: string, data: IList.ListItemData[], pos: number): ICommandListOrdered.AddItem;
|
|
6089
|
+
static remove(id: string, range: [number, number]): ICommandListOrdered.RemoveItem;
|
|
6090
|
+
static indent(id: string, items: ICommandList.ItemIndentInfo[]): ICommandListOrdered.IndentItem;
|
|
6091
|
+
}
|
|
6092
|
+
|
|
6093
|
+
declare class CommandRt {
|
|
6094
|
+
static reset(id: ICubeBase.CubeId, explanation: string): ICommandRt.Reset;
|
|
6095
|
+
}
|
|
6096
|
+
|
|
6097
|
+
declare class CommandTable {
|
|
6098
|
+
static add_title(id: ICubeBase.CubeId, data: IBox.Data): ICommandTable.AddTitle;
|
|
6099
|
+
static remove_title(id: ICubeBase.CubeId): ICommandTable.RemoveTitle;
|
|
6100
|
+
static add_cell(id: ICubeBase.CubeId, data: ITable.CellData): ICommandTable.AddCell;
|
|
6101
|
+
static remove_cell(id: ICubeBase.CubeId, cid: ICubeBase.CubeId): ICommandTable.RemoveCell;
|
|
6102
|
+
static add_row(id: ICubeBase.CubeId, index: number, rows: IBox.Data[]): ICommandTable.AddRow;
|
|
6103
|
+
static remove_row(id: ICubeBase.CubeId, index: number): ICommandTable.RemoveRow;
|
|
6104
|
+
static add_col(id: ICubeBase.CubeId, index: number, cols: IBox.Data[]): ICommandTable.AddCol;
|
|
6105
|
+
static remove_col(id: ICubeBase.CubeId, index: number): ICommandTable.RemoveCol;
|
|
6106
|
+
static moveto(id: ICubeBase.CubeId, tid: ICubeBase.CubeId, cells: ICubeBase.CubeId[]): ICommandTable.CellMoveTo;
|
|
6107
|
+
static merge(id: ICubeBase.CubeId, area: ITable.CellArea): ICommandTable.Merge;
|
|
6108
|
+
static update_cell_area(id: ICubeBase.CubeId, tid: ICubeBase.CubeId, area: ITable.CellRect): ICommandTable.CellUpdateArea;
|
|
6109
|
+
static add_grid_col(id: ICubeBase.CubeId, index: number, width: number): ICommandTable.AddGridCol;
|
|
6110
|
+
static remove_grid_col(id: ICubeBase.CubeId, index: number): ICommandTable.RemoveGridCol;
|
|
6111
|
+
static add_grid_row(id: ICubeBase.CubeId, index: number): ICommandTable.AddGridRow;
|
|
6112
|
+
static remove_grid_row(id: ICubeBase.CubeId, index: number): ICommandTable.RemoveGridRow;
|
|
6113
|
+
static col_resize(id: ICubeBase.CubeId, cols: [number, number], step: number): ICommandTable.ColResize;
|
|
6114
|
+
}
|
|
6115
|
+
|
|
6116
|
+
declare class CommandText {
|
|
6117
|
+
static reset(id: string, info: string, pos?: number, pos_before?: number): ICommandText.Reset;
|
|
6118
|
+
static break(id: string, offset: number): ICommandText.Break;
|
|
6119
|
+
}
|
|
6120
|
+
|
|
6121
|
+
declare class CommandTextLink {
|
|
6122
|
+
static update(id: ICubeBase.CubeId, title: string, url: string): ICommandTextLink.Update;
|
|
6123
|
+
}
|
|
6124
|
+
|
|
6125
|
+
declare class CommandTodo {
|
|
6126
|
+
static reset(id: string, data: _CubeTodoItemData[]): ICommandTodo.Reset;
|
|
6127
|
+
static add(id: string, data: _CubeTodoItemData[], pos: number): ICommandTodo.AddItem;
|
|
6128
|
+
static remove(id: string, range: [number, number]): ICommandTodo.RemoveItem;
|
|
6129
|
+
static indent(id: string, items: ICommandList.ItemIndentInfo[]): ICommandTodo.Indent;
|
|
6130
|
+
static status(id: string, index: number, done: boolean): ICommandTodo.Status;
|
|
6087
6131
|
}
|
|
6088
6132
|
|
|
6089
6133
|
declare class LayoutChecker {
|
|
@@ -6134,20 +6178,6 @@ declare class NodeLayoutInvert {
|
|
|
6134
6178
|
};
|
|
6135
6179
|
}
|
|
6136
6180
|
|
|
6137
|
-
declare class CommandMap {
|
|
6138
|
-
static node_add(id: ICubeBase.CubeId, data: INodeBase.Base[]): IMapCommand.NodeAdd;
|
|
6139
|
-
static node_remove(id: ICubeBase.CubeId, data: ICubeBase.CubeId[]): IMapCommand.NodeRemove;
|
|
6140
|
-
static linker_add(id: ICubeBase.CubeId, data: IMapCommand.LinkerInfo[], to_root?: boolean): IMapCommand.LinkerAdd;
|
|
6141
|
-
static linker_remove(id: ICubeBase.CubeId, data: ICubeBase.CubeId[], to_root?: boolean): IMapCommand.LinkerRemove;
|
|
6142
|
-
static node_drag(id: ICubeBase.CubeId, data: IMapCommand.NodeMoveInfo[]): IMapCommand.NodeMove;
|
|
6143
|
-
static sibling_reorder(id: ICubeBase.CubeId, upstream_id: ICubeBase.CubeId, order: ICubeBase.CubeId[]): IMapCommand.SiblingReorder;
|
|
6144
|
-
}
|
|
6145
|
-
|
|
6146
|
-
declare class CommandNode {
|
|
6147
|
-
static layout_change(id: ICubeBase.CubeId, attrs: Partial<INodeBase.Attrs>): INodeCommand.LayoutUpdate;
|
|
6148
|
-
static append_child(id: ICubeBase.CubeId, nodes: INodeBase.Base[], previd?: string | null): INodeCommand.AppendChild;
|
|
6149
|
-
}
|
|
6150
|
-
|
|
6151
6181
|
declare class Matrix2D {
|
|
6152
6182
|
static get_default(): IMapTools.Matrix2D;
|
|
6153
6183
|
static to_array(m: IMapTools.Matrix2D): IMapTools.Matrix2DArray;
|
|
@@ -6177,7 +6207,7 @@ declare class MapTools {
|
|
|
6177
6207
|
static get_direct_layout_parent(node: MapNodeBase, except?: Set<string>): MapNodeBase | null | undefined;
|
|
6178
6208
|
static get_linker_id(fromid: string, to: string): string;
|
|
6179
6209
|
static wait_nodes_render(nodes: Iterable<MapNodeBase>): Promise<any>;
|
|
6180
|
-
static create_linker_info(map: _Map, from_id: ICubeBase.CubeId, to_id: ICubeBase.CubeId):
|
|
6210
|
+
static create_linker_info(map: _Map, from_id: ICubeBase.CubeId, to_id: ICubeBase.CubeId): ICommandMap.LinkerInfo;
|
|
6181
6211
|
static get_rect_area(from: IMath.Point, to: IMath.Point, radius?: number): string;
|
|
6182
6212
|
}
|
|
6183
6213
|
|
|
@@ -6196,4 +6226,4 @@ declare class NoteTools {
|
|
|
6196
6226
|
static check_mouse_key(e: MouseEvent, key: _PointKey): boolean;
|
|
6197
6227
|
}
|
|
6198
6228
|
|
|
6199
|
-
export {
|
|
6229
|
+
export { AdapterApi, AdapterBaseUi, AdapterBox, AdapterBoxColumns, AdapterBoxFolder, AdapterBoxRoot, AdapterCode, AdapterCubes, AdapterDetailList, AdapterDoc, AdapterFormula, AdapterImg, AdapterLine, AdapterLinker, AdapterList, AdapterListOrdered, AdapterLost, AdapterMap, AdapterNode, AdapterPostil, AdapterRt, AdapterSubmap, AdapterTable, AdapterText, AdapterTextLink, AdapterTip, AdapterTodo, AdapterUi, AdapterUiAi, AdapterUiCatalogue, AdapterUiConfig, AdapterUiDialog, AdapterUiDialogCubeList, AdapterUiDict, AdapterUiFloat, AdapterUiMenubar, AdapterUiPreset, AdapterUiSearch, AdapterUiSidebar, AdapterUiStatusbar, AdapterUiTheme, AdapterUiTips, AdapterUiToolbar, ApiStatus, BoxFolderStatus, BoxRootStatus, BoxStatus, CodeStatus, CommandApi, CommandBoxFolder, CommandBoxRoot, CommandCode, CommandCube, CommandCursor, CommandDetailList, CommandFormula, CommandLinker, CommandList, CommandListOrdered, CommandMap, CommandNode, CommandRt, CommandTable, CommandText, CommandTextLink, CommandTodo, ConstColors, ConvertorMd, CubeAdapterBase, CubeApi, CubeBase, CubeBox, CubeBoxColumns, CubeBoxFolder, CubeBoxRoot, CubeChild, CubeCode, CubeDetailList, CubeDoc, CubeFormula, CubeImg, CubeLine, CubeLinker, CubeList, CubeListOrdered, CubeListenerBase, CubeLost, CubeMap, CubeNode, CubePostil, CubeRoot, CubeRt, CubeStatusBase, CubeStatusBaseRoot, CubeSubMap, CubeTable, CubeText, CubeTextLink, CubeTip, CubeTodo, DetailListStatus, DocStatus, EventBubble, FormulaStatus, IApi, IBox, ICode, ICommandApi, ICommandCode, ICommandCube, ICommandCursor, ICommandDetailList, ICommandDoc, ICommandFormula, ICommandLinker, ICommandList, ICommandListOrdered, ICommandMap, ICommandNode, ICommandRt, ICommandTable, ICommandText, ICommandTextLink, ICommandTodo, ICubeBase, ICubeBaseChild, ICubeBoxColumns, ICubeBoxFolder, ICubeBoxRoot, ICubeHandler, ICubeRootBase, IDetailList, IDoc, IFormula, IImg, ILine, ILinker, IList, IListOrdered, ILost, IMap, IMapBase, IMapInteraction, IMapTools, IMenuNode, IMiniMap, IMisc, INode, INodeBase, INodeBaseEnv, INodeDrag, INote, INoteApi, INoteClipboard, INoteConvertor, INoteCourier, INoteCursor, INoteEvent, INoteFlag, INoteFloat, INoteHistory, INoteHotkeys, INoteInteraction, INoteMenu, INoteMod, INoteScope, INoteTools, IPostil, IRt, ISubMap, ITable, IText, ITextLink, ITip, ITodo, IUi, IUiAi, IUiCatalogue, IUiConfig, IUiDialog, IUiDialogCubeList, IUiDict, IUiFloat, IUiMenubar, IUiPreset, IUiSidebar, IUiStatusbar, IUiTheme, IUiTips, IUiToolbar, ImgStatus, LayoutChecker, LineStatus, LinkerLine, LinkerPoint, ListOrderedStatus, ListStatus, LostStatus, Map2D, MapCanvas, MapChild, MapHotkeys, MapInteraction, MapNodeBase, MapNodeLayoutEnv, MapStatus, MapTools, Matrix2D, NodeBase2D, NodeLayout, NodeLayoutInvert, NodeLayoutMeter, NodeObserver, NodeShape, NodeStatus, NodeStatusBase, Note, NoteAction, NoteApi, NoteBase, NoteClipBoard, NoteConvertor, NoteCourier, NoteCubes, NoteCursor, NoteEvent, NoteEventListenerBase, NoteEventListeners, NoteFlag, NoteHistory, NoteHotkeyBase, NoteInteraction, NoteListener, NoteMod, NotePainter, NoteScope, NoteScopes, NoteTools, PostilStatus, Recorder, RtStatus, SubmapStatus, TableStatus, TextLinkStatus, TextStatus, TipStatus, TodoStatus, ToolBase, UI, UICatalogue, UIDict, UISearch, UIStatusbar, UITheme, UIToolbar, UiBase, UiConfig, UiFloat, UiMenubar, UiPreset, UiSidebar, UiTips, Waiter, type _CubeTextAnnotation, type _CubeTodoItem, type _CubeTodoItemData, type _FigScale, type _Map, type _MapCubes, _MapGroup, type _MapPlaceholderLinker, _PlayStatus, type _PointFig, type _PointKey, type _PointView, type _SDKMeta, cmd, copy_event_listener, cube, cut_event_listener, hotkey, node_observer, paste_event_listener, waiter_map_svg };
|