mirror of
https://github.com/snowykami/mbcp.git
synced 2024-11-22 22:27:38 +08:00
459 lines
38 KiB
HTML
459 lines
38 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-Hans" dir="ltr">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||
<title>Runtime API Examples | MBCP docs</title>
|
||
<meta name="description" content="一个用于Minecraft粒子计算和生成的库">
|
||
<meta name="generator" content="VitePress v1.3.4">
|
||
<link rel="preload stylesheet" href="/assets/style.Bb0QBJmh.css" as="style">
|
||
|
||
<script type="module" src="/assets/app.l1Ut0uce.js"></script>
|
||
<link rel="preload" href="/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
||
<link rel="modulepreload" href="/assets/chunks/theme.BPuUWxkA.js">
|
||
<link rel="modulepreload" href="/assets/chunks/framework.BV61Qrc0.js">
|
||
<link rel="modulepreload" href="/assets/api-ex.md.DOsKaL8H.lean.js">
|
||
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
|
||
<script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
|
||
</head>
|
||
<body>
|
||
<div id="app"><div class="Layout" data-v-8e016544><!--[--><!--]--><!--[--><span tabindex="-1" data-v-efdf7a7d></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-efdf7a7d> Skip to content </a><!--]--><!----><header class="VPNav" data-v-8e016544 data-v-0c3b3583><div class="VPNavBar top" data-v-0c3b3583 data-v-af8d762d><div class="wrapper" data-v-af8d762d><div class="container" data-v-af8d762d><div class="title" data-v-af8d762d><div class="VPNavBarTitle" data-v-af8d762d data-v-73c882b0><a class="title" href="/" data-v-73c882b0><!--[--><!--]--><!----><span data-v-73c882b0>MBCP docs</span><!--[--><!--]--></a></div></div><div class="content" data-v-af8d762d><div class="content-body" data-v-af8d762d><!--[--><!--]--><div class="VPNavBarSearch search" data-v-af8d762d><!----></div><nav aria-labelledby="main-nav-aria-label" class="VPNavBarMenu menu" data-v-af8d762d data-v-ae469694><span id="main-nav-aria-label" class="visually-hidden" data-v-ae469694> Main Navigation </span><!--[--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/guide/" tabindex="0" data-v-ae469694 data-v-4ca2fdac><!--[--><span data-v-4ca2fdac>快速开始</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/api/" tabindex="0" data-v-ae469694 data-v-4ca2fdac><!--[--><span data-v-4ca2fdac>API文档</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/demo/" tabindex="0" data-v-ae469694 data-v-4ca2fdac><!--[--><span data-v-4ca2fdac>实例</span><!--]--></a><!--]--><!--]--></nav><div class="VPFlyout VPNavBarTranslations translations" data-v-af8d762d data-v-ba521018 data-v-6d56b0ed><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="Change language" data-v-6d56b0ed><span class="text" data-v-6d56b0ed><span class="vpi-languages option-icon" data-v-6d56b0ed></span><!----><span class="vpi-chevron-down text-icon" data-v-6d56b0ed></span></span></button><div class="menu" data-v-6d56b0ed><div class="VPMenu" data-v-6d56b0ed data-v-36a6a4be><!----><!--[--><!--[--><div class="items" data-v-ba521018><p class="title" data-v-ba521018>简体中文</p><!--[--><div class="VPMenuLink" data-v-ba521018 data-v-a9b5eada><a class="VPLink link" href="/en/api-ex.html" data-v-a9b5eada><!--[-->English<!--]--></a></div><div class="VPMenuLink" data-v-ba521018 data-v-a9b5eada><a class="VPLink link" href="/ja/api-ex.html" data-v-a9b5eada><!--[-->日本語<!--]--></a></div><!--]--></div><!--]--><!--]--></div></div></div><div class="VPNavBarAppearance appearance" data-v-af8d762d data-v-fd625bab><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title="Switch to dark theme" aria-checked="false" data-v-fd625bab data-v-38c704f2 data-v-793caf05><span class="check" data-v-793caf05><span class="icon" data-v-793caf05><!--[--><span class="vpi-sun sun" data-v-38c704f2></span><span class="vpi-moon moon" data-v-38c704f2></span><!--]--></span></span></button></div><div class="VPSocialLinks VPNavBarSocialLinks social-links" data-v-af8d762d data-v-9b3d2141 data-v-0ada25a4><!--[--><a class="VPSocialLink no-icon" href="https://github.com/snowykami/mbcp" aria-label="github" target="_blank" rel="noopener" data-v-0ada25a4 data-v-36d54f99><span class="vpi-social-github" /></a><!--]--></div><div class="VPFlyout VPNavBarExtra extra" data-v-af8d762d data-v-8ac0e455 data-v-6d56b0ed><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-6d56b0ed><span class="vpi-more-horizontal icon" data-v-6d56b0ed></span></button><div class="menu" data-v-6d56b0ed><div class="VPMenu" data-v-6d56b0ed data-v-36a6a4be><!----><!--[--><!--[--><div class="group translations" data-v-8ac0e455><p class="trans-title" data-v-8ac0e455>简体中文</p><!--[--><div class="VPMenuLink" data-v-8ac0e455 data-v-a9b5eada><a class="VPLink link" href="/en/api-ex.html" data-v-a9b5eada><!--[-->English<!--]--></a></div><div class="VPMenuLink" data-v-8ac0e455 data-v-a9b5eada><a class="VPLink link" href="/ja/api-ex.html" data-v-a9b5eada><!--[-->日本語<!--]--></a></div><!--]--></div><div class="group" data-v-8ac0e455><div class="item appearance" data-v-8ac0e455><p class="label" data-v-8ac0e455>Appearance</p><div class="appearance-action" data-v-8ac0e455><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title="Switch to dark theme" aria-checked="false" data-v-8ac0e455 data-v-38c704f2 data-v-793caf05><span class="check" data-v-793caf05><span class="icon" data-v-793caf05><!--[--><span class="vpi-sun sun" data-v-38c704f2></span><span class="vpi-moon moon" data-v-38c704f2></span><!--]--></span></span></button></div></div></div><div class="group" data-v-8ac0e455><div class="item social-links" data-v-8ac0e455><div class="VPSocialLinks social-links-list" data-v-8ac0e455 data-v-0ada25a4><!--[--><a class="VPSocialLink no-icon" href="https://github.com/snowykami/mbcp" aria-label="github" target="_blank" rel="noopener" data-v-0ada25a4 data-v-36d54f99><span class="vpi-social-github" /></a><!--]--></div></div></div><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-af8d762d data-v-9b302893><span class="container" data-v-9b302893><span class="top" data-v-9b302893></span><span class="middle" data-v-9b302893></span><span class="bottom" data-v-9b302893></span></span></button></div></div></div></div><div class="divider" data-v-af8d762d><div class="divider-line" data-v-af8d762d></div></div></div><!----></header><div class="VPLocalNav empty fixed" data-v-8e016544 data-v-513d39e6><div class="container" data-v-513d39e6><!----><div class="VPLocalNavOutlineDropdown" style="--vp-vh:0px;" data-v-513d39e6 data-v-c4b0adf9><button data-v-c4b0adf9>Return to top</button><!----></div></div></div><!----><div class="VPContent" id="VPContent" data-v-8e016544 data-v-4fa77a91><div class="VPDoc has-aside" data-v-4fa77a91 data-v-aa782c77><!--[--><!--]--><div class="container" data-v-aa782c77><div class="aside" data-v-aa782c77><div class="aside-curtain" data-v-aa782c77></div><div class="aside-container" data-v-aa782c77><div class="aside-content" data-v-aa782c77><div class="VPDocAside" data-v-aa782c77 data-v-9030d96a><!--[--><!--]--><!--[--><!--]--><nav aria-labelledby="doc-outline-aria-label" class="VPDocAsideOutline" data-v-9030d96a data-v-e9eccece><div class="content" data-v-e9eccece><div class="outline-marker" data-v-e9eccece></div><div aria-level="2" class="outline-title" id="doc-outline-aria-label" role="heading" data-v-e9eccece>On this page</div><ul class="VPDocOutlineItem root" data-v-e9eccece data-v-f55eb20b><!--[--><!--]--></ul></div></nav><!--[--><!--]--><div class="spacer" data-v-9030d96a></div><!--[--><!--]--><!----><!--[--><!--]--><!--[--><!--]--></div></div></div></div><div class="content" data-v-aa782c77><div class="content-container" data-v-aa782c77><!--[--><!--]--><main class="main" data-v-aa782c77><div style="position:relative;" class="vp-doc _api-ex" data-v-aa782c77><div><h1 id="runtime-api-examples" tabindex="-1">Runtime API Examples <a class="header-anchor" href="#runtime-api-examples" aria-label="Permalink to "Runtime API Examples""></a></h1><p>This page demonstrates usage of some of the runtime APIs provided by VitePress.</p><p>The main <code>useData()</code> API can be used to access site, theme, and page data for the current page. It works in both <code>.md</code> and <code>.vue</code> files:</p><div class="language-md vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">md</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">script</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> setup</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
||
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">import</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { useData } </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">from</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 'vitepress'</span></span>
|
||
<span class="line"></span>
|
||
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">const</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> { </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">theme</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">page</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">frontmatter</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> } </span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> useData</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">()</span></span>
|
||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"></</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">script</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
||
<span class="line"></span>
|
||
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;--shiki-light-font-weight:bold;--shiki-dark-font-weight:bold;">## Results</span></span>
|
||
<span class="line"></span>
|
||
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;--shiki-light-font-weight:bold;--shiki-dark-font-weight:bold;">### Theme Data</span></span>
|
||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">pre</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>{{ theme }}</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">pre</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
||
<span class="line"></span>
|
||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">### Page Data</span></span>
|
||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">pre</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>{{ page }}</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">pre</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span>
|
||
<span class="line"></span>
|
||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">### Page Frontmatter</span></span>
|
||
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"><</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">pre</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">>{{ frontmatter }}</</span><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">pre</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">></span></span></code></pre></div><h2 id="results" tabindex="-1">Results <a class="header-anchor" href="#results" aria-label="Permalink to "Results""></a></h2><h3 id="theme-data" tabindex="-1">Theme Data <a class="header-anchor" href="#theme-data" aria-label="Permalink to "Theme Data""></a></h3><pre>{
|
||
"socialLinks": [
|
||
{
|
||
"icon": "github",
|
||
"link": "https://github.com/snowykami/mbcp"
|
||
}
|
||
],
|
||
"sidebar": {
|
||
"/api/": [
|
||
{
|
||
"text": "api",
|
||
"items": [
|
||
{
|
||
"text": "mbcp",
|
||
"link": "/api/index.md"
|
||
},
|
||
{
|
||
"text": "mp_math",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.mp_math",
|
||
"link": "/api/mp_math/index.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.angle",
|
||
"link": "/api/mp_math/angle.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.const",
|
||
"link": "/api/mp_math/const.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.equation",
|
||
"link": "/api/mp_math/equation.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.line",
|
||
"link": "/api/mp_math/line.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.mp_math_typing",
|
||
"link": "/api/mp_math/mp_math_typing.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.plane",
|
||
"link": "/api/mp_math/plane.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.point",
|
||
"link": "/api/mp_math/point.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.segment",
|
||
"link": "/api/mp_math/segment.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.utils",
|
||
"link": "/api/mp_math/utils.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.vector",
|
||
"link": "/api/mp_math/vector.md"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"text": "particle",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.particle",
|
||
"link": "/api/particle/index.md"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"text": "presets",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.presets",
|
||
"link": "/api/presets/index.md"
|
||
},
|
||
{
|
||
"text": "model",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.presets.model",
|
||
"link": "/api/presets/model/index.md"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"/guide/": [
|
||
{
|
||
"text": "guide",
|
||
"items": [
|
||
{
|
||
"text": "开始不了一点",
|
||
"link": "/guide/index.md"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"/en/": [
|
||
{
|
||
"text": "en",
|
||
"items": [
|
||
{
|
||
"text": "api",
|
||
"items": [
|
||
{
|
||
"text": "mbcp",
|
||
"link": "/en/api/index.md"
|
||
},
|
||
{
|
||
"text": "mp_math",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.mp_math",
|
||
"link": "/en/api/mp_math/index.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.angle",
|
||
"link": "/en/api/mp_math/angle.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.const",
|
||
"link": "/en/api/mp_math/const.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.equation",
|
||
"link": "/en/api/mp_math/equation.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.line",
|
||
"link": "/en/api/mp_math/line.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.mp_math_typing",
|
||
"link": "/en/api/mp_math/mp_math_typing.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.plane",
|
||
"link": "/en/api/mp_math/plane.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.point",
|
||
"link": "/en/api/mp_math/point.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.segment",
|
||
"link": "/en/api/mp_math/segment.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.utils",
|
||
"link": "/en/api/mp_math/utils.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.vector",
|
||
"link": "/en/api/mp_math/vector.md"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"text": "particle",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.particle",
|
||
"link": "/en/api/particle/index.md"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"text": "presets",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.presets",
|
||
"link": "/en/api/presets/index.md"
|
||
},
|
||
{
|
||
"text": "model",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.presets.model",
|
||
"link": "/en/api/presets/model/index.md"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"/ja/": [
|
||
{
|
||
"text": "ja",
|
||
"items": [
|
||
{
|
||
"text": "api",
|
||
"items": [
|
||
{
|
||
"text": "mbcp",
|
||
"link": "/ja/api/index.md"
|
||
},
|
||
{
|
||
"text": "mp_math",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.mp_math",
|
||
"link": "/ja/api/mp_math/index.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.angle",
|
||
"link": "/ja/api/mp_math/angle.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.const",
|
||
"link": "/ja/api/mp_math/const.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.equation",
|
||
"link": "/ja/api/mp_math/equation.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.line",
|
||
"link": "/ja/api/mp_math/line.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.mp_math_typing",
|
||
"link": "/ja/api/mp_math/mp_math_typing.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.plane",
|
||
"link": "/ja/api/mp_math/plane.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.point",
|
||
"link": "/ja/api/mp_math/point.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.segment",
|
||
"link": "/ja/api/mp_math/segment.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.utils",
|
||
"link": "/ja/api/mp_math/utils.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.vector",
|
||
"link": "/ja/api/mp_math/vector.md"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"text": "particle",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.particle",
|
||
"link": "/ja/api/particle/index.md"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"text": "presets",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.presets",
|
||
"link": "/ja/api/presets/index.md"
|
||
},
|
||
{
|
||
"text": "model",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.presets.model",
|
||
"link": "/ja/api/presets/model/index.md"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"/zh-Hant/": [
|
||
{
|
||
"text": "zh-hant",
|
||
"items": [
|
||
{
|
||
"text": "api",
|
||
"items": [
|
||
{
|
||
"text": "mbcp",
|
||
"link": "/zh-Hant/api/index.md"
|
||
},
|
||
{
|
||
"text": "mp_math",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.mp_math",
|
||
"link": "/zh-Hant/api/mp_math/index.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.angle",
|
||
"link": "/zh-Hant/api/mp_math/angle.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.const",
|
||
"link": "/zh-Hant/api/mp_math/const.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.equation",
|
||
"link": "/zh-Hant/api/mp_math/equation.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.line",
|
||
"link": "/zh-Hant/api/mp_math/line.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.mp_math_typing",
|
||
"link": "/zh-Hant/api/mp_math/mp_math_typing.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.plane",
|
||
"link": "/zh-Hant/api/mp_math/plane.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.point",
|
||
"link": "/zh-Hant/api/mp_math/point.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.segment",
|
||
"link": "/zh-Hant/api/mp_math/segment.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.utils",
|
||
"link": "/zh-Hant/api/mp_math/utils.md"
|
||
},
|
||
{
|
||
"text": "mbcp.mp_math.vector",
|
||
"link": "/zh-Hant/api/mp_math/vector.md"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"text": "particle",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.particle",
|
||
"link": "/zh-Hant/api/particle/index.md"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"text": "presets",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.presets",
|
||
"link": "/zh-Hant/api/presets/index.md"
|
||
},
|
||
{
|
||
"text": "model",
|
||
"items": [
|
||
{
|
||
"text": "mbcp.presets.model",
|
||
"link": "/zh-Hant/api/presets/model/index.md"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"/api-ex.md/": [
|
||
{
|
||
"text": "Runtime API Examples",
|
||
"items": []
|
||
}
|
||
],
|
||
"/md-ex.md/": [
|
||
{
|
||
"text": "Markdown Extension Examples",
|
||
"items": []
|
||
}
|
||
]
|
||
},
|
||
"nav": [
|
||
{
|
||
"text": "快速开始",
|
||
"link": "/guide/"
|
||
},
|
||
{
|
||
"text": "API文档",
|
||
"link": "/api/"
|
||
},
|
||
{
|
||
"text": "实例",
|
||
"link": "/demo/"
|
||
}
|
||
]
|
||
}</pre><h3 id="page-data" tabindex="-1">Page Data <a class="header-anchor" href="#page-data" aria-label="Permalink to "Page Data""></a></h3><pre>{
|
||
"title": "Runtime API Examples",
|
||
"description": "",
|
||
"frontmatter": {
|
||
"outline": "deep"
|
||
},
|
||
"headers": [],
|
||
"relativePath": "api-ex.md",
|
||
"filePath": "api-ex.md"
|
||
}</pre><h3 id="page-frontmatter" tabindex="-1">Page Frontmatter <a class="header-anchor" href="#page-frontmatter" aria-label="Permalink to "Page Frontmatter""></a></h3><pre>{
|
||
"outline": "deep"
|
||
}</pre><h2 id="more" tabindex="-1">More <a class="header-anchor" href="#more" aria-label="Permalink to "More""></a></h2><p>Check out the documentation for the <a href="https://vitepress.dev/reference/runtime-api#usedata" target="_blank" rel="noreferrer">full list of runtime APIs</a>.</p></div></div></main><footer class="VPDocFooter" data-v-aa782c77 data-v-f33b051d><!--[--><!--]--><!----><!----></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><!----><!--[--><!--]--></div></div>
|
||
<script>window.__VP_HASH_MAP__=JSON.parse("{\"api-ex.md\":\"DOsKaL8H\",\"api_index.md\":\"BvazTqTB\",\"api_mp_math_angle.md\":\"DKMXAFbW\",\"api_mp_math_const.md\":\"Bc1LxtcU\",\"api_mp_math_equation.md\":\"CZgns297\",\"api_mp_math_index.md\":\"4P0hk6gb\",\"api_mp_math_line.md\":\"DHofgyJO\",\"api_mp_math_mp_math_typing.md\":\"BHJOAxTl\",\"api_mp_math_plane.md\":\"DZBu-HIq\",\"api_mp_math_point.md\":\"CGqzS8ew\",\"api_mp_math_segment.md\":\"B0wRl0bP\",\"api_mp_math_utils.md\":\"C9bdphO4\",\"api_mp_math_vector.md\":\"BEh63_ZE\",\"api_particle_index.md\":\"BRCSxC3e\",\"api_presets_index.md\":\"Dl6Ss91J\",\"api_presets_model_index.md\":\"DLrch_Ju\",\"en_api_index.md\":\"Bgu-LD1B\",\"en_api_mp_math_angle.md\":\"DYZo7hBD\",\"en_api_mp_math_const.md\":\"DfcWuGeV\",\"en_api_mp_math_equation.md\":\"BQv4WWiJ\",\"en_api_mp_math_index.md\":\"DrjDUYBY\",\"en_api_mp_math_line.md\":\"CAJnDKCu\",\"en_api_mp_math_mp_math_typing.md\":\"Dh1by9kw\",\"en_api_mp_math_plane.md\":\"B-VJJllR\",\"en_api_mp_math_point.md\":\"CCE-yfrm\",\"en_api_mp_math_segment.md\":\"CUQFMm0Q\",\"en_api_mp_math_utils.md\":\"CuiyHRtY\",\"en_api_mp_math_vector.md\":\"3xep9oDm\",\"en_api_particle_index.md\":\"CmC1QX5o\",\"en_api_presets_index.md\":\"CZ5hl_7D\",\"en_api_presets_model_index.md\":\"1ewGi0do\",\"guide_index.md\":\"BE2yloik\",\"index.md\":\"BE1qChTt\",\"ja_api_index.md\":\"4BnflFIm\",\"ja_api_mp_math_angle.md\":\"_xBKQuir\",\"ja_api_mp_math_const.md\":\"CQY-Qdbh\",\"ja_api_mp_math_equation.md\":\"BETlifwh\",\"ja_api_mp_math_index.md\":\"CSAMHYsB\",\"ja_api_mp_math_line.md\":\"Ck5uy5Cp\",\"ja_api_mp_math_mp_math_typing.md\":\"CeASNaiE\",\"ja_api_mp_math_plane.md\":\"C5qFtY92\",\"ja_api_mp_math_point.md\":\"Cc_RLeth\",\"ja_api_mp_math_segment.md\":\"oiONXysZ\",\"ja_api_mp_math_utils.md\":\"Dgzoi9ec\",\"ja_api_mp_math_vector.md\":\"kN2P6bpC\",\"ja_api_particle_index.md\":\"E2YnH7EN\",\"ja_api_presets_index.md\":\"ATGcHt9d\",\"ja_api_presets_model_index.md\":\"QP3v3mpP\",\"md-ex.md\":\"BX0WqOqv\",\"zh-hant_api_index.md\":\"D-iBkJb-\",\"zh-hant_api_mp_math_angle.md\":\"eKQSpiMX\",\"zh-hant_api_mp_math_const.md\":\"B_tZ9wL7\",\"zh-hant_api_mp_math_equation.md\":\"DPinrp8_\",\"zh-hant_api_mp_math_index.md\":\"B8NLV8Cf\",\"zh-hant_api_mp_math_line.md\":\"B-s8aLxY\",\"zh-hant_api_mp_math_mp_math_typing.md\":\"DOwDUOu8\",\"zh-hant_api_mp_math_plane.md\":\"B60Bzq3i\",\"zh-hant_api_mp_math_point.md\":\"BEsHV_8G\",\"zh-hant_api_mp_math_segment.md\":\"C-4eJk-Y\",\"zh-hant_api_mp_math_utils.md\":\"z2lMMpnT\",\"zh-hant_api_mp_math_vector.md\":\"n5Efae6D\",\"zh-hant_api_particle_index.md\":\"BlduIPtw\",\"zh-hant_api_presets_index.md\":\"CDyg87e9\",\"zh-hant_api_presets_model_index.md\":\"DCHpjjZ_\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"MBCP docs\",\"description\":\"MBCP library docs\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/snowykami/mbcp\"}],\"sidebar\":{\"/api/\":[{\"text\":\"api\",\"items\":[{\"text\":\"mbcp\",\"link\":\"/api/index.md\"},{\"text\":\"mp_math\",\"items\":[{\"text\":\"mbcp.mp_math\",\"link\":\"/api/mp_math/index.md\"},{\"text\":\"mbcp.mp_math.angle\",\"link\":\"/api/mp_math/angle.md\"},{\"text\":\"mbcp.mp_math.const\",\"link\":\"/api/mp_math/const.md\"},{\"text\":\"mbcp.mp_math.equation\",\"link\":\"/api/mp_math/equation.md\"},{\"text\":\"mbcp.mp_math.line\",\"link\":\"/api/mp_math/line.md\"},{\"text\":\"mbcp.mp_math.mp_math_typing\",\"link\":\"/api/mp_math/mp_math_typing.md\"},{\"text\":\"mbcp.mp_math.plane\",\"link\":\"/api/mp_math/plane.md\"},{\"text\":\"mbcp.mp_math.point\",\"link\":\"/api/mp_math/point.md\"},{\"text\":\"mbcp.mp_math.segment\",\"link\":\"/api/mp_math/segment.md\"},{\"text\":\"mbcp.mp_math.utils\",\"link\":\"/api/mp_math/utils.md\"},{\"text\":\"mbcp.mp_math.vector\",\"link\":\"/api/mp_math/vector.md\"}]},{\"text\":\"particle\",\"items\":[{\"text\":\"mbcp.particle\",\"link\":\"/api/particle/index.md\"}]},{\"text\":\"presets\",\"items\":[{\"text\":\"mbcp.presets\",\"link\":\"/api/presets/index.md\"},{\"text\":\"model\",\"items\":[{\"text\":\"mbcp.presets.model\",\"link\":\"/api/presets/model/index.md\"}]}]}]}],\"/guide/\":[{\"text\":\"guide\",\"items\":[{\"text\":\"开始不了一点\",\"link\":\"/guide/index.md\"}]}],\"/en/\":[{\"text\":\"en\",\"items\":[{\"text\":\"api\",\"items\":[{\"text\":\"mbcp\",\"link\":\"/en/api/index.md\"},{\"text\":\"mp_math\",\"items\":[{\"text\":\"mbcp.mp_math\",\"link\":\"/en/api/mp_math/index.md\"},{\"text\":\"mbcp.mp_math.angle\",\"link\":\"/en/api/mp_math/angle.md\"},{\"text\":\"mbcp.mp_math.const\",\"link\":\"/en/api/mp_math/const.md\"},{\"text\":\"mbcp.mp_math.equation\",\"link\":\"/en/api/mp_math/equation.md\"},{\"text\":\"mbcp.mp_math.line\",\"link\":\"/en/api/mp_math/line.md\"},{\"text\":\"mbcp.mp_math.mp_math_typing\",\"link\":\"/en/api/mp_math/mp_math_typing.md\"},{\"text\":\"mbcp.mp_math.plane\",\"link\":\"/en/api/mp_math/plane.md\"},{\"text\":\"mbcp.mp_math.point\",\"link\":\"/en/api/mp_math/point.md\"},{\"text\":\"mbcp.mp_math.segment\",\"link\":\"/en/api/mp_math/segment.md\"},{\"text\":\"mbcp.mp_math.utils\",\"link\":\"/en/api/mp_math/utils.md\"},{\"text\":\"mbcp.mp_math.vector\",\"link\":\"/en/api/mp_math/vector.md\"}]},{\"text\":\"particle\",\"items\":[{\"text\":\"mbcp.particle\",\"link\":\"/en/api/particle/index.md\"}]},{\"text\":\"presets\",\"items\":[{\"text\":\"mbcp.presets\",\"link\":\"/en/api/presets/index.md\"},{\"text\":\"model\",\"items\":[{\"text\":\"mbcp.presets.model\",\"link\":\"/en/api/presets/model/index.md\"}]}]}]}]}],\"/ja/\":[{\"text\":\"ja\",\"items\":[{\"text\":\"api\",\"items\":[{\"text\":\"mbcp\",\"link\":\"/ja/api/index.md\"},{\"text\":\"mp_math\",\"items\":[{\"text\":\"mbcp.mp_math\",\"link\":\"/ja/api/mp_math/index.md\"},{\"text\":\"mbcp.mp_math.angle\",\"link\":\"/ja/api/mp_math/angle.md\"},{\"text\":\"mbcp.mp_math.const\",\"link\":\"/ja/api/mp_math/const.md\"},{\"text\":\"mbcp.mp_math.equation\",\"link\":\"/ja/api/mp_math/equation.md\"},{\"text\":\"mbcp.mp_math.line\",\"link\":\"/ja/api/mp_math/line.md\"},{\"text\":\"mbcp.mp_math.mp_math_typing\",\"link\":\"/ja/api/mp_math/mp_math_typing.md\"},{\"text\":\"mbcp.mp_math.plane\",\"link\":\"/ja/api/mp_math/plane.md\"},{\"text\":\"mbcp.mp_math.point\",\"link\":\"/ja/api/mp_math/point.md\"},{\"text\":\"mbcp.mp_math.segment\",\"link\":\"/ja/api/mp_math/segment.md\"},{\"text\":\"mbcp.mp_math.utils\",\"link\":\"/ja/api/mp_math/utils.md\"},{\"text\":\"mbcp.mp_math.vector\",\"link\":\"/ja/api/mp_math/vector.md\"}]},{\"text\":\"particle\",\"items\":[{\"text\":\"mbcp.particle\",\"link\":\"/ja/api/particle/index.md\"}]},{\"text\":\"presets\",\"items\":[{\"text\":\"mbcp.presets\",\"link\":\"/ja/api/presets/index.md\"},{\"text\":\"model\",\"items\":[{\"text\":\"mbcp.presets.model\",\"link\":\"/ja/api/presets/model/index.md\"}]}]}]}]}],\"/zh-Hant/\":[{\"text\":\"zh-hant\",\"items\":[{\"text\":\"api\",\"items\":[{\"text\":\"mbcp\",\"link\":\"/zh-Hant/api/index.md\"},{\"text\":\"mp_math\",\"items\":[{\"text\":\"mbcp.mp_math\",\"link\":\"/zh-Hant/api/mp_math/index.md\"},{\"text\":\"mbcp.mp_math.angle\",\"link\":\"/zh-Hant/api/mp_math/angle.md\"},{\"text\":\"mbcp.mp_math.const\",\"link\":\"/zh-Hant/api/mp_math/const.md\"},{\"text\":\"mbcp.mp_math.equation\",\"link\":\"/zh-Hant/api/mp_math/equation.md\"},{\"text\":\"mbcp.mp_math.line\",\"link\":\"/zh-Hant/api/mp_math/line.md\"},{\"text\":\"mbcp.mp_math.mp_math_typing\",\"link\":\"/zh-Hant/api/mp_math/mp_math_typing.md\"},{\"text\":\"mbcp.mp_math.plane\",\"link\":\"/zh-Hant/api/mp_math/plane.md\"},{\"text\":\"mbcp.mp_math.point\",\"link\":\"/zh-Hant/api/mp_math/point.md\"},{\"text\":\"mbcp.mp_math.segment\",\"link\":\"/zh-Hant/api/mp_math/segment.md\"},{\"text\":\"mbcp.mp_math.utils\",\"link\":\"/zh-Hant/api/mp_math/utils.md\"},{\"text\":\"mbcp.mp_math.vector\",\"link\":\"/zh-Hant/api/mp_math/vector.md\"}]},{\"text\":\"particle\",\"items\":[{\"text\":\"mbcp.particle\",\"link\":\"/zh-Hant/api/particle/index.md\"}]},{\"text\":\"presets\",\"items\":[{\"text\":\"mbcp.presets\",\"link\":\"/zh-Hant/api/presets/index.md\"},{\"text\":\"model\",\"items\":[{\"text\":\"mbcp.presets.model\",\"link\":\"/zh-Hant/api/presets/model/index.md\"}]}]}]}]}],\"/api-ex.md/\":[{\"text\":\"Runtime API Examples\",\"items\":[]}],\"/md-ex.md/\":[{\"text\":\"Markdown Extension Examples\",\"items\":[]}]}},\"locales\":{\"root\":{\"label\":\"简体中文\",\"lang\":\"zh-Hans\",\"description\":\"一个用于Minecraft粒子计算和生成的库\",\"themeConfig\":{\"nav\":[{\"text\":\"快速开始\",\"link\":\"/guide/\"},{\"text\":\"API文档\",\"link\":\"/api/\"},{\"text\":\"实例\",\"link\":\"/demo/\"}]}},\"en\":{\"label\":\"English\",\"lang\":\"en-US\",\"description\":\"A library made for Minecraft particle generation\",\"themeConfig\":{\"nav\":[{\"text\":\"Get Start\",\"link\":\"/guide\"},{\"text\":\"API Document\",\"link\":\"/api/\"},{\"text\":\"Demo\",\"link\":\"/demo/\"}]}},\"ja\":{\"label\":\"日本語\",\"lang\":\"ja-JP\",\"description\":\"Minecraftのパーティクル生成用のライブラリ\",\"themeConfig\":{\"nav\":[{\"text\":\"スタート\",\"link\":\"/guide\"},{\"text\":\"APIドキュメント\",\"link\":\"/api/\"},{\"text\":\"インスタンス\",\"link\":\"/demo/\"}]}}},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
|
||
|
||
</body>
|
||
</html> |