@vc-shell/framework 2.0.0-alpha.7 → 2.0.0-alpha.8
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/CHANGELOG.md +13 -0
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/plugins/modularity/index.d.ts +0 -2
- package/dist/core/plugins/modularity/index.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-select/composables/index.d.ts +1 -3
- package/dist/ui/components/molecules/vc-select/composables/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/composables/useSelectDataSource.d.ts +30 -0
- package/dist/ui/components/molecules/vc-select/composables/useSelectDataSource.d.ts.map +1 -0
- package/dist/ui/components/molecules/vc-select/composables/useSelectSelection.d.ts +3 -2
- package/dist/ui/components/molecules/vc-select/composables/useSelectSelection.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/assets/042c75b764bc78a7.svg +0 -1
- package/dist/assets/0ba156439a339f2a.svg +0 -1
- package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
- package/dist/assets/0d67e9e056b4c500.woff +0 -0
- package/dist/assets/0f590f8a94577092.svg +0 -1
- package/dist/assets/0fc5820f8be53a1b.svg +0 -1
- package/dist/assets/105efd028edc1dfe.woff +0 -0
- package/dist/assets/10768e2cc79fc60b.svg +0 -1
- package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
- package/dist/assets/131b34336aedaf47.woff +0 -0
- package/dist/assets/154365acf3010d96.woff2 +0 -0
- package/dist/assets/157b8721e0600ea8.svg +0 -1
- package/dist/assets/15e91cdd649cde9a.svg +0 -1
- package/dist/assets/19275e398ae57130.woff2 +0 -0
- package/dist/assets/19bb1c668a5db39f.woff2 +0 -0
- package/dist/assets/1a3e84b2457f709a.woff +0 -0
- package/dist/assets/1de63eb118636cce.svg +0 -1
- package/dist/assets/1ea01de36eb5491b.svg +0 -1
- package/dist/assets/2010ada3e82156ed.woff +0 -0
- package/dist/assets/204eaf512fde2023.svg +0 -1
- package/dist/assets/2088983edf42e153.svg +0 -1
- package/dist/assets/208f810a9321a327.svg +0 -1
- package/dist/assets/21220a9d10e6c558.svg +0 -1
- package/dist/assets/220db345a102045d.woff2 +0 -0
- package/dist/assets/225da11d23968333.svg +0 -1
- package/dist/assets/226f862dd81bdc13.woff2 +0 -0
- package/dist/assets/23a2d53395ddb14f.woff +0 -0
- package/dist/assets/259e6ad461a52ad7.svg +0 -1
- package/dist/assets/261e6dec4d53b9ac.woff +0 -0
- package/dist/assets/262f46a0b6d94bb6.svg +0 -1
- package/dist/assets/2857c513073467da.svg +0 -1
- package/dist/assets/2b3be7889467d98f.woff +0 -0
- package/dist/assets/2d4e6190eec72737.svg +0 -1
- package/dist/assets/2eba973185078bc8.woff +0 -0
- package/dist/assets/334d3f6bc766c516.woff +0 -0
- package/dist/assets/34ff7dd0c2285956.svg +0 -1
- package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
- package/dist/assets/3d892965ab4f1cbb.woff2 +0 -0
- package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
- package/dist/assets/3fc09a6113184f16.woff +0 -0
- package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
- package/dist/assets/41275bcb979cb650.svg +0 -1
- package/dist/assets/434f7982590e462f.woff +0 -0
- package/dist/assets/475937116ee3314a.woff2 +0 -0
- package/dist/assets/477e1881a0394cc5.woff +0 -0
- package/dist/assets/489710fb710e73f0.woff +0 -0
- package/dist/assets/49791943b3872376.woff2 +0 -0
- package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
- package/dist/assets/4d7a77b0e5373992.svg +0 -1
- package/dist/assets/4e43c74354534fb3.svg +0 -1
- package/dist/assets/4fe75f5117100705.svg +0 -1
- package/dist/assets/52e261a005074e1b.woff +0 -0
- package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
- package/dist/assets/54cda5482c6c9218.woff +0 -0
- package/dist/assets/550f52072e8ccafe.woff2 +0 -0
- package/dist/assets/572bb1bb4156a9c1.svg +0 -1
- package/dist/assets/6075995d7e74da46.woff2 +0 -0
- package/dist/assets/617c4736236e199e.woff +0 -0
- package/dist/assets/67230f05dc94a265.svg +0 -1
- package/dist/assets/6798e4dd4add9b48.svg +0 -1
- package/dist/assets/686d4077c1e26876.woff2 +0 -0
- package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
- package/dist/assets/6a3e73faf406cf33.svg +0 -1
- package/dist/assets/72de3a63bc0b70dd.svg +0 -1
- package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
- package/dist/assets/74ed5f8a78e71106.svg +0 -1
- package/dist/assets/7a5aa5abd625137f.ttf +0 -0
- package/dist/assets/7ce0c166fd6a1204.woff +0 -0
- package/dist/assets/7d55399c2a7bc985.svg +0 -1
- package/dist/assets/7d970675c69fca1d.woff +0 -0
- package/dist/assets/7eda727273fd98d3.svg +0 -1
- package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
- package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
- package/dist/assets/861e6b7192b3b6c7.woff +0 -0
- package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
- package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
- package/dist/assets/910b0d99b9e26568.svg +0 -1
- package/dist/assets/91fe94e424323d61.woff +0 -0
- package/dist/assets/92508f8707159b51.svg +0 -1
- package/dist/assets/9392bf1d591e1abb.svg +0 -1
- package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
- package/dist/assets/9cb83236f6bb7ab1.svg +0 -1
- package/dist/assets/9d37314695c0b68d.woff +0 -0
- package/dist/assets/a03cdcd8da5bb987.woff +0 -0
- package/dist/assets/a18404194e3f9047.svg +0 -1
- package/dist/assets/a2017fe7f0a26510.svg +0 -1
- package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
- package/dist/assets/abf88f301a0730f4.svg +0 -1
- package/dist/assets/ac1a99b3d05d8232.woff +0 -0
- package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
- package/dist/assets/b1a596e31ad1185a.svg +0 -1
- package/dist/assets/b27767411c8427be.woff +0 -0
- package/dist/assets/b325adcae33bbe7a.svg +0 -1
- package/dist/assets/b372390551ca2fa1.svg +0 -1
- package/dist/assets/b5bb1e8fc975decd.svg +0 -1
- package/dist/assets/b645a4a2181b9dc1.svg +0 -1
- package/dist/assets/b6499ddce0a4ef7d.svg +0 -1
- package/dist/assets/b7ffde2383bb16ba.woff2 +0 -0
- package/dist/assets/b94421fadd23b0f2.svg +0 -1
- package/dist/assets/bb28fb0f27f1c11b.svg +0 -1
- package/dist/assets/c5195215cb712e9c.woff2 +0 -0
- package/dist/assets/c9191b638a10f67b.woff2 +0 -0
- package/dist/assets/c97328b91ac5cc66.woff +0 -0
- package/dist/assets/ca791c5ca5848a03.svg +0 -1
- package/dist/assets/cb32840ce330103f.woff +0 -0
- package/dist/assets/ccc878931d74181b.woff2 +0 -0
- package/dist/assets/cdc69f8b549c866d.woff2 +0 -0
- package/dist/assets/d084bda16abe8a56.svg +0 -1
- package/dist/assets/d32b129cae2fffd6.svg +0 -1
- package/dist/assets/d35a4c7113315758.woff2 +0 -0
- package/dist/assets/d3f792f54ae4c307.svg +0 -1
- package/dist/assets/d5a5b8630120073d.svg +0 -1
- package/dist/assets/d5eb20bcdcf5616a.woff2 +0 -0
- package/dist/assets/d5f9664ebbfb104b.svg +0 -1
- package/dist/assets/d84247b59449dd88.woff2 +0 -0
- package/dist/assets/da4b7f5883fe7743.woff2 +0 -0
- package/dist/assets/dceaf3b39091e6a4.woff +0 -0
- package/dist/assets/dd05d43ff0df2fc7.svg +0 -1
- package/dist/assets/e2ad5b3428289141.woff +0 -0
- package/dist/assets/e38acaa1757232e0.svg +0 -1
- package/dist/assets/e4a8550f1c7ffe36.svg +0 -1
- package/dist/assets/e5adb5ae3a3698f6.svg +0 -1
- package/dist/assets/e61a1889bac955f4.woff2 +0 -0
- package/dist/assets/e72bb11356af94c7.svg +0 -1
- package/dist/assets/e98196a9f8dcb2f0.svg +0 -1
- package/dist/assets/ebec912a42ad49ff.woff +0 -0
- package/dist/assets/ee6983981ffcbb41.woff2 +0 -0
- package/dist/assets/f09d89268e4c0317.svg +0 -1
- package/dist/assets/f239394367fcf005.woff2 +0 -0
- package/dist/assets/f5722262b6e7214e.woff2 +0 -0
- package/dist/assets/f7fc8bf46089d8b2.svg +0 -1
- package/dist/assets/fc829e3f399b70e0.woff2 +0 -0
- package/dist/assets/fe141d99763f5d2b.woff +0 -0
- package/dist/assets/fed13b0d59903483.svg +0 -1
- package/dist/assets/fed757d2c2344ead.woff2 +0 -0
- package/dist/assets/ffc438f20e79ce73.woff +0 -0
- package/dist/core/plugins/modularity/loader-mf.d.ts +0 -17
- package/dist/core/plugins/modularity/loader-mf.d.ts.map +0 -1
- package/dist/framework.css +0 -9
- package/dist/framework.js +0 -32777
- package/dist/ui/components/molecules/vc-select/composables/useSelectDefaultValue.d.ts +0 -16
- package/dist/ui/components/molecules/vc-select/composables/useSelectDefaultValue.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-select/composables/useSelectOptions.d.ts +0 -19
- package/dist/ui/components/molecules/vc-select/composables/useSelectOptions.d.ts.map +0 -1
- package/dist/ui/components/molecules/vc-select/composables/useSelectSearch.d.ts +0 -23
- package/dist/ui/components/molecules/vc-select/composables/useSelectSearch.d.ts.map +0 -1
- package/dist/vendor-boolbase-DYkUBG-P.js +0 -18
- package/dist/vendor-cheerio-DE71XQ9x.js +0 -1053
- package/dist/vendor-cheerio-select-D-qK1Cpo.js +0 -191
- package/dist/vendor-css-select-DqoO1-RK.js +0 -622
- package/dist/vendor-css-what-CZZaquJM.js +0 -267
- package/dist/vendor-cypress-signalr-mock-itnm2wpA.js +0 -781
- package/dist/vendor-d3-array-9cpTrqlO.js +0 -149
- package/dist/vendor-d3-axis-D1_DbKLz.js +0 -74
- package/dist/vendor-d3-brush-CcKeJp9e.js +0 -1
- package/dist/vendor-d3-color-BOYE6h_9.js +0 -306
- package/dist/vendor-d3-dispatch-fx-WMg0D.js +0 -64
- package/dist/vendor-d3-ease-Cr34gv04.js +0 -8
- package/dist/vendor-d3-format-DaIwZvFc.js +0 -182
- package/dist/vendor-d3-interpolate-BYG2gvO4.js +0 -177
- package/dist/vendor-d3-interpolate-path-CpGLvKgS.js +0 -299
- package/dist/vendor-d3-path-DJOTitNW.js +0 -64
- package/dist/vendor-d3-scale-CC5rtdt5.js +0 -561
- package/dist/vendor-d3-selection-CNMxsYiL.js +0 -603
- package/dist/vendor-d3-shape-DBhCDMiV.js +0 -925
- package/dist/vendor-d3-time-DAPP210_.js +0 -212
- package/dist/vendor-d3-time-format-hD7iE2WG.js +0 -491
- package/dist/vendor-d3-timer-C1cUWKPz.js +0 -67
- package/dist/vendor-d3-transition-BbNQT7qF.js +0 -524
- package/dist/vendor-d3-zoom-CcKeJp9e.js +0 -1
- package/dist/vendor-date-fns-BKO3x1R1.js +0 -3102
- package/dist/vendor-dom-serializer-BbVuF1MQ.js +0 -213
- package/dist/vendor-domelementtype-B3sFIGaC.js +0 -21
- package/dist/vendor-domhandler-Kufn9M_V.js +0 -311
- package/dist/vendor-dompurify-M2Bspgo5.js +0 -553
- package/dist/vendor-domutils-DDRq_ial.js +0 -386
- package/dist/vendor-emotion-cache-eEZT5l-Q.js +0 -274
- package/dist/vendor-emotion-hash-DImMRhyK.js +0 -22
- package/dist/vendor-emotion-memoize-BcEUCz8q.js +0 -9
- package/dist/vendor-emotion-serialize-BSDW8NwU.js +0 -123
- package/dist/vendor-emotion-sheet-CS8ZBl9s.js +0 -44
- package/dist/vendor-emotion-unitless-B7u1PU6w.js +0 -53
- package/dist/vendor-emotion-utils-D7refZTM.js +0 -28
- package/dist/vendor-entities-J86Og8IU.js +0 -364
- package/dist/vendor-floating-ui-core-BoHdh92a.js +0 -432
- package/dist/vendor-floating-ui-dom-BvVXFZ4B.js +0 -398
- package/dist/vendor-floating-ui-utils-CidJRIm2.js +0 -257
- package/dist/vendor-floating-ui-vue-sCrhit51.js +0 -121
- package/dist/vendor-gridstack-Dkfw452e.js +0 -3390
- package/dist/vendor-headlessui-vue-Cn-RMs4E.js +0 -961
- package/dist/vendor-htmlparser2-BxKKzWLL.js +0 -735
- package/dist/vendor-internmap-Q5729_cS.js +0 -35
- package/dist/vendor-intlify-core-base-BmIo1dK4.js +0 -1141
- package/dist/vendor-intlify-message-compiler-D9VOavkL.js +0 -960
- package/dist/vendor-intlify-shared-SCAs3ybf.js +0 -144
- package/dist/vendor-iso-639-1-BEjYyfKo.js +0 -784
- package/dist/vendor-juggle-resize-observer-DiSiNbbT.js +0 -286
- package/dist/vendor-linkify-it-LzoUhj6C.js +0 -199
- package/dist/vendor-linkifyjs-dCH9UYes.js +0 -701
- package/dist/vendor-lodash-es-Bz6MMQuN.js +0 -4818
- package/dist/vendor-lucide-vue-next-CPgeDcFj.js +0 -33093
- package/dist/vendor-markdown-it-Bs9KEWkF.js +0 -2266
- package/dist/vendor-markdown-it-task-lists-CHKeJZfk.js +0 -69
- package/dist/vendor-mdurl-DZFDNdqC.js +0 -192
- package/dist/vendor-microsoft-applicationinsights-analytics-js-DFu_cVaY.js +0 -1207
- package/dist/vendor-microsoft-applicationinsights-cfgsync-js-DRQLN2Ue.js +0 -261
- package/dist/vendor-microsoft-applicationinsights-channel-js-BIJDcP3D.js +0 -1822
- package/dist/vendor-microsoft-applicationinsights-common-CJjmnDMb.js +0 -1921
- package/dist/vendor-microsoft-applicationinsights-core-js-BOc_o46i.js +0 -4276
- package/dist/vendor-microsoft-applicationinsights-dependencies-js-DDz502id.js +0 -1407
- package/dist/vendor-microsoft-applicationinsights-properties-js-9aDWHwXJ.js +0 -572
- package/dist/vendor-microsoft-applicationinsights-shims-Dton8Vqy.js +0 -43
- package/dist/vendor-microsoft-applicationinsights-web-DTa5YN-h.js +0 -487
- package/dist/vendor-microsoft-dynamicproto-js-89GEKjvR.js +0 -147
- package/dist/vendor-microsoft-signalr-Bgpbb4fW.js +0 -1761
- package/dist/vendor-module-federation-enhanced-CV1CNdJy.js +0 -22
- package/dist/vendor-module-federation-error-codes-DdVwX11j.js +0 -55
- package/dist/vendor-module-federation-runtime-CVH_lWgu.js +0 -91
- package/dist/vendor-module-federation-runtime-core-D5G-s9nP.js +0 -2202
- package/dist/vendor-module-federation-runtime-tools-CQbtw-RJ.js +0 -18
- package/dist/vendor-module-federation-sdk-DM4AJRa7.js +0 -683
- package/dist/vendor-nevware21-ts-async-D4qa7g-U.js +0 -261
- package/dist/vendor-nevware21-ts-utils-DII8jruI.js +0 -853
- package/dist/vendor-nth-check-D0N1qpsw.js +0 -45
- package/dist/vendor-orderedmap-B3SOk52B.js +0 -103
- package/dist/vendor-parse5-htmlparser2-tree-adapter-BUDJ887-.js +0 -143
- package/dist/vendor-parse5-zq5Hn0y9.js +0 -5749
- package/dist/vendor-prettier-DeqUTTnE.js +0 -5215
- package/dist/vendor-prosemirror-commands-Bv4ChObl.js +0 -385
- package/dist/vendor-prosemirror-dropcursor-kF5UKNFM.js +0 -86
- package/dist/vendor-prosemirror-gapcursor-S3ikcYX6.js +0 -203
- package/dist/vendor-prosemirror-history-CQYKHz3u.js +0 -248
- package/dist/vendor-prosemirror-keymap-CAfQyvJ7.js +0 -62
- package/dist/vendor-prosemirror-markdown-rpUTSG_Q.js +0 -663
- package/dist/vendor-prosemirror-model-DAA3avbR.js +0 -2730
- package/dist/vendor-prosemirror-schema-list-BNJkECdS.js +0 -87
- package/dist/vendor-prosemirror-state-IeimrELV.js +0 -821
- package/dist/vendor-prosemirror-tables-zVUKdbdQ.js +0 -1414
- package/dist/vendor-prosemirror-transform-BUjWd5Tb.js +0 -1525
- package/dist/vendor-prosemirror-view-DFpBkGRq.js +0 -3794
- package/dist/vendor-punycode-js-CgGegfA_.js +0 -133
- package/dist/vendor-rope-sequence-BWC2FSrq.js +0 -100
- package/dist/vendor-semver-Dar8oU3V.js +0 -1023
- package/dist/vendor-striptags-DtlgQudQ.js +0 -120
- package/dist/vendor-stylis-ClfDrgKE.js +0 -334
- package/dist/vendor-swiper-1bp0oJwt.js +0 -3387
- package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +0 -1
- package/dist/vendor-throttle-debounce-CX0imT7m.js +0 -28
- package/dist/vendor-tiptap-core-CDScflP1.js +0 -3921
- package/dist/vendor-tiptap-extension-blockquote-ChRAwuus.js +0 -55
- package/dist/vendor-tiptap-extension-bold-BwoVpOFS.js +0 -74
- package/dist/vendor-tiptap-extension-code-DOlgG3ih.js +0 -52
- package/dist/vendor-tiptap-extension-code-block-CMeTs87s.js +0 -215
- package/dist/vendor-tiptap-extension-document-DO8oly70.js +0 -12
- package/dist/vendor-tiptap-extension-hard-break-BgDl2sHf.js +0 -59
- package/dist/vendor-tiptap-extension-heading-DFuYlwHi.js +0 -63
- package/dist/vendor-tiptap-extension-horizontal-rule-uyfttMp9.js +0 -56
- package/dist/vendor-tiptap-extension-image-DPeBaTE3.js +0 -128
- package/dist/vendor-tiptap-extension-italic-C9-3jNxO.js +0 -73
- package/dist/vendor-tiptap-extension-link-B57VzStq.js +0 -312
- package/dist/vendor-tiptap-extension-list-spvOF7Mz.js +0 -722
- package/dist/vendor-tiptap-extension-paragraph-Cj7auQB7.js +0 -44
- package/dist/vendor-tiptap-extension-placeholder-DhwvmZ6Y.js +0 -1
- package/dist/vendor-tiptap-extension-strike-yj6UvnkO.js +0 -64
- package/dist/vendor-tiptap-extension-table-cell-CQpTPSvF.js +0 -1
- package/dist/vendor-tiptap-extension-table-ex1kZQ-9.js +0 -374
- package/dist/vendor-tiptap-extension-table-header-CQpTPSvF.js +0 -1
- package/dist/vendor-tiptap-extension-table-row-CQpTPSvF.js +0 -1
- package/dist/vendor-tiptap-extension-text-C8FG4KnI.js +0 -13
- package/dist/vendor-tiptap-extension-text-style-DsQDXowp.js +0 -235
- package/dist/vendor-tiptap-extension-underline-HB3fg6Dc.js +0 -65
- package/dist/vendor-tiptap-extensions-CUGwjzl5.js +0 -296
- package/dist/vendor-tiptap-markdown-BTXJw7Bt.js +0 -826
- package/dist/vendor-tiptap-pm-DSHuSumV.js +0 -1
- package/dist/vendor-tiptap-starter-kit-C42PcJ7J.js +0 -28
- package/dist/vendor-tiptap-vue-3-BxWCzu9Z.js +0 -157
- package/dist/vendor-truncate-html-ChA1T5zy.js +0 -145
- package/dist/vendor-uc-micro-4lbSaZOs.js +0 -17
- package/dist/vendor-unovis-ts-stSsHr9j.js +0 -2382
- package/dist/vendor-unovis-vue-CZWGT3-0.js +0 -446
- package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +0 -93
- package/dist/vendor-vee-validate-rules-4oWUZPpG.js +0 -316
- package/dist/vendor-vue-currency-input-CckB4kjx.js +0 -317
- package/dist/vendor-vue-demi-CD9yLWd7.js +0 -1
- package/dist/vendor-vue-devtools-api-aVYGocXp.js +0 -93
- package/dist/vendor-vue-i18n-DeO9Fa9I.js +0 -1387
- package/dist/vendor-vue-router-R3V0tq8_.js +0 -6
- package/dist/vendor-vue3-application-insights-BmJCYUcp.js +0 -69
- package/dist/vendor-vue3-touch-events-DqysuuWh.js +0 -169
- package/dist/vendor-vuepic-vue-datepicker-CaZ_qpJp.js +0 -4998
- package/dist/vendor-vueuse-components-2jDVoLeo.js +0 -542
- package/dist/vendor-vueuse-core-CLhzVQ31.js +0 -5133
- package/dist/vendor-vueuse-shared-DMVXjSeM.js +0 -1169
- package/dist/vendor-w3c-keyname-CLxH8j-f.js +0 -92
- package/dist/vendor-web-vitals-vrpLO1bu.js +0 -207
|
@@ -1,925 +0,0 @@
|
|
|
1
|
-
import { P as zt } from "./vendor-d3-path-DJOTitNW.js";
|
|
2
|
-
function d(t) {
|
|
3
|
-
return function() {
|
|
4
|
-
return t;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
const yt = Math.abs, k = Math.atan2, L = Math.cos, qt = Math.max, at = Math.min, P = Math.sin, X = Math.sqrt, T = 1e-12, Y = Math.PI, U = Y / 2, Q = 2 * Y;
|
|
8
|
-
function jt(t) {
|
|
9
|
-
return t > 1 ? 0 : t < -1 ? Y : Math.acos(t);
|
|
10
|
-
}
|
|
11
|
-
function dt(t) {
|
|
12
|
-
return t >= 1 ? U : t <= -1 ? -U : Math.asin(t);
|
|
13
|
-
}
|
|
14
|
-
function kt(t) {
|
|
15
|
-
let i = 3;
|
|
16
|
-
return t.digits = function(n) {
|
|
17
|
-
if (!arguments.length) return i;
|
|
18
|
-
if (n == null)
|
|
19
|
-
i = null;
|
|
20
|
-
else {
|
|
21
|
-
const s = Math.floor(n);
|
|
22
|
-
if (!(s >= 0)) throw new RangeError(`invalid digits: ${n}`);
|
|
23
|
-
i = s;
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
}, () => new zt(i);
|
|
27
|
-
}
|
|
28
|
-
function Lt(t) {
|
|
29
|
-
return t.innerRadius;
|
|
30
|
-
}
|
|
31
|
-
function It(t) {
|
|
32
|
-
return t.outerRadius;
|
|
33
|
-
}
|
|
34
|
-
function Vt(t) {
|
|
35
|
-
return t.startAngle;
|
|
36
|
-
}
|
|
37
|
-
function Xt(t) {
|
|
38
|
-
return t.endAngle;
|
|
39
|
-
}
|
|
40
|
-
function Yt(t) {
|
|
41
|
-
return t && t.padAngle;
|
|
42
|
-
}
|
|
43
|
-
function Dt(t, i, n, s, a, _, r, e) {
|
|
44
|
-
var o = n - t, c = s - i, h = r - a, m = e - _, l = m * o - h * c;
|
|
45
|
-
if (!(l * l < T))
|
|
46
|
-
return l = (h * (i - _) - m * (t - a)) / l, [t + l * o, i + l * c];
|
|
47
|
-
}
|
|
48
|
-
function K(t, i, n, s, a, _, r) {
|
|
49
|
-
var e = t - n, o = i - s, c = (r ? _ : -_) / X(e * e + o * o), h = c * o, m = -c * e, l = t + h, f = i + m, y = n + h, g = s + m, C = (l + y) / 2, x = (f + g) / 2, w = y - l, b = g - f, v = w * w + b * b, N = a - _, S = l * g - y * f, B = (b < 0 ? -1 : 1) * X(qt(0, N * N * v - S * S)), O = (S * b - w * B) / v, z = (-S * w - b * B) / v, M = (S * b + w * B) / v, E = (-S * w + b * B) / v, A = O - C, u = z - x, p = M - C, j = E - x;
|
|
50
|
-
return A * A + u * u > p * p + j * j && (O = M, z = E), {
|
|
51
|
-
cx: O,
|
|
52
|
-
cy: z,
|
|
53
|
-
x01: -h,
|
|
54
|
-
y01: -m,
|
|
55
|
-
x11: O * (a / N - 1),
|
|
56
|
-
y11: z * (a / N - 1)
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function Ut() {
|
|
60
|
-
var t = Lt, i = It, n = d(0), s = null, a = Vt, _ = Xt, r = Yt, e = null, o = kt(c);
|
|
61
|
-
function c() {
|
|
62
|
-
var h, m, l = +t.apply(this, arguments), f = +i.apply(this, arguments), y = a.apply(this, arguments) - U, g = _.apply(this, arguments) - U, C = yt(g - y), x = g > y;
|
|
63
|
-
if (e || (e = h = o()), f < l && (m = f, f = l, l = m), !(f > T)) e.moveTo(0, 0);
|
|
64
|
-
else if (C > Q - T)
|
|
65
|
-
e.moveTo(f * L(y), f * P(y)), e.arc(0, 0, f, y, g, !x), l > T && (e.moveTo(l * L(g), l * P(g)), e.arc(0, 0, l, g, y, x));
|
|
66
|
-
else {
|
|
67
|
-
var w = y, b = g, v = y, N = g, S = C, B = C, O = r.apply(this, arguments) / 2, z = O > T && (s ? +s.apply(this, arguments) : X(l * l + f * f)), M = at(yt(f - l) / 2, +n.apply(this, arguments)), E = M, A = M, u, p;
|
|
68
|
-
if (z > T) {
|
|
69
|
-
var j = dt(z / l * P(O)), D = dt(z / f * P(O));
|
|
70
|
-
(S -= j * 2) > T ? (j *= x ? 1 : -1, v += j, N -= j) : (S = 0, v = N = (y + g) / 2), (B -= D * 2) > T ? (D *= x ? 1 : -1, w += D, b -= D) : (B = 0, w = b = (y + g) / 2);
|
|
71
|
-
}
|
|
72
|
-
var I = f * L(w), V = f * P(w), F = l * L(N), G = l * P(N);
|
|
73
|
-
if (M > T) {
|
|
74
|
-
var H = f * L(b), J = f * P(b), nt = l * L(v), st = l * P(v), R;
|
|
75
|
-
if (C < Y)
|
|
76
|
-
if (R = Dt(I, V, nt, st, H, J, F, G)) {
|
|
77
|
-
var et = I - R[0], _t = V - R[1], ht = H - R[0], ot = J - R[1], pt = 1 / P(jt((et * ht + _t * ot) / (X(et * et + _t * _t) * X(ht * ht + ot * ot))) / 2), xt = X(R[0] * R[0] + R[1] * R[1]);
|
|
78
|
-
E = at(M, (l - xt) / (pt - 1)), A = at(M, (f - xt) / (pt + 1));
|
|
79
|
-
} else
|
|
80
|
-
E = A = 0;
|
|
81
|
-
}
|
|
82
|
-
B > T ? A > T ? (u = K(nt, st, I, V, f, A, x), p = K(H, J, F, G, f, A, x), e.moveTo(u.cx + u.x01, u.cy + u.y01), A < M ? e.arc(u.cx, u.cy, A, k(u.y01, u.x01), k(p.y01, p.x01), !x) : (e.arc(u.cx, u.cy, A, k(u.y01, u.x01), k(u.y11, u.x11), !x), e.arc(0, 0, f, k(u.cy + u.y11, u.cx + u.x11), k(p.cy + p.y11, p.cx + p.x11), !x), e.arc(p.cx, p.cy, A, k(p.y11, p.x11), k(p.y01, p.x01), !x))) : (e.moveTo(I, V), e.arc(0, 0, f, w, b, !x)) : e.moveTo(I, V), !(l > T) || !(S > T) ? e.lineTo(F, G) : E > T ? (u = K(F, G, H, J, l, -E, x), p = K(I, V, nt, st, l, -E, x), e.lineTo(u.cx + u.x01, u.cy + u.y01), E < M ? e.arc(u.cx, u.cy, E, k(u.y01, u.x01), k(p.y01, p.x01), !x) : (e.arc(u.cx, u.cy, E, k(u.y01, u.x01), k(u.y11, u.x11), !x), e.arc(0, 0, l, k(u.cy + u.y11, u.cx + u.x11), k(p.cy + p.y11, p.cx + p.x11), x), e.arc(p.cx, p.cy, E, k(p.y11, p.x11), k(p.y01, p.x01), !x))) : e.arc(0, 0, l, N, v, x);
|
|
83
|
-
}
|
|
84
|
-
if (e.closePath(), h) return e = null, h + "" || null;
|
|
85
|
-
}
|
|
86
|
-
return c.centroid = function() {
|
|
87
|
-
var h = (+t.apply(this, arguments) + +i.apply(this, arguments)) / 2, m = (+a.apply(this, arguments) + +_.apply(this, arguments)) / 2 - Y / 2;
|
|
88
|
-
return [L(m) * h, P(m) * h];
|
|
89
|
-
}, c.innerRadius = function(h) {
|
|
90
|
-
return arguments.length ? (t = typeof h == "function" ? h : d(+h), c) : t;
|
|
91
|
-
}, c.outerRadius = function(h) {
|
|
92
|
-
return arguments.length ? (i = typeof h == "function" ? h : d(+h), c) : i;
|
|
93
|
-
}, c.cornerRadius = function(h) {
|
|
94
|
-
return arguments.length ? (n = typeof h == "function" ? h : d(+h), c) : n;
|
|
95
|
-
}, c.padRadius = function(h) {
|
|
96
|
-
return arguments.length ? (s = h == null ? null : typeof h == "function" ? h : d(+h), c) : s;
|
|
97
|
-
}, c.startAngle = function(h) {
|
|
98
|
-
return arguments.length ? (a = typeof h == "function" ? h : d(+h), c) : a;
|
|
99
|
-
}, c.endAngle = function(h) {
|
|
100
|
-
return arguments.length ? (_ = typeof h == "function" ? h : d(+h), c) : _;
|
|
101
|
-
}, c.padAngle = function(h) {
|
|
102
|
-
return arguments.length ? (r = typeof h == "function" ? h : d(+h), c) : r;
|
|
103
|
-
}, c.context = function(h) {
|
|
104
|
-
return arguments.length ? (e = h ?? null, c) : e;
|
|
105
|
-
}, c;
|
|
106
|
-
}
|
|
107
|
-
function Tt(t) {
|
|
108
|
-
return typeof t == "object" && "length" in t ? t : Array.from(t);
|
|
109
|
-
}
|
|
110
|
-
function wt(t) {
|
|
111
|
-
this._context = t;
|
|
112
|
-
}
|
|
113
|
-
wt.prototype = {
|
|
114
|
-
areaStart: function() {
|
|
115
|
-
this._line = 0;
|
|
116
|
-
},
|
|
117
|
-
areaEnd: function() {
|
|
118
|
-
this._line = NaN;
|
|
119
|
-
},
|
|
120
|
-
lineStart: function() {
|
|
121
|
-
this._point = 0;
|
|
122
|
-
},
|
|
123
|
-
lineEnd: function() {
|
|
124
|
-
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
125
|
-
},
|
|
126
|
-
point: function(t, i) {
|
|
127
|
-
switch (t = +t, i = +i, this._point) {
|
|
128
|
-
case 0:
|
|
129
|
-
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
130
|
-
break;
|
|
131
|
-
case 1:
|
|
132
|
-
this._point = 2;
|
|
133
|
-
// falls through
|
|
134
|
-
default:
|
|
135
|
-
this._context.lineTo(t, i);
|
|
136
|
-
break;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
function Ft(t) {
|
|
141
|
-
return new wt(t);
|
|
142
|
-
}
|
|
143
|
-
function Gt(t) {
|
|
144
|
-
return t[0];
|
|
145
|
-
}
|
|
146
|
-
function Ht(t) {
|
|
147
|
-
return t[1];
|
|
148
|
-
}
|
|
149
|
-
function Wt(t, i) {
|
|
150
|
-
var n = d(!0), s = null, a = Ft, _ = null, r = kt(e);
|
|
151
|
-
t = typeof t == "function" ? t : t === void 0 ? Gt : d(t), i = typeof i == "function" ? i : i === void 0 ? Ht : d(i);
|
|
152
|
-
function e(o) {
|
|
153
|
-
var c, h = (o = Tt(o)).length, m, l = !1, f;
|
|
154
|
-
for (s == null && (_ = a(f = r())), c = 0; c <= h; ++c)
|
|
155
|
-
!(c < h && n(m = o[c], c, o)) === l && ((l = !l) ? _.lineStart() : _.lineEnd()), l && _.point(+t(m, c, o), +i(m, c, o));
|
|
156
|
-
if (f) return _ = null, f + "" || null;
|
|
157
|
-
}
|
|
158
|
-
return e.x = function(o) {
|
|
159
|
-
return arguments.length ? (t = typeof o == "function" ? o : d(+o), e) : t;
|
|
160
|
-
}, e.y = function(o) {
|
|
161
|
-
return arguments.length ? (i = typeof o == "function" ? o : d(+o), e) : i;
|
|
162
|
-
}, e.defined = function(o) {
|
|
163
|
-
return arguments.length ? (n = typeof o == "function" ? o : d(!!o), e) : n;
|
|
164
|
-
}, e.curve = function(o) {
|
|
165
|
-
return arguments.length ? (a = o, s != null && (_ = a(s)), e) : a;
|
|
166
|
-
}, e.context = function(o) {
|
|
167
|
-
return arguments.length ? (o == null ? s = _ = null : _ = a(s = o), e) : s;
|
|
168
|
-
}, e;
|
|
169
|
-
}
|
|
170
|
-
function Jt(t, i) {
|
|
171
|
-
return i < t ? -1 : i > t ? 1 : i >= t ? 0 : NaN;
|
|
172
|
-
}
|
|
173
|
-
function Kt(t) {
|
|
174
|
-
return t;
|
|
175
|
-
}
|
|
176
|
-
function Zt() {
|
|
177
|
-
var t = Kt, i = Jt, n = null, s = d(0), a = d(Q), _ = d(0);
|
|
178
|
-
function r(e) {
|
|
179
|
-
var o, c = (e = Tt(e)).length, h, m, l = 0, f = new Array(c), y = new Array(c), g = +s.apply(this, arguments), C = Math.min(Q, Math.max(-Q, a.apply(this, arguments) - g)), x, w = Math.min(Math.abs(C) / c, _.apply(this, arguments)), b = w * (C < 0 ? -1 : 1), v;
|
|
180
|
-
for (o = 0; o < c; ++o)
|
|
181
|
-
(v = y[f[o] = o] = +t(e[o], o, e)) > 0 && (l += v);
|
|
182
|
-
for (i != null ? f.sort(function(N, S) {
|
|
183
|
-
return i(y[N], y[S]);
|
|
184
|
-
}) : n != null && f.sort(function(N, S) {
|
|
185
|
-
return n(e[N], e[S]);
|
|
186
|
-
}), o = 0, m = l ? (C - c * b) / l : 0; o < c; ++o, g = x)
|
|
187
|
-
h = f[o], v = y[h], x = g + (v > 0 ? v * m : 0) + b, y[h] = {
|
|
188
|
-
data: e[h],
|
|
189
|
-
index: o,
|
|
190
|
-
value: v,
|
|
191
|
-
startAngle: g,
|
|
192
|
-
endAngle: x,
|
|
193
|
-
padAngle: w
|
|
194
|
-
};
|
|
195
|
-
return y;
|
|
196
|
-
}
|
|
197
|
-
return r.value = function(e) {
|
|
198
|
-
return arguments.length ? (t = typeof e == "function" ? e : d(+e), r) : t;
|
|
199
|
-
}, r.sortValues = function(e) {
|
|
200
|
-
return arguments.length ? (i = e, n = null, r) : i;
|
|
201
|
-
}, r.sort = function(e) {
|
|
202
|
-
return arguments.length ? (n = e, i = null, r) : n;
|
|
203
|
-
}, r.startAngle = function(e) {
|
|
204
|
-
return arguments.length ? (s = typeof e == "function" ? e : d(+e), r) : s;
|
|
205
|
-
}, r.endAngle = function(e) {
|
|
206
|
-
return arguments.length ? (a = typeof e == "function" ? e : d(+e), r) : a;
|
|
207
|
-
}, r.padAngle = function(e) {
|
|
208
|
-
return arguments.length ? (_ = typeof e == "function" ? e : d(+e), r) : _;
|
|
209
|
-
}, r;
|
|
210
|
-
}
|
|
211
|
-
function q() {
|
|
212
|
-
}
|
|
213
|
-
function W(t, i, n) {
|
|
214
|
-
t._context.bezierCurveTo(
|
|
215
|
-
(2 * t._x0 + t._x1) / 3,
|
|
216
|
-
(2 * t._y0 + t._y1) / 3,
|
|
217
|
-
(t._x0 + 2 * t._x1) / 3,
|
|
218
|
-
(t._y0 + 2 * t._y1) / 3,
|
|
219
|
-
(t._x0 + 4 * t._x1 + i) / 6,
|
|
220
|
-
(t._y0 + 4 * t._y1 + n) / 6
|
|
221
|
-
);
|
|
222
|
-
}
|
|
223
|
-
function tt(t) {
|
|
224
|
-
this._context = t;
|
|
225
|
-
}
|
|
226
|
-
tt.prototype = {
|
|
227
|
-
areaStart: function() {
|
|
228
|
-
this._line = 0;
|
|
229
|
-
},
|
|
230
|
-
areaEnd: function() {
|
|
231
|
-
this._line = NaN;
|
|
232
|
-
},
|
|
233
|
-
lineStart: function() {
|
|
234
|
-
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
235
|
-
},
|
|
236
|
-
lineEnd: function() {
|
|
237
|
-
switch (this._point) {
|
|
238
|
-
case 3:
|
|
239
|
-
W(this, this._x1, this._y1);
|
|
240
|
-
// falls through
|
|
241
|
-
case 2:
|
|
242
|
-
this._context.lineTo(this._x1, this._y1);
|
|
243
|
-
break;
|
|
244
|
-
}
|
|
245
|
-
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
246
|
-
},
|
|
247
|
-
point: function(t, i) {
|
|
248
|
-
switch (t = +t, i = +i, this._point) {
|
|
249
|
-
case 0:
|
|
250
|
-
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
251
|
-
break;
|
|
252
|
-
case 1:
|
|
253
|
-
this._point = 2;
|
|
254
|
-
break;
|
|
255
|
-
case 2:
|
|
256
|
-
this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
|
|
257
|
-
// falls through
|
|
258
|
-
default:
|
|
259
|
-
W(this, t, i);
|
|
260
|
-
break;
|
|
261
|
-
}
|
|
262
|
-
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = i;
|
|
263
|
-
}
|
|
264
|
-
};
|
|
265
|
-
function $t(t) {
|
|
266
|
-
return new tt(t);
|
|
267
|
-
}
|
|
268
|
-
function Nt(t) {
|
|
269
|
-
this._context = t;
|
|
270
|
-
}
|
|
271
|
-
Nt.prototype = {
|
|
272
|
-
areaStart: q,
|
|
273
|
-
areaEnd: q,
|
|
274
|
-
lineStart: function() {
|
|
275
|
-
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
|
|
276
|
-
},
|
|
277
|
-
lineEnd: function() {
|
|
278
|
-
switch (this._point) {
|
|
279
|
-
case 1: {
|
|
280
|
-
this._context.moveTo(this._x2, this._y2), this._context.closePath();
|
|
281
|
-
break;
|
|
282
|
-
}
|
|
283
|
-
case 2: {
|
|
284
|
-
this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
|
|
285
|
-
break;
|
|
286
|
-
}
|
|
287
|
-
case 3: {
|
|
288
|
-
this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
|
|
289
|
-
break;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
|
-
point: function(t, i) {
|
|
294
|
-
switch (t = +t, i = +i, this._point) {
|
|
295
|
-
case 0:
|
|
296
|
-
this._point = 1, this._x2 = t, this._y2 = i;
|
|
297
|
-
break;
|
|
298
|
-
case 1:
|
|
299
|
-
this._point = 2, this._x3 = t, this._y3 = i;
|
|
300
|
-
break;
|
|
301
|
-
case 2:
|
|
302
|
-
this._point = 3, this._x4 = t, this._y4 = i, this._context.moveTo((this._x0 + 4 * this._x1 + t) / 6, (this._y0 + 4 * this._y1 + i) / 6);
|
|
303
|
-
break;
|
|
304
|
-
default:
|
|
305
|
-
W(this, t, i);
|
|
306
|
-
break;
|
|
307
|
-
}
|
|
308
|
-
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = i;
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
|
-
function ti(t) {
|
|
312
|
-
return new Nt(t);
|
|
313
|
-
}
|
|
314
|
-
function St(t) {
|
|
315
|
-
this._context = t;
|
|
316
|
-
}
|
|
317
|
-
St.prototype = {
|
|
318
|
-
areaStart: function() {
|
|
319
|
-
this._line = 0;
|
|
320
|
-
},
|
|
321
|
-
areaEnd: function() {
|
|
322
|
-
this._line = NaN;
|
|
323
|
-
},
|
|
324
|
-
lineStart: function() {
|
|
325
|
-
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
326
|
-
},
|
|
327
|
-
lineEnd: function() {
|
|
328
|
-
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
329
|
-
},
|
|
330
|
-
point: function(t, i) {
|
|
331
|
-
switch (t = +t, i = +i, this._point) {
|
|
332
|
-
case 0:
|
|
333
|
-
this._point = 1;
|
|
334
|
-
break;
|
|
335
|
-
case 1:
|
|
336
|
-
this._point = 2;
|
|
337
|
-
break;
|
|
338
|
-
case 2:
|
|
339
|
-
this._point = 3;
|
|
340
|
-
var n = (this._x0 + 4 * this._x1 + t) / 6, s = (this._y0 + 4 * this._y1 + i) / 6;
|
|
341
|
-
this._line ? this._context.lineTo(n, s) : this._context.moveTo(n, s);
|
|
342
|
-
break;
|
|
343
|
-
case 3:
|
|
344
|
-
this._point = 4;
|
|
345
|
-
// falls through
|
|
346
|
-
default:
|
|
347
|
-
W(this, t, i);
|
|
348
|
-
break;
|
|
349
|
-
}
|
|
350
|
-
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = i;
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
function ii(t) {
|
|
354
|
-
return new St(t);
|
|
355
|
-
}
|
|
356
|
-
function Et(t, i) {
|
|
357
|
-
this._basis = new tt(t), this._beta = i;
|
|
358
|
-
}
|
|
359
|
-
Et.prototype = {
|
|
360
|
-
lineStart: function() {
|
|
361
|
-
this._x = [], this._y = [], this._basis.lineStart();
|
|
362
|
-
},
|
|
363
|
-
lineEnd: function() {
|
|
364
|
-
var t = this._x, i = this._y, n = t.length - 1;
|
|
365
|
-
if (n > 0)
|
|
366
|
-
for (var s = t[0], a = i[0], _ = t[n] - s, r = i[n] - a, e = -1, o; ++e <= n; )
|
|
367
|
-
o = e / n, this._basis.point(
|
|
368
|
-
this._beta * t[e] + (1 - this._beta) * (s + o * _),
|
|
369
|
-
this._beta * i[e] + (1 - this._beta) * (a + o * r)
|
|
370
|
-
);
|
|
371
|
-
this._x = this._y = null, this._basis.lineEnd();
|
|
372
|
-
},
|
|
373
|
-
point: function(t, i) {
|
|
374
|
-
this._x.push(+t), this._y.push(+i);
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
const ni = (function t(i) {
|
|
378
|
-
function n(s) {
|
|
379
|
-
return i === 1 ? new tt(s) : new Et(s, i);
|
|
380
|
-
}
|
|
381
|
-
return n.beta = function(s) {
|
|
382
|
-
return t(+s);
|
|
383
|
-
}, n;
|
|
384
|
-
})(0.85);
|
|
385
|
-
function Z(t, i, n) {
|
|
386
|
-
t._context.bezierCurveTo(
|
|
387
|
-
t._x1 + t._k * (t._x2 - t._x0),
|
|
388
|
-
t._y1 + t._k * (t._y2 - t._y0),
|
|
389
|
-
t._x2 + t._k * (t._x1 - i),
|
|
390
|
-
t._y2 + t._k * (t._y1 - n),
|
|
391
|
-
t._x2,
|
|
392
|
-
t._y2
|
|
393
|
-
);
|
|
394
|
-
}
|
|
395
|
-
function ct(t, i) {
|
|
396
|
-
this._context = t, this._k = (1 - i) / 6;
|
|
397
|
-
}
|
|
398
|
-
ct.prototype = {
|
|
399
|
-
areaStart: function() {
|
|
400
|
-
this._line = 0;
|
|
401
|
-
},
|
|
402
|
-
areaEnd: function() {
|
|
403
|
-
this._line = NaN;
|
|
404
|
-
},
|
|
405
|
-
lineStart: function() {
|
|
406
|
-
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
407
|
-
},
|
|
408
|
-
lineEnd: function() {
|
|
409
|
-
switch (this._point) {
|
|
410
|
-
case 2:
|
|
411
|
-
this._context.lineTo(this._x2, this._y2);
|
|
412
|
-
break;
|
|
413
|
-
case 3:
|
|
414
|
-
Z(this, this._x1, this._y1);
|
|
415
|
-
break;
|
|
416
|
-
}
|
|
417
|
-
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
418
|
-
},
|
|
419
|
-
point: function(t, i) {
|
|
420
|
-
switch (t = +t, i = +i, this._point) {
|
|
421
|
-
case 0:
|
|
422
|
-
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
423
|
-
break;
|
|
424
|
-
case 1:
|
|
425
|
-
this._point = 2, this._x1 = t, this._y1 = i;
|
|
426
|
-
break;
|
|
427
|
-
case 2:
|
|
428
|
-
this._point = 3;
|
|
429
|
-
// falls through
|
|
430
|
-
default:
|
|
431
|
-
Z(this, t, i);
|
|
432
|
-
break;
|
|
433
|
-
}
|
|
434
|
-
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
435
|
-
}
|
|
436
|
-
};
|
|
437
|
-
const si = (function t(i) {
|
|
438
|
-
function n(s) {
|
|
439
|
-
return new ct(s, i);
|
|
440
|
-
}
|
|
441
|
-
return n.tension = function(s) {
|
|
442
|
-
return t(+s);
|
|
443
|
-
}, n;
|
|
444
|
-
})(0);
|
|
445
|
-
function lt(t, i) {
|
|
446
|
-
this._context = t, this._k = (1 - i) / 6;
|
|
447
|
-
}
|
|
448
|
-
lt.prototype = {
|
|
449
|
-
areaStart: q,
|
|
450
|
-
areaEnd: q,
|
|
451
|
-
lineStart: function() {
|
|
452
|
-
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
|
|
453
|
-
},
|
|
454
|
-
lineEnd: function() {
|
|
455
|
-
switch (this._point) {
|
|
456
|
-
case 1: {
|
|
457
|
-
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
458
|
-
break;
|
|
459
|
-
}
|
|
460
|
-
case 2: {
|
|
461
|
-
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
462
|
-
break;
|
|
463
|
-
}
|
|
464
|
-
case 3: {
|
|
465
|
-
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
466
|
-
break;
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
},
|
|
470
|
-
point: function(t, i) {
|
|
471
|
-
switch (t = +t, i = +i, this._point) {
|
|
472
|
-
case 0:
|
|
473
|
-
this._point = 1, this._x3 = t, this._y3 = i;
|
|
474
|
-
break;
|
|
475
|
-
case 1:
|
|
476
|
-
this._point = 2, this._context.moveTo(this._x4 = t, this._y4 = i);
|
|
477
|
-
break;
|
|
478
|
-
case 2:
|
|
479
|
-
this._point = 3, this._x5 = t, this._y5 = i;
|
|
480
|
-
break;
|
|
481
|
-
default:
|
|
482
|
-
Z(this, t, i);
|
|
483
|
-
break;
|
|
484
|
-
}
|
|
485
|
-
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
486
|
-
}
|
|
487
|
-
};
|
|
488
|
-
const ei = (function t(i) {
|
|
489
|
-
function n(s) {
|
|
490
|
-
return new lt(s, i);
|
|
491
|
-
}
|
|
492
|
-
return n.tension = function(s) {
|
|
493
|
-
return t(+s);
|
|
494
|
-
}, n;
|
|
495
|
-
})(0);
|
|
496
|
-
function ut(t, i) {
|
|
497
|
-
this._context = t, this._k = (1 - i) / 6;
|
|
498
|
-
}
|
|
499
|
-
ut.prototype = {
|
|
500
|
-
areaStart: function() {
|
|
501
|
-
this._line = 0;
|
|
502
|
-
},
|
|
503
|
-
areaEnd: function() {
|
|
504
|
-
this._line = NaN;
|
|
505
|
-
},
|
|
506
|
-
lineStart: function() {
|
|
507
|
-
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
508
|
-
},
|
|
509
|
-
lineEnd: function() {
|
|
510
|
-
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
511
|
-
},
|
|
512
|
-
point: function(t, i) {
|
|
513
|
-
switch (t = +t, i = +i, this._point) {
|
|
514
|
-
case 0:
|
|
515
|
-
this._point = 1;
|
|
516
|
-
break;
|
|
517
|
-
case 1:
|
|
518
|
-
this._point = 2;
|
|
519
|
-
break;
|
|
520
|
-
case 2:
|
|
521
|
-
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
522
|
-
break;
|
|
523
|
-
case 3:
|
|
524
|
-
this._point = 4;
|
|
525
|
-
// falls through
|
|
526
|
-
default:
|
|
527
|
-
Z(this, t, i);
|
|
528
|
-
break;
|
|
529
|
-
}
|
|
530
|
-
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
const _i = (function t(i) {
|
|
534
|
-
function n(s) {
|
|
535
|
-
return new ut(s, i);
|
|
536
|
-
}
|
|
537
|
-
return n.tension = function(s) {
|
|
538
|
-
return t(+s);
|
|
539
|
-
}, n;
|
|
540
|
-
})(0);
|
|
541
|
-
function ft(t, i, n) {
|
|
542
|
-
var s = t._x1, a = t._y1, _ = t._x2, r = t._y2;
|
|
543
|
-
if (t._l01_a > T) {
|
|
544
|
-
var e = 2 * t._l01_2a + 3 * t._l01_a * t._l12_a + t._l12_2a, o = 3 * t._l01_a * (t._l01_a + t._l12_a);
|
|
545
|
-
s = (s * e - t._x0 * t._l12_2a + t._x2 * t._l01_2a) / o, a = (a * e - t._y0 * t._l12_2a + t._y2 * t._l01_2a) / o;
|
|
546
|
-
}
|
|
547
|
-
if (t._l23_a > T) {
|
|
548
|
-
var c = 2 * t._l23_2a + 3 * t._l23_a * t._l12_a + t._l12_2a, h = 3 * t._l23_a * (t._l23_a + t._l12_a);
|
|
549
|
-
_ = (_ * c + t._x1 * t._l23_2a - i * t._l12_2a) / h, r = (r * c + t._y1 * t._l23_2a - n * t._l12_2a) / h;
|
|
550
|
-
}
|
|
551
|
-
t._context.bezierCurveTo(s, a, _, r, t._x2, t._y2);
|
|
552
|
-
}
|
|
553
|
-
function At(t, i) {
|
|
554
|
-
this._context = t, this._alpha = i;
|
|
555
|
-
}
|
|
556
|
-
At.prototype = {
|
|
557
|
-
areaStart: function() {
|
|
558
|
-
this._line = 0;
|
|
559
|
-
},
|
|
560
|
-
areaEnd: function() {
|
|
561
|
-
this._line = NaN;
|
|
562
|
-
},
|
|
563
|
-
lineStart: function() {
|
|
564
|
-
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
565
|
-
},
|
|
566
|
-
lineEnd: function() {
|
|
567
|
-
switch (this._point) {
|
|
568
|
-
case 2:
|
|
569
|
-
this._context.lineTo(this._x2, this._y2);
|
|
570
|
-
break;
|
|
571
|
-
case 3:
|
|
572
|
-
this.point(this._x2, this._y2);
|
|
573
|
-
break;
|
|
574
|
-
}
|
|
575
|
-
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
576
|
-
},
|
|
577
|
-
point: function(t, i) {
|
|
578
|
-
if (t = +t, i = +i, this._point) {
|
|
579
|
-
var n = this._x2 - t, s = this._y2 - i;
|
|
580
|
-
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(n * n + s * s, this._alpha));
|
|
581
|
-
}
|
|
582
|
-
switch (this._point) {
|
|
583
|
-
case 0:
|
|
584
|
-
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
585
|
-
break;
|
|
586
|
-
case 1:
|
|
587
|
-
this._point = 2;
|
|
588
|
-
break;
|
|
589
|
-
case 2:
|
|
590
|
-
this._point = 3;
|
|
591
|
-
// falls through
|
|
592
|
-
default:
|
|
593
|
-
ft(this, t, i);
|
|
594
|
-
break;
|
|
595
|
-
}
|
|
596
|
-
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
|
-
const hi = (function t(i) {
|
|
600
|
-
function n(s) {
|
|
601
|
-
return i ? new At(s, i) : new ct(s, 0);
|
|
602
|
-
}
|
|
603
|
-
return n.alpha = function(s) {
|
|
604
|
-
return t(+s);
|
|
605
|
-
}, n;
|
|
606
|
-
})(0.5);
|
|
607
|
-
function Ct(t, i) {
|
|
608
|
-
this._context = t, this._alpha = i;
|
|
609
|
-
}
|
|
610
|
-
Ct.prototype = {
|
|
611
|
-
areaStart: q,
|
|
612
|
-
areaEnd: q,
|
|
613
|
-
lineStart: function() {
|
|
614
|
-
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
615
|
-
},
|
|
616
|
-
lineEnd: function() {
|
|
617
|
-
switch (this._point) {
|
|
618
|
-
case 1: {
|
|
619
|
-
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
620
|
-
break;
|
|
621
|
-
}
|
|
622
|
-
case 2: {
|
|
623
|
-
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
624
|
-
break;
|
|
625
|
-
}
|
|
626
|
-
case 3: {
|
|
627
|
-
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
628
|
-
break;
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
},
|
|
632
|
-
point: function(t, i) {
|
|
633
|
-
if (t = +t, i = +i, this._point) {
|
|
634
|
-
var n = this._x2 - t, s = this._y2 - i;
|
|
635
|
-
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(n * n + s * s, this._alpha));
|
|
636
|
-
}
|
|
637
|
-
switch (this._point) {
|
|
638
|
-
case 0:
|
|
639
|
-
this._point = 1, this._x3 = t, this._y3 = i;
|
|
640
|
-
break;
|
|
641
|
-
case 1:
|
|
642
|
-
this._point = 2, this._context.moveTo(this._x4 = t, this._y4 = i);
|
|
643
|
-
break;
|
|
644
|
-
case 2:
|
|
645
|
-
this._point = 3, this._x5 = t, this._y5 = i;
|
|
646
|
-
break;
|
|
647
|
-
default:
|
|
648
|
-
ft(this, t, i);
|
|
649
|
-
break;
|
|
650
|
-
}
|
|
651
|
-
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
652
|
-
}
|
|
653
|
-
};
|
|
654
|
-
const oi = (function t(i) {
|
|
655
|
-
function n(s) {
|
|
656
|
-
return i ? new Ct(s, i) : new lt(s, 0);
|
|
657
|
-
}
|
|
658
|
-
return n.alpha = function(s) {
|
|
659
|
-
return t(+s);
|
|
660
|
-
}, n;
|
|
661
|
-
})(0.5);
|
|
662
|
-
function Mt(t, i) {
|
|
663
|
-
this._context = t, this._alpha = i;
|
|
664
|
-
}
|
|
665
|
-
Mt.prototype = {
|
|
666
|
-
areaStart: function() {
|
|
667
|
-
this._line = 0;
|
|
668
|
-
},
|
|
669
|
-
areaEnd: function() {
|
|
670
|
-
this._line = NaN;
|
|
671
|
-
},
|
|
672
|
-
lineStart: function() {
|
|
673
|
-
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
674
|
-
},
|
|
675
|
-
lineEnd: function() {
|
|
676
|
-
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
677
|
-
},
|
|
678
|
-
point: function(t, i) {
|
|
679
|
-
if (t = +t, i = +i, this._point) {
|
|
680
|
-
var n = this._x2 - t, s = this._y2 - i;
|
|
681
|
-
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(n * n + s * s, this._alpha));
|
|
682
|
-
}
|
|
683
|
-
switch (this._point) {
|
|
684
|
-
case 0:
|
|
685
|
-
this._point = 1;
|
|
686
|
-
break;
|
|
687
|
-
case 1:
|
|
688
|
-
this._point = 2;
|
|
689
|
-
break;
|
|
690
|
-
case 2:
|
|
691
|
-
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
692
|
-
break;
|
|
693
|
-
case 3:
|
|
694
|
-
this._point = 4;
|
|
695
|
-
// falls through
|
|
696
|
-
default:
|
|
697
|
-
ft(this, t, i);
|
|
698
|
-
break;
|
|
699
|
-
}
|
|
700
|
-
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
701
|
-
}
|
|
702
|
-
};
|
|
703
|
-
const ai = (function t(i) {
|
|
704
|
-
function n(s) {
|
|
705
|
-
return i ? new Mt(s, i) : new ut(s, 0);
|
|
706
|
-
}
|
|
707
|
-
return n.alpha = function(s) {
|
|
708
|
-
return t(+s);
|
|
709
|
-
}, n;
|
|
710
|
-
})(0.5);
|
|
711
|
-
function Pt(t) {
|
|
712
|
-
this._context = t;
|
|
713
|
-
}
|
|
714
|
-
Pt.prototype = {
|
|
715
|
-
areaStart: q,
|
|
716
|
-
areaEnd: q,
|
|
717
|
-
lineStart: function() {
|
|
718
|
-
this._point = 0;
|
|
719
|
-
},
|
|
720
|
-
lineEnd: function() {
|
|
721
|
-
this._point && this._context.closePath();
|
|
722
|
-
},
|
|
723
|
-
point: function(t, i) {
|
|
724
|
-
t = +t, i = +i, this._point ? this._context.lineTo(t, i) : (this._point = 1, this._context.moveTo(t, i));
|
|
725
|
-
}
|
|
726
|
-
};
|
|
727
|
-
function ri(t) {
|
|
728
|
-
return new Pt(t);
|
|
729
|
-
}
|
|
730
|
-
function mt(t) {
|
|
731
|
-
return t < 0 ? -1 : 1;
|
|
732
|
-
}
|
|
733
|
-
function gt(t, i, n) {
|
|
734
|
-
var s = t._x1 - t._x0, a = i - t._x1, _ = (t._y1 - t._y0) / (s || a < 0 && -0), r = (n - t._y1) / (a || s < 0 && -0), e = (_ * a + r * s) / (s + a);
|
|
735
|
-
return (mt(_) + mt(r)) * Math.min(Math.abs(_), Math.abs(r), 0.5 * Math.abs(e)) || 0;
|
|
736
|
-
}
|
|
737
|
-
function vt(t, i) {
|
|
738
|
-
var n = t._x1 - t._x0;
|
|
739
|
-
return n ? (3 * (t._y1 - t._y0) / n - i) / 2 : i;
|
|
740
|
-
}
|
|
741
|
-
function rt(t, i, n) {
|
|
742
|
-
var s = t._x0, a = t._y0, _ = t._x1, r = t._y1, e = (_ - s) / 3;
|
|
743
|
-
t._context.bezierCurveTo(s + e, a + e * i, _ - e, r - e * n, _, r);
|
|
744
|
-
}
|
|
745
|
-
function $(t) {
|
|
746
|
-
this._context = t;
|
|
747
|
-
}
|
|
748
|
-
$.prototype = {
|
|
749
|
-
areaStart: function() {
|
|
750
|
-
this._line = 0;
|
|
751
|
-
},
|
|
752
|
-
areaEnd: function() {
|
|
753
|
-
this._line = NaN;
|
|
754
|
-
},
|
|
755
|
-
lineStart: function() {
|
|
756
|
-
this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
|
|
757
|
-
},
|
|
758
|
-
lineEnd: function() {
|
|
759
|
-
switch (this._point) {
|
|
760
|
-
case 2:
|
|
761
|
-
this._context.lineTo(this._x1, this._y1);
|
|
762
|
-
break;
|
|
763
|
-
case 3:
|
|
764
|
-
rt(this, this._t0, vt(this, this._t0));
|
|
765
|
-
break;
|
|
766
|
-
}
|
|
767
|
-
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
768
|
-
},
|
|
769
|
-
point: function(t, i) {
|
|
770
|
-
var n = NaN;
|
|
771
|
-
if (t = +t, i = +i, !(t === this._x1 && i === this._y1)) {
|
|
772
|
-
switch (this._point) {
|
|
773
|
-
case 0:
|
|
774
|
-
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
775
|
-
break;
|
|
776
|
-
case 1:
|
|
777
|
-
this._point = 2;
|
|
778
|
-
break;
|
|
779
|
-
case 2:
|
|
780
|
-
this._point = 3, rt(this, vt(this, n = gt(this, t, i)), n);
|
|
781
|
-
break;
|
|
782
|
-
default:
|
|
783
|
-
rt(this, this._t0, n = gt(this, t, i));
|
|
784
|
-
break;
|
|
785
|
-
}
|
|
786
|
-
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = i, this._t0 = n;
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
function Rt(t) {
|
|
791
|
-
this._context = new Bt(t);
|
|
792
|
-
}
|
|
793
|
-
(Rt.prototype = Object.create($.prototype)).point = function(t, i) {
|
|
794
|
-
$.prototype.point.call(this, i, t);
|
|
795
|
-
};
|
|
796
|
-
function Bt(t) {
|
|
797
|
-
this._context = t;
|
|
798
|
-
}
|
|
799
|
-
Bt.prototype = {
|
|
800
|
-
moveTo: function(t, i) {
|
|
801
|
-
this._context.moveTo(i, t);
|
|
802
|
-
},
|
|
803
|
-
closePath: function() {
|
|
804
|
-
this._context.closePath();
|
|
805
|
-
},
|
|
806
|
-
lineTo: function(t, i) {
|
|
807
|
-
this._context.lineTo(i, t);
|
|
808
|
-
},
|
|
809
|
-
bezierCurveTo: function(t, i, n, s, a, _) {
|
|
810
|
-
this._context.bezierCurveTo(i, t, s, n, _, a);
|
|
811
|
-
}
|
|
812
|
-
};
|
|
813
|
-
function ci(t) {
|
|
814
|
-
return new $(t);
|
|
815
|
-
}
|
|
816
|
-
function li(t) {
|
|
817
|
-
return new Rt(t);
|
|
818
|
-
}
|
|
819
|
-
function Ot(t) {
|
|
820
|
-
this._context = t;
|
|
821
|
-
}
|
|
822
|
-
Ot.prototype = {
|
|
823
|
-
areaStart: function() {
|
|
824
|
-
this._line = 0;
|
|
825
|
-
},
|
|
826
|
-
areaEnd: function() {
|
|
827
|
-
this._line = NaN;
|
|
828
|
-
},
|
|
829
|
-
lineStart: function() {
|
|
830
|
-
this._x = [], this._y = [];
|
|
831
|
-
},
|
|
832
|
-
lineEnd: function() {
|
|
833
|
-
var t = this._x, i = this._y, n = t.length;
|
|
834
|
-
if (n)
|
|
835
|
-
if (this._line ? this._context.lineTo(t[0], i[0]) : this._context.moveTo(t[0], i[0]), n === 2)
|
|
836
|
-
this._context.lineTo(t[1], i[1]);
|
|
837
|
-
else
|
|
838
|
-
for (var s = bt(t), a = bt(i), _ = 0, r = 1; r < n; ++_, ++r)
|
|
839
|
-
this._context.bezierCurveTo(s[0][_], a[0][_], s[1][_], a[1][_], t[r], i[r]);
|
|
840
|
-
(this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
|
|
841
|
-
},
|
|
842
|
-
point: function(t, i) {
|
|
843
|
-
this._x.push(+t), this._y.push(+i);
|
|
844
|
-
}
|
|
845
|
-
};
|
|
846
|
-
function bt(t) {
|
|
847
|
-
var i, n = t.length - 1, s, a = new Array(n), _ = new Array(n), r = new Array(n);
|
|
848
|
-
for (a[0] = 0, _[0] = 2, r[0] = t[0] + 2 * t[1], i = 1; i < n - 1; ++i) a[i] = 1, _[i] = 4, r[i] = 4 * t[i] + 2 * t[i + 1];
|
|
849
|
-
for (a[n - 1] = 2, _[n - 1] = 7, r[n - 1] = 8 * t[n - 1] + t[n], i = 1; i < n; ++i) s = a[i] / _[i - 1], _[i] -= s, r[i] -= s * r[i - 1];
|
|
850
|
-
for (a[n - 1] = r[n - 1] / _[n - 1], i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / _[i];
|
|
851
|
-
for (_[n - 1] = (t[n] + a[n - 1]) / 2, i = 0; i < n - 1; ++i) _[i] = 2 * t[i + 1] - a[i + 1];
|
|
852
|
-
return [a, _];
|
|
853
|
-
}
|
|
854
|
-
function ui(t) {
|
|
855
|
-
return new Ot(t);
|
|
856
|
-
}
|
|
857
|
-
function it(t, i) {
|
|
858
|
-
this._context = t, this._t = i;
|
|
859
|
-
}
|
|
860
|
-
it.prototype = {
|
|
861
|
-
areaStart: function() {
|
|
862
|
-
this._line = 0;
|
|
863
|
-
},
|
|
864
|
-
areaEnd: function() {
|
|
865
|
-
this._line = NaN;
|
|
866
|
-
},
|
|
867
|
-
lineStart: function() {
|
|
868
|
-
this._x = this._y = NaN, this._point = 0;
|
|
869
|
-
},
|
|
870
|
-
lineEnd: function() {
|
|
871
|
-
0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
|
|
872
|
-
},
|
|
873
|
-
point: function(t, i) {
|
|
874
|
-
switch (t = +t, i = +i, this._point) {
|
|
875
|
-
case 0:
|
|
876
|
-
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
877
|
-
break;
|
|
878
|
-
case 1:
|
|
879
|
-
this._point = 2;
|
|
880
|
-
// falls through
|
|
881
|
-
default: {
|
|
882
|
-
if (this._t <= 0)
|
|
883
|
-
this._context.lineTo(this._x, i), this._context.lineTo(t, i);
|
|
884
|
-
else {
|
|
885
|
-
var n = this._x * (1 - this._t) + t * this._t;
|
|
886
|
-
this._context.lineTo(n, this._y), this._context.lineTo(n, i);
|
|
887
|
-
}
|
|
888
|
-
break;
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
this._x = t, this._y = i;
|
|
892
|
-
}
|
|
893
|
-
};
|
|
894
|
-
function fi(t) {
|
|
895
|
-
return new it(t, 0.5);
|
|
896
|
-
}
|
|
897
|
-
function pi(t) {
|
|
898
|
-
return new it(t, 0);
|
|
899
|
-
}
|
|
900
|
-
function xi(t) {
|
|
901
|
-
return new it(t, 1);
|
|
902
|
-
}
|
|
903
|
-
export {
|
|
904
|
-
xi as a,
|
|
905
|
-
ui as b,
|
|
906
|
-
fi as c,
|
|
907
|
-
ci as d,
|
|
908
|
-
ri as e,
|
|
909
|
-
Ft as f,
|
|
910
|
-
ai as g,
|
|
911
|
-
oi as h,
|
|
912
|
-
hi as i,
|
|
913
|
-
_i as j,
|
|
914
|
-
ei as k,
|
|
915
|
-
si as l,
|
|
916
|
-
li as m,
|
|
917
|
-
ni as n,
|
|
918
|
-
ii as o,
|
|
919
|
-
ti as p,
|
|
920
|
-
$t as q,
|
|
921
|
-
Wt as r,
|
|
922
|
-
pi as s,
|
|
923
|
-
Ut as t,
|
|
924
|
-
Zt as u
|
|
925
|
-
};
|