decocms 4.161.2 → 4.162.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DkjWcZD-.js → AlertCircle-LCxBCJ8n.js} +1 -1
- package/dist/client/assets/{AreaChart-BhkonnRg.js → AreaChart-CVlhdmdg.js} +1 -1
- package/dist/client/assets/{ArrowUp-DAA8boPY.js → ArrowUp-LFRKHLuQ.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-D8TPuRuJ.js → ArrowUpRight-CXMFqfGp.js} +1 -1
- package/dist/client/assets/{Check-De5xpJ0K.js → Check-BCFAcmIa.js} +1 -1
- package/dist/client/assets/{CheckCircle-DeJIdYYq.js → CheckCircle-DpOD9rH0.js} +1 -1
- package/dist/client/assets/{ChevronDown-grOM3xSX.js → ChevronDown-BOvaCVzg.js} +1 -1
- package/dist/client/assets/{ChevronRight-Cyogjxfm.js → ChevronRight-liTksB2U.js} +1 -1
- package/dist/client/assets/{ChevronUp-DIUedEx1.js → ChevronUp-BIqoKMUJ.js} +1 -1
- package/dist/client/assets/{Copy01-DEkTleE-.js → Copy01-ZIMiAxdP.js} +1 -1
- package/dist/client/assets/{CpuChip01-Dsk680MX.js → CpuChip01-ZsmfFXVO.js} +1 -1
- package/dist/client/assets/{DotsVertical-BaMvQPx5.js → DotsVertical-CtO9eku7.js} +1 -1
- package/dist/client/assets/{Eye-DdzBJpW0.js → Eye-BQWYf35S.js} +1 -1
- package/dist/client/assets/{FilterLines-1IFdHyBL.js → FilterLines-CaGojimS.js} +1 -1
- package/dist/client/assets/{HardDrive-CZF0RiCb.js → HardDrive-BRyCfhBH.js} +1 -1
- package/dist/client/assets/{Key01-qFWWm7I0.js → Key01-i8xg5eM3.js} +1 -1
- package/dist/client/assets/{LayoutLeft-D3dfvOJc.js → LayoutLeft-Co2_iLon.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BUH7ViZX.js → LinkExternal01-S8dAjzzi.js} +1 -1
- package/dist/client/assets/{LogOut01-GO407ARs.js → LogOut01-D75UBZCc.js} +1 -1
- package/dist/client/assets/{Monitor01-BBb-96JI.js → Monitor01-BAx1QWFz.js} +1 -1
- package/dist/client/assets/{Palette-G-qrN-IT.js → Palette-Bg3YC03V.js} +1 -1
- package/dist/client/assets/{Play-CkvF8PeT.js → Play-VIp82r5R.js} +1 -1
- package/dist/client/assets/{Plus-DolMQAo4.js → Plus-C9hAZmdY.js} +1 -1
- package/dist/client/assets/{SearchLg-CFQzg9fN.js → SearchLg-CqGEHAUM.js} +1 -1
- package/dist/client/assets/{SearchMd-DCX7P32_.js → SearchMd-oPsBet0y.js} +1 -1
- package/dist/client/assets/{Settings02-QFTejQVV.js → Settings02-DNMfHyCE.js} +1 -1
- package/dist/client/assets/{Shield01-BlitQe4N.js → Shield01-DD8XMdYI.js} +1 -1
- package/dist/client/assets/{Star01-D0qlrfqR.js → Star01-y2n-9wTn.js} +1 -1
- package/dist/client/assets/{Stars01-2TnupN6q.js → Stars01-CJ0QEEdc.js} +1 -1
- package/dist/client/assets/{Stars02-DbK2oBak.js → Stars02-B3TWh8au.js} +1 -1
- package/dist/client/assets/{Sun-DVajpqnC.js → Sun-BQEYQLhf.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DY4K5cqR.js → SwitchHorizontal01-Dsxsamxe.js} +1 -1
- package/dist/client/assets/{Tool01-CgtDQOgO.js → Tool01-Oew-Vovb.js} +1 -1
- package/dist/client/assets/{Tool02-MSwzSxke.js → Tool02-CJeM1QZT.js} +1 -1
- package/dist/client/assets/{Trash01-DSxLTY0P.js → Trash01-CLRqp8e5.js} +1 -1
- package/dist/client/assets/{TrendUp01-djHA1GEE.js → TrendUp01-Bm1SbHN0.js} +1 -1
- package/dist/client/assets/{Upload01-W82kShpH.js → Upload01-ZVOuhs4w.js} +1 -1
- package/dist/client/assets/{User01-CXTn_TP5.js → User01-BYLEai7_.js} +1 -1
- package/dist/client/assets/{Users01-DQVb_7oO.js → Users01-CS4W313X.js} +1 -1
- package/dist/client/assets/{Users03-DK2c0NaU.js → Users03-CbHaoSh0.js} +1 -1
- package/dist/client/assets/{X-DsGAzzV8.js → X-x99fWfG-.js} +1 -1
- package/dist/client/assets/{XCircle-DuADiFVm.js → XCircle-CeqmuHIK.js} +1 -1
- package/dist/client/assets/{XClose-BOYWq1vy.js → XClose-CCug5seG.js} +1 -1
- package/dist/client/assets/{Zap-Djw_FpdI.js → Zap-DHqCvvjt.js} +1 -1
- package/dist/client/assets/{ZapSquare-C3s49zNL.js → ZapSquare-BKWVL4uR.js} +1 -1
- package/dist/client/assets/{access-gate-BRcWAcEH.js → access-gate-C9PFWoZS.js} +1 -1
- package/dist/client/assets/{add-section-modal-DkaZh9cy.js → add-section-modal-DEjIe-XG.js} +1 -1
- package/dist/client/assets/{agent-icon-D0etPDkN.js → agent-icon-DR5LB4zY.js} +1 -1
- package/dist/client/assets/{agents-list-1nArnMzn.js → agents-list-BvXD__fr.js} +1 -1
- package/dist/client/assets/{ai-providers-XeksWCKW.js → ai-providers-DuMestUx.js} +1 -1
- package/dist/client/assets/{alert-I-_PUhRM.js → alert-DWAFMZWl.js} +1 -1
- package/dist/client/assets/{alert-dialog-B3JnEiZT.js → alert-dialog-DR9_FciR.js} +1 -1
- package/dist/client/assets/{app-editor-BbkYtqwi.js → app-editor-BC28cPFO.js} +1 -1
- package/dist/client/assets/{auth-BkcPrlSH.js → auth-BiMrtm96.js} +1 -1
- package/dist/client/assets/{auth-catchall-JZDu0xii.js → auth-catchall-BNPPREMt.js} +1 -1
- package/dist/client/assets/{auth-entry-D376ANc2.js → auth-entry-CVJjeL2L.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DULW70yu.js → auth-split-layout-CbPO57v5.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DZxhoF_0.js → authenticate-and-persist-oauth-B8SUVbil.js} +1 -1
- package/dist/client/assets/{automation-list-row-y5_hhf0p.js → automation-list-row-C5X09Iy0.js} +1 -1
- package/dist/client/assets/{automation-runs-DNqF8MQa.js → automation-runs-i1Rm2H_V.js} +1 -1
- package/dist/client/assets/{automations-BTGiuB5f.js → automations-C48IGjrC.js} +1 -1
- package/dist/client/assets/{avatar-ShBwmidu.js → avatar-CssB4IS0.js} +1 -1
- package/dist/client/assets/{badge-CLGDkcax.js → badge-B-S2iO6e.js} +1 -1
- package/dist/client/assets/{block-document-DKkHndgg.js → block-document-Dotg4_gG.js} +1 -1
- package/dist/client/assets/{brand-context-DidwD5g4.js → brand-context-C331P1EH.js} +1 -1
- package/dist/client/assets/{buckets-BXy6rRmD.js → buckets-zt_s5mti.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-Pp9TOqgP.js → bulk-category-panel-DMe3EujP.js} +1 -1
- package/dist/client/assets/{calendar-BcaXLcUe.js → calendar-BO4sgiAT.js} +1 -1
- package/dist/client/assets/{capability-load-error-CqdQPRYW.js → capability-load-error-B2CpoAHd.js} +1 -1
- package/dist/client/assets/{card-C98b87L-.js → card-Dtd81GX2.js} +1 -1
- package/dist/client/assets/{category-editor-BnVhTkaR.js → category-editor-BxdNiDrW.js} +1 -1
- package/dist/client/assets/{chat-context-DAYV5YFw.js → chat-context-_ugV5jB0.js} +1 -1
- package/dist/client/assets/{checkbox-hx3qwtU4.js → checkbox-DyL6jqNP.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CSA4lo7W.js → cli-auth-success-CBllfpZy.js} +1 -1
- package/dist/client/assets/{collection-detail-Dnt_8ShC.js → collection-detail-CJ-IT8lZ.js} +1 -1
- package/dist/client/assets/{collection-display-button-D7ZFqgmc.js → collection-display-button-rIB9x9ex.js} +1 -1
- package/dist/client/assets/{collection-search-BujcF3uz.js → collection-search-DDaBoxpd.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Dxzi1B76.js → collection-table-wrapper-DvDVvjdJ.js} +1 -1
- package/dist/client/assets/{collection-tabs-1Doa_k8q.js → collection-tabs-6ZZEGxA4.js} +1 -1
- package/dist/client/assets/{command-DTif1pCh.js → command-B0sPw5D_.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CkLAXxz7.js → commerce-onboarding-CA2gNg1f.js} +1 -1
- package/dist/client/assets/{companions-core-DyTSbEDy.js → companions-core-bB24Ott2.js} +1 -1
- package/dist/client/assets/{connect-BQJsmY0Z.js → connect-dTZGddot.js} +1 -1
- package/dist/client/assets/{connection-DT5hjP5L.js → connection-B2NXk64E.js} +1 -1
- package/dist/client/assets/{connection-card-BEnBoaJQ.js → connection-card-D4yqc7qp.js} +1 -1
- package/dist/client/assets/{connection-detail-3HClPo6D.js → connection-detail-BNv09xz3.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-D1M4SXKF.js → connection-form-helpers-Dp2JRmtQ.js} +1 -1
- package/dist/client/assets/{connections-ok4_lFFO.js → connections-Dkp0iGo0.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-Z3wBsgik.js → decopilot-sse-pool-tfgrlddF.js} +1 -1
- package/dist/client/assets/{dialog-B1XOtEFa.js → dialog-DDV9hxrK.js} +1 -1
- package/dist/client/assets/{domain-settings-BX-8JSGW.js → domain-settings-Cj5IWEJw.js} +1 -1
- package/dist/client/assets/{drawer-Bindqbrh.js → drawer-CLLhxT0A.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B2utwqdh.js → dropdown-menu-DFyP7pd-.js} +1 -1
- package/dist/client/assets/{empty-state-ClLU6296.js → empty-state-C8MJdBfO.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DSg0AjMi.js → extract-connection-data-GzPEHPIn.js} +1 -1
- package/dist/client/assets/{file-explorer-5gFVDcag.js → file-explorer-DcVPQshc.js} +1 -1
- package/dist/client/assets/{form-ujVSU6EU.js → form-dL4WOA5T.js} +1 -1
- package/dist/client/assets/{general-BgWx-5sJ.js → general-6LKGbmPX.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CuyTuY6S.js → github-repo-picker-BYme-j8T.js} +1 -1
- package/dist/client/assets/{hooks-BSzBu2tD.js → hooks-B9cPFqGD.js} +1 -1
- package/dist/client/assets/{index-Cx7SoZn_.js → index-60s5nmmz.js} +1 -1
- package/dist/client/assets/{index-DLYm4Sa-.js → index-BBd4FRXS.js} +1 -1
- package/dist/client/assets/{index-BwQT5Hhi.js → index-By7P3hhU.js} +1 -1
- package/dist/client/assets/{index-Bhxc2Isb.js → index-D2YLDCkn.js} +1 -1
- package/dist/client/assets/{index-B6q32zYz.js → index-DeVgWfhn.js} +1 -1
- package/dist/client/assets/{index-CBD4gVZR.js → index-Y9ucfh4p.js} +1 -1
- package/dist/client/assets/{index-DvtCTmmx.js → index-ZADPN4om.js} +3 -3
- package/dist/client/assets/{index-DyrZQfe8.js → index-jG87093U.js} +1 -1
- package/dist/client/assets/{index-WEdfBcak.js → index-kfiIPtrP.js} +3 -3
- package/dist/client/assets/{index-PxBIb6oF.js → index-pBoO89BO.js} +1 -1
- package/dist/client/assets/{index-redirect-CzO62sP0.js → index-redirect-CfBCt2ky.js} +1 -1
- package/dist/client/assets/{index-DJEeCuky.js → index-u1ajTG-j.js} +5 -5
- package/dist/client/assets/{input-psV6HQEl.js → input-BjlpMnRZ.js} +1 -1
- package/dist/client/assets/{integration-icon-DjHXNUPP.js → integration-icon-CI602PfH.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-CB5VBjiU.js → invite-member-dialog-phqD0XUF.js} +1 -1
- package/dist/client/assets/{label-6xyucx-s.js → label-CSNgMmTA.js} +1 -1
- package/dist/client/assets/{layout-CBOg45xC.js → layout-BBpcfaXL.js} +1 -1
- package/dist/client/assets/{login-Cxn9KXio.js → login-DE_463fT.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CKixkOtS.js → mcp-oauth-CxvR2V5h.js} +1 -1
- package/dist/client/assets/{members-CL8x8Krr.js → members-CeatJR1m.js} +1 -1
- package/dist/client/assets/{monaco-editor-DJpDPKHP.js → monaco-editor-zuz4s4Wv.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DPROMALt.js → monitoring-stats-row-krDWXB2t.js} +1 -1
- package/dist/client/assets/{multi-select-Bh_v-l_m.js → multi-select-CMyA49eR.js} +1 -1
- package/dist/client/assets/{oauth-callback-DutuJ6V_.js → oauth-callback-C9jDdjjs.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C4S55pOq.js → oauth-callback-ai-provider-CY3QZi7E.js} +1 -1
- package/dist/client/assets/{onboarding-DuerzaiT.js → onboarding-C3hOUjMo.js} +1 -1
- package/dist/client/assets/{org-layout-of8A1jAC.js → org-layout-XwuOFG3d.js} +1 -1
- package/dist/client/assets/{organization-choice-B3rPtstm.js → organization-choice-BM-XKanD.js} +1 -1
- package/dist/client/assets/{orgs-3twuRrYh.js → orgs-DmL2XQRI.js} +1 -1
- package/dist/client/assets/{page-seo-form-BY3nYdel.js → page-seo-form-0xV6qNbu.js} +1 -1
- package/dist/client/assets/{popover-BGrrSZ8M.js → popover-EE72qx8A.js} +1 -1
- package/dist/client/assets/{post-editor-C4XyjEMt.js → post-editor-BuHJ7HnN.js} +1 -1
- package/dist/client/assets/{primitives-CbLkj1JF.js → primitives-ChQICk_y.js} +1 -1
- package/dist/client/assets/{profile-QV2jNue9.js → profile-B0SoUvj9.js} +1 -1
- package/dist/client/assets/project-app-view-YTx3iCq1.js +1 -0
- package/dist/client/assets/record-editor-M7bvrOuK.js +1 -0
- package/dist/client/assets/{redirect-editor-s6PMTrlX.js → redirect-editor-_6dVoePs.js} +1 -1
- package/dist/client/assets/registry-fNrz9Fbw.js +2 -0
- package/dist/client/assets/{registry-layout-DO-5mJZI.js → registry-layout-OS_nbWHC.js} +1 -1
- package/dist/client/assets/{reports-CwFf2f6b.js → reports-B3VBQs5Y.js} +1 -1
- package/dist/client/assets/{require-capability-BeOopecx.js → require-capability-CieeBdjs.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BFWyMRf5.js → required-auth-layout-BDIyJAhL.js} +1 -1
- package/dist/client/assets/{reset-password-C_-lQlSH.js → reset-password-CpG0cI8F.js} +1 -1
- package/dist/client/assets/{roles-D_oBaje3.js → roles-DlOhY5JD.js} +1 -1
- package/dist/client/assets/{search-input-Bfg6VxQW.js → search-input-cF6ciAVZ.js} +1 -1
- package/dist/client/assets/{secrets-k2GFZysm.js → secrets-Dh26lP0l.js} +1 -1
- package/dist/client/assets/{sections-editor-BujDptuZ.js → sections-editor-HbcASmu4.js} +1 -1
- package/dist/client/assets/{select-CWMyLghp.js → select-ceaThfRJ.js} +1 -1
- package/dist/client/assets/{select-model-CXvd3jI3.js → select-model-CDLnPEtQ.js} +1 -1
- package/dist/client/assets/{self-tool-result-BpCEaqPw.js → self-tool-result-CaPtQwDV.js} +1 -1
- package/dist/client/assets/{seo-editor-Cxh8JRxE.js → seo-editor-CoW5u7nN.js} +1 -1
- package/dist/client/assets/{settings-layout-D-wc3B9V.js → settings-layout-CM35yCas.js} +1 -1
- package/dist/client/assets/{settings-section-Z9R6HthO.js → settings-section-BJKYi71q.js} +1 -1
- package/dist/client/assets/{shell-controls-DJv-74jc.js → shell-controls-BLKKFd-i.js} +1 -1
- package/dist/client/assets/{shell-layout-C7_zhx2J.js → shell-layout-Cem8gTbL.js} +1 -1
- package/dist/client/assets/{sidebar-CGksZnes.js → sidebar-4JG4Ky1v.js} +1 -1
- package/dist/client/assets/{skeleton-BpfjGmFh.js → skeleton-QaXxQA1G.js} +1 -1
- package/dist/client/assets/{spinner-D0HY4fdO.js → spinner-CyUVcOie.js} +1 -1
- package/dist/client/assets/{sso-Bz5k2CGO.js → sso-CCHd62CO.js} +1 -1
- package/dist/client/assets/{store-DT_Iylxw.js → store-lf3dlAB1.js} +1 -1
- package/dist/client/assets/store-registry-BTA3Me55.js +2 -0
- package/dist/client/assets/{studio-tools-ChooDZCt.js → studio-tools-CUWFqlTh.js} +1 -1
- package/dist/client/assets/{switch-BmoPsk_L.js → switch-1Vfz3uSg.js} +1 -1
- package/dist/client/assets/{tab-id-DpWn0fbM.js → tab-id-CI2T4n3l.js} +1 -1
- package/dist/client/assets/{table-BluVU23Z.js → table-BQAbKOYa.js} +1 -1
- package/dist/client/assets/{tabs-C9Dri0XB.js → tabs-qagPrFeg.js} +1 -1
- package/dist/client/assets/{textarea-CMhJIDqb.js → textarea-C3WLqu3y.js} +1 -1
- package/dist/client/assets/{toggle-group-BK4yx2ic.js → toggle-group-NXghphbz.js} +1 -1
- package/dist/client/assets/{toolbar-CJN41Q0U.js → toolbar-ZE2CENTf.js} +1 -1
- package/dist/client/assets/{tooltip-DCC06XNr.js → tooltip-CiyZj9MW.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CTGRuhSY.js → use-ai-providers-B6AoVltc.js} +1 -1
- package/dist/client/assets/{use-automations-CTEnO1Zu.js → use-automations-CiQS3Pmq.js} +1 -1
- package/dist/client/assets/{use-autosave-CgHGIUlv.js → use-autosave-DE9X8qzD.js} +1 -1
- package/dist/client/assets/{use-capability-BTlnzwER.js → use-capability-DX60Hp0S.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Dg1-zfZ4.js → use-clock-tick-Q8CgV2VU.js} +1 -1
- package/dist/client/assets/{use-connection-BTIHIL2U.js → use-connection-c87Xz8U-.js} +1 -1
- package/dist/client/assets/{use-copy-Bkx7pWID.js → use-copy-BPhBM3Oi.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-ClJmipur.js → use-create-virtual-mcp-BnZL3DPb.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Dp_dA5sI.js → use-debounced-autosave-BmT6bwNL.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Dx_Znjq0.js → use-debounced-value-DViZw7k7.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CnnQh7bH.js → use-deco-credits-DJJXk8t9.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-B84Jbaf1.js → use-decopilot-events-DuMl-BWe.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Dd7d9SGg.js → use-delete-connection--jtVGLkv.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CElXlSvL.js → use-deployment-admin-Cr_7c4Yl.js} +1 -1
- package/dist/client/assets/{use-file-configs-DUlhqIgH.js → use-file-configs-CwjnQywn.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CRM4xUSx.js → use-infinite-scroll-8IyahDR0.js} +1 -1
- package/dist/client/assets/{use-join-requests-B0JwpKM9.js → use-join-requests-tHCwhSs3.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DH8oUnNS.js → use-mcp-auth-status-sjpR15R6.js} +1 -1
- package/dist/client/assets/{use-mcp-client-C78T1evw.js → use-mcp-client-BmnPrlCp.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-qcP_UOWU.js → use-mcp-tools-B9U_ZOEs.js} +1 -1
- package/dist/client/assets/{use-members-5U5mLxdD.js → use-members-BglXgqfG.js} +1 -1
- package/dist/client/assets/{use-mobile-BufL0gpx.js → use-mobile-ZF_jSfPp.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-bcvHJsmR.js → use-navigate-to-agent-DIeI8ULY.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-B93vTKrZ.js → use-org-auth-client-C-GSCd--.js} +1 -1
- package/dist/client/assets/{use-org-sso-BpALHDeh.js → use-org-sso-BawqtY1O.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CHjz2_ga.js → use-organization-roles-BfAcHhLm.js} +1 -1
- package/dist/client/assets/{use-organization-settings-rcLpLxq6.js → use-organization-settings-DcixnwK-.js} +1 -1
- package/dist/client/assets/{use-registry-connections-XjUGFr5z.js → use-registry-connections-VIMCCdEN.js} +1 -1
- package/dist/client/assets/{use-secrets-DVGBRr0e.js → use-secrets-DN6xkhJI.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CNPY1kJ-.js → use-status-sounds-CVssdpKX.js} +1 -1
- package/dist/client/assets/{use-tags-d-ihZKch.js → use-tags-OVuXWbIz.js} +1 -1
- package/dist/client/assets/{use-view-mode-CxLEvfyI.js → use-view-mode-BdkdIEp5.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-tTUO8PD5.js → use-virtual-mcp-BIQdKSoy.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-QTu-xaep.js +1 -0
- package/dist/client/assets/{useQueries-CX-pbcRo.js → useQueries-D2CKhSr2.js} +1 -1
- package/dist/client/assets/{useRouterState-DM9ViZSm.js → useRouterState-B0tRZSRp.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-_f32It26.js +1 -0
- package/dist/client/assets/{users-hps1B13C.js → users-Xgmv3XAu.js} +1 -1
- package/dist/client/assets/{variant-calendar--g4p8stV.js → variant-calendar-CHbHmJQD.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Cn3ICdtv.js → view-mode-toggle-DTYJdfuz.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +766 -766
- package/dist/server/server.js +576 -576
- package/package.json +2 -4
- package/dist/client/assets/project-app-view-CZZgc1s8.js +0 -1
- package/dist/client/assets/record-editor-Bk_Re_fD.js +0 -1
- package/dist/client/assets/registry-BTKEcIS_.js +0 -2
- package/dist/client/assets/store-registry-DwAm5lvb.js +0 -2
- package/dist/client/assets/useInfiniteQuery-C1ye6sqf.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CiYM_Dv6.js +0 -1
- package/dist/server/node_modules/@resvg/resvg-js/LICENSE +0 -373
- package/dist/server/node_modules/@resvg/resvg-js/README.md +0 -314
- package/dist/server/node_modules/@resvg/resvg-js/index.js +0 -23
- package/dist/server/node_modules/@resvg/resvg-js/js-binding.js +0 -1
- package/dist/server/node_modules/@resvg/resvg-js/package.json +0 -152
- package/dist/server/node_modules/@shuding/opentype.js/LICENSE +0 -20
- package/dist/server/node_modules/@shuding/opentype.js/README.md +0 -9
- package/dist/server/node_modules/@shuding/opentype.js/RELEASES.md +0 -272
- package/dist/server/node_modules/@shuding/opentype.js/bin/ot +0 -84
- package/dist/server/node_modules/@shuding/opentype.js/bin/server.js +0 -64
- package/dist/server/node_modules/@shuding/opentype.js/bin/test-render +0 -96
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.js +0 -11655
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.min.js +0 -2
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.module.js +0 -11639
- package/dist/server/node_modules/@shuding/opentype.js/package.json +0 -73
- package/dist/server/node_modules/@shuding/opentype.js/src/bbox.js +0 -158
- package/dist/server/node_modules/@shuding/opentype.js/src/bidi.js +0 -243
- package/dist/server/node_modules/@shuding/opentype.js/src/char.js +0 -43
- package/dist/server/node_modules/@shuding/opentype.js/src/check.js +0 -16
- package/dist/server/node_modules/@shuding/opentype.js/src/encoding.js +0 -1032
- package/dist/server/node_modules/@shuding/opentype.js/src/features/applySubstitution.js +0 -74
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicPresentationForms.js +0 -83
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicRequiredLigatures.js +0 -41
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicSentence.js +0 -43
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicWord.js +0 -31
- package/dist/server/node_modules/@shuding/opentype.js/src/features/featureQuery.js +0 -483
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/contextCheck/latinWord.js +0 -31
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/latinLigatures.js +0 -40
- package/dist/server/node_modules/@shuding/opentype.js/src/font.js +0 -433
- package/dist/server/node_modules/@shuding/opentype.js/src/glyph.js +0 -274
- package/dist/server/node_modules/@shuding/opentype.js/src/glyphset.js +0 -150
- package/dist/server/node_modules/@shuding/opentype.js/src/hintingtt.js +0 -3062
- package/dist/server/node_modules/@shuding/opentype.js/src/index.js +0 -5
- package/dist/server/node_modules/@shuding/opentype.js/src/layout.js +0 -357
- package/dist/server/node_modules/@shuding/opentype.js/src/opentype.js +0 -375
- package/dist/server/node_modules/@shuding/opentype.js/src/parse.js +0 -628
- package/dist/server/node_modules/@shuding/opentype.js/src/path.js +0 -212
- package/dist/server/node_modules/@shuding/opentype.js/src/position.js +0 -77
- package/dist/server/node_modules/@shuding/opentype.js/src/substitution.js +0 -447
- package/dist/server/node_modules/@shuding/opentype.js/src/table.js +0 -215
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cff.js +0 -1156
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cmap.js +0 -145
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/fvar.js +0 -71
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gdef.js +0 -62
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/glyf.js +0 -349
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gpos.js +0 -146
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gsub.js +0 -251
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/head.js +0 -35
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hhea.js +0 -27
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hmtx.js +0 -51
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/kern.js +0 -69
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/loca.js +0 -31
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/ltag.js +0 -33
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/maxp.js +0 -32
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/meta.js +0 -30
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/name.js +0 -680
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/os2.js +0 -65
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/post.js +0 -41
- package/dist/server/node_modules/@shuding/opentype.js/src/tokenizer.js +0 -522
- package/dist/server/node_modules/@shuding/opentype.js/src/types.js +0 -976
- package/dist/server/node_modules/@shuding/opentype.js/src/util.js +0 -17
- package/dist/server/node_modules/base64-js/.travis.yml +0 -5
- package/dist/server/node_modules/base64-js/LICENSE.MIT +0 -21
- package/dist/server/node_modules/base64-js/README.md +0 -31
- package/dist/server/node_modules/base64-js/bench/bench.js +0 -19
- package/dist/server/node_modules/base64-js/lib/b64.js +0 -124
- package/dist/server/node_modules/base64-js/package.json +0 -34
- package/dist/server/node_modules/base64-js/test/convert.js +0 -51
- package/dist/server/node_modules/base64-js/test/url-safe.js +0 -18
- package/dist/server/node_modules/camelize/.eslintrc +0 -24
- package/dist/server/node_modules/camelize/.github/FUNDING.yml +0 -12
- package/dist/server/node_modules/camelize/CHANGELOG.md +0 -64
- package/dist/server/node_modules/camelize/LICENSE +0 -18
- package/dist/server/node_modules/camelize/README.md +0 -81
- package/dist/server/node_modules/camelize/example/camel.js +0 -12
- package/dist/server/node_modules/camelize/index.js +0 -61
- package/dist/server/node_modules/camelize/package.json +0 -84
- package/dist/server/node_modules/camelize/test/camel.js +0 -48
- package/dist/server/node_modules/color-name/LICENSE +0 -8
- package/dist/server/node_modules/color-name/README.md +0 -11
- package/dist/server/node_modules/color-name/index.js +0 -152
- package/dist/server/node_modules/color-name/package.json +0 -28
- package/dist/server/node_modules/css-background-parser/LICENSE +0 -22
- package/dist/server/node_modules/css-background-parser/README.md +0 -149
- package/dist/server/node_modules/css-background-parser/index.js +0 -162
- package/dist/server/node_modules/css-background-parser/package.json +0 -19
- package/dist/server/node_modules/css-box-shadow/README.md +0 -27
- package/dist/server/node_modules/css-box-shadow/index.js +0 -64
- package/dist/server/node_modules/css-box-shadow/package.json +0 -14
- package/dist/server/node_modules/css-box-shadow/test.js +0 -204
- package/dist/server/node_modules/css-color-keywords/LICENSE +0 -15
- package/dist/server/node_modules/css-color-keywords/README.md +0 -47
- package/dist/server/node_modules/css-color-keywords/colors.json +0 -148
- package/dist/server/node_modules/css-color-keywords/index.js +0 -3
- package/dist/server/node_modules/css-color-keywords/package.json +0 -27
- package/dist/server/node_modules/css-gradient-parser/LICENSE +0 -21
- package/dist/server/node_modules/css-gradient-parser/README.md +0 -75
- package/dist/server/node_modules/css-gradient-parser/dist/index.cjs +0 -2
- package/dist/server/node_modules/css-gradient-parser/dist/index.js +0 -2
- package/dist/server/node_modules/css-gradient-parser/package.json +0 -54
- package/dist/server/node_modules/css-to-react-native/LICENSE.md +0 -21
- package/dist/server/node_modules/css-to-react-native/README.md +0 -115
- package/dist/server/node_modules/css-to-react-native/index.js +0 -886
- package/dist/server/node_modules/css-to-react-native/package.json +0 -65
- package/dist/server/node_modules/css-to-react-native/src/TokenStream.js +0 -74
- package/dist/server/node_modules/css-to-react-native/src/__tests__/aspectRatio.js +0 -23
- package/dist/server/node_modules/css-to-react-native/src/__tests__/border.js +0 -85
- package/dist/server/node_modules/css-to-react-native/src/__tests__/borderColor.js +0 -37
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxModel.js +0 -136
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxShadow.js +0 -83
- package/dist/server/node_modules/css-to-react-native/src/__tests__/colors.js +0 -31
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flex.js +0 -122
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flexFlow.js +0 -22
- package/dist/server/node_modules/css-to-react-native/src/__tests__/font.js +0 -117
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontFamily.js +0 -43
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontVariant.js +0 -15
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontWeight.js +0 -8
- package/dist/server/node_modules/css-to-react-native/src/__tests__/index.js +0 -204
- package/dist/server/node_modules/css-to-react-native/src/__tests__/placeContent.js +0 -19
- package/dist/server/node_modules/css-to-react-native/src/__tests__/shadowOffsets.js +0 -13
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecoration.js +0 -103
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecorationLine.js +0 -23
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textShadow.js +0 -30
- package/dist/server/node_modules/css-to-react-native/src/__tests__/transform.js +0 -55
- package/dist/server/node_modules/css-to-react-native/src/__tests__/units.js +0 -132
- package/dist/server/node_modules/css-to-react-native/src/devPropertiesWithoutUnitsRegExp.js +0 -19
- package/dist/server/node_modules/css-to-react-native/src/index.js +0 -90
- package/dist/server/node_modules/css-to-react-native/src/tokenTypes.js +0 -75
- package/dist/server/node_modules/css-to-react-native/src/transforms/aspectRatio.js +0 -12
- package/dist/server/node_modules/css-to-react-native/src/transforms/border.js +0 -53
- package/dist/server/node_modules/css-to-react-native/src/transforms/boxShadow.js +0 -11
- package/dist/server/node_modules/css-to-react-native/src/transforms/flex.js +0 -65
- package/dist/server/node_modules/css-to-react-native/src/transforms/flexFlow.js +0 -37
- package/dist/server/node_modules/css-to-react-native/src/transforms/font.js +0 -63
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontFamily.js +0 -20
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontVariant.js +0 -14
- package/dist/server/node_modules/css-to-react-native/src/transforms/index.js +0 -77
- package/dist/server/node_modules/css-to-react-native/src/transforms/placeContent.js +0 -24
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecoration.js +0 -53
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecorationLine.js +0 -18
- package/dist/server/node_modules/css-to-react-native/src/transforms/textShadow.js +0 -10
- package/dist/server/node_modules/css-to-react-native/src/transforms/transform.js +0 -74
- package/dist/server/node_modules/css-to-react-native/src/transforms/util.js +0 -99
- package/dist/server/node_modules/hex-rgb/index.js +0 -47
- package/dist/server/node_modules/hex-rgb/license +0 -9
- package/dist/server/node_modules/hex-rgb/package.json +0 -39
- package/dist/server/node_modules/hex-rgb/readme.md +0 -86
- package/dist/server/node_modules/linebreak/LICENSE +0 -21
- package/dist/server/node_modules/linebreak/dist/main.cjs +0 -1369
- package/dist/server/node_modules/linebreak/dist/module.mjs +0 -1368
- package/dist/server/node_modules/linebreak/package.json +0 -57
- package/dist/server/node_modules/linebreak/readme.md +0 -62
- package/dist/server/node_modules/parse-css-color/CHANGELOG.md +0 -54
- package/dist/server/node_modules/parse-css-color/LICENSE +0 -21
- package/dist/server/node_modules/parse-css-color/README.md +0 -110
- package/dist/server/node_modules/parse-css-color/dist/index.cjs.js +0 -171
- package/dist/server/node_modules/parse-css-color/dist/index.esm.js +0 -167
- package/dist/server/node_modules/parse-css-color/dist/index.umd.js +0 -7
- package/dist/server/node_modules/parse-css-color/package.json +0 -55
- package/dist/server/node_modules/postcss-value-parser/LICENSE +0 -22
- package/dist/server/node_modules/postcss-value-parser/README.md +0 -263
- package/dist/server/node_modules/postcss-value-parser/lib/index.js +0 -28
- package/dist/server/node_modules/postcss-value-parser/lib/parse.js +0 -321
- package/dist/server/node_modules/postcss-value-parser/lib/stringify.js +0 -48
- package/dist/server/node_modules/postcss-value-parser/lib/unit.js +0 -120
- package/dist/server/node_modules/postcss-value-parser/lib/walk.js +0 -22
- package/dist/server/node_modules/postcss-value-parser/package.json +0 -58
- package/dist/server/node_modules/satori/LICENSE +0 -373
- package/dist/server/node_modules/satori/README.md +0 -516
- package/dist/server/node_modules/satori/dist/index.cjs +0 -8
- package/dist/server/node_modules/satori/dist/index.cjs.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/dist/index.js +0 -8
- package/dist/server/node_modules/satori/dist/index.js.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/dist/jsx/index.cjs +0 -2
- package/dist/server/node_modules/satori/dist/jsx/index.cjs.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/index.js +0 -2
- package/dist/server/node_modules/satori/dist/jsx/index.js.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.cjs +0 -2
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.cjs.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js +0 -2
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/standalone.cjs +0 -8
- package/dist/server/node_modules/satori/dist/standalone.cjs.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/dist/standalone.js +0 -8
- package/dist/server/node_modules/satori/dist/standalone.js.LEGAL.txt +0 -4
- package/dist/server/node_modules/satori/package.json +0 -149
- package/dist/server/node_modules/satori/yoga.wasm +0 -0
- package/dist/server/node_modules/tiny-inflate/LICENSE +0 -21
- package/dist/server/node_modules/tiny-inflate/index.js +0 -375
- package/dist/server/node_modules/tiny-inflate/package.json +0 -28
- package/dist/server/node_modules/tiny-inflate/readme.md +0 -31
- package/dist/server/node_modules/tiny-inflate/test/index.js +0 -75
- package/dist/server/node_modules/tiny-inflate/test/lorem.txt +0 -199
- package/dist/server/node_modules/unicode-trie/LICENSE +0 -8
- package/dist/server/node_modules/unicode-trie/README.md +0 -77
- package/dist/server/node_modules/unicode-trie/builder.js +0 -966
- package/dist/server/node_modules/unicode-trie/index.js +0 -136
- package/dist/server/node_modules/unicode-trie/package.json +0 -27
- package/dist/server/node_modules/unicode-trie/swap.js +0 -25
- package/dist/server/node_modules/unicode-trie/test/mocha.opts +0 -1
- package/dist/server/node_modules/unicode-trie/test/test.js +0 -243
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
# resvg-js
|
|
2
|
-
|
|
3
|
-
<a href="https://github.com/yisibl/resvg-js/actions"><img alt="GitHub CI Status" src="https://github.com/yisibl/resvg-js/workflows/CI/badge.svg?branch=main"></a>
|
|
4
|
-
<a href="https://www.npmjs.com/package/@resvg/resvg-js"><img src="https://img.shields.io/npm/v/@resvg/resvg-js.svg?sanitize=true" alt="@resvg/resvg-js npm version"></a>
|
|
5
|
-
<a href="https://npmcharts.com/compare/@resvg/resvg-js?minimal=true"><img src="https://img.shields.io/npm/dm/@resvg/resvg-js.svg?sanitize=true" alt="@resvg/resvg-js downloads"></a>
|
|
6
|
-
[](https://www.rust-lang.org)
|
|
7
|
-
|
|
8
|
-
> resvg-js is a high-performance SVG renderer and toolkit, powered by Rust based [resvg](https://github.com/RazrFalcon/resvg/), with Node.js backend using [napi-rs](https://github.com/napi-rs/napi-rs), also a pure WebAssembly backend.
|
|
9
|
-
|
|
10
|
-
Please use all lowercase `resvg-js` when referencing project names.
|
|
11
|
-
|
|
12
|
-
**💖 🙏[Sponsoring me](#sponsor)**
|
|
13
|
-
|
|
14
|
-
> Your sponsorship means a lot to me. It will help me sustain my projects actively and make more of my ideas come true. Much appreciated!
|
|
15
|
-
|
|
16
|
-
## Features
|
|
17
|
-
|
|
18
|
-
- Fast, safe and zero dependencies, with correct output.
|
|
19
|
-
- Convert SVG to PNG, includes cropping, scaling and setting the background color.
|
|
20
|
-
- Support system fonts and custom fonts in SVG text.
|
|
21
|
-
- `v2`: Gets the width and height of the SVG and the generated PNG.
|
|
22
|
-
- `v2`: Support for outputting simplified SVG strings, such as converting shapes(rect, circle, etc) to `<path>`.
|
|
23
|
-
- `v2`: Support WebAssembly.
|
|
24
|
-
- `v2`: Support to get SVG bounding box and crop according to bounding box.
|
|
25
|
-
- `v2`: Support for loading images of external links in `<image>`.
|
|
26
|
-
- No need for node-gyp and postinstall, the `.node` file has been compiled for you.
|
|
27
|
-
- Cross-platform support, including [Apple M Chips](https://www.apple.com/newsroom/2020/11/apple-unleashes-m1/).
|
|
28
|
-
- Support for running as native addons in Deno.
|
|
29
|
-
|
|
30
|
-
## Sponsor
|
|
31
|
-
|
|
32
|
-
Alipay(支付宝)
|
|
33
|
-
|
|
34
|
-
<img width="260" src="https://user-images.githubusercontent.com/2784308/275749798-dcecb901-6a44-46f6-aab3-98635664719e.jpeg">
|
|
35
|
-
|
|
36
|
-
## Installation
|
|
37
|
-
|
|
38
|
-
### Node.js
|
|
39
|
-
|
|
40
|
-
```shell
|
|
41
|
-
npm i @resvg/resvg-js
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### Browser(Wasm)
|
|
45
|
-
|
|
46
|
-
```html
|
|
47
|
-
<script src="https://unpkg.com/@resvg/resvg-wasm"></script>
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Docs
|
|
51
|
-
|
|
52
|
-
- Node.js see [index.d.ts](./index.d.ts)
|
|
53
|
-
- Wasm see [wasm/index.d.ts](./wasm/index.d.ts)
|
|
54
|
-
|
|
55
|
-
## Example
|
|
56
|
-
|
|
57
|
-
### [Node.js Example](example/index.js)
|
|
58
|
-
|
|
59
|
-
This example will load Source Han Serif, and then render the SVG to PNG.
|
|
60
|
-
|
|
61
|
-
```shell
|
|
62
|
-
node example/index.js
|
|
63
|
-
|
|
64
|
-
Loaded 1 font faces in 0ms.
|
|
65
|
-
Font './example/SourceHanSerifCN-Light-subset.ttf':0 found in 0.006ms.
|
|
66
|
-
✨ Done in 55.65491008758545 ms
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### [Deno Example](example/index-deno.js)
|
|
70
|
-
|
|
71
|
-
```shell
|
|
72
|
-
deno run --unstable --allow-read --allow-write --allow-ffi example/index-deno.js
|
|
73
|
-
|
|
74
|
-
[2022-11-16T15:03:29Z DEBUG resvg_js::fonts] Loaded 1 font faces in 0.067ms.
|
|
75
|
-
[2022-11-16T15:03:29Z DEBUG resvg_js::fonts] Font './example/SourceHanSerifCN-Light-subset.ttf':0 found in 0.001ms.
|
|
76
|
-
Original SVG Size: 1324 x 687
|
|
77
|
-
Output PNG Size : 1200 x 623
|
|
78
|
-
✨ Done in 66 ms
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
| SVG | PNG |
|
|
82
|
-
| ---------------------------------------- | -------------------------------------------- |
|
|
83
|
-
| <img width="500" src="example/text.svg"> | <img width="500" src="example/text-out.png"> |
|
|
84
|
-
|
|
85
|
-
## Usage
|
|
86
|
-
|
|
87
|
-
### Node.js
|
|
88
|
-
|
|
89
|
-
```js
|
|
90
|
-
const { promises } = require('fs')
|
|
91
|
-
const { join } = require('path')
|
|
92
|
-
const { Resvg } = require('@resvg/resvg-js')
|
|
93
|
-
|
|
94
|
-
async function main() {
|
|
95
|
-
const svg = await promises.readFile(join(__dirname, './text.svg'))
|
|
96
|
-
const opts = {
|
|
97
|
-
background: 'rgba(238, 235, 230, .9)',
|
|
98
|
-
fitTo: {
|
|
99
|
-
mode: 'width',
|
|
100
|
-
value: 1200,
|
|
101
|
-
},
|
|
102
|
-
font: {
|
|
103
|
-
fontFiles: ['./example/SourceHanSerifCN-Light-subset.ttf'], // Load custom fonts.
|
|
104
|
-
loadSystemFonts: false, // It will be faster to disable loading system fonts.
|
|
105
|
-
// defaultFontFamily: 'Source Han Serif CN Light', // You can omit this.
|
|
106
|
-
},
|
|
107
|
-
}
|
|
108
|
-
const resvg = new Resvg(svg, opts)
|
|
109
|
-
const pngData = resvg.render()
|
|
110
|
-
const pngBuffer = pngData.asPng()
|
|
111
|
-
|
|
112
|
-
console.info('Original SVG Size:', `${resvg.width} x ${resvg.height}`)
|
|
113
|
-
console.info('Output PNG Size :', `${pngData.width} x ${pngData.height}`)
|
|
114
|
-
|
|
115
|
-
await promises.writeFile(join(__dirname, './text-out.png'), pngBuffer)
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
main()
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
### Bun
|
|
122
|
-
|
|
123
|
-
Starting with [Bun 0.8.1](https://github.com/oven-sh/bun/issues/172#issuecomment-1692930718), resvg-js can be run directly in Bun without any modification to the JS files, and is fully compatible with the syntax in Node.js.
|
|
124
|
-
|
|
125
|
-
```shell
|
|
126
|
-
bun example/index.js
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### Deno
|
|
130
|
-
|
|
131
|
-
Starting with [Deno 1.26.1](https://github.com/denoland/deno/releases/tag/v1.26.1), there is support for running Native Addons directly from Node.js.
|
|
132
|
-
This allows for performance that is close to that found in Node.js.
|
|
133
|
-
|
|
134
|
-
```shell
|
|
135
|
-
deno run --unstable --allow-read --allow-write --allow-ffi example/index-deno.js
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
```js
|
|
139
|
-
import * as path from 'https://deno.land/std@0.159.0/path/mod.ts'
|
|
140
|
-
import { Resvg } from 'npm:@resvg/resvg-js'
|
|
141
|
-
const __dirname = path.dirname(path.fromFileUrl(import.meta.url))
|
|
142
|
-
|
|
143
|
-
const svg = await Deno.readFile(path.join(__dirname, './text.svg'))
|
|
144
|
-
const opts = {
|
|
145
|
-
fitTo: {
|
|
146
|
-
mode: 'width',
|
|
147
|
-
value: 1200,
|
|
148
|
-
},
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
const t = performance.now()
|
|
152
|
-
const resvg = new Resvg(svg, opts)
|
|
153
|
-
const pngData = resvg.render()
|
|
154
|
-
const pngBuffer = pngData.asPng()
|
|
155
|
-
console.info('Original SVG Size:', `${resvg.width} x ${resvg.height}`)
|
|
156
|
-
console.info('Output PNG Size :', `${pngData.width} x ${pngData.height}`)
|
|
157
|
-
console.info('✨ Done in', performance.now() - t, 'ms')
|
|
158
|
-
|
|
159
|
-
await Deno.writeFile(path.join(__dirname, './text-out-deno.png'), pngBuffer)
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
### WebAssembly
|
|
163
|
-
|
|
164
|
-
This package also ships a pure WebAssembly artifact built with `wasm-bindgen` to run in browsers.
|
|
165
|
-
|
|
166
|
-
#### Browser
|
|
167
|
-
|
|
168
|
-
```html
|
|
169
|
-
<script src="https://unpkg.com/@resvg/resvg-wasm"></script>
|
|
170
|
-
<script>
|
|
171
|
-
;(async function () {
|
|
172
|
-
// The Wasm must be initialized first
|
|
173
|
-
await resvg.initWasm(fetch('https://unpkg.com/@resvg/resvg-wasm/index_bg.wasm'))
|
|
174
|
-
|
|
175
|
-
const font = await fetch('./fonts/Pacifico-Regular.woff2')
|
|
176
|
-
if (!font.ok) return
|
|
177
|
-
|
|
178
|
-
const fontData = await font.arrayBuffer()
|
|
179
|
-
const buffer = new Uint8Array(fontData)
|
|
180
|
-
|
|
181
|
-
const opts = {
|
|
182
|
-
fitTo: {
|
|
183
|
-
mode: 'width', // If you need to change the size
|
|
184
|
-
value: 800,
|
|
185
|
-
},
|
|
186
|
-
font: {
|
|
187
|
-
fontBuffers: [buffer], // New in 2.5.0, loading custom fonts
|
|
188
|
-
},
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
const svg = '<svg> ... </svg>' // Input SVG, String or Uint8Array
|
|
192
|
-
const resvgJS = new resvg.Resvg(svg, opts)
|
|
193
|
-
const pngData = resvgJS.render(svg, opts) // Output PNG data, Uint8Array
|
|
194
|
-
const pngBuffer = pngData.asPng()
|
|
195
|
-
const svgURL = URL.createObjectURL(new Blob([pngData], { type: 'image/png' }))
|
|
196
|
-
document.getElementById('output').src = svgURL
|
|
197
|
-
})()
|
|
198
|
-
</script>
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
See [playground](wasm/index.html), it is also possible to [call Wasm in Node.js](example/wasm-node.js), but it is slower.
|
|
202
|
-
|
|
203
|
-
## Sample Benchmark
|
|
204
|
-
|
|
205
|
-
```shell
|
|
206
|
-
npm i benny@3.x sharp@0.x @types/sharp svg2img@0.x
|
|
207
|
-
npm run bench
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
```shell
|
|
211
|
-
Running "resize width" suite...
|
|
212
|
-
resvg-js(Rust):
|
|
213
|
-
12 ops/s
|
|
214
|
-
|
|
215
|
-
sharp:
|
|
216
|
-
9 ops/s
|
|
217
|
-
|
|
218
|
-
skr-canvas(Rust):
|
|
219
|
-
7 ops/s
|
|
220
|
-
|
|
221
|
-
svg2img(canvg and node-canvas):
|
|
222
|
-
6 ops/s
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
## Support matrix
|
|
226
|
-
|
|
227
|
-
| | Node.js 12 | Node.js 14 | Node.js 16 | Node.js 18 | Node.js 20 | npm |
|
|
228
|
-
| ---------------- | ---------- | ---------- | ---------- | ---------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
229
|
-
| Windows x64 | ✓ | ✓ | ✓ | ✓ | ✓ | [](https://www.npmjs.com/package/@resvg/resvg-js-win32-x64-msvc) |
|
|
230
|
-
| Windows x32 | ✓ | ✓ | ✓ | ✓ | ✓ | [](https://www.npmjs.com/package/@resvg/resvg-js-win32-ia32-msvc) |
|
|
231
|
-
| Windows arm64 | ✓ | ✓ | ✓ | ✓ | ✓ | [](https://www.npmjs.com/package/@resvg/resvg-js-win32-arm64-msvc) |
|
|
232
|
-
| macOS x64 | ✓ | ✓ | ✓ | ✓ | ✓ | [](https://www.npmjs.com/package/@resvg/resvg-js-darwin-x64) |
|
|
233
|
-
| macOS arm64(M1) | ✓ | ✓ | ✓ | ✓ | ✓ | [](https://www.npmjs.com/package/@resvg/resvg-js-darwin-arm64) |
|
|
234
|
-
| Linux x64 gnu | ✓ | ✓ | ✓ | ✓ | ✓ | [](https://www.npmjs.com/package/@resvg/resvg-js-linux-x64-gnu) |
|
|
235
|
-
| Linux x64 musl | ✓ | ✓ | ✓ | ✓ | ✓ | [](https://www.npmjs.com/package/@resvg/resvg-js-linux-x64-musl) |
|
|
236
|
-
| Linux arm gnu | ✓ | ✓ | ✓ | ✓ | ✓ | [](https://www.npmjs.com/package/@resvg/resvg-js-linux-arm-gnueabihf) |
|
|
237
|
-
| Linux arm64 gnu | ✓ | ✓ | ✓ | ✓ | ✓ | [](https://www.npmjs.com/package/@resvg/resvg-js-linux-arm64-gnu) |
|
|
238
|
-
| Linux arm64 musl | ✓ | ✓ | ✓ | ✓ | ✓ | [](https://www.npmjs.com/package/@resvg/resvg-js-linux-arm64-musl) |
|
|
239
|
-
| Android arm64 | ✓ | ✓ | ✓ | ✓ | ✓ | [](https://www.npmjs.com/package/@resvg/resvg-js-android-arm64) |
|
|
240
|
-
| Android armv7 | ✓ | ✓ | ✓ | ✓ | ✓ | [](https://www.npmjs.com/package/@resvg/resvg-js-android-arm-eabi) |
|
|
241
|
-
|
|
242
|
-
## Test or Contributing
|
|
243
|
-
|
|
244
|
-
- Install latest `Rust`
|
|
245
|
-
- Install `Node.js@10+` which fully supported `Node-API`
|
|
246
|
-
- Install `wasm-pack`
|
|
247
|
-
|
|
248
|
-
```bash
|
|
249
|
-
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
Normally `wasm-pack` will install `wasm-bindgen` automatically, but if the installation [fails due to network reasons](https://github.com/rustwasm/wasm-pack-template/issues/44#issuecomment-521657516), please try to install it manually.
|
|
253
|
-
|
|
254
|
-
```bash
|
|
255
|
-
cargo install wasm-bindgen-cli
|
|
256
|
-
```
|
|
257
|
-
|
|
258
|
-
On computers with Apple M chips, the following error message may appear:
|
|
259
|
-
|
|
260
|
-
> Error: failed to download from https://github.com/WebAssembly/binaryen/releases/download/version_90/binaryen-version_90-x86_64-apple-darwin.tar.gz
|
|
261
|
-
|
|
262
|
-
Please install binaryen manually:
|
|
263
|
-
|
|
264
|
-
```bash
|
|
265
|
-
brew install binaryen
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
### Build Node.js bindings
|
|
269
|
-
|
|
270
|
-
```bash
|
|
271
|
-
npm i
|
|
272
|
-
npm run build
|
|
273
|
-
npm test
|
|
274
|
-
```
|
|
275
|
-
|
|
276
|
-
### Build WebAssembly bindings
|
|
277
|
-
|
|
278
|
-
```bash
|
|
279
|
-
npm i
|
|
280
|
-
npm run build:wasm
|
|
281
|
-
npm run test:wasm
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
## Roadmap
|
|
285
|
-
|
|
286
|
-
I will consider implementing the following features, if you happen to be interested,
|
|
287
|
-
please feel free to discuss with me or submit a PR.
|
|
288
|
-
|
|
289
|
-
- [x] Support async API
|
|
290
|
-
- [x] Upgrade to napi-rs v2
|
|
291
|
-
- [x] Support WebAssembly
|
|
292
|
-
- [x] Output usvg-simplified SVG string
|
|
293
|
-
- [x] Support for getting SVG Bounding box
|
|
294
|
-
- [ ] Support for generating more lossless bitmap formats, e.g. avif, webp, JPEG XL
|
|
295
|
-
|
|
296
|
-
## Release package
|
|
297
|
-
|
|
298
|
-
We use GitHub actions to automatically publish npm packages.
|
|
299
|
-
|
|
300
|
-
```bash
|
|
301
|
-
# 1.0.0 => 1.0.1
|
|
302
|
-
npm version patch
|
|
303
|
-
|
|
304
|
-
# or 1.0.0 => 1.1.0
|
|
305
|
-
npm version minor
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
## License
|
|
309
|
-
|
|
310
|
-
Please use all lowercase `resvg-js` when referencing project names.
|
|
311
|
-
|
|
312
|
-
[MPLv2.0](https://www.mozilla.org/en-US/MPL/)
|
|
313
|
-
|
|
314
|
-
Copyright (c) 2021-present, yisibl(一丝)
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const { render: _render, renderAsync: _renderAsync, Resvg: _Resvg } = require('./js-binding.js')
|
|
2
|
-
|
|
3
|
-
module.exports.render = function render(svg, options) {
|
|
4
|
-
if (options) {
|
|
5
|
-
return _render(svg, JSON.stringify(options))
|
|
6
|
-
}
|
|
7
|
-
return _render(svg)
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
module.exports.renderAsync = function renderAsync(svg, options, signal) {
|
|
11
|
-
if (options) {
|
|
12
|
-
return _renderAsync(svg, JSON.stringify(options), signal)
|
|
13
|
-
}
|
|
14
|
-
return _renderAsync(svg, null, signal)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
module.exports.Resvg = class Resvg extends _Resvg {
|
|
18
|
-
constructor(svg, options) {
|
|
19
|
-
super(svg, JSON.stringify(options))
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// module.exports.Resvg = _Resvg
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const{existsSync,readFileSync}=require("fs"),{join}=require("path"),{platform,arch}=process;let nativeBinding=null,localFileExisted=!1,loadError=null;function isMusl(){if(!process.report||typeof process.report.getReport!="function")try{const e=require("child_process").execSync("which ldd").toString().trim();return readFileSync(e,"utf8").includes("musl")}catch{return!0}else{const{glibcVersionRuntime:e}=process.report.getReport().header;return!e}}switch(platform){case"android":switch(arch){case"arm64":localFileExisted=existsSync(join(__dirname,"resvgjs.android-arm64.node"));try{localFileExisted?nativeBinding=require("./resvgjs.android-arm64.node"):nativeBinding=require("@resvg/resvg-js-android-arm64")}catch(e){loadError=e}break;case"arm":localFileExisted=existsSync(join(__dirname,"resvgjs.android-arm-eabi.node"));try{localFileExisted?nativeBinding=require("./resvgjs.android-arm-eabi.node"):nativeBinding=require("@resvg/resvg-js-android-arm-eabi")}catch(e){loadError=e}break;default:throw new Error(`Unsupported architecture on Android ${arch}`)}break;case"win32":switch(arch){case"x64":localFileExisted=existsSync(join(__dirname,"resvgjs.win32-x64-msvc.node"));try{localFileExisted?nativeBinding=require("./resvgjs.win32-x64-msvc.node"):nativeBinding=require("@resvg/resvg-js-win32-x64-msvc")}catch(e){loadError=e}break;case"ia32":localFileExisted=existsSync(join(__dirname,"resvgjs.win32-ia32-msvc.node"));try{localFileExisted?nativeBinding=require("./resvgjs.win32-ia32-msvc.node"):nativeBinding=require("@resvg/resvg-js-win32-ia32-msvc")}catch(e){loadError=e}break;case"arm64":localFileExisted=existsSync(join(__dirname,"resvgjs.win32-arm64-msvc.node"));try{localFileExisted?nativeBinding=require("./resvgjs.win32-arm64-msvc.node"):nativeBinding=require("@resvg/resvg-js-win32-arm64-msvc")}catch(e){loadError=e}break;default:throw new Error(`Unsupported architecture on Windows: ${arch}`)}break;case"darwin":localFileExisted=existsSync(join(__dirname,"resvgjs.darwin-universal.node"));try{localFileExisted?nativeBinding=require("./resvgjs.darwin-universal.node"):nativeBinding=require("@resvg/resvg-js-darwin-universal");break}catch{}switch(arch){case"x64":localFileExisted=existsSync(join(__dirname,"resvgjs.darwin-x64.node"));try{localFileExisted?nativeBinding=require("./resvgjs.darwin-x64.node"):nativeBinding=require("@resvg/resvg-js-darwin-x64")}catch(e){loadError=e}break;case"arm64":localFileExisted=existsSync(join(__dirname,"resvgjs.darwin-arm64.node"));try{localFileExisted?nativeBinding=require("./resvgjs.darwin-arm64.node"):nativeBinding=require("@resvg/resvg-js-darwin-arm64")}catch(e){loadError=e}break;default:throw new Error(`Unsupported architecture on macOS: ${arch}`)}break;case"freebsd":if(arch!=="x64")throw new Error(`Unsupported architecture on FreeBSD: ${arch}`);localFileExisted=existsSync(join(__dirname,"resvgjs.freebsd-x64.node"));try{localFileExisted?nativeBinding=require("./resvgjs.freebsd-x64.node"):nativeBinding=require("@resvg/resvg-js-freebsd-x64")}catch(e){loadError=e}break;case"linux":switch(arch){case"x64":if(isMusl()){localFileExisted=existsSync(join(__dirname,"resvgjs.linux-x64-musl.node"));try{localFileExisted?nativeBinding=require("./resvgjs.linux-x64-musl.node"):nativeBinding=require("@resvg/resvg-js-linux-x64-musl")}catch(e){loadError=e}}else{localFileExisted=existsSync(join(__dirname,"resvgjs.linux-x64-gnu.node"));try{localFileExisted?nativeBinding=require("./resvgjs.linux-x64-gnu.node"):nativeBinding=require("@resvg/resvg-js-linux-x64-gnu")}catch(e){loadError=e}}break;case"arm64":if(isMusl()){localFileExisted=existsSync(join(__dirname,"resvgjs.linux-arm64-musl.node"));try{localFileExisted?nativeBinding=require("./resvgjs.linux-arm64-musl.node"):nativeBinding=require("@resvg/resvg-js-linux-arm64-musl")}catch(e){loadError=e}}else{localFileExisted=existsSync(join(__dirname,"resvgjs.linux-arm64-gnu.node"));try{localFileExisted?nativeBinding=require("./resvgjs.linux-arm64-gnu.node"):nativeBinding=require("@resvg/resvg-js-linux-arm64-gnu")}catch(e){loadError=e}}break;case"arm":localFileExisted=existsSync(join(__dirname,"resvgjs.linux-arm-gnueabihf.node"));try{localFileExisted?nativeBinding=require("./resvgjs.linux-arm-gnueabihf.node"):nativeBinding=require("@resvg/resvg-js-linux-arm-gnueabihf")}catch(e){loadError=e}break;case"riscv64":if(isMusl()){localFileExisted=existsSync(join(__dirname,"resvgjs.linux-riscv64-musl.node"));try{localFileExisted?nativeBinding=require("./resvgjs.linux-riscv64-musl.node"):nativeBinding=require("@resvg/resvg-js-linux-riscv64-musl")}catch(e){loadError=e}}else{localFileExisted=existsSync(join(__dirname,"resvgjs.linux-riscv64-gnu.node"));try{localFileExisted?nativeBinding=require("./resvgjs.linux-riscv64-gnu.node"):nativeBinding=require("@resvg/resvg-js-linux-riscv64-gnu")}catch(e){loadError=e}}break;case"s390x":localFileExisted=existsSync(join(__dirname,"resvgjs.linux-s390x-gnu.node"));try{localFileExisted?nativeBinding=require("./resvgjs.linux-s390x-gnu.node"):nativeBinding=require("@resvg/resvg-js-linux-s390x-gnu")}catch(e){loadError=e}break;default:throw new Error(`Unsupported architecture on Linux: ${arch}`)}break;default:throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`)}if(!nativeBinding)throw loadError||new Error("Failed to load native binding");const{BBox,Resvg,RenderedImage,renderAsync}=nativeBinding;module.exports.BBox=BBox,module.exports.Resvg=Resvg,module.exports.RenderedImage=RenderedImage,module.exports.renderAsync=renderAsync;
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@resvg/resvg-js",
|
|
3
|
-
"version": "2.6.2",
|
|
4
|
-
"description": "A high-performance SVG renderer and toolkit, powered by Rust based resvg and napi-rs",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"repository": "git@github.com:yisibl/resvg-js.git",
|
|
7
|
-
"license": "MPL-2.0",
|
|
8
|
-
"keywords": [
|
|
9
|
-
"resvg",
|
|
10
|
-
"svg",
|
|
11
|
-
"node-resvg",
|
|
12
|
-
"resvg-js",
|
|
13
|
-
"resvg-node",
|
|
14
|
-
"rust",
|
|
15
|
-
"svg2png",
|
|
16
|
-
"svg2img",
|
|
17
|
-
"svg to png"
|
|
18
|
-
],
|
|
19
|
-
"files": [
|
|
20
|
-
"index.d.ts",
|
|
21
|
-
"index.js",
|
|
22
|
-
"js-binding.js",
|
|
23
|
-
"js-binding.d.ts"
|
|
24
|
-
],
|
|
25
|
-
"napi": {
|
|
26
|
-
"name": "resvgjs",
|
|
27
|
-
"triples": {
|
|
28
|
-
"defaults": true,
|
|
29
|
-
"additional": [
|
|
30
|
-
"x86_64-unknown-linux-musl",
|
|
31
|
-
"aarch64-unknown-linux-gnu",
|
|
32
|
-
"i686-pc-windows-msvc",
|
|
33
|
-
"armv7-unknown-linux-gnueabihf",
|
|
34
|
-
"aarch64-apple-darwin",
|
|
35
|
-
"aarch64-linux-android",
|
|
36
|
-
"arm-linux-androideabi",
|
|
37
|
-
"aarch64-unknown-linux-musl",
|
|
38
|
-
"aarch64-pc-windows-msvc"
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"engines": {
|
|
43
|
-
"node": ">= 10"
|
|
44
|
-
},
|
|
45
|
-
"publishConfig": {
|
|
46
|
-
"registry": "https://registry.npmjs.org/",
|
|
47
|
-
"access": "public"
|
|
48
|
-
},
|
|
49
|
-
"scripts": {
|
|
50
|
-
"artifacts": "napi artifacts",
|
|
51
|
-
"bench": "node -r @swc-node/register benchmark/bench.ts",
|
|
52
|
-
"bundle": "run-p 'bundle:*'",
|
|
53
|
-
"bundle:js": "node bundle.js",
|
|
54
|
-
"bundle:dts": "dts-bundle-generator --external-types -o wasm/index.d.ts wasm-binding.ts",
|
|
55
|
-
"build": "napi build --platform --release --js js-binding.js --dts js-binding.d.ts",
|
|
56
|
-
"build:debug": "napi build --platform --js js-binding.js --dts js-binding.d.ts",
|
|
57
|
-
"build:wasm": "run-s build:wasm-web copy-wasm bundle",
|
|
58
|
-
"build:wasm-web": "wasm-pack build --target web --out-name index --out-dir wasm/dist --release",
|
|
59
|
-
"copy-wasm": "copyfiles -f wasm/dist/index_bg.wasm ./wasm",
|
|
60
|
-
"playground": "copyfiles -f playground/index.html ./wasm",
|
|
61
|
-
"format": "run-p format:md format:json format:yaml format:source format:rs",
|
|
62
|
-
"format:md": "prettier --parser markdown --write './**/*.md'",
|
|
63
|
-
"format:json": "prettier --parser json --write './**/*.json'",
|
|
64
|
-
"format:svg": "prettier --parser html --write './**/*.svg'",
|
|
65
|
-
"format:rs": "cargo fmt",
|
|
66
|
-
"format:source": "prettier --config ./package.json --write './**/*.{js,ts,mjs}'",
|
|
67
|
-
"format:yaml": "prettier --parser yaml --write './**/*.{yml,yaml}'",
|
|
68
|
-
"lint": "eslint . -c ./.eslintrc.yml './**/*.{ts,tsx,js}'",
|
|
69
|
-
"lint:fix": "eslint . -c ./.eslintrc.yml './**/*.{ts,tsx,js}' --fix",
|
|
70
|
-
"prepublishOnly": "napi prepublish -t npm && esbuild js-binding.js --minify --allow-overwrite --outfile=js-binding.js",
|
|
71
|
-
"test": "ava __test__/**/index*.*",
|
|
72
|
-
"test:wasm": "ava __test__/**/wasm*.*",
|
|
73
|
-
"version": "napi version"
|
|
74
|
-
},
|
|
75
|
-
"devDependencies": {
|
|
76
|
-
"@napi-rs/cli": "^2.18.0",
|
|
77
|
-
"@swc-node/register": "^1.9.0",
|
|
78
|
-
"@swc/core": "^1.4.6",
|
|
79
|
-
"@types/node": "^20.6.5",
|
|
80
|
-
"@typescript-eslint/eslint-plugin": "^6.7.2",
|
|
81
|
-
"@typescript-eslint/parser": "^6.7.2",
|
|
82
|
-
"ava": "^5.3.1",
|
|
83
|
-
"copyfiles": "^2.4.1",
|
|
84
|
-
"dts-bundle-generator": "^9.0.0",
|
|
85
|
-
"esbuild": "^0.20.1",
|
|
86
|
-
"eslint": "^8.57.0",
|
|
87
|
-
"eslint-config-prettier": "^8.5.0",
|
|
88
|
-
"eslint-plugin-import": "^2.26.0",
|
|
89
|
-
"eslint-plugin-prettier": "^4.2.1",
|
|
90
|
-
"eslint-plugin-sonarjs": "^0.24.0",
|
|
91
|
-
"husky": "^8.0.0",
|
|
92
|
-
"jimp-compact": "^0.16.1-2",
|
|
93
|
-
"lint-staged": "^15.0.0",
|
|
94
|
-
"node-fetch": "2.x",
|
|
95
|
-
"npm-run-all2": "^6.1.2",
|
|
96
|
-
"prettier": "^2.7.1",
|
|
97
|
-
"typescript": "^5.4.2"
|
|
98
|
-
},
|
|
99
|
-
"lint-staged": {
|
|
100
|
-
"*.@(js|ts|tsx)": [
|
|
101
|
-
"prettier --write",
|
|
102
|
-
"eslint -c .eslintrc.yml --fix"
|
|
103
|
-
],
|
|
104
|
-
"*.@(yml|yaml)": [
|
|
105
|
-
"prettier --parser yaml --write"
|
|
106
|
-
],
|
|
107
|
-
"*.md": [
|
|
108
|
-
"prettier --parser markdown --write"
|
|
109
|
-
],
|
|
110
|
-
"*.json": [
|
|
111
|
-
"prettier --parser json --write"
|
|
112
|
-
],
|
|
113
|
-
"*.svg": [
|
|
114
|
-
"prettier --parser html --write"
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
"ava": {
|
|
118
|
-
"require": [
|
|
119
|
-
"@swc-node/register"
|
|
120
|
-
],
|
|
121
|
-
"extensions": [
|
|
122
|
-
"ts"
|
|
123
|
-
],
|
|
124
|
-
"timeout": "3m",
|
|
125
|
-
"environmentVariables": {
|
|
126
|
-
"TS_NODE_PROJECT": "./tsconfig.json"
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
"prettier": {
|
|
130
|
-
"printWidth": 120,
|
|
131
|
-
"semi": false,
|
|
132
|
-
"trailingComma": "all",
|
|
133
|
-
"singleQuote": true,
|
|
134
|
-
"arrowParens": "always",
|
|
135
|
-
"parser": "typescript"
|
|
136
|
-
},
|
|
137
|
-
"packageManager": "yarn@3.8.1",
|
|
138
|
-
"optionalDependencies": {
|
|
139
|
-
"@resvg/resvg-js-win32-x64-msvc": "2.6.2",
|
|
140
|
-
"@resvg/resvg-js-darwin-x64": "2.6.2",
|
|
141
|
-
"@resvg/resvg-js-linux-x64-gnu": "2.6.2",
|
|
142
|
-
"@resvg/resvg-js-linux-x64-musl": "2.6.2",
|
|
143
|
-
"@resvg/resvg-js-linux-arm64-gnu": "2.6.2",
|
|
144
|
-
"@resvg/resvg-js-win32-ia32-msvc": "2.6.2",
|
|
145
|
-
"@resvg/resvg-js-linux-arm-gnueabihf": "2.6.2",
|
|
146
|
-
"@resvg/resvg-js-darwin-arm64": "2.6.2",
|
|
147
|
-
"@resvg/resvg-js-android-arm64": "2.6.2",
|
|
148
|
-
"@resvg/resvg-js-android-arm-eabi": "2.6.2",
|
|
149
|
-
"@resvg/resvg-js-linux-arm64-musl": "2.6.2",
|
|
150
|
-
"@resvg/resvg-js-win32-arm64-msvc": "2.6.2"
|
|
151
|
-
}
|
|
152
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 Frederik De Bleser
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
-
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
-
the Software without restriction, including without limitation the rights to
|
|
8
|
-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
-
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
-
subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# opentype.js
|
|
2
|
-
|
|
3
|
-
An [opentype.js](https://github.com/opentypejs/opentype.js) fork that:
|
|
4
|
-
- Replaces `tiny-inflate` with `fflate` for better performance.
|
|
5
|
-
- Removes dynamic font loading and `fs`, `Buffer` deps.
|
|
6
|
-
- Removes all canvas and font exporting/serialization related APIs.
|
|
7
|
-
- Removes `name` table.
|
|
8
|
-
|
|
9
|
-
Published as `@shuding/opentype.js` on [npm](https://www.npmjs.com/package/@shuding/opentype.js).
|