@gkd-kit/docs 0.0.1718802689476 → 0.0.1719073114309
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/.vitepress/dist/404.html +4 -4
- package/.vitepress/dist/api/index.html +7 -7
- package/.vitepress/dist/api/interfaces/RawApp.html +7 -7
- package/.vitepress/dist/api/interfaces/RawAppGroup.html +7 -7
- package/.vitepress/dist/api/interfaces/RawAppRule.html +7 -7
- package/.vitepress/dist/api/interfaces/RawAppRuleProps.html +7 -7
- package/.vitepress/dist/api/interfaces/RawCategory.html +7 -7
- package/.vitepress/dist/api/interfaces/RawCommonProps.html +7 -7
- package/.vitepress/dist/api/interfaces/RawGlobalApp.html +7 -7
- package/.vitepress/dist/api/interfaces/RawGlobalGroup.html +7 -7
- package/.vitepress/dist/api/interfaces/RawGlobalRule.html +7 -7
- package/.vitepress/dist/api/interfaces/RawGlobalRuleProps.html +7 -7
- package/.vitepress/dist/api/interfaces/RawGroupProps.html +7 -7
- package/.vitepress/dist/api/interfaces/RawRuleProps.html +7 -7
- package/.vitepress/dist/api/interfaces/RawSubscription.html +7 -7
- package/.vitepress/dist/api/type-aliases/IArray.html +7 -7
- package/.vitepress/dist/api/type-aliases/Integer.html +7 -7
- package/.vitepress/dist/api/type-aliases/Position.html +7 -7
- package/.vitepress/dist/assets/{api_index.md.xmBPPn_9.js → api_index.md.4ccPi_ZZ.js} +1 -1
- package/.vitepress/dist/assets/{api_index.md.xmBPPn_9.lean.js → api_index.md.4ccPi_ZZ.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawApp.md.BS-42acW.js → api_interfaces_RawApp.md.JuMOId3h.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawApp.md.BS-42acW.lean.js → api_interfaces_RawApp.md.JuMOId3h.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppGroup.md.CU7RZpUr.js → api_interfaces_RawAppGroup.md.C33JkI_D.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppGroup.md.CU7RZpUr.lean.js → api_interfaces_RawAppGroup.md.C33JkI_D.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppRule.md.RzymoFCW.js → api_interfaces_RawAppRule.md.BtiA0bcN.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppRule.md.RzymoFCW.lean.js → api_interfaces_RawAppRule.md.BtiA0bcN.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppRuleProps.md.vKW1HJZB.js → api_interfaces_RawAppRuleProps.md.C_Lr7qrT.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawAppRuleProps.md.vKW1HJZB.lean.js → api_interfaces_RawAppRuleProps.md.C_Lr7qrT.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawCategory.md.-24ujH_N.js → api_interfaces_RawCategory.md.BqxO20ig.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawCategory.md.-24ujH_N.lean.js → api_interfaces_RawCategory.md.BqxO20ig.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawCommonProps.md.DluxkaLP.js → api_interfaces_RawCommonProps.md.CWJwfhiQ.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawCommonProps.md.DluxkaLP.lean.js → api_interfaces_RawCommonProps.md.CWJwfhiQ.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalApp.md.DmwD0t08.js → api_interfaces_RawGlobalApp.md.CCc1R6pz.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalApp.md.DmwD0t08.lean.js → api_interfaces_RawGlobalApp.md.CCc1R6pz.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalGroup.md.BWqg-Td_.js → api_interfaces_RawGlobalGroup.md.BmaW8-Ss.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalGroup.md.BWqg-Td_.lean.js → api_interfaces_RawGlobalGroup.md.BmaW8-Ss.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalRule.md.Be8Jszty.js → api_interfaces_RawGlobalRule.md.BCMr3k_N.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalRule.md.Be8Jszty.lean.js → api_interfaces_RawGlobalRule.md.BCMr3k_N.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalRuleProps.md.Bbr-03uh.js → api_interfaces_RawGlobalRuleProps.md.D-CtCTHV.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGlobalRuleProps.md.Bbr-03uh.lean.js → api_interfaces_RawGlobalRuleProps.md.D-CtCTHV.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGroupProps.md.B8bb4whj.js → api_interfaces_RawGroupProps.md.DG4T80Dd.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawGroupProps.md.B8bb4whj.lean.js → api_interfaces_RawGroupProps.md.DG4T80Dd.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawRuleProps.md.C7EGOpS2.js → api_interfaces_RawRuleProps.md.CRh5KyPR.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawRuleProps.md.C7EGOpS2.lean.js → api_interfaces_RawRuleProps.md.CRh5KyPR.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawSubscription.md.D6xqrM2P.js → api_interfaces_RawSubscription.md.Cz9K1wkj.js} +1 -1
- package/.vitepress/dist/assets/{api_interfaces_RawSubscription.md.D6xqrM2P.lean.js → api_interfaces_RawSubscription.md.Cz9K1wkj.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_IArray.md.ByLuQjvL.js → api_type-aliases_IArray.md.CP0181Bu.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_IArray.md.ByLuQjvL.lean.js → api_type-aliases_IArray.md.CP0181Bu.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_Integer.md.BH-eBHWu.js → api_type-aliases_Integer.md.scVDRZuk.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_Integer.md.BH-eBHWu.lean.js → api_type-aliases_Integer.md.scVDRZuk.lean.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_Position.md.DMYceQkB.js → api_type-aliases_Position.md.qJyyaDP6.js} +1 -1
- package/.vitepress/dist/assets/{api_type-aliases_Position.md.DMYceQkB.lean.js → api_type-aliases_Position.md.qJyyaDP6.lean.js} +1 -1
- package/.vitepress/dist/assets/{app.L_zmajI0.js → app.C64QcTSx.js} +1 -1
- package/.vitepress/dist/assets/chunks/@localSearchIndexroot.0XsIOVMB.js +1 -0
- package/.vitepress/dist/assets/chunks/{VPLocalSearchBox.KXiskYsa.js → VPLocalSearchBox.T3UPu6x9.js} +2 -2
- package/.vitepress/dist/assets/chunks/{framework.DLsK1f-q.js → framework.clGm--7Y.js} +1 -1
- package/.vitepress/dist/assets/chunks/{theme.CClrrP42.js → theme.Nc1B0uCn.js} +2 -2
- package/.vitepress/dist/assets/{faq_index.md.i590QMI2.js → faq_index.md.HeStiVle.js} +1 -1
- package/.vitepress/dist/assets/{faq_index.md.i590QMI2.lean.js → faq_index.md.HeStiVle.lean.js} +1 -1
- package/.vitepress/dist/assets/guide_index.md.CcbWhPKU.js +1 -0
- package/.vitepress/dist/assets/guide_index.md.CcbWhPKU.lean.js +1 -0
- package/.vitepress/dist/assets/{index.md.D_HQ3N17.js → index.md.CLu74n4G.js} +1 -1
- package/.vitepress/dist/assets/{index.md.D_HQ3N17.lean.js → index.md.CLu74n4G.lean.js} +1 -1
- package/.vitepress/dist/assets/selector_index.md.D9wTpOfa.js +1 -0
- package/.vitepress/dist/assets/{selector_index.md.Ds06LIQ1.lean.js → selector_index.md.D9wTpOfa.lean.js} +1 -1
- package/.vitepress/dist/assets/{style.DSK-4y-v.css → style.BM63d2lR.css} +1 -1
- package/.vitepress/dist/assets/{subscription_index.md.CLJpTlet.js → subscription_index.md.R2xBKUO-.js} +1 -1
- package/.vitepress/dist/assets/subscription_index.md.R2xBKUO-.lean.js +1 -0
- package/.vitepress/dist/faq/index.html +8 -8
- package/.vitepress/dist/guide/index.html +8 -8
- package/.vitepress/dist/hashmap.json +1 -1
- package/.vitepress/dist/index.html +7 -7
- package/.vitepress/dist/selector/index.html +9 -9
- package/.vitepress/dist/subscription/index.html +8 -8
- package/package.json +1 -1
- package/.vitepress/dist/assets/chunks/@localSearchIndexroot.DtIxhb-Z.js +0 -1
- package/.vitepress/dist/assets/guide_index.md.CXzBFX7o.js +0 -8
- package/.vitepress/dist/assets/guide_index.md.CXzBFX7o.lean.js +0 -8
- package/.vitepress/dist/assets/selector_index.md.Ds06LIQ1.js +0 -1
- package/.vitepress/dist/assets/subscription_index.md.CLJpTlet.lean.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as a,c as e,o,a4 as t}from"./chunks/framework.
|
|
1
|
+
import{_ as a,c as e,o,a4 as t}from"./chunks/framework.clGm--7Y.js";const b=JSON.parse('{"title":"RawSubscription","description":"","frontmatter":{},"headers":[],"relativePath":"api/interfaces/RawSubscription.md","filePath":"api/interfaces/RawSubscription.md","lastUpdated":null}'),r={name:"api/interfaces/RawSubscription.md"},s=t(`<h1 id="rawsubscription" tabindex="-1">RawSubscription <a class="header-anchor" href="#rawsubscription" aria-label="Permalink to "RawSubscription""></a></h1><p>订阅配置类型</p><h2 id="properties" tabindex="-1">Properties <a class="header-anchor" href="#properties" aria-label="Permalink to "Properties""></a></h2><h3 id="id" tabindex="-1">id <a class="header-anchor" href="#id" aria-label="Permalink to "id""></a></h3><blockquote><p><strong>id</strong>: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>当前订阅文件的标识, 如果新旧订阅文件id不一致则更新失败</p><p>负数 id 被 GKD 内部使用, 用户无法添加负数 id 的订阅</p><hr><h3 id="name" tabindex="-1">name <a class="header-anchor" href="#name" aria-label="Permalink to "name""></a></h3><blockquote><p><strong>name</strong>: <code>string</code></p></blockquote><p>订阅的名称</p><hr><h3 id="version" tabindex="-1">version <a class="header-anchor" href="#version" aria-label="Permalink to "version""></a></h3><blockquote><p><strong>version</strong>: <a href="./../type-aliases/Integer.html"><code>Integer</code></a></p></blockquote><p>订阅的版本号, 用于检测更新</p><p>只有当新订阅的 version 大于本地旧订阅的 version 才执行更新替换本地</p><hr><h3 id="author" tabindex="-1">author? <a class="header-anchor" href="#author" aria-label="Permalink to "author?""></a></h3><blockquote><p><strong>author</strong>?: <code>string</code></p></blockquote><p>作者名称</p><hr><h3 id="updateurl" tabindex="-1">updateUrl? <a class="header-anchor" href="#updateurl" aria-label="Permalink to "updateUrl?""></a></h3><blockquote><p><strong>updateUrl</strong>?: <code>string</code></p></blockquote><p>GKD 会定时或者用户手动刷新请求这个链接, 如果返回的订阅的 version 大于应用订阅当前的 version , 则更新</p><p>如果这个字段不存在, 则使用添加订阅时填写的链接</p><hr><h3 id="supporturi" tabindex="-1">supportUri? <a class="header-anchor" href="#supporturi" aria-label="Permalink to "supportUri?""></a></h3><blockquote><p><strong>supportUri</strong>?: <code>string</code></p></blockquote><p>一个自定义 uri 链接, 用户点击[用户反馈]时, 打开此链接</p><p>可以是一个网页链接, 也可以是一个应用内部的 uri 链接</p><hr><h3 id="checkupdateurl" tabindex="-1">checkUpdateUrl? <a class="header-anchor" href="#checkupdateurl" aria-label="Permalink to "checkUpdateUrl?""></a></h3><blockquote><p><strong>checkUpdateUrl</strong>?: <code>string</code></p></blockquote><p>一个只需要 id 和 version 的 json5 文件链接, 检测更新时, 优先检测此链接, 如果 id 相等并且 version 增加, 则再去请求 updateUrl</p><p>目的是防止订阅文件过大而消耗过多的流量, 如下是一个简单的示例</p><div class="language-json5 vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">json5</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{</span></span>
|
|
2
2
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> id</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">114514</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
|
|
3
3
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> version</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1919810</span></span>
|
|
4
4
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>支持相对地址, 如果 <a href="./RawSubscription.html#updateurl">updateUrl</a> 或者用户添加订阅时填写的链接是 <code>https://gkd.li/gkd.json5</code> 并且 <a href="./RawSubscription.html#checkupdateurl">checkUpdateUrl</a> 是 <code>./gkd.version.json5</code></p><p>那么最终请求的链接是 <code>https://gkd.li/gkd.version.json5</code></p><hr><h3 id="apps" tabindex="-1">apps? <a class="header-anchor" href="#apps" aria-label="Permalink to "apps?""></a></h3><blockquote><p><strong>apps</strong>?: <a href="./RawApp.html"><code>RawApp</code></a>[]</p></blockquote><p>此订阅的应用列表</p><hr><h3 id="globalgroups" tabindex="-1">globalGroups? <a class="header-anchor" href="#globalgroups" aria-label="Permalink to "globalGroups?""></a></h3><blockquote><p><strong>globalGroups</strong>?: <a href="./RawGlobalGroup.html"><code>RawGlobalGroup</code></a>[]</p></blockquote><p>此订阅的全局规则组列表</p><hr><h3 id="categories" tabindex="-1">categories? <a class="header-anchor" href="#categories" aria-label="Permalink to "categories?""></a></h3><blockquote><p><strong>categories</strong>?: <a href="./RawCategory.html"><code>RawCategory</code></a>[]</p></blockquote><p>此订阅的应用规则分类列表</p>`,50),i=[s];function p(n,l,h,c,d,u){return o(),e("div",null,i)}const g=a(r,[["render",p]]);export{b as __pageData,g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a,c as e,o,a4 as t}from"./chunks/framework.
|
|
1
|
+
import{_ as a,c as e,o,a4 as t}from"./chunks/framework.clGm--7Y.js";const b=JSON.parse('{"title":"RawSubscription","description":"","frontmatter":{},"headers":[],"relativePath":"api/interfaces/RawSubscription.md","filePath":"api/interfaces/RawSubscription.md","lastUpdated":null}'),r={name:"api/interfaces/RawSubscription.md"},s=t("",50),i=[s];function p(n,l,h,c,d,u){return o(),e("div",null,i)}const g=a(r,[["render",p]]);export{b as __pageData,g as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.
|
|
1
|
+
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.clGm--7Y.js";const E=JSON.parse('{"title":"IArrayT","description":"","frontmatter":{},"headers":[],"relativePath":"api/type-aliases/IArray.md","filePath":"api/type-aliases/IArray.md","lastUpdated":null}'),h={name:"api/type-aliases/IArray.md"},n=t(`<h1 id="iarrayt" tabindex="-1">IArray<T> <a class="header-anchor" href="#iarrayt" aria-label="Permalink to "IArray\\<T\\>""></a></h1><blockquote><p><strong>IArray</strong><<code>T</code>>: <code>T</code> | <code>T</code>[]</p></blockquote><p>一个或者多个值类型</p><h2 id="example" tabindex="-1">Example <a class="header-anchor" href="#example" aria-label="Permalink to "Example""></a></h2><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">const</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> n1</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">:</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> IArray</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">number</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">> </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 1</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">; </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// ✅</span></span>
|
|
2
2
|
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">const</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> n2</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">:</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> IArray</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">number</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">> </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">1</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">]; </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// ✅</span></span>
|
|
3
3
|
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">const</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> s1</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">:</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> IArray</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">string</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">> </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'hello'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">; </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// ✅</span></span>
|
|
4
4
|
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">const</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> a2</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">:</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> IArray</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">string</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">> </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> [</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'hello'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">]; </span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;">// ✅</span></span></code></pre></div><h2 id="type-parameters" tabindex="-1">Type parameters <a class="header-anchor" href="#type-parameters" aria-label="Permalink to "Type parameters""></a></h2><p>• <strong>T</strong></p>`,7),l=[n];function e(k,p,r,d,y,g){return a(),i("div",null,l)}const c=s(h,[["render",e]]);export{E as __pageData,c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.
|
|
1
|
+
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.clGm--7Y.js";const E=JSON.parse('{"title":"IArrayT","description":"","frontmatter":{},"headers":[],"relativePath":"api/type-aliases/IArray.md","filePath":"api/type-aliases/IArray.md","lastUpdated":null}'),h={name:"api/type-aliases/IArray.md"},n=t("",7),l=[n];function e(k,p,r,d,y,g){return a(),i("div",null,l)}const c=s(h,[["render",e]]);export{E as __pageData,c as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,c as a,o as t,a4 as s}from"./chunks/framework.
|
|
1
|
+
import{_ as e,c as a,o as t,a4 as s}from"./chunks/framework.clGm--7Y.js";const k=JSON.parse('{"title":"Integer","description":"","frontmatter":{},"headers":[],"relativePath":"api/type-aliases/Integer.md","filePath":"api/type-aliases/Integer.md","lastUpdated":null}'),i={name:"api/type-aliases/Integer.md"},n=s(`<h1 id="integer" tabindex="-1">Integer <a class="header-anchor" href="#integer" aria-label="Permalink to "Integer""></a></h1><blockquote><p><strong>Integer</strong>: <code>number</code> & <code>Object</code></p></blockquote><p>此类型表示一个整数</p><h2 id="example" tabindex="-1">Example <a class="header-anchor" href="#example" aria-label="Permalink to "Example""></a></h2><div class="language-ts vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ts</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">114514</span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> // ✅</span></span>
|
|
2
2
|
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">2.5</span><span style="--shiki-light:#6A737D;--shiki-dark:#6A737D;"> // ❌</span></span></code></pre></div><h2 id="type-declaration" tabindex="-1">Type declaration <a class="header-anchor" href="#type-declaration" aria-label="Permalink to "Type declaration""></a></h2>`,6),r=[n];function l(o,p,c,d,h,_){return t(),a("div",null,r)}const m=e(i,[["render",l]]);export{k as __pageData,m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,c as a,o as t,a4 as s}from"./chunks/framework.
|
|
1
|
+
import{_ as e,c as a,o as t,a4 as s}from"./chunks/framework.clGm--7Y.js";const k=JSON.parse('{"title":"Integer","description":"","frontmatter":{},"headers":[],"relativePath":"api/type-aliases/Integer.md","filePath":"api/type-aliases/Integer.md","lastUpdated":null}'),i={name:"api/type-aliases/Integer.md"},n=s("",6),r=[n];function l(o,p,c,d,h,_){return t(),a("div",null,r)}const m=e(i,[["render",l]]);export{k as __pageData,m as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.
|
|
1
|
+
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.clGm--7Y.js";const E=JSON.parse('{"title":"Position","description":"","frontmatter":{},"headers":[],"relativePath":"api/type-aliases/Position.md","filePath":"api/type-aliases/Position.md","lastUpdated":null}'),e={name:"api/type-aliases/Position.md"},n=t(`<h1 id="position" tabindex="-1">Position <a class="header-anchor" href="#position" aria-label="Permalink to "Position""></a></h1><blockquote><p><strong>Position</strong>: <code>Object</code></p></blockquote><p>位置类型, 用以描述自定义点击位置</p><p>使用 left/top/right/bottom 四条边实现定位, 此对象只能有两个属性, 也就是两条相邻边</p><p>合法的定位组合为: left-top, left-bottom, right-top, right-bottom</p><p>示例1-点击目标节点的中心</p><div class="language-json5 vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">json5</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{</span></span>
|
|
2
2
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> left</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'width/2'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
|
|
3
3
|
<span class="line"><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> top</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">'height/2'</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">,</span></span>
|
|
4
4
|
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><p>示例2-点击目标节点的左上顶点</p><div class="language-json5 vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">json5</span><pre class="shiki shiki-themes github-light github-dark vp-code"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">{</span></span>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.
|
|
1
|
+
import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.clGm--7Y.js";const E=JSON.parse('{"title":"Position","description":"","frontmatter":{},"headers":[],"relativePath":"api/type-aliases/Position.md","filePath":"api/type-aliases/Position.md","lastUpdated":null}'),e={name:"api/type-aliases/Position.md"},n=t("",30),l=[n];function p(h,o,r,k,d,c){return a(),i("div",null,l)}const b=s(e,[["render",p]]);export{E as __pageData,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as o,a8 as p,a9 as u,aa as l,ab as c,ac as f,ad as d,ae as m,af as h,ag as g,ah as A,Y as P,d as _,u as v,k as y,y as R,ai as w,aj as C,ak as E,al as b}from"./chunks/framework.
|
|
1
|
+
import{V as o,a8 as p,a9 as u,aa as l,ab as c,ac as f,ad as d,ae as m,af as h,ag as g,ah as A,Y as P,d as _,u as v,k as y,y as R,ai as w,aj as C,ak as E,al as b}from"./chunks/framework.clGm--7Y.js";import{R as T}from"./chunks/theme.Nc1B0uCn.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(T),S=_({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=v();return y(()=>{R(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&w(),C(),E(),s.setup&&s.setup(),()=>b(s.Layout)}});async function D(){globalThis.__VITEPRESS__=!0;const e=j(),a=V();a.provide(u,e);const t=l(e.route);return a.provide(c,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function V(){return h(S)}function j(){let e=o,a;return g(t=>{let n=A(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=P(()=>import(((u)=>{if(u.startsWith('/')){return"https://registry.npmmirror.com/@gkd-kit/docs/0.0.1719073114309/files/.vitepress/dist"+u}return u})(n)),[])),o&&(e=!1),r},s.NotFound)}o&&D().then(({app:e,router:a,data:t})=>{a.go().then(()=>{p(a.route,t.site),e.mount("#app")})});export{D as createApp};
|