deepsky 2.25.6 → 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 +919 -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-212dda4f27822bc8fdb3.js → 1037-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1066-212dda4f27822bc8fdb3.js → 1066-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1216-212dda4f27822bc8fdb3.js → 1216-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1230-212dda4f27822bc8fdb3.js → 1230-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1425-212dda4f27822bc8fdb3.js → 1425-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1432-212dda4f27822bc8fdb3.js → 1432-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1476-212dda4f27822bc8fdb3.js → 1476-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1545-212dda4f27822bc8fdb3.js → 1545-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{16-212dda4f27822bc8fdb3.js → 16-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1624-212dda4f27822bc8fdb3.js → 1624-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1631-212dda4f27822bc8fdb3.js → 1631-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1655-212dda4f27822bc8fdb3.js → 1655-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1708-212dda4f27822bc8fdb3.js → 1708-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{172-212dda4f27822bc8fdb3.js → 172-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1729-212dda4f27822bc8fdb3.js → 1729-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1757-212dda4f27822bc8fdb3.js → 1757-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1803-212dda4f27822bc8fdb3.js → 1803-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1839-212dda4f27822bc8fdb3.js → 1839-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1857-212dda4f27822bc8fdb3.js → 1857-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{1931-212dda4f27822bc8fdb3.js → 1931-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2062-212dda4f27822bc8fdb3.js → 2062-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2068-212dda4f27822bc8fdb3.js → 2068-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2071-212dda4f27822bc8fdb3.js → 2071-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2108-212dda4f27822bc8fdb3.js → 2108-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{212-212dda4f27822bc8fdb3.js → 212-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2142-212dda4f27822bc8fdb3.js → 2142-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2173-212dda4f27822bc8fdb3.js → 2173-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2184-212dda4f27822bc8fdb3.js → 2184-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2215-212dda4f27822bc8fdb3.js → 2215-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{224-212dda4f27822bc8fdb3.js → 224-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2266-212dda4f27822bc8fdb3.js → 2266-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2354-212dda4f27822bc8fdb3.js → 2354-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2419-212dda4f27822bc8fdb3.js → 2419-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{245-212dda4f27822bc8fdb3.js → 245-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2473-212dda4f27822bc8fdb3.js → 2473-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2492-212dda4f27822bc8fdb3.js → 2492-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2505-212dda4f27822bc8fdb3.js → 2505-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2535-212dda4f27822bc8fdb3.js → 2535-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2660-212dda4f27822bc8fdb3.js → 2660-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2691-212dda4f27822bc8fdb3.js → 2691-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2723-212dda4f27822bc8fdb3.js → 2723-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{284-212dda4f27822bc8fdb3.js → 284-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2860-212dda4f27822bc8fdb3.js → 2860-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2861-212dda4f27822bc8fdb3.js → 2861-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{2934-212dda4f27822bc8fdb3.js → 2934-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3032-212dda4f27822bc8fdb3.js → 3032-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3043-212dda4f27822bc8fdb3.js → 3043-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3052-212dda4f27822bc8fdb3.js → 3052-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3124-212dda4f27822bc8fdb3.js → 3124-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3170-212dda4f27822bc8fdb3.js → 3170-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{321-212dda4f27822bc8fdb3.js → 321-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3227-212dda4f27822bc8fdb3.js → 3227-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3247-212dda4f27822bc8fdb3.js → 3247-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{327-212dda4f27822bc8fdb3.js → 327-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3279-212dda4f27822bc8fdb3.js → 3279-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3330-212dda4f27822bc8fdb3.js → 3330-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3403-212dda4f27822bc8fdb3.js → 3403-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3454-212dda4f27822bc8fdb3.js → 3454-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3492-212dda4f27822bc8fdb3.js → 3492-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3516-212dda4f27822bc8fdb3.js → 3516-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3593-212dda4f27822bc8fdb3.js → 3593-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3646-212dda4f27822bc8fdb3.js → 3646-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3702-212dda4f27822bc8fdb3.js → 3702-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3720-212dda4f27822bc8fdb3.js → 3720-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3837-212dda4f27822bc8fdb3.js → 3837-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3874-212dda4f27822bc8fdb3.js → 3874-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3894-212dda4f27822bc8fdb3.js → 3894-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3906-212dda4f27822bc8fdb3.js → 3906-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3941-212dda4f27822bc8fdb3.js → 3941-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3947-212dda4f27822bc8fdb3.js → 3947-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3949-212dda4f27822bc8fdb3.js → 3949-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{396-212dda4f27822bc8fdb3.js → 396-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{3972-212dda4f27822bc8fdb3.js → 3972-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4007-212dda4f27822bc8fdb3.js → 4007-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4009-212dda4f27822bc8fdb3.js → 4009-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{402-212dda4f27822bc8fdb3.js → 402-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4081-212dda4f27822bc8fdb3.js → 4081-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{41-212dda4f27822bc8fdb3.js → 41-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4108-212dda4f27822bc8fdb3.js → 4108-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4112-212dda4f27822bc8fdb3.js → 4112-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{415-212dda4f27822bc8fdb3.js → 415-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4199-212dda4f27822bc8fdb3.js → 4199-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4214-212dda4f27822bc8fdb3.js → 4214-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4236-212dda4f27822bc8fdb3.js → 4236-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4283-212dda4f27822bc8fdb3.js → 4283-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4292-212dda4f27822bc8fdb3.js → 4292-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4311-212dda4f27822bc8fdb3.js → 4311-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4354-212dda4f27822bc8fdb3.js → 4354-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4385-212dda4f27822bc8fdb3.js → 4385-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4408-212dda4f27822bc8fdb3.js → 4408-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4445-212dda4f27822bc8fdb3.js → 4445-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4451-212dda4f27822bc8fdb3.js → 4451-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4452-212dda4f27822bc8fdb3.js → 4452-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4465-212dda4f27822bc8fdb3.js → 4465-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4520-212dda4f27822bc8fdb3.js → 4520-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{454-212dda4f27822bc8fdb3.js → 454-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4546-212dda4f27822bc8fdb3.js → 4546-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4552-212dda4f27822bc8fdb3.js → 4552-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4598-212dda4f27822bc8fdb3.js → 4598-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4614-212dda4f27822bc8fdb3.js → 4614-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4660-212dda4f27822bc8fdb3.js → 4660-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4697-212dda4f27822bc8fdb3.js → 4697-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4709-212dda4f27822bc8fdb3.js → 4709-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4714-212dda4f27822bc8fdb3.js → 4714-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4780-212dda4f27822bc8fdb3.js → 4780-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4838-212dda4f27822bc8fdb3.js → 4838-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4843-212dda4f27822bc8fdb3.js → 4843-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4862-212dda4f27822bc8fdb3.js → 4862-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4877-212dda4f27822bc8fdb3.js → 4877-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4886-212dda4f27822bc8fdb3.js → 4886-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{489-212dda4f27822bc8fdb3.js → 489-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4914-212dda4f27822bc8fdb3.js → 4914-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4940-212dda4f27822bc8fdb3.js → 4940-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{4962-212dda4f27822bc8fdb3.js → 4962-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5026-212dda4f27822bc8fdb3.js → 5026-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5034-212dda4f27822bc8fdb3.js → 5034-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5050-212dda4f27822bc8fdb3.js → 5050-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5099-212dda4f27822bc8fdb3.js → 5099-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5119-212dda4f27822bc8fdb3.js → 5119-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5141-212dda4f27822bc8fdb3.js → 5141-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5143-212dda4f27822bc8fdb3.js → 5143-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5177-212dda4f27822bc8fdb3.js → 5177-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5203-212dda4f27822bc8fdb3.js → 5203-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5283-212dda4f27822bc8fdb3.js → 5283-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5314-212dda4f27822bc8fdb3.js → 5314-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{535-212dda4f27822bc8fdb3.js → 535-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5363-212dda4f27822bc8fdb3.js → 5363-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{542-212dda4f27822bc8fdb3.js → 542-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5424-212dda4f27822bc8fdb3.js → 5424-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5443-212dda4f27822bc8fdb3.js → 5443-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5521-212dda4f27822bc8fdb3.js → 5521-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5536-212dda4f27822bc8fdb3.js → 5536-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5542-212dda4f27822bc8fdb3.js → 5542-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5585-212dda4f27822bc8fdb3.js → 5585-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5589-212dda4f27822bc8fdb3.js → 5589-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5601-212dda4f27822bc8fdb3.js → 5601-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5611-212dda4f27822bc8fdb3.js → 5611-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5628-212dda4f27822bc8fdb3.js → 5628-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5638-212dda4f27822bc8fdb3.js → 5638-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5647-212dda4f27822bc8fdb3.js → 5647-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5709-212dda4f27822bc8fdb3.js → 5709-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5728-212dda4f27822bc8fdb3.js → 5728-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5731-212dda4f27822bc8fdb3.js → 5731-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5744-212dda4f27822bc8fdb3.js → 5744-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5814-212dda4f27822bc8fdb3.js → 5814-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5827-212dda4f27822bc8fdb3.js → 5827-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5884-212dda4f27822bc8fdb3.js → 5884-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5891-212dda4f27822bc8fdb3.js → 5891-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5936-212dda4f27822bc8fdb3.js → 5936-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{5954-212dda4f27822bc8fdb3.js → 5954-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6010-212dda4f27822bc8fdb3.js → 6010-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6045-212dda4f27822bc8fdb3.js → 6045-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6083-212dda4f27822bc8fdb3.js → 6083-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6124-212dda4f27822bc8fdb3.js → 6124-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6173-212dda4f27822bc8fdb3.js → 6173-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6239-212dda4f27822bc8fdb3.js → 6239-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6262-212dda4f27822bc8fdb3.js → 6262-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6283-212dda4f27822bc8fdb3.js → 6283-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6297-212dda4f27822bc8fdb3.js → 6297-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6324-212dda4f27822bc8fdb3.js → 6324-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6343-212dda4f27822bc8fdb3.js → 6343-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6356-212dda4f27822bc8fdb3.js → 6356-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{638-212dda4f27822bc8fdb3.js → 638-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6405-212dda4f27822bc8fdb3.js → 6405-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6514-212dda4f27822bc8fdb3.js → 6514-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6517-212dda4f27822bc8fdb3.js → 6517-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6563-212dda4f27822bc8fdb3.js → 6563-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6577-212dda4f27822bc8fdb3.js → 6577-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6677-212dda4f27822bc8fdb3.js → 6677-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6736-212dda4f27822bc8fdb3.js → 6736-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6757-212dda4f27822bc8fdb3.js → 6757-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6865-212dda4f27822bc8fdb3.js → 6865-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6940-212dda4f27822bc8fdb3.js → 6940-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6957-212dda4f27822bc8fdb3.js → 6957-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6964-212dda4f27822bc8fdb3.js → 6964-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6967-212dda4f27822bc8fdb3.js → 6967-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{697-212dda4f27822bc8fdb3.js → 697-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{6980-212dda4f27822bc8fdb3.js → 6980-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7095-212dda4f27822bc8fdb3.js → 7095-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7141-212dda4f27822bc8fdb3.js → 7141-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7145-212dda4f27822bc8fdb3.js → 7145-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7148-212dda4f27822bc8fdb3.js → 7148-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7217-212dda4f27822bc8fdb3.js → 7217-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7258-212dda4f27822bc8fdb3.js → 7258-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7328-212dda4f27822bc8fdb3.js → 7328-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7374-212dda4f27822bc8fdb3.js → 7374-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7434-212dda4f27822bc8fdb3.js → 7434-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7470-212dda4f27822bc8fdb3.js → 7470-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7504-212dda4f27822bc8fdb3.js → 7504-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{753-212dda4f27822bc8fdb3.js → 753-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7549-212dda4f27822bc8fdb3.js → 7549-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7561-212dda4f27822bc8fdb3.js → 7561-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7567-212dda4f27822bc8fdb3.js → 7567-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7611-212dda4f27822bc8fdb3.js → 7611-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7615-212dda4f27822bc8fdb3.js → 7615-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7625-212dda4f27822bc8fdb3.js → 7625-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7642-212dda4f27822bc8fdb3.js → 7642-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7670-212dda4f27822bc8fdb3.js → 7670-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7681-212dda4f27822bc8fdb3.js → 7681-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7688-212dda4f27822bc8fdb3.js → 7688-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7765-212dda4f27822bc8fdb3.js → 7765-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7768-212dda4f27822bc8fdb3.js → 7768-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7788-212dda4f27822bc8fdb3.js → 7788-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7789-212dda4f27822bc8fdb3.js → 7789-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{780-212dda4f27822bc8fdb3.js → 780-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7817-212dda4f27822bc8fdb3.js → 7817-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7824-212dda4f27822bc8fdb3.js → 7824-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7831-212dda4f27822bc8fdb3.js → 7831-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7900-212dda4f27822bc8fdb3.js → 7900-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7922-212dda4f27822bc8fdb3.js → 7922-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7927-212dda4f27822bc8fdb3.js → 7927-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{794-212dda4f27822bc8fdb3.js → 794-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{7966-212dda4f27822bc8fdb3.js → 7966-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8003-212dda4f27822bc8fdb3.js → 8003-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8093-212dda4f27822bc8fdb3.js → 8093-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8107-212dda4f27822bc8fdb3.js → 8107-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8201-212dda4f27822bc8fdb3.js → 8201-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8212-212dda4f27822bc8fdb3.js → 8212-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8234-212dda4f27822bc8fdb3.js → 8234-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8235-212dda4f27822bc8fdb3.js → 8235-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8237-212dda4f27822bc8fdb3.js → 8237-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8249-212dda4f27822bc8fdb3.js → 8249-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8320-212dda4f27822bc8fdb3.js → 8320-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8389-212dda4f27822bc8fdb3.js → 8389-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8393-212dda4f27822bc8fdb3.js → 8393-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8418-212dda4f27822bc8fdb3.js → 8418-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8426-212dda4f27822bc8fdb3.js → 8426-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8436-212dda4f27822bc8fdb3.js → 8436-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{845-212dda4f27822bc8fdb3.js → 845-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8485-212dda4f27822bc8fdb3.js → 8485-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8499-212dda4f27822bc8fdb3.js → 8499-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8553-212dda4f27822bc8fdb3.js → 8553-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8617-212dda4f27822bc8fdb3.js → 8617-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8684-212dda4f27822bc8fdb3.js → 8684-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8700-212dda4f27822bc8fdb3.js → 8700-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8709-212dda4f27822bc8fdb3.js → 8709-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8711-212dda4f27822bc8fdb3.js → 8711-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{874-212dda4f27822bc8fdb3.js → 874-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8753-212dda4f27822bc8fdb3.js → 8753-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8849-212dda4f27822bc8fdb3.js → 8849-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{8931-212dda4f27822bc8fdb3.js → 8931-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9017-212dda4f27822bc8fdb3.js → 9017-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9045-212dda4f27822bc8fdb3.js → 9045-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9057-212dda4f27822bc8fdb3.js → 9057-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9077-212dda4f27822bc8fdb3.js → 9077-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9079-212dda4f27822bc8fdb3.js → 9079-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9096-212dda4f27822bc8fdb3.js → 9096-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9104-212dda4f27822bc8fdb3.js → 9104-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{914-212dda4f27822bc8fdb3.js → 914-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9175-212dda4f27822bc8fdb3.js → 9175-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9179-212dda4f27822bc8fdb3.js → 9179-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9198-212dda4f27822bc8fdb3.js → 9198-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9206-212dda4f27822bc8fdb3.js → 9206-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9225-212dda4f27822bc8fdb3.js → 9225-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9270-212dda4f27822bc8fdb3.js → 9270-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9281-212dda4f27822bc8fdb3.js → 9281-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9294-212dda4f27822bc8fdb3.js → 9294-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9478-212dda4f27822bc8fdb3.js → 9478-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9524-212dda4f27822bc8fdb3.js → 9524-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9526-212dda4f27822bc8fdb3.js → 9526-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9556-212dda4f27822bc8fdb3.js → 9556-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9641-212dda4f27822bc8fdb3.js → 9641-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9661-212dda4f27822bc8fdb3.js → 9661-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9681-212dda4f27822bc8fdb3.js → 9681-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9689-212dda4f27822bc8fdb3.js → 9689-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9692-212dda4f27822bc8fdb3.js → 9692-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9728-212dda4f27822bc8fdb3.js → 9728-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9730-212dda4f27822bc8fdb3.js → 9730-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9780-212dda4f27822bc8fdb3.js → 9780-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9788-212dda4f27822bc8fdb3.js → 9788-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9806-212dda4f27822bc8fdb3.js → 9806-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9809-212dda4f27822bc8fdb3.js → 9809-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9819-212dda4f27822bc8fdb3.js → 9819-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9831-212dda4f27822bc8fdb3.js → 9831-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9845-212dda4f27822bc8fdb3.js → 9845-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9876-212dda4f27822bc8fdb3.js → 9876-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9904-212dda4f27822bc8fdb3.js → 9904-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9910-212dda4f27822bc8fdb3.js → 9910-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9965-212dda4f27822bc8fdb3.js → 9965-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9976-212dda4f27822bc8fdb3.js → 9976-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9982-212dda4f27822bc8fdb3.js → 9982-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9983-212dda4f27822bc8fdb3.js → 9983-0a3715fad581fbdb27ba.js} +0 -0
- /package/dist/chunk/{9984-212dda4f27822bc8fdb3.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,30 +283,30 @@ 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;
|
|
@@ -537,16 +318,26 @@ declare class CubeImg extends CubeChild<IImg.Data> {
|
|
|
537
318
|
export(): IImg.Data;
|
|
538
319
|
}
|
|
539
320
|
|
|
540
|
-
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> {
|
|
541
332
|
constructor(cube: CubeLost);
|
|
542
333
|
}
|
|
543
334
|
|
|
544
335
|
declare class CubeLost extends CubeChild<ILost.Data> {
|
|
545
|
-
protected _status:
|
|
336
|
+
protected _status: LostStatus;
|
|
546
337
|
protected _msg: vue.Ref<string, string>;
|
|
547
338
|
constructor(note: Note, data: any, pcube: any, reason: string);
|
|
548
339
|
get adapter(): AdapterCubeLost;
|
|
549
|
-
get status():
|
|
340
|
+
get status(): LostStatus;
|
|
550
341
|
get msg(): string;
|
|
551
342
|
set msg(v: string);
|
|
552
343
|
get component(): any;
|
|
@@ -556,11 +347,30 @@ declare class CubeLost extends CubeChild<ILost.Data> {
|
|
|
556
347
|
build_child(): void;
|
|
557
348
|
gc(): void;
|
|
558
349
|
export(): ILost.Data;
|
|
559
|
-
on_cursor_in_head(command:
|
|
560
|
-
on_cursor_in_tail(command:
|
|
350
|
+
on_cursor_in_head(command: ICommandCursor.InHead): Recorder;
|
|
351
|
+
on_cursor_in_tail(command: ICommandCursor.InTail): Recorder;
|
|
561
352
|
}
|
|
562
353
|
|
|
563
|
-
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> {
|
|
564
374
|
constructor(cube: CubeText);
|
|
565
375
|
get cube(): CubeText;
|
|
566
376
|
get text(): string;
|
|
@@ -568,10 +378,10 @@ declare class StatusText extends StatusCube<IText.Data> {
|
|
|
568
378
|
}
|
|
569
379
|
|
|
570
380
|
declare class CubeText extends CubeChild<IText.Data> {
|
|
571
|
-
protected _status:
|
|
381
|
+
protected _status: TextStatus;
|
|
572
382
|
constructor(note: Note, data: IText.Data, pcube: CubeChild);
|
|
573
383
|
get adapter(): AdapterCubeText;
|
|
574
|
-
get status():
|
|
384
|
+
get status(): TextStatus;
|
|
575
385
|
get attrs(): IText.Attrs;
|
|
576
386
|
get component(): any;
|
|
577
387
|
get is_empty(): boolean;
|
|
@@ -586,44 +396,39 @@ declare class CubeText extends CubeChild<IText.Data> {
|
|
|
586
396
|
find_child_cube(id: ICubeBase.CubeId): CubeChild | undefined;
|
|
587
397
|
export(): IText.Data;
|
|
588
398
|
protected merge_text(offset: number): Recorder;
|
|
589
|
-
protected on_text_reset(command:
|
|
590
|
-
protected on_cursor_loc(cmd:
|
|
591
|
-
protected on_partition(cmd:
|
|
592
|
-
protected on_cube_merge(command:
|
|
593
|
-
protected on_cube_insert(command:
|
|
594
|
-
protected on_cube_delete(command:
|
|
595
|
-
protected on_cube_set_selection_css(command:
|
|
596
|
-
protected on_cube_break(command:
|
|
597
|
-
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;
|
|
598
408
|
add_link(title: string, link: string): Recorder;
|
|
599
|
-
add_annotation(annotation?:
|
|
409
|
+
add_annotation(annotation?: ICubeBoxRoot.Data): Recorder;
|
|
600
410
|
set_cursor_in_head(offset?: number): void;
|
|
601
411
|
set_cursor_in_tail(offset?: number): void;
|
|
602
412
|
find_text_nav_pos(pos: number, dir: "left" | "right"): number;
|
|
603
413
|
find_text_deleted(pos: number, dir: "left" | "right"): IText.DeleteInfo;
|
|
604
|
-
is_text_remain(dir:
|
|
414
|
+
is_text_remain(dir: ICommandCube.DeleteDir, range: [number, number]): boolean;
|
|
605
415
|
drop_zero_width_space(pos: number): INoteCursor.Location;
|
|
606
416
|
can_merge_with(cube: CubeText): boolean;
|
|
607
417
|
get_valid_range(range: [number, number]): [number, number];
|
|
608
418
|
get_valid_index(pos: number | INote.CubeSide): number;
|
|
609
419
|
is_valid_pos(pos: number): boolean;
|
|
610
|
-
protected _delete_edge(dir:
|
|
420
|
+
protected _delete_edge(dir: ICommandCube.DeleteDir): Recorder | undefined;
|
|
611
421
|
}
|
|
612
422
|
|
|
613
|
-
declare class
|
|
614
|
-
static reset(id: string, info: string, pos?: number, pos_before?: number): ITextCommand.Reset;
|
|
615
|
-
static break(id: string, offset: number): ITextCommand.Break;
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
declare class StatusLine extends StatusCube<ILine.Data> {
|
|
423
|
+
declare class LineStatus extends CubeStatusBase<ILine.Data> {
|
|
619
424
|
constructor(cube: CubeLine);
|
|
620
425
|
}
|
|
621
426
|
|
|
622
427
|
declare class CubeLine extends CubeChild<ILine.Data> {
|
|
623
|
-
protected _status:
|
|
428
|
+
protected _status: LineStatus;
|
|
624
429
|
constructor(note: Note, data: ILine.Data, pcube: CubeChild);
|
|
625
430
|
get adapter(): AdapterCubeLine;
|
|
626
|
-
get status():
|
|
431
|
+
get status(): LineStatus;
|
|
627
432
|
get children(): CubeChild[];
|
|
628
433
|
get component(): any;
|
|
629
434
|
get editable(): boolean;
|
|
@@ -639,22 +444,30 @@ declare class CubeLine extends CubeChild<ILine.Data> {
|
|
|
639
444
|
update_data(versions: INote.CubesVersion, data: ILine.Data): ICubeBase.CubeUpdateResult;
|
|
640
445
|
gc(): void;
|
|
641
446
|
inherit_line(data: ICubeBase.Data[]): void;
|
|
642
|
-
on_cube_merge(command:
|
|
643
|
-
on_cube_reset(command:
|
|
644
|
-
on_insert_child(command:
|
|
645
|
-
on_delete_child(command:
|
|
646
|
-
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;
|
|
647
452
|
}
|
|
648
453
|
|
|
649
|
-
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> {
|
|
650
463
|
constructor(cube: CubeBoxRoot);
|
|
651
464
|
}
|
|
652
465
|
|
|
653
466
|
declare class CubeBoxRoot extends CubeChild<ICubeBoxRoot.Data> {
|
|
654
|
-
protected _status:
|
|
467
|
+
protected _status: BoxRootStatus;
|
|
655
468
|
constructor(note: Note, data: ICubeBoxRoot.Data, pcube: INote.NoteCube);
|
|
656
469
|
get adapter(): AdapterCubeBoxRoot;
|
|
657
|
-
get status():
|
|
470
|
+
get status(): BoxRootStatus;
|
|
658
471
|
get children(): CubeChild[];
|
|
659
472
|
get component(): any;
|
|
660
473
|
get is_empty(): boolean;
|
|
@@ -662,27 +475,31 @@ declare class CubeBoxRoot extends CubeChild<ICubeBoxRoot.Data> {
|
|
|
662
475
|
build_child(data: ICubeBoxRoot.Data): void;
|
|
663
476
|
gc(): void;
|
|
664
477
|
export(): ICubeBoxRoot.Data;
|
|
665
|
-
on_cube_delete_adjacent(command:
|
|
666
|
-
on_merge(command:
|
|
667
|
-
on_cube_reorder(command:
|
|
668
|
-
on_cube_reset(command:
|
|
669
|
-
on_insert_child(command:
|
|
670
|
-
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;
|
|
671
484
|
get_valid_index(pos: number | INote.CubeSide): number;
|
|
672
485
|
}
|
|
673
486
|
|
|
674
|
-
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;
|
|
675
492
|
}
|
|
676
493
|
|
|
677
|
-
declare class
|
|
494
|
+
declare class BoxStatus extends CubeStatusBase<IBox.Data> {
|
|
678
495
|
constructor(cube: CubeBox);
|
|
679
496
|
}
|
|
680
497
|
|
|
681
498
|
declare class CubeBox extends CubeChild<IBox.Data> {
|
|
682
|
-
protected _status:
|
|
499
|
+
protected _status: BoxStatus;
|
|
683
500
|
constructor(note: Note, data: IBox.Data, pcube: CubeChild);
|
|
684
501
|
get adapter(): AdapterCubeBox;
|
|
685
|
-
get status():
|
|
502
|
+
get status(): BoxStatus;
|
|
686
503
|
get children(): CubeChild[];
|
|
687
504
|
get component(): any;
|
|
688
505
|
get attrs(): IBox.Attrs;
|
|
@@ -691,24 +508,32 @@ declare class CubeBox extends CubeChild<IBox.Data> {
|
|
|
691
508
|
build_child(data: IBox.Data): void;
|
|
692
509
|
export(): IBox.Data;
|
|
693
510
|
gc(): void;
|
|
694
|
-
on_merge(command:
|
|
695
|
-
on_box_order(command:
|
|
696
|
-
on_insert_child(command:
|
|
697
|
-
on_delete_child(command:
|
|
698
|
-
on_box_reset(command:
|
|
699
|
-
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;
|
|
700
517
|
get_valid_index(pos: number | INote.CubeSide): number;
|
|
701
518
|
}
|
|
702
519
|
|
|
703
|
-
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> {
|
|
704
529
|
constructor(cube: CubeBoxFolder);
|
|
705
530
|
}
|
|
706
531
|
|
|
707
532
|
declare class CubeBoxFolder extends CubeChild<ICubeBoxFolder.Data> {
|
|
708
|
-
protected _status:
|
|
533
|
+
protected _status: BoxFolderStatus;
|
|
709
534
|
constructor(note: Note, data: ICubeBoxFolder.Data, pcube: CubeChild);
|
|
710
535
|
get adapter(): AdapterCubeBoxFolder;
|
|
711
|
-
get status():
|
|
536
|
+
get status(): BoxFolderStatus;
|
|
712
537
|
get children(): CubeChild[];
|
|
713
538
|
get component(): any;
|
|
714
539
|
get is_empty(): boolean;
|
|
@@ -716,28 +541,32 @@ declare class CubeBoxFolder extends CubeChild<ICubeBoxFolder.Data> {
|
|
|
716
541
|
build_child(data: ICubeBoxFolder.Data): void;
|
|
717
542
|
gc(): void;
|
|
718
543
|
export(): ICubeBoxFolder.Data;
|
|
719
|
-
on_cube_delete_adjacent(command:
|
|
720
|
-
on_merge(command:
|
|
721
|
-
on_cube_reorder(command:
|
|
722
|
-
on_cube_reset(command:
|
|
723
|
-
on_insert_child(command:
|
|
724
|
-
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;
|
|
725
550
|
get_valid_index(pos: number | INote.CubeSide): number;
|
|
726
551
|
}
|
|
727
552
|
|
|
728
|
-
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;
|
|
729
558
|
}
|
|
730
559
|
|
|
731
|
-
declare class
|
|
560
|
+
declare class DocStatus extends CubeStatusBaseRoot<IDoc.Data> {
|
|
732
561
|
constructor(cube: CubeDoc);
|
|
733
562
|
}
|
|
734
563
|
|
|
735
564
|
declare class CubeDoc extends CubeRoot<IDoc.Data> {
|
|
736
|
-
protected _status:
|
|
565
|
+
protected _status: DocStatus;
|
|
737
566
|
protected _app: any;
|
|
738
567
|
constructor(note: Note, data: IDoc.Data);
|
|
739
568
|
get adapter(): AdapterCubeDoc;
|
|
740
|
-
get status():
|
|
569
|
+
get status(): DocStatus;
|
|
741
570
|
get app(): any;
|
|
742
571
|
get component(): any;
|
|
743
572
|
get meta(): INote.CubeMeta<INote.Cubes>;
|
|
@@ -748,7 +577,21 @@ declare class CubeDoc extends CubeRoot<IDoc.Data> {
|
|
|
748
577
|
render(dom: HTMLElement): void;
|
|
749
578
|
}
|
|
750
579
|
|
|
751
|
-
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> {
|
|
752
595
|
protected _path: Ref<string, string>;
|
|
753
596
|
protected _sample: Reactive<IMath.Point[]>;
|
|
754
597
|
protected _point_from: IMath.Point;
|
|
@@ -802,7 +645,7 @@ declare class Linker2D extends Map2D {
|
|
|
802
645
|
protected _prev_to_rect: IMath.Rect;
|
|
803
646
|
constructor(cube: CubeLinker);
|
|
804
647
|
get linker(): CubeLinker;
|
|
805
|
-
get status():
|
|
648
|
+
get status(): LinkerStatus;
|
|
806
649
|
get path(): string;
|
|
807
650
|
get attrs(): Record<string, any>;
|
|
808
651
|
get sample(): IMath.Point[];
|
|
@@ -820,12 +663,12 @@ declare class Linker2D extends Map2D {
|
|
|
820
663
|
}
|
|
821
664
|
|
|
822
665
|
declare class CubeLinker extends MapChild<ILinker.Data> {
|
|
823
|
-
protected _status:
|
|
666
|
+
protected _status: LinkerStatus;
|
|
824
667
|
protected _map2d: Linker2D;
|
|
825
668
|
constructor(note: Note, data: ILinker.Data, pcube: _Map);
|
|
826
669
|
get adapter(): AdapterCubeLinker;
|
|
827
670
|
get map2d(): Linker2D;
|
|
828
|
-
get status():
|
|
671
|
+
get status(): LinkerStatus;
|
|
829
672
|
get show(): boolean;
|
|
830
673
|
get info(): ILinker.Info;
|
|
831
674
|
get rect(): IMath.Rect;
|
|
@@ -837,8 +680,8 @@ declare class CubeLinker extends MapChild<ILinker.Data> {
|
|
|
837
680
|
get id(): string;
|
|
838
681
|
export(): ILinker.Data;
|
|
839
682
|
build_child(data: ILinker.Data): void;
|
|
840
|
-
get_linker_info():
|
|
841
|
-
protected on_linker_update(cmd:
|
|
683
|
+
get_linker_info(): ICommandMap.LinkerInfo | undefined;
|
|
684
|
+
protected on_linker_update(cmd: ICommandLinker.Update): Recorder;
|
|
842
685
|
}
|
|
843
686
|
|
|
844
687
|
declare class LinkerLine {
|
|
@@ -888,10 +731,6 @@ declare class LinkerPoint {
|
|
|
888
731
|
static free_to_any(from: MapNodeBase, to: MapNodeBase): IMapTools.LinePoints | undefined;
|
|
889
732
|
}
|
|
890
733
|
|
|
891
|
-
declare class CommandLinker {
|
|
892
|
-
static update(id: ICubeBase.CubeId, attrs: ILinkerCommand.UpdateAttr): ILinkerCommand.Update;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
734
|
declare abstract class NoteBase {
|
|
896
735
|
protected _note: Note;
|
|
897
736
|
constructor(note: Note);
|
|
@@ -904,6 +743,7 @@ declare abstract class NoteBase {
|
|
|
904
743
|
get api(): typeof NoteApi;
|
|
905
744
|
get courier(): NoteCourier;
|
|
906
745
|
get history(): NoteHistory;
|
|
746
|
+
get interaction(): NoteInteraction;
|
|
907
747
|
get cursor(): NoteCursor;
|
|
908
748
|
get event(): NoteEvent;
|
|
909
749
|
get listener(): NoteListener;
|
|
@@ -912,7 +752,6 @@ declare abstract class NoteBase {
|
|
|
912
752
|
get painter(): NotePainter;
|
|
913
753
|
get cubes(): NoteCubes;
|
|
914
754
|
get flag(): NoteFlag;
|
|
915
|
-
get hotkeys(): NoteHotkeys;
|
|
916
755
|
get action(): NoteAction;
|
|
917
756
|
}
|
|
918
757
|
|
|
@@ -980,24 +819,97 @@ declare class MapInteraction extends NoteBase {
|
|
|
980
819
|
contextmenu(e: MouseEvent): void;
|
|
981
820
|
}
|
|
982
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
|
+
|
|
983
849
|
declare class NoteInteraction extends NoteBase {
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
protected
|
|
987
|
-
|
|
988
|
-
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>>;
|
|
989
854
|
constructor(note: Note);
|
|
855
|
+
get meta(): INote.CoreMeta;
|
|
856
|
+
set_scope(scope: INoteInteraction.Scope): void;
|
|
990
857
|
get useable_keyboard(): boolean;
|
|
991
|
-
get map_interactions_keyboard(): IMapInteraction.KeyboardApi[];
|
|
992
|
-
get note_interactions_keyboard(): INoteInteraction.KeyboardApi[];
|
|
993
|
-
add_note_interaction_keyboard(interaction: INoteInteraction.KeyboardApi): void;
|
|
994
|
-
add_map_interaction_keyboard(interaction: IMapInteraction.KeyboardApi): void;
|
|
995
858
|
set_useable_keyboard(useable: boolean): void;
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
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;
|
|
999
874
|
}
|
|
1000
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
|
+
|
|
1001
913
|
declare class Waiter {
|
|
1002
914
|
protected _promise: Promise<any>;
|
|
1003
915
|
protected _resolve: Function;
|
|
@@ -1009,7 +921,7 @@ declare class Waiter {
|
|
|
1009
921
|
}
|
|
1010
922
|
declare const waiter_map_svg: Waiter;
|
|
1011
923
|
|
|
1012
|
-
declare class
|
|
924
|
+
declare class MapStatus extends CubeStatusBaseRoot<IMap.Data> implements IMapBase.Status {
|
|
1013
925
|
protected _nodes_count: vue.Ref<number, number>;
|
|
1014
926
|
protected _view_rect: IMath.Rect;
|
|
1015
927
|
protected _nodes_view: ShallowReactive<Set<MapNodeBase>>;
|
|
@@ -1124,7 +1036,7 @@ declare class MapCanvas extends NoteBase {
|
|
|
1124
1036
|
}
|
|
1125
1037
|
|
|
1126
1038
|
declare class CubeMap extends CubeRoot<IMap.Data> implements IMapBase.Api {
|
|
1127
|
-
protected _status:
|
|
1039
|
+
protected _status: MapStatus;
|
|
1128
1040
|
protected _map_interaction: MapInteraction;
|
|
1129
1041
|
protected _grider: MapGrider;
|
|
1130
1042
|
protected _canvas: MapCanvas;
|
|
@@ -1155,7 +1067,7 @@ declare class CubeMap extends CubeRoot<IMap.Data> implements IMapBase.Api {
|
|
|
1155
1067
|
get linkers_view(): Set<CubeLinker>;
|
|
1156
1068
|
get line_deleted(): Set<MapNodeBase<any> | CubeLinker>;
|
|
1157
1069
|
get id(): string;
|
|
1158
|
-
get status():
|
|
1070
|
+
get status(): MapStatus;
|
|
1159
1071
|
get grider(): MapGrider;
|
|
1160
1072
|
get canvas(): MapCanvas;
|
|
1161
1073
|
get map_interaction(): MapInteraction;
|
|
@@ -1176,7 +1088,7 @@ declare class CubeMap extends CubeRoot<IMap.Data> implements IMapBase.Api {
|
|
|
1176
1088
|
find_child_cube(id: ICubeBase.CubeId): INote.NoteChild | undefined;
|
|
1177
1089
|
pick(...elements: MapChild[]): void;
|
|
1178
1090
|
remove_node(node: MapNodeBase): void;
|
|
1179
|
-
remove_linker(linker: CubeLinker):
|
|
1091
|
+
remove_linker(linker: CubeLinker): ICommandMap.LinkerInfo | undefined;
|
|
1180
1092
|
build_child(data: IMap.Data): Promise<void>;
|
|
1181
1093
|
init_env(): void;
|
|
1182
1094
|
init_map2d(): void;
|
|
@@ -1186,12 +1098,12 @@ declare class CubeMap extends CubeRoot<IMap.Data> implements IMapBase.Api {
|
|
|
1186
1098
|
render(dom: HTMLElement): Promise<void>;
|
|
1187
1099
|
protected is_noop_sibling_move(siblings: string[], node_id: string, target_id: string, type: "prev" | "next"): boolean;
|
|
1188
1100
|
protected reorder_siblings(siblings: string[], node_id: string, target_id: string, type: "prev" | "next"): boolean;
|
|
1189
|
-
protected on_sibling_reorder(cmd:
|
|
1190
|
-
protected on_node_add(cmd:
|
|
1191
|
-
protected on_node_remove(cmd:
|
|
1192
|
-
protected on_linker_add(cmd:
|
|
1193
|
-
protected on_linker_remove(cmd:
|
|
1194
|
-
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;
|
|
1195
1107
|
get_nodes_intersection(rect: IMath.Rect): MapNodeBase[];
|
|
1196
1108
|
get_linker_id(from_id: string, to_id: string): string;
|
|
1197
1109
|
get_linker(id: string): CubeLinker | undefined;
|
|
@@ -1244,22 +1156,29 @@ declare class CubeMap extends CubeRoot<IMap.Data> implements IMapBase.Api {
|
|
|
1244
1156
|
check_show_throttle: () => Promise<boolean>;
|
|
1245
1157
|
}
|
|
1246
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
|
+
|
|
1247
1166
|
declare class Node2D extends NodeBase2D {
|
|
1248
1167
|
constructor(cube: CubeNode);
|
|
1249
1168
|
get cube(): CubeNode;
|
|
1250
1169
|
}
|
|
1251
1170
|
|
|
1252
|
-
declare class
|
|
1171
|
+
declare class NodeStatus extends NodeStatusBase<INode.Data> {
|
|
1253
1172
|
constructor(cube: CubeNode);
|
|
1254
1173
|
}
|
|
1255
1174
|
|
|
1256
1175
|
declare class CubeNode extends MapNodeBase<INode.Data> {
|
|
1257
|
-
protected _status:
|
|
1176
|
+
protected _status: NodeStatus;
|
|
1258
1177
|
protected _map2d: Node2D;
|
|
1259
1178
|
constructor(note: Note, data: INode.Data, pcube: _Map);
|
|
1260
1179
|
get adapter(): AdapterCubeNode;
|
|
1261
1180
|
get map2d(): Node2D;
|
|
1262
|
-
get status():
|
|
1181
|
+
get status(): NodeStatus;
|
|
1263
1182
|
get component(): any;
|
|
1264
1183
|
build_child(data: INode.Data): void;
|
|
1265
1184
|
export(): INode.Data;
|
|
@@ -1281,15 +1200,30 @@ declare class NodeShape {
|
|
|
1281
1200
|
static circle(map2d: NodeBase2D, padding?: number): string;
|
|
1282
1201
|
}
|
|
1283
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
|
+
|
|
1284
1218
|
declare class CubeApi extends CubeChild<IApi.Data> {
|
|
1285
|
-
protected _status:
|
|
1219
|
+
protected _status: ApiStatus;
|
|
1286
1220
|
protected _functions: CubeList;
|
|
1287
1221
|
protected _arguments: CubeList | undefined;
|
|
1288
1222
|
protected _exceptions: CubeList | undefined;
|
|
1289
1223
|
protected _temp_funcnames: string[];
|
|
1290
1224
|
constructor(note: Note, data: IApi.Data, pcube: CubeChild);
|
|
1291
1225
|
get adapter(): AdapterCubeApi;
|
|
1292
|
-
get status():
|
|
1226
|
+
get status(): ApiStatus;
|
|
1293
1227
|
get functions(): CubeList;
|
|
1294
1228
|
get arguments(): CubeList | undefined;
|
|
1295
1229
|
set arguments(val: CubeList | undefined);
|
|
@@ -1306,10 +1240,18 @@ declare class CubeApi extends CubeChild<IApi.Data> {
|
|
|
1306
1240
|
export(): IApi.Data;
|
|
1307
1241
|
}
|
|
1308
1242
|
|
|
1309
|
-
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
|
+
};
|
|
1310
1252
|
}
|
|
1311
1253
|
|
|
1312
|
-
declare class
|
|
1254
|
+
declare class ListStatus extends CubeStatusBase<IList.Data> {
|
|
1313
1255
|
protected _items: IList.ListItem[];
|
|
1314
1256
|
constructor(cube: CubeList);
|
|
1315
1257
|
get cube(): CubeList;
|
|
@@ -1321,11 +1263,11 @@ declare class StatusList extends StatusCube<IList.Data> {
|
|
|
1321
1263
|
}
|
|
1322
1264
|
|
|
1323
1265
|
declare class CubeList extends CubeChild<IList.Data> {
|
|
1324
|
-
protected _status:
|
|
1266
|
+
protected _status: ListStatus;
|
|
1325
1267
|
protected _items: IList.ListItem[];
|
|
1326
1268
|
constructor(note: Note, data: IList.Data, pcube: CubeChild);
|
|
1327
1269
|
get adapter(): AdapterCubeList;
|
|
1328
|
-
get status():
|
|
1270
|
+
get status(): ListStatus;
|
|
1329
1271
|
get component(): any;
|
|
1330
1272
|
get items(): IList.ListItem[];
|
|
1331
1273
|
get children(): CubeBox[];
|
|
@@ -1341,14 +1283,14 @@ declare class CubeList extends CubeChild<IList.Data> {
|
|
|
1341
1283
|
splice_items(index: number, delete_count: number, ...insert: IList.ListItem[]): ICubeBase.CubeSpliceResult<IList.ListItem, IList.ListItemData>;
|
|
1342
1284
|
create(data: IList.ListItemData[]): IList.ListItem[];
|
|
1343
1285
|
create_item_data(indent?: number): IList.ListItemData;
|
|
1344
|
-
protected on_reset(cmd:
|
|
1345
|
-
protected add_item(cmd:
|
|
1346
|
-
protected remove_item(cmd:
|
|
1347
|
-
protected indent_item(cmd:
|
|
1348
|
-
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;
|
|
1349
1291
|
}
|
|
1350
1292
|
|
|
1351
|
-
declare class
|
|
1293
|
+
declare class ApiStatus extends CubeStatusBase<IApi.Data> {
|
|
1352
1294
|
protected _arguments: ShallowRef<CubeList | undefined>;
|
|
1353
1295
|
protected _exceptions: ShallowRef<CubeList | undefined>;
|
|
1354
1296
|
constructor(cube: CubeApi);
|
|
@@ -1358,25 +1300,14 @@ declare class StatusApi extends StatusCube<IApi.Data> {
|
|
|
1358
1300
|
update_exceptions(excs: CubeList | undefined): Promise<void>;
|
|
1359
1301
|
}
|
|
1360
1302
|
|
|
1361
|
-
declare class
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
protected _status: StatusAnnotation;
|
|
1367
|
-
constructor(note: Note, data: _CubeTextAnnotation, pcube: CubeChild);
|
|
1368
|
-
get adapter(): AdapterCubeAnnotation;
|
|
1369
|
-
get status(): StatusAnnotation;
|
|
1370
|
-
get component(): any;
|
|
1371
|
-
gc(): void;
|
|
1372
|
-
export(): _CubeTextAnnotation;
|
|
1373
|
-
build_child(data: _CubeTextAnnotation): void;
|
|
1374
|
-
on_insert_child(command: ICubeCommand.InsertChild): Recorder | void;
|
|
1375
|
-
on_delete_child(command: ICubeCommand.DeleteChild): Recorder | void;
|
|
1376
|
-
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>;
|
|
1377
1308
|
}
|
|
1378
1309
|
|
|
1379
|
-
declare class
|
|
1310
|
+
declare class DetailListStatus extends CubeStatusBase<IDetailList.Data> {
|
|
1380
1311
|
protected _rows: IDetailList.BoxMap[];
|
|
1381
1312
|
constructor(cube: CubeDetailList);
|
|
1382
1313
|
get children(): CubeBox[];
|
|
@@ -1403,29 +1334,29 @@ declare namespace IDetailList {
|
|
|
1403
1334
|
}
|
|
1404
1335
|
}
|
|
1405
1336
|
|
|
1406
|
-
declare namespace
|
|
1407
|
-
interface InsertRow extends
|
|
1337
|
+
declare namespace ICommandDetailList {
|
|
1338
|
+
interface InsertRow extends ICommandCube.BaseCommand {
|
|
1408
1339
|
name: "detail-list:insert-row";
|
|
1409
1340
|
pos: number | INote.CubeSide;
|
|
1410
1341
|
rows: IDetailList.BoxDataMap[];
|
|
1411
1342
|
}
|
|
1412
|
-
interface RemoveRow extends
|
|
1343
|
+
interface RemoveRow extends ICommandCube.BaseCommand {
|
|
1413
1344
|
name: "detail-list:remove-row";
|
|
1414
1345
|
range: [number, number];
|
|
1415
1346
|
reserve: boolean;
|
|
1416
1347
|
}
|
|
1417
|
-
interface ChangeWidthCol1 extends
|
|
1348
|
+
interface ChangeWidthCol1 extends ICommandCube.BaseCommand {
|
|
1418
1349
|
name: "detail-list:change-width-col1";
|
|
1419
1350
|
width: number;
|
|
1420
1351
|
}
|
|
1421
1352
|
}
|
|
1422
1353
|
|
|
1423
1354
|
declare class CubeDetailList extends CubeChild<IDetailList.Data> {
|
|
1424
|
-
protected _status:
|
|
1355
|
+
protected _status: DetailListStatus;
|
|
1425
1356
|
protected _rows: IDetailList.BoxMap[];
|
|
1426
1357
|
constructor(note: Note, data: IDetailList.Data, pcube: CubeChild);
|
|
1427
1358
|
get adapter(): AdapterCubeDetailList;
|
|
1428
|
-
get status():
|
|
1359
|
+
get status(): DetailListStatus;
|
|
1429
1360
|
get rows(): IDetailList.BoxMap[];
|
|
1430
1361
|
get component(): any;
|
|
1431
1362
|
get children(): CubeBox[];
|
|
@@ -1443,19 +1374,20 @@ declare class CubeDetailList extends CubeChild<IDetailList.Data> {
|
|
|
1443
1374
|
export(): IDetailList.Data;
|
|
1444
1375
|
splice_rows(pos: number, deletecount: number, ...items: IDetailList.BoxMap[]): IDetailList.BoxMap[];
|
|
1445
1376
|
check_delete_edge(child: CubeChild): boolean;
|
|
1446
|
-
insert_row(cmd:
|
|
1447
|
-
remove_row(cmd:
|
|
1448
|
-
protected change_width_col1(cmd:
|
|
1449
|
-
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;
|
|
1450
1381
|
}
|
|
1451
1382
|
|
|
1452
|
-
declare class
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
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>;
|
|
1456
1388
|
}
|
|
1457
1389
|
|
|
1458
|
-
declare class
|
|
1390
|
+
declare class PostilStatus extends CubeStatusBase<IPostil.V1> {
|
|
1459
1391
|
protected _show: vue.Ref<boolean, boolean>;
|
|
1460
1392
|
protected _pointer_angle: vue.Ref<number, number>;
|
|
1461
1393
|
constructor(cube: CubePostil);
|
|
@@ -1467,14 +1399,14 @@ declare class StatusPostil extends StatusCube<IPostil.V1> {
|
|
|
1467
1399
|
}
|
|
1468
1400
|
|
|
1469
1401
|
declare class CubePostil extends CubeChild<IPostil.V1> {
|
|
1470
|
-
protected _status:
|
|
1402
|
+
protected _status: PostilStatus;
|
|
1471
1403
|
protected _handler_update_pos: any;
|
|
1472
1404
|
protected _handler_corrent: any;
|
|
1473
1405
|
protected _timer_corrent: any;
|
|
1474
1406
|
protected _show: boolean;
|
|
1475
1407
|
constructor(note: Note, data: IPostil.V1, pcube: INote.NoteChild);
|
|
1476
1408
|
get adapter(): AdapterCubePostil;
|
|
1477
|
-
get status():
|
|
1409
|
+
get status(): PostilStatus;
|
|
1478
1410
|
get default_size(): IMath.Rect;
|
|
1479
1411
|
get show(): boolean;
|
|
1480
1412
|
set show(v: boolean);
|
|
@@ -1484,23 +1416,30 @@ declare class CubePostil extends CubeChild<IPostil.V1> {
|
|
|
1484
1416
|
protected build_child(data: IPostil.Data): void;
|
|
1485
1417
|
export(): IPostil.V1;
|
|
1486
1418
|
gc(): void;
|
|
1487
|
-
protected on_insert_child(command:
|
|
1488
|
-
protected on_delete_child(command:
|
|
1489
|
-
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;
|
|
1490
1422
|
visible(show: boolean): void;
|
|
1491
1423
|
update_pos(fresh?: boolean): void;
|
|
1492
1424
|
update_pointer(): void;
|
|
1493
1425
|
}
|
|
1494
1426
|
|
|
1495
|
-
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> {
|
|
1496
1435
|
constructor(cube: CubeTextLink);
|
|
1497
1436
|
}
|
|
1498
1437
|
|
|
1499
1438
|
declare class CubeTextLink extends CubeChild<ITextLink.Data> {
|
|
1500
|
-
protected _status:
|
|
1439
|
+
protected _status: TextLinkStatus;
|
|
1501
1440
|
constructor(note: Note, data: ITextLink.Data, pcube: CubeChild);
|
|
1502
1441
|
get adapter(): AdapterCubeTextLink;
|
|
1503
|
-
get status():
|
|
1442
|
+
get status(): TextLinkStatus;
|
|
1504
1443
|
get info(): ITextLink.Info;
|
|
1505
1444
|
get component(): any;
|
|
1506
1445
|
get url(): string;
|
|
@@ -1508,11 +1447,15 @@ declare class CubeTextLink extends CubeChild<ITextLink.Data> {
|
|
|
1508
1447
|
protected build_child(data: ITextLink.Data): void;
|
|
1509
1448
|
gc(): void;
|
|
1510
1449
|
export(): ITextLink.Data;
|
|
1511
|
-
protected on_update_info(command:
|
|
1450
|
+
protected on_update_info(command: ICommandTextLink.Update): Recorder | void;
|
|
1512
1451
|
}
|
|
1513
1452
|
|
|
1514
|
-
declare class
|
|
1515
|
-
|
|
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>;
|
|
1516
1459
|
}
|
|
1517
1460
|
|
|
1518
1461
|
declare namespace IBox {
|
|
@@ -1542,25 +1485,25 @@ interface _CubeTodoItem {
|
|
|
1542
1485
|
data: CubeBox;
|
|
1543
1486
|
}
|
|
1544
1487
|
|
|
1545
|
-
declare namespace
|
|
1546
|
-
interface Reset extends
|
|
1488
|
+
declare namespace ICommandTodo {
|
|
1489
|
+
interface Reset extends ICommandCube.BaseCommand {
|
|
1547
1490
|
name: "todo:reset";
|
|
1548
1491
|
data: _CubeTodoItemData[];
|
|
1549
1492
|
}
|
|
1550
|
-
interface AddItem extends
|
|
1493
|
+
interface AddItem extends ICommandCube.BaseCommand {
|
|
1551
1494
|
name: "todo:add";
|
|
1552
1495
|
data: _CubeTodoItemData[];
|
|
1553
1496
|
pos: number;
|
|
1554
1497
|
}
|
|
1555
|
-
interface RemoveItem extends
|
|
1498
|
+
interface RemoveItem extends ICommandCube.BaseCommand {
|
|
1556
1499
|
name: "todo:remove";
|
|
1557
1500
|
range: [number, number];
|
|
1558
1501
|
}
|
|
1559
|
-
interface Indent extends
|
|
1502
|
+
interface Indent extends ICommandCube.BaseCommand {
|
|
1560
1503
|
name: "todo:indent";
|
|
1561
1504
|
items: ItemIndentInfo[];
|
|
1562
1505
|
}
|
|
1563
|
-
interface Status extends
|
|
1506
|
+
interface Status extends ICommandCube.BaseCommand {
|
|
1564
1507
|
name: "todo:status";
|
|
1565
1508
|
index: number;
|
|
1566
1509
|
done: boolean;
|
|
@@ -1571,7 +1514,7 @@ declare namespace ITodoCommand {
|
|
|
1571
1514
|
}
|
|
1572
1515
|
}
|
|
1573
1516
|
|
|
1574
|
-
declare class
|
|
1517
|
+
declare class TodoStatus extends CubeStatusBase<ITodo.Data> {
|
|
1575
1518
|
protected _items: _CubeTodoItem[];
|
|
1576
1519
|
constructor(cube: CubeTodo);
|
|
1577
1520
|
get items(): _CubeTodoItem[];
|
|
@@ -1584,11 +1527,11 @@ declare class StatusTodo extends StatusCube<ITodo.Data> {
|
|
|
1584
1527
|
}
|
|
1585
1528
|
|
|
1586
1529
|
declare class CubeTodo extends CubeChild<ITodo.Data> {
|
|
1587
|
-
protected _status:
|
|
1530
|
+
protected _status: TodoStatus;
|
|
1588
1531
|
protected _items: _CubeTodoItem[];
|
|
1589
1532
|
constructor(note: Note, data: ITodo.Data, pcube: CubeChild);
|
|
1590
1533
|
get adapter(): AdapterCubeTodo;
|
|
1591
|
-
get status():
|
|
1534
|
+
get status(): TodoStatus;
|
|
1592
1535
|
get items(): _CubeTodoItem[];
|
|
1593
1536
|
get component(): any;
|
|
1594
1537
|
get children(): CubeBox[];
|
|
@@ -1602,23 +1545,26 @@ declare class CubeTodo extends CubeChild<ITodo.Data> {
|
|
|
1602
1545
|
splice_items(index: number, delete_count: number, ...insert: _CubeTodoItem[]): ICubeBase.CubeSpliceResult<_CubeTodoItem, _CubeTodoItemData>;
|
|
1603
1546
|
create(data: _CubeTodoItemData[]): _CubeTodoItem[];
|
|
1604
1547
|
create_item_data(indent?: number): _CubeTodoItemData;
|
|
1605
|
-
protected on_reset(cmd:
|
|
1606
|
-
protected add_item(cmd:
|
|
1607
|
-
protected remove_item(cmd:
|
|
1608
|
-
protected indent_todoitem(cmd:
|
|
1609
|
-
update_status(cmd:
|
|
1610
|
-
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;
|
|
1611
1554
|
}
|
|
1612
1555
|
|
|
1613
|
-
declare class
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
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
|
+
};
|
|
1619
1565
|
}
|
|
1620
1566
|
|
|
1621
|
-
declare class
|
|
1567
|
+
declare class ListOrderedStatus extends CubeStatusBase<IListOrdered.Data> {
|
|
1622
1568
|
protected _items: IList.ListItem[];
|
|
1623
1569
|
constructor(cube: CubeListOrdered);
|
|
1624
1570
|
get cube(): CubeListOrdered;
|
|
@@ -1630,10 +1576,10 @@ declare class StatusListOrdered extends StatusCube<IListOrdered.Data> {
|
|
|
1630
1576
|
}
|
|
1631
1577
|
|
|
1632
1578
|
declare class CubeListOrdered extends CubeChild<IListOrdered.Data> {
|
|
1633
|
-
protected _status:
|
|
1579
|
+
protected _status: ListOrderedStatus;
|
|
1634
1580
|
protected _items: IList.ListItem[];
|
|
1635
1581
|
constructor(note: Note, data: IListOrdered.Data, pcube: CubeChild);
|
|
1636
|
-
get status():
|
|
1582
|
+
get status(): ListOrderedStatus;
|
|
1637
1583
|
get component(): any;
|
|
1638
1584
|
get children(): CubeBox[];
|
|
1639
1585
|
get items(): IList.ListItem[];
|
|
@@ -1648,31 +1594,34 @@ declare class CubeListOrdered extends CubeChild<IListOrdered.Data> {
|
|
|
1648
1594
|
splice_items(index: number, delete_count: number, ...insert: IList.ListItem[]): ICubeBase.CubeSpliceResult<IList.ListItem, IList.ListItemData>;
|
|
1649
1595
|
create(data: IList.ListItemData[]): IList.ListItem[];
|
|
1650
1596
|
create_item_data(indent?: number): IList.ListItemData;
|
|
1651
|
-
protected on_reset(cmd:
|
|
1652
|
-
protected add_item(cmd:
|
|
1653
|
-
protected remove_item(cmd:
|
|
1654
|
-
protected indent_item(cmd:
|
|
1655
|
-
on_delete_child(command:
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
declare class CommandListOrdered {
|
|
1659
|
-
static reset(id: string, data: IList.ListItemData[]): IListOrderedCommand.Reset;
|
|
1660
|
-
static add(id: string, data: IList.ListItemData[], pos: number): IListOrderedCommand.AddItem;
|
|
1661
|
-
static remove(id: string, range: [number, number]): IListOrderedCommand.RemoveItem;
|
|
1662
|
-
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;
|
|
1663
1602
|
}
|
|
1664
1603
|
|
|
1665
|
-
declare class
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
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;
|
|
1673
1622
|
}
|
|
1674
1623
|
|
|
1675
|
-
declare class
|
|
1624
|
+
declare class CodeStatus extends CubeStatusBase<ICode.Data> {
|
|
1676
1625
|
protected _code_html: vue.Ref<string, string>;
|
|
1677
1626
|
protected _bg: vue.Ref<string, string>;
|
|
1678
1627
|
protected _fg: vue.Ref<string, string>;
|
|
@@ -1700,13 +1649,13 @@ declare class StatusCode extends StatusCube<ICode.Data> {
|
|
|
1700
1649
|
}
|
|
1701
1650
|
|
|
1702
1651
|
declare class CubeCode extends CubeChild<ICode.Data> {
|
|
1703
|
-
protected _status:
|
|
1652
|
+
protected _status: CodeStatus;
|
|
1704
1653
|
protected _code_html: string;
|
|
1705
1654
|
_draglist: DragList | undefined;
|
|
1706
1655
|
constructor(note: Note, data: ICode.Data, pcube: CubeChild);
|
|
1707
1656
|
get adapter(): AdapterCubeCode;
|
|
1708
1657
|
get highlighter(): Highlighter | undefined;
|
|
1709
|
-
get status():
|
|
1658
|
+
get status(): CodeStatus;
|
|
1710
1659
|
get tabbar_height(): number;
|
|
1711
1660
|
get max_height_auto(): number;
|
|
1712
1661
|
get langs(): string[];
|
|
@@ -1732,18 +1681,26 @@ declare class CubeCode extends CubeChild<ICode.Data> {
|
|
|
1732
1681
|
update_code_html(): void;
|
|
1733
1682
|
create_tab(lang: ICode.Langs, name: string, theme?: string): ICode.TabItem;
|
|
1734
1683
|
copy_code(): Function | undefined;
|
|
1735
|
-
protected change_lang(cmd:
|
|
1736
|
-
protected change_theme(cmd:
|
|
1737
|
-
protected code_update(cmd:
|
|
1738
|
-
protected code_add(cmd:
|
|
1739
|
-
protected code_remove(cmd:
|
|
1740
|
-
protected code_rename(cmd:
|
|
1741
|
-
protected change_active(cmd:
|
|
1742
|
-
on_cursor_in_tail(command:
|
|
1743
|
-
on_cursor_in_head(command:
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
|
-
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> {
|
|
1747
1704
|
constructor(cube: CubeFormula);
|
|
1748
1705
|
protected _mathml: vue.ComputedRef<string>;
|
|
1749
1706
|
get cube(): CubeFormula;
|
|
@@ -1753,10 +1710,10 @@ declare class Statusformula extends StatusCube<IFormula.Data> {
|
|
|
1753
1710
|
}
|
|
1754
1711
|
|
|
1755
1712
|
declare class CubeFormula extends CubeChild<IFormula.Data> {
|
|
1756
|
-
protected _status:
|
|
1713
|
+
protected _status: FormulaStatus;
|
|
1757
1714
|
constructor(note: Note, data: IFormula.Data, pcube: CubeChild);
|
|
1758
1715
|
get adapter(): AdapterCubeFormula;
|
|
1759
|
-
get status():
|
|
1716
|
+
get status(): FormulaStatus;
|
|
1760
1717
|
get component(): any;
|
|
1761
1718
|
get attrs(): IFormula.Attrs;
|
|
1762
1719
|
get meta(): INote.CubeMeta<INote.Cubes>;
|
|
@@ -1764,14 +1721,18 @@ declare class CubeFormula extends CubeChild<IFormula.Data> {
|
|
|
1764
1721
|
protected build_child(data: IFormula.Data): void;
|
|
1765
1722
|
export(): IFormula.Data;
|
|
1766
1723
|
gc(): void;
|
|
1767
|
-
protected update(cmd:
|
|
1724
|
+
protected update(cmd: ICommandFormula.Update): Recorder;
|
|
1768
1725
|
}
|
|
1769
1726
|
|
|
1770
|
-
declare class
|
|
1771
|
-
|
|
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>;
|
|
1772
1733
|
}
|
|
1773
1734
|
|
|
1774
|
-
declare class
|
|
1735
|
+
declare class TableStatus extends CubeStatusBase<ITable.Data> {
|
|
1775
1736
|
protected _cells: ITable.Cell[];
|
|
1776
1737
|
protected _title: ShallowRef<CubeBox | undefined>;
|
|
1777
1738
|
constructor(cube: CubeTable);
|
|
@@ -1788,12 +1749,12 @@ declare class StatusTable extends StatusCube<ITable.Data> {
|
|
|
1788
1749
|
}
|
|
1789
1750
|
|
|
1790
1751
|
declare class CubeTable extends CubeChild<ITable.Data> {
|
|
1791
|
-
protected _status:
|
|
1752
|
+
protected _status: TableStatus;
|
|
1792
1753
|
protected _cells: ITable.Cell[];
|
|
1793
1754
|
protected _title: CubeBox | undefined;
|
|
1794
1755
|
constructor(note: Note, data: ITable.Data, pcube: CubeChild);
|
|
1795
1756
|
get adapter(): AdapterCubeTable;
|
|
1796
|
-
get status():
|
|
1757
|
+
get status(): TableStatus;
|
|
1797
1758
|
get title(): CubeBox | undefined;
|
|
1798
1759
|
set title(v: CubeBox | undefined);
|
|
1799
1760
|
get component(): any;
|
|
@@ -1831,54 +1792,43 @@ declare class CubeTable extends CubeChild<ITable.Data> {
|
|
|
1831
1792
|
get_selection_size(): [number, number] | undefined;
|
|
1832
1793
|
get_selection_text(): string;
|
|
1833
1794
|
copy_selection_table(): ITable.Data | undefined;
|
|
1834
|
-
add_title(cmd:
|
|
1835
|
-
remove_title(cmd:
|
|
1836
|
-
add_cell(cmd:
|
|
1837
|
-
remove_cell(cmd:
|
|
1838
|
-
add_row(cmd:
|
|
1839
|
-
remove_row(cmd:
|
|
1840
|
-
add_col(cmd:
|
|
1841
|
-
remove_col(cmd:
|
|
1842
|
-
moveto(cmd:
|
|
1843
|
-
protected update_area(cmd:
|
|
1844
|
-
merge_cell(cmd:
|
|
1845
|
-
add_grid_col(cmd:
|
|
1846
|
-
remove_grid_col(cmd:
|
|
1847
|
-
add_grid_row(cmd:
|
|
1848
|
-
remove_grid_row(cmd:
|
|
1849
|
-
col_resize(cmd:
|
|
1850
|
-
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>;
|
|
1851
1820
|
}
|
|
1852
1821
|
|
|
1853
|
-
declare class
|
|
1854
|
-
static add_title(id: ICubeBase.CubeId, data: IBox.Data): ITableCommand.AddTitle;
|
|
1855
|
-
static remove_title(id: ICubeBase.CubeId): ITableCommand.RemoveTitle;
|
|
1856
|
-
static add_cell(id: ICubeBase.CubeId, data: ITable.CellData): ITableCommand.AddCell;
|
|
1857
|
-
static remove_cell(id: ICubeBase.CubeId, cid: ICubeBase.CubeId): ITableCommand.RemoveCell;
|
|
1858
|
-
static add_row(id: ICubeBase.CubeId, index: number, rows: IBox.Data[]): ITableCommand.AddRow;
|
|
1859
|
-
static remove_row(id: ICubeBase.CubeId, index: number): ITableCommand.RemoveRow;
|
|
1860
|
-
static add_col(id: ICubeBase.CubeId, index: number, cols: IBox.Data[]): ITableCommand.AddCol;
|
|
1861
|
-
static remove_col(id: ICubeBase.CubeId, index: number): ITableCommand.RemoveCol;
|
|
1862
|
-
static moveto(id: ICubeBase.CubeId, tid: ICubeBase.CubeId, cells: ICubeBase.CubeId[]): ITableCommand.CellMoveTo;
|
|
1863
|
-
static merge(id: ICubeBase.CubeId, area: ITable.CellArea): ITableCommand.Merge;
|
|
1864
|
-
static update_cell_area(id: ICubeBase.CubeId, tid: ICubeBase.CubeId, area: ITable.CellRect): ITableCommand.CellUpdateArea;
|
|
1865
|
-
static add_grid_col(id: ICubeBase.CubeId, index: number, width: number): ITableCommand.AddGridCol;
|
|
1866
|
-
static remove_grid_col(id: ICubeBase.CubeId, index: number): ITableCommand.RemoveGridCol;
|
|
1867
|
-
static add_grid_row(id: ICubeBase.CubeId, index: number): ITableCommand.AddGridRow;
|
|
1868
|
-
static remove_grid_row(id: ICubeBase.CubeId, index: number): ITableCommand.RemoveGridRow;
|
|
1869
|
-
static col_resize(id: ICubeBase.CubeId, cols: [number, number], step: number): ITableCommand.ColResize;
|
|
1870
|
-
}
|
|
1871
|
-
|
|
1872
|
-
declare class StatusTip extends StatusCube<ITip.Data> {
|
|
1822
|
+
declare class TipStatus extends CubeStatusBase<ITip.Data> {
|
|
1873
1823
|
constructor(cube: CubeTip);
|
|
1874
1824
|
}
|
|
1875
1825
|
|
|
1876
1826
|
declare class CubeTip extends CubeChild<ITip.Data> {
|
|
1877
|
-
protected _status:
|
|
1827
|
+
protected _status: TipStatus;
|
|
1878
1828
|
protected _box: CubeBox;
|
|
1879
1829
|
constructor(note: Note, data: ITip.Data, pcube: CubeChild);
|
|
1880
1830
|
get adapter(): AdapterCubeTip;
|
|
1881
|
-
get status():
|
|
1831
|
+
get status(): TipStatus;
|
|
1882
1832
|
get component(): any;
|
|
1883
1833
|
get box(): CubeBox;
|
|
1884
1834
|
set box(value: CubeBox);
|
|
@@ -1886,11 +1836,18 @@ declare class CubeTip extends CubeChild<ITip.Data> {
|
|
|
1886
1836
|
protected build_child(data: ITip.Data): void;
|
|
1887
1837
|
export(): ITip.Data;
|
|
1888
1838
|
gc(): void;
|
|
1889
|
-
on_insert_child(command:
|
|
1890
|
-
on_delete_child(command:
|
|
1839
|
+
on_insert_child(command: ICommandCube.InsertChild): Recorder | void;
|
|
1840
|
+
on_delete_child(command: ICommandCube.DeleteChild): Recorder | void;
|
|
1891
1841
|
}
|
|
1892
1842
|
|
|
1893
|
-
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 {
|
|
1894
1851
|
protected _nodes_count: vue.Ref<number, number>;
|
|
1895
1852
|
protected _view_rect: IMath.Rect;
|
|
1896
1853
|
protected _nodes_view: ShallowReactive<Set<MapNodeBase>>;
|
|
@@ -1979,7 +1936,7 @@ declare class StatusSubmap extends StatusCube<ISubMap.Data> implements IMapBase.
|
|
|
1979
1936
|
}
|
|
1980
1937
|
|
|
1981
1938
|
declare class CubeSubMap extends CubeChild<ISubMap.Data> implements IMapBase.Api {
|
|
1982
|
-
protected _status:
|
|
1939
|
+
protected _status: SubmapStatus;
|
|
1983
1940
|
protected _map_interaction: MapInteraction;
|
|
1984
1941
|
protected _grider: MapGrider;
|
|
1985
1942
|
protected _has_layout: boolean;
|
|
@@ -1998,7 +1955,7 @@ declare class CubeSubMap extends CubeChild<ISubMap.Data> implements IMapBase.Api
|
|
|
1998
1955
|
protected _view_rect: Reactive<IMath.Rect>;
|
|
1999
1956
|
constructor(note: Note, data: ISubMap.Data, pcube: CubeChild);
|
|
2000
1957
|
get adapter(): AdapterCubeSubmap;
|
|
2001
|
-
get status():
|
|
1958
|
+
get status(): SubmapStatus;
|
|
2002
1959
|
get grider(): MapGrider;
|
|
2003
1960
|
get nodes(): Map<string, MapNodeBase<any>>;
|
|
2004
1961
|
get linkers(): Map<string, CubeLinker>;
|
|
@@ -2044,15 +2001,15 @@ declare class CubeSubMap extends CubeChild<ISubMap.Data> implements IMapBase.Api
|
|
|
2044
2001
|
init_grider(): void;
|
|
2045
2002
|
export(): ISubMap.Data;
|
|
2046
2003
|
remove_node(node: MapNodeBase): void;
|
|
2047
|
-
remove_linker(linker: CubeLinker):
|
|
2004
|
+
remove_linker(linker: CubeLinker): ICommandMap.LinkerInfo | undefined;
|
|
2048
2005
|
protected is_noop_sibling_move(siblings: string[], node_id: string, target_id: string, type: "prev" | "next"): boolean;
|
|
2049
2006
|
protected reorder_siblings(siblings: string[], node_id: string, target_id: string, type: "prev" | "next"): boolean;
|
|
2050
|
-
protected on_sibling_reorder(cmd:
|
|
2051
|
-
protected on_node_add(cmd:
|
|
2052
|
-
protected on_node_remove(cmd:
|
|
2053
|
-
protected on_linker_add(cmd:
|
|
2054
|
-
protected on_linker_remove(cmd:
|
|
2055
|
-
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;
|
|
2056
2013
|
pick(...elements: MapChild[]): void;
|
|
2057
2014
|
get_nodes_all(): {
|
|
2058
2015
|
clear(): void;
|
|
@@ -2136,7 +2093,14 @@ declare class CubeSubMap extends CubeChild<ISubMap.Data> implements IMapBase.Api
|
|
|
2136
2093
|
};
|
|
2137
2094
|
}
|
|
2138
2095
|
|
|
2139
|
-
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> {
|
|
2140
2104
|
constructor(cube: CubeBoxColumns);
|
|
2141
2105
|
get css(): {
|
|
2142
2106
|
width: string;
|
|
@@ -2144,39 +2108,44 @@ declare class StatusBoxColumns extends StatusCube<ICubeBoxColumns.Data> {
|
|
|
2144
2108
|
}
|
|
2145
2109
|
|
|
2146
2110
|
declare class CubeBoxColumns extends CubeChild<ICubeBoxColumns.Data> {
|
|
2147
|
-
protected _status:
|
|
2111
|
+
protected _status: BoxColumnsStatus;
|
|
2148
2112
|
constructor(note: Note, data: ICubeBoxColumns.Data, pcube: CubeChild);
|
|
2149
2113
|
get adapter(): AdapterCubeBoxColumns;
|
|
2150
|
-
get status():
|
|
2114
|
+
get status(): BoxColumnsStatus;
|
|
2151
2115
|
get component(): any;
|
|
2152
2116
|
get attrs(): ICubeBoxColumns.Attrs;
|
|
2153
2117
|
get min_width(): number;
|
|
2154
2118
|
protected build_child(data: ICubeBoxColumns.Data): void;
|
|
2155
2119
|
export(): ICubeBoxColumns.Data;
|
|
2156
2120
|
gc(): void;
|
|
2157
|
-
protected on_insert_child(cmd:
|
|
2158
|
-
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>;
|
|
2159
2132
|
}
|
|
2160
2133
|
|
|
2161
|
-
declare class
|
|
2134
|
+
declare class RtStatus extends CubeStatusBase<IRt.Data> {
|
|
2162
2135
|
constructor(cube: CubeRt);
|
|
2163
2136
|
}
|
|
2164
2137
|
|
|
2165
2138
|
declare class CubeRt extends CubeChild<IRt.Data> {
|
|
2166
|
-
protected _status:
|
|
2139
|
+
protected _status: RtStatus;
|
|
2167
2140
|
constructor(note: Note, data: IRt.Data, pcube: CubeChild);
|
|
2168
2141
|
get adapter(): AdapterCubeRt;
|
|
2169
|
-
get status():
|
|
2142
|
+
get status(): RtStatus;
|
|
2170
2143
|
get info(): IRt.Info;
|
|
2171
2144
|
get component(): any;
|
|
2172
2145
|
protected build_child(data: IRt.Data): void;
|
|
2173
2146
|
export(): IRt.Data;
|
|
2174
2147
|
gc(): void;
|
|
2175
|
-
protected reset(cmd:
|
|
2176
|
-
}
|
|
2177
|
-
|
|
2178
|
-
declare class CommandRt {
|
|
2179
|
-
static reset(id: ICubeBase.CubeId, explanation: string): IRtCommand.Reset;
|
|
2148
|
+
protected reset(cmd: ICommandRt.Reset): Recorder;
|
|
2180
2149
|
}
|
|
2181
2150
|
|
|
2182
2151
|
declare class NoteScope extends NoteBase {
|
|
@@ -2215,7 +2184,7 @@ declare class NoteScope extends NoteBase {
|
|
|
2215
2184
|
declare class NoteScopes extends NoteBase {
|
|
2216
2185
|
protected _scopes: Set<NoteScope>;
|
|
2217
2186
|
constructor(note: Note);
|
|
2218
|
-
get status():
|
|
2187
|
+
get status(): CubeStatusBaseRoot<any>;
|
|
2219
2188
|
get count(): number;
|
|
2220
2189
|
get first(): NoteScope | undefined;
|
|
2221
2190
|
get last(): NoteScope | undefined;
|
|
@@ -2235,7 +2204,7 @@ declare class NoteScopes extends NoteBase {
|
|
|
2235
2204
|
get_scope_cubes_data(): ICubeBase.Data[];
|
|
2236
2205
|
}
|
|
2237
2206
|
|
|
2238
|
-
declare class
|
|
2207
|
+
declare class CubeStatusBaseRoot<T extends ICubeRootBase.Data> extends CubeStatusBase<T> {
|
|
2239
2208
|
protected _scopes: ShallowReactive<Set<NoteScope>>;
|
|
2240
2209
|
protected _postils: Map<string, any>;
|
|
2241
2210
|
constructor(cube: CubeRoot);
|
|
@@ -2260,7 +2229,7 @@ declare abstract class CubeRoot<T extends ICubeRootBase.Data = any> extends Cube
|
|
|
2260
2229
|
protected _dom: HTMLElement | undefined;
|
|
2261
2230
|
protected _children: INote.NoteChild[];
|
|
2262
2231
|
abstract get component(): any;
|
|
2263
|
-
abstract get status():
|
|
2232
|
+
abstract get status(): CubeStatusBaseRoot<T>;
|
|
2264
2233
|
abstract render(dom: HTMLElement): any;
|
|
2265
2234
|
abstract build_child(data: T): any;
|
|
2266
2235
|
abstract export(): T;
|
|
@@ -2310,23 +2279,22 @@ declare abstract class CubeRoot<T extends ICubeRootBase.Data = any> extends Cube
|
|
|
2310
2279
|
filter(func: ICubeBase.CubeFilterFunc): INote.NoteChild[];
|
|
2311
2280
|
each(func: ICubeBase.CubeEachFunc): void;
|
|
2312
2281
|
find_upstream_untill(): undefined;
|
|
2313
|
-
delete_edge(child: CubeText, dir:
|
|
2282
|
+
delete_edge(child: CubeText, dir: ICommandCube.DeleteDir): Recorder | undefined;
|
|
2314
2283
|
splice<T = any, K = any>(index: number, delete_count: number, ...insert: INote.NoteChild[]): ICubeBase.CubeSpliceResult<T, K>;
|
|
2315
2284
|
get_sdk_version(): INote.SDKMeta;
|
|
2316
|
-
protected on_reset(command:
|
|
2317
|
-
protected on_cube_reorder(command:
|
|
2318
|
-
protected on_insert_cube(command:
|
|
2319
|
-
protected on_delete_cube(command:
|
|
2320
|
-
protected on_cube_set_selection_css(command:
|
|
2321
|
-
protected on_cube_insert(command:
|
|
2322
|
-
protected on_cube_delete(command:
|
|
2323
|
-
protected on_cube_set_attr(command:
|
|
2324
|
-
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;
|
|
2325
2294
|
is_valid_range(range: [number, number], check_collapse?: boolean): boolean;
|
|
2326
2295
|
get_valid_range(range: [number, number]): [number, number];
|
|
2327
2296
|
}
|
|
2328
2297
|
|
|
2329
|
-
declare const AdapterAnnotation: AdapterCubeAnnotation;
|
|
2330
2298
|
declare const AdapterApi: AdapterCubeApi;
|
|
2331
2299
|
declare const AdapterBoxColumns: AdapterCubeBoxColumns;
|
|
2332
2300
|
declare const AdapterBoxFolder: AdapterCubeBoxFolder;
|
|
@@ -2356,13 +2324,13 @@ declare class AdapterCubesGlobal {
|
|
|
2356
2324
|
get versions(): INote.CubesVersion;
|
|
2357
2325
|
get metas(): Map<string, INote.CubeMeta>;
|
|
2358
2326
|
find_cube(type: INote.Cubes): any;
|
|
2359
|
-
find_adapter(type: INote.Cubes):
|
|
2327
|
+
find_adapter(type: INote.Cubes): CubeAdapterBase | undefined;
|
|
2360
2328
|
get_cmd_handler(cubetype: INote.Cubes, cmd: string): ICubeHandler.Handler | undefined;
|
|
2361
2329
|
set_cmd_handler(cubetype: INote.Cubes, cmd: string, func: ICubeHandler.Handler): void;
|
|
2362
2330
|
init_cmd_handler(cube: CubeBase): void;
|
|
2363
|
-
register_adapter(type: INote.Cubes, adapter:
|
|
2364
|
-
register_cube(type: INote.Cubes, cls: typeof CubeChild | typeof MapChild | typeof CubeRoot): typeof
|
|
2365
|
-
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;
|
|
2366
2334
|
replace_id(versions: INote.CubesVersion, data: ICubeBase.Data[], map?: Record<string, string>): ICubeBase.ReplaceIdResult<ICubeBase.Data[]>;
|
|
2367
2335
|
update_data(versions: INote.CubesVersion, data: ICubeBase.Data): ICubeBase.CubeUpdateResult;
|
|
2368
2336
|
update_bulk(versions: INote.CubesVersion, data: ICubeBase.Data[]): any[];
|
|
@@ -2373,7 +2341,7 @@ declare class AdapterCubesGlobal {
|
|
|
2373
2341
|
}
|
|
2374
2342
|
declare const AdapterCubes: AdapterCubesGlobal;
|
|
2375
2343
|
|
|
2376
|
-
declare function cmd(cmd:
|
|
2344
|
+
declare function cmd(cmd: ICommandCube.Names): (cls: any, name: string) => void;
|
|
2377
2345
|
declare function cube(name: INote.Cubes): (cls: any) => void;
|
|
2378
2346
|
|
|
2379
2347
|
declare class DialogBase extends NoteBase {
|
|
@@ -3195,6 +3163,8 @@ declare class UiSidebar extends UiBase {
|
|
|
3195
3163
|
get folded(): boolean;
|
|
3196
3164
|
set_visible(visible: boolean): void;
|
|
3197
3165
|
set(active: IUi.Core | "", folded: boolean): void;
|
|
3166
|
+
open(type: IUiSidebar.Type): void;
|
|
3167
|
+
close(): void;
|
|
3198
3168
|
toggle(type: IUiSidebar.Type): void;
|
|
3199
3169
|
export(): {};
|
|
3200
3170
|
}
|
|
@@ -3248,8 +3218,24 @@ declare class UITheme extends UiBase {
|
|
|
3248
3218
|
protected _style: HTMLStyleElement;
|
|
3249
3219
|
protected _builtin_theme: Record<string, IUiTheme.ThemeItem<IUiTheme.Names>>;
|
|
3250
3220
|
protected _backgrounds: Record<string, IUiTheme.BackgroundItem>;
|
|
3221
|
+
protected _background_virtual_config: IUiTheme.BackgroundVirtualConfig;
|
|
3222
|
+
protected _background_virtual: IUiTheme.BackgroundVirtualState;
|
|
3251
3223
|
constructor(note: Note);
|
|
3252
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
|
+
};
|
|
3253
3239
|
get builtin_theme(): Record<string, IUiTheme.ThemeItem<IUiTheme.Names>>;
|
|
3254
3240
|
get themes(): Record<string, IUiTheme.ThemeItem<IUiTheme.Names>>;
|
|
3255
3241
|
get adapter(): {
|
|
@@ -3279,6 +3265,8 @@ declare class UITheme extends UiBase {
|
|
|
3279
3265
|
filter: string;
|
|
3280
3266
|
};
|
|
3281
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;
|
|
3282
3270
|
get_filter(id?: string, create?: boolean): IUiTheme.BackgroundFilter | undefined;
|
|
3283
3271
|
get_filter_string(id?: string, create?: boolean): string;
|
|
3284
3272
|
get_theme(id: string): IUiTheme.ThemeItem | undefined;
|
|
@@ -3325,7 +3313,7 @@ declare class UiTips extends UiBase {
|
|
|
3325
3313
|
}
|
|
3326
3314
|
|
|
3327
3315
|
declare abstract class ToolBase extends NoteBase {
|
|
3328
|
-
abstract get name(): IUiToolbar.Name
|
|
3316
|
+
abstract get name(): IUiToolbar.Name;
|
|
3329
3317
|
abstract tools: IUiToolbar.Tool[];
|
|
3330
3318
|
abstract get_subtools(): Promise<IUiToolbar.ToolItem[]>;
|
|
3331
3319
|
constructor(note: Note);
|
|
@@ -3445,90 +3433,14 @@ declare class NoteCubes extends NoteBase {
|
|
|
3445
3433
|
static get meta(): INote.CoreMeta;
|
|
3446
3434
|
}
|
|
3447
3435
|
|
|
3448
|
-
declare const keymap: Map<INoteHotkeys.HotKeys, INoteHotkeys.HotKeyHandler>;
|
|
3449
|
-
declare function key(keyfunc: INoteHotkeys.HotKeys): (instance: NoteHotkeys, attr: keyof NoteHotkeys) => void;
|
|
3450
|
-
declare class NoteHotkeys extends NoteBase {
|
|
3451
|
-
handlers: Map<string, INoteHotkeys.HotKeyHandler>;
|
|
3452
|
-
data: Reactive<INoteHotkeys.NoteHotkeys>;
|
|
3453
|
-
constructor(note: Note);
|
|
3454
|
-
get meta(): INote.CoreMeta<INote.Cores>;
|
|
3455
|
-
listen(dom: HTMLElement): void;
|
|
3456
|
-
protected listen_cursor_hotkey(dom: HTMLElement): void;
|
|
3457
|
-
protected listen_uncursor_hotkey(dom: HTMLElement): void;
|
|
3458
|
-
protected listen_cvx(dom: HTMLElement): void;
|
|
3459
|
-
register(func: INoteHotkeys.HotKeyHandler, info: INoteHotkeys.HotKeyInfo): void;
|
|
3460
|
-
reset(data: Record<string, INoteHotkeys.HotKeyInfo>): void;
|
|
3461
|
-
reset_handler(hotkey_name: string, func: INoteHotkeys.HotKeyHandler): void;
|
|
3462
|
-
export(): INoteHotkeys.NoteHotkeys;
|
|
3463
|
-
update_data(...args: any[]): object;
|
|
3464
|
-
validate(e: KeyboardEvent, info: INoteHotkeys.HotKeyInfo): boolean;
|
|
3465
|
-
which(e: KeyboardEvent): INoteHotkeys.HotKeyInfo | undefined;
|
|
3466
|
-
validate_hotkeys(e: KeyboardEvent, cursor?: "all" | "cursor" | "uncursor"): boolean;
|
|
3467
|
-
get_hotkey_str(name: string): string;
|
|
3468
|
-
clear_scope(e: KeyboardEvent): void;
|
|
3469
|
-
clear_css(e: KeyboardEvent): void;
|
|
3470
|
-
bold(e: KeyboardEvent): void;
|
|
3471
|
-
unindent_line(e: KeyboardEvent): void;
|
|
3472
|
-
indent_line(e: KeyboardEvent): void;
|
|
3473
|
-
undo(e: KeyboardEvent): void;
|
|
3474
|
-
redo(e: KeyboardEvent): void;
|
|
3475
|
-
cursor_navigation(e: KeyboardEvent): Promise<void>;
|
|
3476
|
-
cursor_extend_navigation(e: KeyboardEvent): void;
|
|
3477
|
-
text_break(e: KeyboardEvent): void;
|
|
3478
|
-
break(e: KeyboardEvent): Promise<void>;
|
|
3479
|
-
break_root(e: KeyboardEvent): Promise<void>;
|
|
3480
|
-
text_partition(e: KeyboardEvent): Function | undefined;
|
|
3481
|
-
add_scope(e: KeyboardEvent): void;
|
|
3482
|
-
underline(e: KeyboardEvent): void;
|
|
3483
|
-
copy_format(e: KeyboardEvent): void;
|
|
3484
|
-
apply_format(e: KeyboardEvent): void;
|
|
3485
|
-
italic(e: KeyboardEvent): void;
|
|
3486
|
-
align_left(e: KeyboardEvent): void;
|
|
3487
|
-
align_center(e: KeyboardEvent): void;
|
|
3488
|
-
align_right(e: KeyboardEvent): void;
|
|
3489
|
-
next_root(e: KeyboardEvent): void;
|
|
3490
|
-
prev_root(e: KeyboardEvent): void;
|
|
3491
|
-
add_annotation(e: KeyboardEvent): Function | Recorder | undefined;
|
|
3492
|
-
fold_block(e: KeyboardEvent): void;
|
|
3493
|
-
add_bookmark(e: KeyboardEvent): void;
|
|
3494
|
-
fontsize_up(e: KeyboardEvent): void;
|
|
3495
|
-
fontsize_down(e: KeyboardEvent): void;
|
|
3496
|
-
link(e: KeyboardEvent): void;
|
|
3497
|
-
search_doc(e: KeyboardEvent): void;
|
|
3498
|
-
show_formula_editor(e: KeyboardEvent): void;
|
|
3499
|
-
show_cubelist(e: KeyboardEvent): void;
|
|
3500
|
-
text_rt(e: KeyboardEvent): void;
|
|
3501
|
-
static get meta(): INote.CoreMeta;
|
|
3502
|
-
static get default_hotkeys(): INoteHotkeys.NoteHotkeys;
|
|
3503
|
-
}
|
|
3504
|
-
|
|
3505
|
-
declare abstract class HotkeyBase {
|
|
3506
|
-
protected _note: Note;
|
|
3507
|
-
protected _config: INoteHotkeys.Config;
|
|
3508
|
-
constructor(note: Note, config: INoteHotkeys.Config);
|
|
3509
|
-
get id(): string;
|
|
3510
|
-
get note(): Note;
|
|
3511
|
-
get config(): {
|
|
3512
|
-
id: string;
|
|
3513
|
-
name: string;
|
|
3514
|
-
shortcut: string;
|
|
3515
|
-
scope: INoteHotkeys.Scope;
|
|
3516
|
-
capture?: boolean;
|
|
3517
|
-
keyup?: boolean;
|
|
3518
|
-
};
|
|
3519
|
-
get shortcut(): string;
|
|
3520
|
-
get scope(): INoteHotkeys.Scope;
|
|
3521
|
-
abstract get default_config(): INoteHotkeys.Config;
|
|
3522
|
-
abstract register(): void;
|
|
3523
|
-
abstract export(): INoteHotkeys.Config;
|
|
3524
|
-
}
|
|
3525
|
-
|
|
3526
3436
|
declare class NoteCursor extends NoteBase {
|
|
3527
3437
|
protected _selection: Selection;
|
|
3438
|
+
protected _cursor_text: string;
|
|
3528
3439
|
cursor_step: number;
|
|
3529
3440
|
scroll_distance: number;
|
|
3530
3441
|
safa_distance: number;
|
|
3531
3442
|
constructor(note: Note);
|
|
3443
|
+
get cursor_text(): string;
|
|
3532
3444
|
get selection(): Selection;
|
|
3533
3445
|
get meta(): INote.CoreMeta<INote.Cores>;
|
|
3534
3446
|
get has_selection(): boolean;
|
|
@@ -3551,6 +3463,7 @@ declare class NoteCursor extends NoteBase {
|
|
|
3551
3463
|
get cube_end(): CubeText | undefined;
|
|
3552
3464
|
get cube_focus(): CubeChild | undefined;
|
|
3553
3465
|
get cube_anchor(): CubeChild | undefined;
|
|
3466
|
+
check_cursor(): boolean;
|
|
3554
3467
|
get_cursor_info(): INoteCursor.CursorInfo;
|
|
3555
3468
|
protected locate_next_line(dir: "up" | "down", line: CubeLine, pos: INoteCursor.EdgeRect): void;
|
|
3556
3469
|
protected locate_current_line(dir: "up" | "down", line: CubeLine, pos: INoteCursor.EdgeRect): boolean;
|
|
@@ -3590,13 +3503,13 @@ declare class NoteCursor extends NoteBase {
|
|
|
3590
3503
|
}
|
|
3591
3504
|
|
|
3592
3505
|
declare class NoteCourier extends NoteBase {
|
|
3593
|
-
protected command_group_do:
|
|
3594
|
-
protected command_group_undo:
|
|
3506
|
+
protected command_group_do: ICommandCube.BaseCommand[];
|
|
3507
|
+
protected command_group_undo: ICommandCube.BaseCommand[];
|
|
3595
3508
|
constructor(note: Note);
|
|
3596
3509
|
get meta(): INote.CoreMeta<INote.Cores>;
|
|
3597
|
-
protected execute_command_group(cmds:
|
|
3510
|
+
protected execute_command_group(cmds: ICommandCube.BaseCommand[]): void;
|
|
3598
3511
|
get_recorder(): Recorder;
|
|
3599
|
-
pass(command:
|
|
3512
|
+
pass(command: ICommandCube.BaseCommand): Recorder | void;
|
|
3600
3513
|
load(): void;
|
|
3601
3514
|
export(): {};
|
|
3602
3515
|
update_data(...args: any[]): object;
|
|
@@ -3640,14 +3553,14 @@ declare class NotePainter extends NoteBase {
|
|
|
3640
3553
|
get meta(): INote.CoreMeta<INote.Cores>;
|
|
3641
3554
|
get format_brush(): {};
|
|
3642
3555
|
constructor(note: Note);
|
|
3643
|
-
paint(style: Record<string, string | null>, method?:
|
|
3556
|
+
paint(style: Record<string, string | null>, method?: ICommandCube.CssMethod): void;
|
|
3644
3557
|
clear(): void;
|
|
3645
3558
|
text_align(dir: "left" | "center" | "right"): Recorder;
|
|
3646
3559
|
indent(): void;
|
|
3647
3560
|
unindent(): void;
|
|
3648
3561
|
copy_format(): void;
|
|
3649
3562
|
apply_format_brush(): void;
|
|
3650
|
-
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;
|
|
3651
3564
|
remove_bulk_css(css: string[], cubes: INote.NoteCube[]): void;
|
|
3652
3565
|
static get meta(): INote.CoreMeta;
|
|
3653
3566
|
}
|
|
@@ -3670,9 +3583,9 @@ declare class NoteEvent extends NoteBase {
|
|
|
3670
3583
|
on_replace_id(func: INoteEvent.ListenerReplaceId): Function;
|
|
3671
3584
|
emit_replace_id(map: Record<string, string>): Promise<any[]>;
|
|
3672
3585
|
on_edit_before(func: INoteEvent.ListenerEdit): Function;
|
|
3673
|
-
emit_edit_before(cube: INote.NoteCube, cmd:
|
|
3586
|
+
emit_edit_before(cube: INote.NoteCube, cmd: ICommandCube.BaseCommand): Promise<any[]>;
|
|
3674
3587
|
on_edit_after(func: INoteEvent.ListenerEdit): Function;
|
|
3675
|
-
emit_edit_after(cube: INote.NoteCube, cmd:
|
|
3588
|
+
emit_edit_after(cube: INote.NoteCube, cmd: ICommandCube.BaseCommand): Promise<any[]>;
|
|
3676
3589
|
on_text_merge(func: INoteEvent.ListenerTextMerge): Function;
|
|
3677
3590
|
emit_text_merge(from: string, to: string): Promise<any[]>;
|
|
3678
3591
|
on_esc(func: INoteEvent.ListenerEsc): Function;
|
|
@@ -3827,9 +3740,9 @@ declare class NoteAction extends NoteBase {
|
|
|
3827
3740
|
constructor(note: Note);
|
|
3828
3741
|
ins(text: string): Recorder;
|
|
3829
3742
|
insert(cubes: ICubeBase.Data[]): Recorder;
|
|
3830
|
-
delete(dir:
|
|
3831
|
-
set_css(cube: INote.NoteCube, css: INote.Css, method?:
|
|
3832
|
-
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;
|
|
3833
3746
|
}
|
|
3834
3747
|
|
|
3835
3748
|
declare class Note {
|
|
@@ -3841,7 +3754,6 @@ declare class Note {
|
|
|
3841
3754
|
protected _isdev: boolean;
|
|
3842
3755
|
protected _uidata: IUi.Data;
|
|
3843
3756
|
protected _cubes: NoteCubes;
|
|
3844
|
-
protected _hotkeys: NoteHotkeys;
|
|
3845
3757
|
protected _history: NoteHistory;
|
|
3846
3758
|
protected _cursor: NoteCursor;
|
|
3847
3759
|
protected _courier: NoteCourier;
|
|
@@ -3864,7 +3776,6 @@ declare class Note {
|
|
|
3864
3776
|
get convertor(): typeof NoteConvertor;
|
|
3865
3777
|
get cubes(): NoteCubes;
|
|
3866
3778
|
get api(): typeof NoteApi;
|
|
3867
|
-
get hotkeys(): NoteHotkeys;
|
|
3868
3779
|
get history(): NoteHistory;
|
|
3869
3780
|
get cursor(): NoteCursor;
|
|
3870
3781
|
get courier(): NoteCourier;
|
|
@@ -3880,13 +3791,13 @@ declare class Note {
|
|
|
3880
3791
|
get versions(): INote.CubesVersion;
|
|
3881
3792
|
get metas(): Map<string, INote.CubeMeta>;
|
|
3882
3793
|
find_cube(type: INote.Cubes): any;
|
|
3883
|
-
find_adapter(type: INote.Cubes):
|
|
3794
|
+
find_adapter(type: INote.Cubes): CubeAdapterBase | undefined;
|
|
3884
3795
|
get_cmd_handler(cubetype: INote.Cubes, cmd: string): ICubeHandler.Handler | undefined;
|
|
3885
3796
|
set_cmd_handler(cubetype: INote.Cubes, cmd: string, func: ICubeHandler.Handler): void;
|
|
3886
3797
|
init_cmd_handler(cube: CubeBase): void;
|
|
3887
|
-
register_adapter(type: INote.Cubes, adapter:
|
|
3888
|
-
register_cube(type: INote.Cubes, cls: typeof CubeChild | typeof MapChild | typeof CubeRoot): typeof
|
|
3889
|
-
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;
|
|
3890
3801
|
replace_id(versions: INote.CubesVersion, data: ICubeBase.Data[], map?: Record<string, string>): ICubeBase.ReplaceIdResult<ICubeBase.Data[]>;
|
|
3891
3802
|
update_data(versions: INote.CubesVersion, data: ICubeBase.Data): ICubeBase.CubeUpdateResult;
|
|
3892
3803
|
update_bulk(versions: INote.CubesVersion, data: ICubeBase.Data[]): any[];
|
|
@@ -3900,7 +3811,7 @@ declare class Note {
|
|
|
3900
3811
|
render_pdf(dom: HTMLElement): void;
|
|
3901
3812
|
emit_event_after_render(): void;
|
|
3902
3813
|
find_cube(type: INote.Cubes): any;
|
|
3903
|
-
find_adapter(type: INote.Cubes):
|
|
3814
|
+
find_adapter(type: INote.Cubes): CubeAdapterBase | undefined;
|
|
3904
3815
|
get_sdk_meta(): _SDKMeta;
|
|
3905
3816
|
export(): INote.Data;
|
|
3906
3817
|
set_dev(isdev: boolean): void;
|
|
@@ -3911,22 +3822,22 @@ declare class Note {
|
|
|
3911
3822
|
}
|
|
3912
3823
|
|
|
3913
3824
|
declare class Recorder extends NoteBase {
|
|
3914
|
-
protected do:
|
|
3915
|
-
protected undo:
|
|
3916
|
-
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[]>>;
|
|
3917
3828
|
constructor(note: Note);
|
|
3918
3829
|
get len_do(): number;
|
|
3919
3830
|
get len_undo(): number;
|
|
3920
|
-
get stack_do():
|
|
3921
|
-
get stack_undo():
|
|
3922
|
-
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;
|
|
3923
3834
|
bubble(): void;
|
|
3924
|
-
add_cmd(cmd:
|
|
3925
|
-
add_recover(command:
|
|
3926
|
-
pass(cmd:
|
|
3927
|
-
tick(cmd:
|
|
3928
|
-
tell(cube: INote.NoteCube | undefined, ...cmds:
|
|
3929
|
-
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;
|
|
3930
3841
|
merge(record: Recorder | void | undefined | null): Recorder;
|
|
3931
3842
|
}
|
|
3932
3843
|
|
|
@@ -3937,7 +3848,7 @@ declare class NoteHistory extends NoteBase {
|
|
|
3937
3848
|
get len_undo(): number;
|
|
3938
3849
|
get len_redo(): number;
|
|
3939
3850
|
constructor(note: Note);
|
|
3940
|
-
protected execute_command_group(cmds:
|
|
3851
|
+
protected execute_command_group(cmds: ICommandCube.BaseCommand[]): void;
|
|
3941
3852
|
undo(): Function | undefined;
|
|
3942
3853
|
redo(): Function | undefined;
|
|
3943
3854
|
record(recorder: Recorder | undefined | void | null): void;
|
|
@@ -3950,11 +3861,11 @@ declare class NoteHistory extends NoteBase {
|
|
|
3950
3861
|
|
|
3951
3862
|
declare class EventBubble {
|
|
3952
3863
|
readonly recorder: Recorder;
|
|
3953
|
-
readonly map: Map<INote.NoteCube,
|
|
3954
|
-
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[]>);
|
|
3955
3866
|
}
|
|
3956
3867
|
|
|
3957
|
-
declare class
|
|
3868
|
+
declare class CubeStatusBase<T extends ICubeBase.Data> {
|
|
3958
3869
|
protected __children: INote.NoteChild[];
|
|
3959
3870
|
protected _cube: INote.NoteCube;
|
|
3960
3871
|
protected _data: Reactive<T>;
|
|
@@ -3982,17 +3893,17 @@ declare class StatusCube<T extends ICubeBase.Data> {
|
|
|
3982
3893
|
}
|
|
3983
3894
|
|
|
3984
3895
|
declare abstract class CubeBase<T extends ICubeBase.Data = any> {
|
|
3985
|
-
protected handler: Map<
|
|
3986
|
-
protected handler_vip: Map<
|
|
3896
|
+
protected handler: Map<ICommandCube.Names, ICubeHandler.Handler>;
|
|
3897
|
+
protected handler_vip: Map<ICommandCube.Names, ICubeHandler.Handler>;
|
|
3987
3898
|
protected _note: Note;
|
|
3988
3899
|
abstract data: T;
|
|
3989
3900
|
abstract get id(): string;
|
|
3990
|
-
abstract get component(): any;
|
|
3991
|
-
abstract get adapter(): AdapterCubeBase;
|
|
3992
|
-
abstract get status(): StatusCube<T>;
|
|
3993
3901
|
abstract find_cube(id: ICubeBase.CubeId, ...args: any[]): CubeBase | undefined;
|
|
3994
3902
|
abstract export(): T;
|
|
3995
3903
|
abstract gc(): any;
|
|
3904
|
+
abstract get component(): any;
|
|
3905
|
+
abstract get status(): CubeStatusBase<T>;
|
|
3906
|
+
abstract get adapter(): CubeAdapterBase;
|
|
3996
3907
|
protected abstract build_child(data: T): any;
|
|
3997
3908
|
constructor(note: Note);
|
|
3998
3909
|
get meta(): INote.CubeMeta<INote.Cubes>;
|
|
@@ -4004,7 +3915,6 @@ declare abstract class CubeBase<T extends ICubeBase.Data = any> {
|
|
|
4004
3915
|
get root(): CubeRoot<any>;
|
|
4005
3916
|
get cubes(): NoteCubes;
|
|
4006
3917
|
get api(): typeof NoteApi;
|
|
4007
|
-
get hotkeys(): NoteHotkeys;
|
|
4008
3918
|
get history(): NoteHistory;
|
|
4009
3919
|
get cursor(): NoteCursor;
|
|
4010
3920
|
get courier(): NoteCourier;
|
|
@@ -4015,14 +3925,17 @@ declare abstract class CubeBase<T extends ICubeBase.Data = any> {
|
|
|
4015
3925
|
get listener(): NoteListener;
|
|
4016
3926
|
get interaction(): NoteInteraction;
|
|
4017
3927
|
update_data(versions: INote.CubesVersion, data: any): ICubeBase.CubeUpdateResult<T>;
|
|
4018
|
-
on(cmd:
|
|
4019
|
-
get_cmd_handler(name:
|
|
4020
|
-
get_cmd_handler_vip(name:
|
|
4021
|
-
set_cmd_handler(name:
|
|
4022
|
-
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;
|
|
4023
3933
|
event_bubble(event: EventBubble): void;
|
|
4024
3934
|
}
|
|
4025
3935
|
|
|
3936
|
+
declare class CubeListenerBase {
|
|
3937
|
+
}
|
|
3938
|
+
|
|
4026
3939
|
declare abstract class MapChild<T extends ICubeBase.Data = any> extends CubeBase<T> {
|
|
4027
3940
|
abstract get show(): boolean;
|
|
4028
3941
|
abstract get map2d(): Map2D;
|
|
@@ -4069,7 +3982,7 @@ declare abstract class MapChild<T extends ICubeBase.Data = any> extends CubeBase
|
|
|
4069
3982
|
base_export(): T;
|
|
4070
3983
|
copy(left: number, right: number): ICubeBase.Data[];
|
|
4071
3984
|
get_upstream_sum_scale(): _FigScale;
|
|
4072
|
-
remove_self(dir?:
|
|
3985
|
+
remove_self(dir?: ICommandCube.DeleteDir): Recorder;
|
|
4073
3986
|
merge(method: INote.CubeMergeMethod): Recorder | undefined;
|
|
4074
3987
|
find_cube(id: ICubeBase.CubeId): CubeChild | MapChild | undefined;
|
|
4075
3988
|
filter(func: ICubeBase.CubeFilterFunc): Array<CubeChild | MapChild>;
|
|
@@ -4082,16 +3995,16 @@ declare abstract class MapChild<T extends ICubeBase.Data = any> extends CubeBase
|
|
|
4082
3995
|
find_child_index(id: ICubeBase.CubeId): number;
|
|
4083
3996
|
find_next_cube(id: ICubeBase.CubeId): CubeChild | undefined;
|
|
4084
3997
|
find_prev_cube(id: ICubeBase.CubeId): CubeChild | undefined;
|
|
4085
|
-
protected on_cube_set_selection_css(command:
|
|
4086
|
-
protected on_insert(command:
|
|
4087
|
-
protected on_cube_delete(command:
|
|
4088
|
-
protected on_cube_set_css(command:
|
|
4089
|
-
protected on_cube_set_attr(command:
|
|
4090
|
-
protected on_cube_delete_adjacent(command:
|
|
4091
|
-
protected on_postil_add(cmd:
|
|
4092
|
-
protected on_postil_remove(command:
|
|
4093
|
-
protected on_cursor_in_head(command:
|
|
4094
|
-
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;
|
|
4095
4008
|
is_valid_range(range: [number, number], check_collapse?: boolean): boolean;
|
|
4096
4009
|
get_valid_index(pos: number | INote.CubeSide): number;
|
|
4097
4010
|
get_valid_range(range: [number, number]): [number, number];
|
|
@@ -4103,7 +4016,7 @@ declare abstract class MapNodeBase<T extends INodeBase.Base = any> extends MapCh
|
|
|
4103
4016
|
protected _layouted: boolean;
|
|
4104
4017
|
protected _env: MapNodeLayoutEnv;
|
|
4105
4018
|
abstract map2d: NodeBase2D;
|
|
4106
|
-
abstract get status():
|
|
4019
|
+
abstract get status(): NodeStatusBase<T>;
|
|
4107
4020
|
constructor(note: Note, data: T, pcube: _Map);
|
|
4108
4021
|
get layouted(): boolean;
|
|
4109
4022
|
set layouted(v: boolean);
|
|
@@ -4149,13 +4062,13 @@ declare abstract class MapNodeBase<T extends INodeBase.Base = any> extends MapCh
|
|
|
4149
4062
|
break_link_node(id: string): void;
|
|
4150
4063
|
remove_self(): Recorder;
|
|
4151
4064
|
find_dom_cube(node: Node): INote.NoteChild | undefined;
|
|
4152
|
-
protected on_reset(command:
|
|
4153
|
-
protected on_cube_reorder(command:
|
|
4154
|
-
protected on_insert_child(command:
|
|
4155
|
-
protected on_delete_child(command:
|
|
4156
|
-
protected on_cube_insert(command:
|
|
4157
|
-
protected on_layout_update(cmd:
|
|
4158
|
-
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;
|
|
4159
4072
|
static get_default_node_size(padding?: number): IMath.RectArea;
|
|
4160
4073
|
static get_default_node_pos(pos: _PointView, map: INote.NoteCube & IMapBase.Api): {
|
|
4161
4074
|
x: number;
|
|
@@ -4179,7 +4092,7 @@ declare class MapNodeLayoutEnv {
|
|
|
4179
4092
|
index: number;
|
|
4180
4093
|
};
|
|
4181
4094
|
get root(): MapNodeBase | undefined;
|
|
4182
|
-
get status():
|
|
4095
|
+
get status(): NodeStatusBase<any>;
|
|
4183
4096
|
get map2d(): NodeBase2D;
|
|
4184
4097
|
get map(): _Map;
|
|
4185
4098
|
get to(): Set<string>;
|
|
@@ -4219,7 +4132,7 @@ declare class MapNodeLayoutEnv {
|
|
|
4219
4132
|
get_downstream_layout_type(node: MapNodeBase): INodeBase.Layout;
|
|
4220
4133
|
}
|
|
4221
4134
|
|
|
4222
|
-
declare class
|
|
4135
|
+
declare class NodeStatusBase<T extends INodeBase.Base = any> extends CubeStatusBase<T> {
|
|
4223
4136
|
protected _rect_cbox: IMath.Rect;
|
|
4224
4137
|
protected _rect: IMath.Rect;
|
|
4225
4138
|
protected _editable: Ref<boolean, boolean>;
|
|
@@ -4270,7 +4183,7 @@ declare class StatusNodeBase<T extends INodeBase.Base = any> extends StatusCube<
|
|
|
4270
4183
|
f: number;
|
|
4271
4184
|
};
|
|
4272
4185
|
get is_layout_root(): boolean;
|
|
4273
|
-
get upstatus():
|
|
4186
|
+
get upstatus(): NodeStatusBase | undefined;
|
|
4274
4187
|
get node_fill(): string | undefined;
|
|
4275
4188
|
get node_line_type(): INodeBase.Line;
|
|
4276
4189
|
get node_line_width(): number;
|
|
@@ -4340,7 +4253,7 @@ declare abstract class NodeBase2D extends Map2D {
|
|
|
4340
4253
|
get map(): _Map;
|
|
4341
4254
|
get meter(): NodeLayoutMeter;
|
|
4342
4255
|
get env(): MapNodeLayoutEnv;
|
|
4343
|
-
get status():
|
|
4256
|
+
get status(): NodeStatusBase<any>;
|
|
4344
4257
|
get matrix2d(): {
|
|
4345
4258
|
a: number;
|
|
4346
4259
|
b: number;
|
|
@@ -4627,26 +4540,26 @@ declare namespace INodeBaseEnv {
|
|
|
4627
4540
|
}
|
|
4628
4541
|
}
|
|
4629
4542
|
|
|
4630
|
-
declare namespace
|
|
4631
|
-
interface LayoutUpdate extends
|
|
4543
|
+
declare namespace ICommandNode {
|
|
4544
|
+
interface LayoutUpdate extends ICommandCube.BaseCommand {
|
|
4632
4545
|
name: "node:layout-update";
|
|
4633
4546
|
attrs: Partial<INodeBase.Attrs>;
|
|
4634
4547
|
}
|
|
4635
|
-
interface AppendChild extends
|
|
4548
|
+
interface AppendChild extends ICommandCube.BaseCommand {
|
|
4636
4549
|
name: "node:append-child";
|
|
4637
4550
|
nodes: INodeBase.Base[];
|
|
4638
4551
|
previd?: string | null;
|
|
4639
4552
|
}
|
|
4640
4553
|
}
|
|
4641
4554
|
|
|
4642
|
-
declare namespace
|
|
4643
|
-
interface Reset extends
|
|
4555
|
+
declare namespace ICommandText {
|
|
4556
|
+
interface Reset extends ICommandCube.BaseCommand {
|
|
4644
4557
|
name: "text:reset";
|
|
4645
4558
|
info: string;
|
|
4646
4559
|
pos: number;
|
|
4647
4560
|
pos_before: number;
|
|
4648
4561
|
}
|
|
4649
|
-
interface Break extends
|
|
4562
|
+
interface Break extends ICommandCube.BaseCommand {
|
|
4650
4563
|
name: "text:break";
|
|
4651
4564
|
offset: number;
|
|
4652
4565
|
}
|
|
@@ -4670,7 +4583,7 @@ declare namespace IDoc {
|
|
|
4670
4583
|
}
|
|
4671
4584
|
}
|
|
4672
4585
|
|
|
4673
|
-
declare namespace
|
|
4586
|
+
declare namespace ICommandDoc { }
|
|
4674
4587
|
|
|
4675
4588
|
declare namespace IMap {
|
|
4676
4589
|
interface Data extends ICubeRootBase.Data {
|
|
@@ -4791,8 +4704,8 @@ declare namespace ITextLink {
|
|
|
4791
4704
|
}
|
|
4792
4705
|
}
|
|
4793
4706
|
|
|
4794
|
-
declare namespace
|
|
4795
|
-
interface Update extends
|
|
4707
|
+
declare namespace ICommandTextLink {
|
|
4708
|
+
interface Update extends ICommandCube.BaseCommand {
|
|
4796
4709
|
name: "text-link:update";
|
|
4797
4710
|
url: string;
|
|
4798
4711
|
title: string;
|
|
@@ -4814,21 +4727,21 @@ declare namespace IList {
|
|
|
4814
4727
|
}
|
|
4815
4728
|
}
|
|
4816
4729
|
|
|
4817
|
-
declare namespace
|
|
4818
|
-
interface Reset extends
|
|
4730
|
+
declare namespace ICommandList {
|
|
4731
|
+
interface Reset extends ICommandCube.BaseCommand {
|
|
4819
4732
|
name: "list:reset";
|
|
4820
4733
|
data: IList.ListItemData[];
|
|
4821
4734
|
}
|
|
4822
|
-
interface AddItem extends
|
|
4735
|
+
interface AddItem extends ICommandCube.BaseCommand {
|
|
4823
4736
|
name: "list:add";
|
|
4824
4737
|
data: IList.ListItemData[];
|
|
4825
4738
|
pos: number;
|
|
4826
4739
|
}
|
|
4827
|
-
interface RemoveItem extends
|
|
4740
|
+
interface RemoveItem extends ICommandCube.BaseCommand {
|
|
4828
4741
|
name: "list:remove";
|
|
4829
4742
|
range: [number, number];
|
|
4830
4743
|
}
|
|
4831
|
-
interface IndentItem extends
|
|
4744
|
+
interface IndentItem extends ICommandCube.BaseCommand {
|
|
4832
4745
|
name: "list:indent";
|
|
4833
4746
|
items: ItemIndentInfo[];
|
|
4834
4747
|
}
|
|
@@ -4892,7 +4805,7 @@ declare namespace IApi {
|
|
|
4892
4805
|
}
|
|
4893
4806
|
}
|
|
4894
4807
|
|
|
4895
|
-
declare namespace
|
|
4808
|
+
declare namespace ICommandApi { }
|
|
4896
4809
|
|
|
4897
4810
|
declare namespace ITip {
|
|
4898
4811
|
interface Data extends ICubeBase.Data {
|
|
@@ -4901,23 +4814,23 @@ declare namespace ITip {
|
|
|
4901
4814
|
}
|
|
4902
4815
|
}
|
|
4903
4816
|
|
|
4904
|
-
declare namespace
|
|
4905
|
-
interface Reset extends
|
|
4817
|
+
declare namespace ICommandListOrdered {
|
|
4818
|
+
interface Reset extends ICommandCube.BaseCommand {
|
|
4906
4819
|
name: "list-ordered:reset";
|
|
4907
4820
|
data: IList.ListItemData[];
|
|
4908
4821
|
}
|
|
4909
|
-
interface AddItem extends
|
|
4822
|
+
interface AddItem extends ICommandCube.BaseCommand {
|
|
4910
4823
|
name: "list-ordered:add";
|
|
4911
4824
|
data: IList.ListItemData[];
|
|
4912
4825
|
pos: number;
|
|
4913
4826
|
}
|
|
4914
|
-
interface RemoveItem extends
|
|
4827
|
+
interface RemoveItem extends ICommandCube.BaseCommand {
|
|
4915
4828
|
name: "list-ordered:remove";
|
|
4916
4829
|
range: [number, number];
|
|
4917
4830
|
}
|
|
4918
|
-
interface IndentItem extends
|
|
4831
|
+
interface IndentItem extends ICommandCube.BaseCommand {
|
|
4919
4832
|
name: "list-ordered:indent";
|
|
4920
|
-
items:
|
|
4833
|
+
items: ICommandList.ItemIndentInfo[];
|
|
4921
4834
|
}
|
|
4922
4835
|
}
|
|
4923
4836
|
|
|
@@ -4957,36 +4870,36 @@ declare namespace ICode {
|
|
|
4957
4870
|
type LanguagesMap = Record<string, Langs>;
|
|
4958
4871
|
}
|
|
4959
4872
|
|
|
4960
|
-
declare namespace
|
|
4961
|
-
interface Update extends
|
|
4873
|
+
declare namespace ICommandCode {
|
|
4874
|
+
interface Update extends ICommandCube.BaseCommand {
|
|
4962
4875
|
name: "code:update";
|
|
4963
4876
|
tabid: string;
|
|
4964
4877
|
code: string;
|
|
4965
4878
|
}
|
|
4966
|
-
interface TabActive extends
|
|
4879
|
+
interface TabActive extends ICommandCube.BaseCommand {
|
|
4967
4880
|
name: "code:change-active";
|
|
4968
4881
|
tabid: string;
|
|
4969
4882
|
}
|
|
4970
|
-
interface Add extends
|
|
4883
|
+
interface Add extends ICommandCube.BaseCommand {
|
|
4971
4884
|
name: "code:add";
|
|
4972
4885
|
item: ICode.TabItem;
|
|
4973
4886
|
focus: boolean;
|
|
4974
4887
|
}
|
|
4975
|
-
interface Remove extends
|
|
4888
|
+
interface Remove extends ICommandCube.BaseCommand {
|
|
4976
4889
|
name: "code:remove";
|
|
4977
4890
|
tabid: string;
|
|
4978
4891
|
}
|
|
4979
|
-
interface Rename extends
|
|
4892
|
+
interface Rename extends ICommandCube.BaseCommand {
|
|
4980
4893
|
name: "code:rename";
|
|
4981
4894
|
tabid: string;
|
|
4982
4895
|
filename: string;
|
|
4983
4896
|
}
|
|
4984
|
-
interface ChangeLang extends
|
|
4897
|
+
interface ChangeLang extends ICommandCube.BaseCommand {
|
|
4985
4898
|
name: "code:change-lang";
|
|
4986
4899
|
tabid: string;
|
|
4987
4900
|
lang: string;
|
|
4988
4901
|
}
|
|
4989
|
-
interface ChangeTheme extends
|
|
4902
|
+
interface ChangeTheme extends ICommandCube.BaseCommand {
|
|
4990
4903
|
name: "code:change-theme";
|
|
4991
4904
|
tabid: string;
|
|
4992
4905
|
theme: string;
|
|
@@ -5014,8 +4927,8 @@ declare namespace IFormula {
|
|
|
5014
4927
|
}
|
|
5015
4928
|
}
|
|
5016
4929
|
|
|
5017
|
-
declare namespace
|
|
5018
|
-
interface Update extends
|
|
4930
|
+
declare namespace ICommandFormula {
|
|
4931
|
+
interface Update extends ICommandCube.BaseCommand {
|
|
5019
4932
|
name: "formula:update";
|
|
5020
4933
|
latex: string;
|
|
5021
4934
|
size: IFormula.Size;
|
|
@@ -5086,72 +4999,72 @@ declare namespace ITable {
|
|
|
5086
4999
|
}
|
|
5087
5000
|
}
|
|
5088
5001
|
|
|
5089
|
-
declare namespace
|
|
5090
|
-
interface AddTitle extends
|
|
5002
|
+
declare namespace ICommandTable {
|
|
5003
|
+
interface AddTitle extends ICommandCube.BaseCommand {
|
|
5091
5004
|
name: "table:add-title";
|
|
5092
5005
|
data: IBox.Data;
|
|
5093
5006
|
}
|
|
5094
|
-
interface RemoveTitle extends
|
|
5007
|
+
interface RemoveTitle extends ICommandCube.BaseCommand {
|
|
5095
5008
|
name: "table:remove-title";
|
|
5096
5009
|
}
|
|
5097
|
-
interface AddCell extends
|
|
5010
|
+
interface AddCell extends ICommandCube.BaseCommand {
|
|
5098
5011
|
name: "table:add-cell";
|
|
5099
5012
|
data: ITable.CellData;
|
|
5100
5013
|
}
|
|
5101
|
-
interface RemoveCell extends
|
|
5014
|
+
interface RemoveCell extends ICommandCube.BaseCommand {
|
|
5102
5015
|
name: "table:remove-cell";
|
|
5103
5016
|
cid: ICubeBase.CubeId;
|
|
5104
5017
|
}
|
|
5105
|
-
interface AddRow extends
|
|
5018
|
+
interface AddRow extends ICommandCube.BaseCommand {
|
|
5106
5019
|
name: "table:add-row";
|
|
5107
5020
|
index: number;
|
|
5108
5021
|
rows: IBox.Data[];
|
|
5109
5022
|
}
|
|
5110
|
-
interface RemoveRow extends
|
|
5023
|
+
interface RemoveRow extends ICommandCube.BaseCommand {
|
|
5111
5024
|
name: "table:remove-row";
|
|
5112
5025
|
index: number;
|
|
5113
5026
|
}
|
|
5114
|
-
interface AddCol extends
|
|
5027
|
+
interface AddCol extends ICommandCube.BaseCommand {
|
|
5115
5028
|
name: "table:add-col";
|
|
5116
5029
|
index: number;
|
|
5117
5030
|
cols: IBox.Data[];
|
|
5118
5031
|
}
|
|
5119
|
-
interface RemoveCol extends
|
|
5032
|
+
interface RemoveCol extends ICommandCube.BaseCommand {
|
|
5120
5033
|
name: "table:remove-col";
|
|
5121
5034
|
index: number;
|
|
5122
5035
|
}
|
|
5123
|
-
interface Merge extends
|
|
5036
|
+
interface Merge extends ICommandCube.BaseCommand {
|
|
5124
5037
|
name: "table:merge";
|
|
5125
5038
|
area: ITable.CellArea;
|
|
5126
5039
|
}
|
|
5127
|
-
interface CellMoveTo extends
|
|
5040
|
+
interface CellMoveTo extends ICommandCube.BaseCommand {
|
|
5128
5041
|
name: "table:moveto";
|
|
5129
5042
|
tid: string;
|
|
5130
5043
|
cells: string[];
|
|
5131
5044
|
}
|
|
5132
|
-
interface CellUpdateArea extends
|
|
5045
|
+
interface CellUpdateArea extends ICommandCube.BaseCommand {
|
|
5133
5046
|
name: "table:update-area";
|
|
5134
5047
|
tid: ICubeBase.CubeId;
|
|
5135
5048
|
area: ITable.CellRect;
|
|
5136
5049
|
}
|
|
5137
|
-
interface AddGridCol extends
|
|
5050
|
+
interface AddGridCol extends ICommandCube.BaseCommand {
|
|
5138
5051
|
name: "table:add-grid-col";
|
|
5139
5052
|
index: number;
|
|
5140
5053
|
width: number;
|
|
5141
5054
|
}
|
|
5142
|
-
interface RemoveGridCol extends
|
|
5055
|
+
interface RemoveGridCol extends ICommandCube.BaseCommand {
|
|
5143
5056
|
name: "table:remove-grid-col";
|
|
5144
5057
|
index: number;
|
|
5145
5058
|
}
|
|
5146
|
-
interface AddGridRow extends
|
|
5059
|
+
interface AddGridRow extends ICommandCube.BaseCommand {
|
|
5147
5060
|
name: "table:add-grid-row";
|
|
5148
5061
|
index: number;
|
|
5149
5062
|
}
|
|
5150
|
-
interface RemoveGridRow extends
|
|
5063
|
+
interface RemoveGridRow extends ICommandCube.BaseCommand {
|
|
5151
5064
|
name: "table:remove-grid-row";
|
|
5152
5065
|
index: number;
|
|
5153
5066
|
}
|
|
5154
|
-
interface ColResize extends
|
|
5067
|
+
interface ColResize extends ICommandCube.BaseCommand {
|
|
5155
5068
|
name: "table:col-resize";
|
|
5156
5069
|
cols: [number, number];
|
|
5157
5070
|
step: number;
|
|
@@ -5194,8 +5107,8 @@ declare namespace ILinker {
|
|
|
5194
5107
|
type Finder = (from: MapNodeBase, to: MapNodeBase) => IMapTools.LinePoints;
|
|
5195
5108
|
}
|
|
5196
5109
|
|
|
5197
|
-
declare namespace
|
|
5198
|
-
interface Update extends
|
|
5110
|
+
declare namespace ICommandLinker {
|
|
5111
|
+
interface Update extends ICommandCube.BaseCommand {
|
|
5199
5112
|
name: "linker:update";
|
|
5200
5113
|
attrs: UpdateAttr;
|
|
5201
5114
|
}
|
|
@@ -5246,8 +5159,8 @@ declare namespace IRt {
|
|
|
5246
5159
|
}
|
|
5247
5160
|
}
|
|
5248
5161
|
|
|
5249
|
-
declare namespace
|
|
5250
|
-
interface Reset extends
|
|
5162
|
+
declare namespace ICommandRt {
|
|
5163
|
+
interface Reset extends ICommandCube.BaseCommand {
|
|
5251
5164
|
name: "rt:reset";
|
|
5252
5165
|
explanation: string;
|
|
5253
5166
|
}
|
|
@@ -5371,31 +5284,118 @@ declare namespace IMapInteraction {
|
|
|
5371
5284
|
}
|
|
5372
5285
|
|
|
5373
5286
|
declare namespace INoteInteraction {
|
|
5374
|
-
|
|
5375
|
-
|
|
5287
|
+
type Scope = "all" | "note" | "none";
|
|
5288
|
+
type Groups = string;
|
|
5289
|
+
interface Data {
|
|
5290
|
+
hotkeys: Record<string, HotkeyConfig>;
|
|
5376
5291
|
}
|
|
5377
|
-
type Operations = "note:scope-delete";
|
|
5378
5292
|
interface KeyboardScope {
|
|
5379
|
-
key: string;
|
|
5380
5293
|
note_mode: INote.Mode;
|
|
5381
|
-
|
|
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;
|
|
5382
5308
|
}
|
|
5383
5309
|
interface KeyboardApi extends Api {
|
|
5384
|
-
get name():
|
|
5310
|
+
get name(): string;
|
|
5385
5311
|
check_allow(e: KeyboardEvent, scope: KeyboardScope): boolean;
|
|
5386
5312
|
keydown(e: KeyboardEvent, scope: KeyboardScope): any;
|
|
5387
5313
|
keyup(e: KeyboardEvent, scope: KeyboardScope): any;
|
|
5388
5314
|
}
|
|
5389
5315
|
}
|
|
5390
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
|
+
|
|
5391
5391
|
declare namespace ICubeHandler {
|
|
5392
5392
|
type Handler = (cmd: any, ...args: any[]) => Recorder | void;
|
|
5393
5393
|
}
|
|
5394
5394
|
|
|
5395
5395
|
declare namespace INoteHistory {
|
|
5396
5396
|
interface RecorderData {
|
|
5397
|
-
do:
|
|
5398
|
-
undo:
|
|
5397
|
+
do: ICommandCube.BaseCommand[];
|
|
5398
|
+
undo: ICommandCube.BaseCommand[];
|
|
5399
5399
|
}
|
|
5400
5400
|
interface Stack {
|
|
5401
5401
|
version: number;
|
|
@@ -5565,7 +5565,7 @@ declare namespace INoteEvent {
|
|
|
5565
5565
|
type ListenerAssetDownload = (type: INote.AssetType, filename: string) => Promise<boolean>;
|
|
5566
5566
|
type ListenerAssetCopy = (noteid: string, asset_type: INote.AssetType, filename: string) => Promise<boolean>;
|
|
5567
5567
|
type ListenerReplaceId = (map: Record<string, string>) => any;
|
|
5568
|
-
type ListenerEdit = (cube: CubeChild, cmd:
|
|
5568
|
+
type ListenerEdit = (cube: CubeChild, cmd: ICommandCube.BaseCommand) => any;
|
|
5569
5569
|
type ListenerTextMerge = (from: string, to: string) => any;
|
|
5570
5570
|
type ListenerEsc = () => any;
|
|
5571
5571
|
type ListenerSelectionChange = (e: Event) => any;
|
|
@@ -5595,80 +5595,6 @@ declare namespace INoteFlag {
|
|
|
5595
5595
|
declare namespace INoteFloat {
|
|
5596
5596
|
}
|
|
5597
5597
|
|
|
5598
|
-
declare namespace INoteHotkeys {
|
|
5599
|
-
type Scope = "global" | "note" | "map" | "none";
|
|
5600
|
-
interface Config {
|
|
5601
|
-
id: string;
|
|
5602
|
-
name: string;
|
|
5603
|
-
shortcut: string;
|
|
5604
|
-
scope: Scope;
|
|
5605
|
-
capture?: boolean;
|
|
5606
|
-
keyup?: boolean;
|
|
5607
|
-
}
|
|
5608
|
-
enum HotKeys {
|
|
5609
|
-
"format-brush-apply" = "\u5E94\u7528\u683C\u5F0F\u5237",
|
|
5610
|
-
"format-brush-copy" = "\u590D\u5236\u683C\u5F0F\u5237",
|
|
5611
|
-
"undo" = "\u64A4\u9500",
|
|
5612
|
-
"redo" = "\u91CD\u505A",
|
|
5613
|
-
"indent-line" = "\u7F29\u8FDB",
|
|
5614
|
-
"unindent-line" = "\u53CD\u5411\u7F29\u8FDB",
|
|
5615
|
-
"cursor-nav" = "\u5149\u6807\u5BFC\u822A",
|
|
5616
|
-
"cursor-nav-extend" = "\u5149\u6807\u590D\u9009",
|
|
5617
|
-
"line-break" = "\u6362\u884C",
|
|
5618
|
-
"scope-clear" = "\u6E05\u7A7A\u5757\u9009\u533A",
|
|
5619
|
-
"scope-add" = "\u6DFB\u52A0\u5757\u9009\u533A",
|
|
5620
|
-
"root-add-next" = "\u5411\u540E\u6DFB\u52A0\u6839\u7EA7\u5757",
|
|
5621
|
-
"root-add-prev" = "\u5411\u524D\u6DFB\u52A0\u6839\u7EA7\u5757",
|
|
5622
|
-
"root-break" = "\u5206\u88C2\u6839\u7EA7\u5757",
|
|
5623
|
-
"text-add-annotation" = "\u6DFB\u52A0\u6279\u6CE8",
|
|
5624
|
-
"text-italic" = "\u659C\u4F53",
|
|
5625
|
-
"text-bold" = "\u52A0\u7C97",
|
|
5626
|
-
"text-underline" = "\u4E0B\u5212\u7EBF",
|
|
5627
|
-
"text-align-left" = "\u5DE6\u5BF9\u9F50",
|
|
5628
|
-
"text-align-center" = "\u5C45\u4E2D\u5BF9\u9F50",
|
|
5629
|
-
"text-align-right" = "\u53F3\u5BF9\u9F50",
|
|
5630
|
-
"text-partition" = "\u5206\u88C2\u6587\u672C\u5757",
|
|
5631
|
-
"text-fontsize-up" = "\u589E\u52A0\u5B57\u53F7",
|
|
5632
|
-
"text-fontsize-down" = "\u51CF\u5C0F\u5B57\u53F7",
|
|
5633
|
-
"text-rt" = "\u6DFB\u52A0\u6587\u5B57\u6807\u6CE8",
|
|
5634
|
-
"text-add-link" = "\u6DFB\u52A0\u8D85\u94FE\u63A5",
|
|
5635
|
-
"text-break" = "\u6587\u672C\u5757\u6362\u884C",
|
|
5636
|
-
"css-clear" = "\u91CD\u7F6E\u6837\u5F0F",
|
|
5637
|
-
"fold-block" = "\u6298\u53E0\u6240\u5728\u5757",
|
|
5638
|
-
"bookmark-add" = "\u6DFB\u52A0\u4E66\u7B7E",
|
|
5639
|
-
"search-doc" = "\u641C\u7D22",
|
|
5640
|
-
"float-formula" = "\u516C\u5F0F\u9762\u677F",
|
|
5641
|
-
"float-cubelist" = "\u5143\u7D20\u9762\u677F",
|
|
5642
|
-
"paste-md" = "\u7C98\u8D34markdown"
|
|
5643
|
-
}
|
|
5644
|
-
enum Group {
|
|
5645
|
-
core = "\u6838\u5FC3",
|
|
5646
|
-
common = "\u901A\u7528",
|
|
5647
|
-
text = "\u6587\u672C\u5757",
|
|
5648
|
-
block = "\u5757",
|
|
5649
|
-
scope = "\u5757\u9009\u533A",
|
|
5650
|
-
dict = "\u5B57\u5178",
|
|
5651
|
-
bookmark = "\u4E66\u7B7E",
|
|
5652
|
-
search = "\u641C\u7D22",
|
|
5653
|
-
css = "\u6837\u5F0F",
|
|
5654
|
-
float = "\u9762\u677F",
|
|
5655
|
-
other = "\u5176\u4ED6"
|
|
5656
|
-
}
|
|
5657
|
-
interface HotKeyInfo {
|
|
5658
|
-
name: string;
|
|
5659
|
-
show: boolean;
|
|
5660
|
-
meta: boolean;
|
|
5661
|
-
shift: boolean;
|
|
5662
|
-
alt: boolean;
|
|
5663
|
-
ctrl: boolean;
|
|
5664
|
-
key: string[];
|
|
5665
|
-
group: string;
|
|
5666
|
-
cursor?: boolean;
|
|
5667
|
-
}
|
|
5668
|
-
type NoteHotkeys = Record<string, HotKeyInfo>;
|
|
5669
|
-
type HotKeyHandler = (e: KeyboardEvent) => any;
|
|
5670
|
-
}
|
|
5671
|
-
|
|
5672
5598
|
declare namespace INoteClipboard {
|
|
5673
5599
|
interface NoteData {
|
|
5674
5600
|
noteid: string;
|
|
@@ -5704,6 +5630,22 @@ declare namespace IUiTheme {
|
|
|
5704
5630
|
path: string;
|
|
5705
5631
|
filters?: BackgroundFilter;
|
|
5706
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
|
+
}
|
|
5707
5649
|
interface ThemeItem<T extends string = Names> {
|
|
5708
5650
|
id: T;
|
|
5709
5651
|
name: string;
|
|
@@ -6027,7 +5969,7 @@ declare namespace IUiTips {
|
|
|
6027
5969
|
}
|
|
6028
5970
|
|
|
6029
5971
|
declare namespace IUiToolbar {
|
|
6030
|
-
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 & {});
|
|
6031
5973
|
interface Tool {
|
|
6032
5974
|
class: string[];
|
|
6033
5975
|
tooltip: string;
|
|
@@ -6062,29 +6004,130 @@ declare global {
|
|
|
6062
6004
|
const _SDK_PUB_DATE: number;
|
|
6063
6005
|
}
|
|
6064
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
|
+
|
|
6065
6026
|
declare class CommandCube {
|
|
6066
|
-
static insert_child(id: string, data: ICubeBase.Data[], pos: number | INote.CubeSide):
|
|
6067
|
-
static delete_child(id: string, dir:
|
|
6068
|
-
static insert(id: string, data: ICubeBase.Data[], start_id: ICubeBase.CubeId, end_id: ICubeBase.CubeId, offset_start: number, offset_end: number):
|
|
6069
|
-
static delete(id: string, dir:
|
|
6070
|
-
static delete_adjacent(id: string, from:
|
|
6071
|
-
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?:
|
|
6072
|
-
static set_css(id: ICubeBase.CubeId, css: Record<string, any>, method?:
|
|
6073
|
-
static partition(id: ICubeBase.CubeId, start_id: ICubeBase.CubeId, end_id: ICubeBase.CubeId, offset_start: number, offset_end: number):
|
|
6074
|
-
static reorder(id: ICubeBase.CubeId, cubeid: ICubeBase.CubeId, index: number | INote.CubeSide):
|
|
6075
|
-
static reset(id: ICubeBase.CubeId, data: ICubeBase.Data[]):
|
|
6076
|
-
static merge(id: ICubeBase.CubeId, method: INote.CubeMergeMethod, cubeid: ICubeBase.CubeId, offset: number):
|
|
6077
|
-
static postil_add(id: ICubeBase.CubeId, data?: ICubeBase.Data[]):
|
|
6078
|
-
static postil_remove(id: ICubeBase.CubeId, range: [number, number]):
|
|
6079
|
-
static set_attr(id: ICubeBase.CubeId, attr: Partial<ICubeBase.Attrs>):
|
|
6080
|
-
static resize(id: ICubeBase.CubeId, width: number, height?: number):
|
|
6081
|
-
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;
|
|
6082
6043
|
}
|
|
6083
6044
|
|
|
6084
6045
|
declare class CommandCursor {
|
|
6085
|
-
static loc(id: string, offset: number, from: string, from_offset: number):
|
|
6086
|
-
static in_head(id: string):
|
|
6087
|
-
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;
|
|
6088
6131
|
}
|
|
6089
6132
|
|
|
6090
6133
|
declare class LayoutChecker {
|
|
@@ -6135,20 +6178,6 @@ declare class NodeLayoutInvert {
|
|
|
6135
6178
|
};
|
|
6136
6179
|
}
|
|
6137
6180
|
|
|
6138
|
-
declare class CommandMap {
|
|
6139
|
-
static node_add(id: ICubeBase.CubeId, data: INodeBase.Base[]): IMapCommand.NodeAdd;
|
|
6140
|
-
static node_remove(id: ICubeBase.CubeId, data: ICubeBase.CubeId[]): IMapCommand.NodeRemove;
|
|
6141
|
-
static linker_add(id: ICubeBase.CubeId, data: IMapCommand.LinkerInfo[], to_root?: boolean): IMapCommand.LinkerAdd;
|
|
6142
|
-
static linker_remove(id: ICubeBase.CubeId, data: ICubeBase.CubeId[], to_root?: boolean): IMapCommand.LinkerRemove;
|
|
6143
|
-
static node_drag(id: ICubeBase.CubeId, data: IMapCommand.NodeMoveInfo[]): IMapCommand.NodeMove;
|
|
6144
|
-
static sibling_reorder(id: ICubeBase.CubeId, upstream_id: ICubeBase.CubeId, order: ICubeBase.CubeId[]): IMapCommand.SiblingReorder;
|
|
6145
|
-
}
|
|
6146
|
-
|
|
6147
|
-
declare class CommandNode {
|
|
6148
|
-
static layout_change(id: ICubeBase.CubeId, attrs: Partial<INodeBase.Attrs>): INodeCommand.LayoutUpdate;
|
|
6149
|
-
static append_child(id: ICubeBase.CubeId, nodes: INodeBase.Base[], previd?: string | null): INodeCommand.AppendChild;
|
|
6150
|
-
}
|
|
6151
|
-
|
|
6152
6181
|
declare class Matrix2D {
|
|
6153
6182
|
static get_default(): IMapTools.Matrix2D;
|
|
6154
6183
|
static to_array(m: IMapTools.Matrix2D): IMapTools.Matrix2DArray;
|
|
@@ -6178,7 +6207,7 @@ declare class MapTools {
|
|
|
6178
6207
|
static get_direct_layout_parent(node: MapNodeBase, except?: Set<string>): MapNodeBase | null | undefined;
|
|
6179
6208
|
static get_linker_id(fromid: string, to: string): string;
|
|
6180
6209
|
static wait_nodes_render(nodes: Iterable<MapNodeBase>): Promise<any>;
|
|
6181
|
-
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;
|
|
6182
6211
|
static get_rect_area(from: IMath.Point, to: IMath.Point, radius?: number): string;
|
|
6183
6212
|
}
|
|
6184
6213
|
|
|
@@ -6197,4 +6226,4 @@ declare class NoteTools {
|
|
|
6197
6226
|
static check_mouse_key(e: MouseEvent, key: _PointKey): boolean;
|
|
6198
6227
|
}
|
|
6199
6228
|
|
|
6200
|
-
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 };
|