decocms 4.113.3 → 4.114.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-C3yBEe62.js → AlertCircle-u3-jN7cm.js} +1 -1
- package/dist/client/assets/{AreaChart-infhzD-o.js → AreaChart-BW8WzRm-.js} +1 -1
- package/dist/client/assets/{ArrowRight-csX1J00v.js → ArrowRight-mNj20Zjh.js} +1 -1
- package/dist/client/assets/{ArrowUp-BMUqiZDH.js → ArrowUp-L9cgM-6a.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-B0lTHBei.js → ArrowUpRight-H1UBXt5Z.js} +1 -1
- package/dist/client/assets/{Check-BOCHVTek.js → Check-CaYU5aLO.js} +1 -1
- package/dist/client/assets/{CheckCircle-C06fMtNJ.js → CheckCircle-CMKcMKAK.js} +1 -1
- package/dist/client/assets/{ChevronDown-yHcuw3Yi.js → ChevronDown-CX9YkMBs.js} +1 -1
- package/dist/client/assets/{ChevronRight-BvtCGcbv.js → ChevronRight-DbHUX8I-.js} +1 -1
- package/dist/client/assets/{ChevronUp-ClBbaiAV.js → ChevronUp-DIB-4lf0.js} +1 -1
- package/dist/client/assets/{Copy01-DjMityLv.js → Copy01-CjNrDuBL.js} +1 -1
- package/dist/client/assets/{DotsVertical-C4ZbABhl.js → DotsVertical-Bp1NHhTP.js} +1 -1
- package/dist/client/assets/{Eye-Drm0H5R_.js → Eye-FOTe0Dsm.js} +1 -1
- package/dist/client/assets/{FilterLines-DqKeoryA.js → FilterLines-BZTwbbeF.js} +1 -1
- package/dist/client/assets/{Globe01-BQOw_Ub7.js → Globe01-DOxk62wN.js} +1 -1
- package/dist/client/assets/{Globe04-CGcQW0g-.js → Globe04-9hsl-3e6.js} +1 -1
- package/dist/client/assets/{HardDrive-CWWkxzA_.js → HardDrive-ynMUj-ia.js} +1 -1
- package/dist/client/assets/{Image01-DlFSq1lp.js → Image01-av9S7TeF.js} +1 -1
- package/dist/client/assets/{Key01-DrW6AdUh.js → Key01-CwuF_1BL.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DcUppE8c.js → LayoutLeft-D_cBv5Sy.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BboRX9pE.js → LinkExternal01-B1nrIFqo.js} +1 -1
- package/dist/client/assets/{LogOut01-BB-7O4XA.js → LogOut01-BZi_DqYW.js} +1 -1
- package/dist/client/assets/{Monitor01-CcN96Otm.js → Monitor01-ymd1mMPU.js} +1 -1
- package/dist/client/assets/{Package-BzQD_Ty_.js → Package-CM9ahKwn.js} +1 -1
- package/dist/client/assets/{Palette-Blkp2e-R.js → Palette-Ct1p9svP.js} +1 -1
- package/dist/client/assets/{Play-D8x6tbEi.js → Play-DVEIH1ry.js} +1 -1
- package/dist/client/assets/{Plus-CzNYCMBF.js → Plus-B2hbLmYg.js} +1 -1
- package/dist/client/assets/{SearchLg-ChhVm0Qf.js → SearchLg-CtS3seao.js} +1 -1
- package/dist/client/assets/{SearchMd-CTSIioHN.js → SearchMd-D3MjkhDD.js} +1 -1
- package/dist/client/assets/{Settings02-Cw_4rjJK.js → Settings02-BetwzLEO.js} +1 -1
- package/dist/client/assets/{Shield01-DSa5H3Oo.js → Shield01-BAlJAwp4.js} +1 -1
- package/dist/client/assets/{Star01-D85zX6Wg.js → Star01-Cp-5Xhim.js} +1 -1
- package/dist/client/assets/{Stars01-DTnCAiJN.js → Stars01-CvaXntTQ.js} +1 -1
- package/dist/client/assets/{Stars02-BOwVjfZL.js → Stars02-DyviDCrE.js} +1 -1
- package/dist/client/assets/{Sun-BgpgdJOh.js → Sun-Y3l5BCJc.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DdzfKexZ.js → SwitchHorizontal01-q1XlSXKm.js} +1 -1
- package/dist/client/assets/{Tool01-BHPElJg3.js → Tool01-DiRWeEXb.js} +1 -1
- package/dist/client/assets/{Tool02-B1WxUTRS.js → Tool02-aqrHyC0g.js} +1 -1
- package/dist/client/assets/{Trash01-CQs4hG5x.js → Trash01-COnrCNth.js} +1 -1
- package/dist/client/assets/{TrendUp01-Cjtdx_Mr.js → TrendUp01-Bn-PWo-g.js} +1 -1
- package/dist/client/assets/{Upload01-2aufxkFJ.js → Upload01-DGTw7Jar.js} +1 -1
- package/dist/client/assets/{User01-qg2q5EXG.js → User01-BIMIGJ25.js} +1 -1
- package/dist/client/assets/{Users01-DecEGc0z.js → Users01-CZUvnM1S.js} +1 -1
- package/dist/client/assets/{Users03-DvyrEhaR.js → Users03-CVsX8nJx.js} +1 -1
- package/dist/client/assets/{X-ByT759cs.js → X-DNu2-GhF.js} +1 -1
- package/dist/client/assets/{XCircle-bCCgCduZ.js → XCircle-C_rSb0eR.js} +1 -1
- package/dist/client/assets/{XClose-CZnGWolh.js → XClose-DW-dDUEB.js} +1 -1
- package/dist/client/assets/{Zap-CqiaHzzF.js → Zap-De1_wbpV.js} +1 -1
- package/dist/client/assets/{ZapSquare-c0rQSrXf.js → ZapSquare-Bp4aYGIH.js} +1 -1
- package/dist/client/assets/{ZoomOut-CrXsudJp.js → ZoomOut-BgItYrX3.js} +1 -1
- package/dist/client/assets/{access-gate-v1EkWw_v.js → access-gate-CvPG2rlY.js} +1 -1
- package/dist/client/assets/{add-section-modal-CCmZDfGj.js → add-section-modal-BA2tqrcH.js} +1 -1
- package/dist/client/assets/{agent-icon-BOnTghRl.js → agent-icon-CtZCFShI.js} +1 -1
- package/dist/client/assets/{agents-list-Bh9Nz4Fw.js → agents-list-j6YU2i_U.js} +1 -1
- package/dist/client/assets/{ai-providers-B78j6u61.js → ai-providers-DLZzYNyZ.js} +1 -1
- package/dist/client/assets/{alert-D-rAiL9n.js → alert-EAq1jY4N.js} +1 -1
- package/dist/client/assets/{alert-dialog-BV1C1gcm.js → alert-dialog-aAfJenSo.js} +1 -1
- package/dist/client/assets/{app-editor-0kysJGlw.js → app-editor-az0PkUZQ.js} +1 -1
- package/dist/client/assets/{auth-catchall-OgqNGUQu.js → auth-catchall-DBwvY4WS.js} +1 -1
- package/dist/client/assets/{auth-entry-Bu-wAE4C.js → auth-entry-BPBAWmPC.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BPjEQYcT.js → auth-split-layout-DDWwxUG2.js} +1 -1
- package/dist/client/assets/{auth-DrixEdZV.js → auth-uUmd_yUz.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-trH0piDT.js → authenticate-and-persist-oauth-nQ-5iboz.js} +1 -1
- package/dist/client/assets/{automation-list-row-Hhbhn6Ve.js → automation-list-row-DLSYuPO0.js} +1 -1
- package/dist/client/assets/{automation-runs-Cl8NKzOf.js → automation-runs-BvVxkEL_.js} +1 -1
- package/dist/client/assets/{automations-C0XROIdQ.js → automations-Dg5iM9D-.js} +1 -1
- package/dist/client/assets/{autosend-bk9SGLB7.js → autosend-DNGUJUeU.js} +1 -1
- package/dist/client/assets/{avatar-TfVrzXcD.js → avatar-yTPDq5I2.js} +1 -1
- package/dist/client/assets/{badge-Dq8tKfND.js → badge-BYYz59-0.js} +1 -1
- package/dist/client/assets/{block-document-CSSMbpaN.js → block-document-D_2P8u2S.js} +1 -1
- package/dist/client/assets/{brand-context-BpSXT9j1.js → brand-context-BdmZewbA.js} +1 -1
- package/dist/client/assets/{buckets-CSQzXH56.js → buckets-BalCtIX4.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BnemcYrz.js → bulk-category-panel-CziXKZ4f.js} +1 -1
- package/dist/client/assets/{calendar-C4A-LflQ.js → calendar-DWFDhFNo.js} +1 -1
- package/dist/client/assets/{capability-load-error-BVansliv.js → capability-load-error-BVSx_lmj.js} +1 -1
- package/dist/client/assets/{card-CYIXg6Tz.js → card-C3QUqs2n.js} +1 -1
- package/dist/client/assets/{category-editor-CQlm8YTD.js → category-editor-yjOQrzEJ.js} +1 -1
- package/dist/client/assets/{chat-context-C0qm1cNd.js → chat-context-DZnGXN4a.js} +1 -1
- package/dist/client/assets/{checkbox-CJlLtjz4.js → checkbox-CBFK8MAq.js} +1 -1
- package/dist/client/assets/{cli-auth-success-xyy-6T0v.js → cli-auth-success-2A3RVtIL.js} +1 -1
- package/dist/client/assets/{collection-detail-Ber5gOC6.js → collection-detail-Fw_SCIDN.js} +1 -1
- package/dist/client/assets/{collection-display-button-_9VLEjYD.js → collection-display-button-CMt3Z67p.js} +1 -1
- package/dist/client/assets/{collection-search-DMVP7tq9.js → collection-search-B9mHZ3UO.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CfaNknkJ.js → collection-table-wrapper-C2UsHzHD.js} +1 -1
- package/dist/client/assets/{collection-tabs-BYtcgqcY.js → collection-tabs-BDkyuUR4.js} +1 -1
- package/dist/client/assets/{command-55Q776qF.js → command-BPpRMP2H.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-CwQohRCA.js → commerce-onboarding-C0k3wy77.js} +1 -1
- package/dist/client/assets/{companions-core-BsogTMm0.js → companions-core-DiyBwoGG.js} +1 -1
- package/dist/client/assets/{connect-Dzubmbm6.js → connect-D2oqeqWc.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-BRyqkebt.js → connect-desktop-dialog-DNUW6BIf.js} +1 -1
- package/dist/client/assets/{connection-card-CnHj36QW.js → connection-card-QCEeFg-E.js} +1 -1
- package/dist/client/assets/{connection-detail-DioIwvgq.js → connection-detail-BuvcWRak.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-C36oVpDa.js → connection-form-helpers--HrBI-cC.js} +1 -1
- package/dist/client/assets/{connections-CMhMeidX.js → connections-CWtydlE_.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DbXyz4b2.js → decopilot-sse-pool-D68vKjC2.js} +1 -1
- package/dist/client/assets/{dialog-Mssh4wvU.js → dialog-CrWMCat9.js} +1 -1
- package/dist/client/assets/{domain-settings-D5jbLq0-.js → domain-settings-qXQKOoeU.js} +1 -1
- package/dist/client/assets/{drawer-Df2dZjAh.js → drawer-DVTkiBrG.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BOgizJmB.js → dropdown-menu-CWVq2kdv.js} +1 -1
- package/dist/client/assets/{empty-state-CajaBMj9.js → empty-state-BtX-gDuD.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Bd7ZbKmz.js → extract-connection-data-DfO_43Ui.js} +1 -1
- package/dist/client/assets/{file-explorer-C0-F0HB8.js → file-explorer-nlzTvV0U.js} +1 -1
- package/dist/client/assets/{file-type-icon-DeZBzLiN.js → file-type-icon-Blhm8rpp.js} +1 -1
- package/dist/client/assets/{files-DMRbcRYD.js → files-CB-VCQ9J.js} +1 -1
- package/dist/client/assets/{form-a5EhWS__.js → form-JvR3caoV.js} +1 -1
- package/dist/client/assets/{general-BXzwd9kr.js → general-ofhGwPwk.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BF2G7ylb.js → github-repo-picker-BzqT9Pn1.js} +1 -1
- package/dist/client/assets/{hooks-BYKqudQZ.js → hooks-CX-tJdCi.js} +1 -1
- package/dist/client/assets/{index-DKYptawH.js → index-BF9MIXYh.js} +1 -1
- package/dist/client/assets/{index-i4iJK1qu.js → index-BQKAFkvb.js} +3 -3
- package/dist/client/assets/{index-wa1mGSJt.js → index-Bl8jlw7D.js} +5 -5
- package/dist/client/assets/{index-D3QnFu3t.js → index-Bm91_nbV.js} +3 -3
- package/dist/client/assets/{index-D6Qe38nY.js → index-BuHs6OTD.js} +1 -1
- package/dist/client/assets/{index-D0XkAkng.js → index-CZGf-QlT.js} +1 -1
- package/dist/client/assets/{index-D8_uS6ju.js → index-CdqOC8p4.js} +1 -1
- package/dist/client/assets/{index-ChR3SC6w.js → index-D8itVaOh.js} +1 -1
- package/dist/client/assets/{index-Dd318vVc.js → index-DeAa7cPD.js} +1 -1
- package/dist/client/assets/{index-CDAhksmq.js → index-TgTbYxQM.js} +1 -1
- package/dist/client/assets/{index-BjFrw_Cz.js → index-cM-0JEJy.js} +1 -1
- package/dist/client/assets/{index-BvXIjHT6.js → index-jrZjRdSI.js} +1 -1
- package/dist/client/assets/{index-BzKhWus-.js → index-k2B6oHDy.js} +1 -1
- package/dist/client/assets/{index-redirect-DAwJl3u9.js → index-redirect-pd-pFoY5.js} +1 -1
- package/dist/client/assets/{input-DBTIXVeB.js → input-CfDoPzy7.js} +1 -1
- package/dist/client/assets/{integration-icon-Cws5p9F1.js → integration-icon-ChBrp2uX.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-U14K8dLP.js → invite-member-dialog-7T9uI3o5.js} +1 -1
- package/dist/client/assets/{label-hZbHKQe4.js → label-Br-zNLTG.js} +1 -1
- package/dist/client/assets/{layout-BbmfwSeT.js → layout-DMOlkuOh.js} +1 -1
- package/dist/client/assets/{login-CYk7QqzO.js → login-CWIddfiC.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BBJ-dCGK.js → mcp-oauth-DhzxU0XK.js} +1 -1
- package/dist/client/assets/{members-Br5ZzfAU.js → members-CGKVy4T3.js} +1 -1
- package/dist/client/assets/{monaco-editor-B7XD9jse.js → monaco-editor-BcwFx31f.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CiB1VTGS.js → monitoring-stats-row-DKIXNyFS.js} +1 -1
- package/dist/client/assets/{multi-select-DtCSfvTi.js → multi-select-DwEYUWQk.js} +1 -1
- package/dist/client/assets/{oauth-callback-CuoSY6yW.js → oauth-callback-CRC-TNHK.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DTd9RCl8.js → oauth-callback-ai-provider-Bn5ecNQ9.js} +1 -1
- package/dist/client/assets/{onboarding-VI53SQy5.js → onboarding-ChQBM6P7.js} +1 -1
- package/dist/client/assets/{org-install-BpRHfBoz.js → org-install-B2VYuIrV.js} +1 -1
- package/dist/client/assets/{org-layout-Ip0hYM6i.js → org-layout-CXw1-r8T.js} +1 -1
- package/dist/client/assets/{organization-choice-Ccir5zvX.js → organization-choice-thMPBy_H.js} +1 -1
- package/dist/client/assets/{orgs-BK0nOPLw.js → orgs-DpewEJO4.js} +1 -1
- package/dist/client/assets/{page-seo-form-CBAWdwBB.js → page-seo-form-Bj8agFDN.js} +1 -1
- package/dist/client/assets/page-seo-sheet-xYyduq_3.js +1 -0
- package/dist/client/assets/{popover-WvXSsr2A.js → popover-PFUSi04J.js} +1 -1
- package/dist/client/assets/{post-editor-GEIG3Qbs.js → post-editor-fudBfEMW.js} +1 -1
- package/dist/client/assets/{primitives-B4b9OMlU.js → primitives-CRg4BEbe.js} +1 -1
- package/dist/client/assets/{profile-BJOXihUj.js → profile-krVPqEis.js} +1 -1
- package/dist/client/assets/project-app-view-F_105CvS.js +1 -0
- package/dist/client/assets/record-editor-B9z6hPr0.js +1 -0
- package/dist/client/assets/redirect-editor-pmxNft8I.js +1 -0
- package/dist/client/assets/registry-BBaBGga3.js +2 -0
- package/dist/client/assets/{registry-layout-CUSBCALf.js → registry-layout-D0if0uky.js} +2 -2
- package/dist/client/assets/{reports-CJYmnCRR.js → reports-DQRCq5Dl.js} +2 -2
- package/dist/client/assets/{require-capability-BOqOfzCO.js → require-capability-lUm3WxQW.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C1iQaX9e.js → required-auth-layout-zgA3qXU6.js} +1 -1
- package/dist/client/assets/{reset-password-ChmXlYVK.js → reset-password-d6_AkYAQ.js} +1 -1
- package/dist/client/assets/{roles-CuzTIzcA.js → roles-B_zG47r7.js} +1 -1
- package/dist/client/assets/{search-input-Di_KVfz5.js → search-input-Im3obJ_5.js} +1 -1
- package/dist/client/assets/{secrets-Cwnb5SFR.js → secrets-DZpWBr7n.js} +1 -1
- package/dist/client/assets/{sections-editor-BnUP7eos.js → sections-editor-D7TakwFG.js} +1 -1
- package/dist/client/assets/{select-CS3vGjLf.js → select-BDOR27tE.js} +1 -1
- package/dist/client/assets/{select-model-CBkA3Qex.js → select-model-BRQ-V94m.js} +1 -1
- package/dist/client/assets/{self-tool-result-olaCzjy8.js → self-tool-result-VStIScqg.js} +1 -1
- package/dist/client/assets/{seo-editor-BS3PrYY5.js → seo-editor-DgKKLq5W.js} +1 -1
- package/dist/client/assets/{settings-layout-BWiwB1ve.js → settings-layout-CxNvsg8J.js} +1 -1
- package/dist/client/assets/{settings-section-B42r-p4q.js → settings-section-BWS26hMF.js} +1 -1
- package/dist/client/assets/{shell-controls-CG47bgem.js → shell-controls-HSPoO0mS.js} +1 -1
- package/dist/client/assets/{shell-layout-C2jFubEc.js → shell-layout-D_sblBCw.js} +1 -1
- package/dist/client/assets/{sidebar-DhNO0hbl.js → sidebar-BvGzib5A.js} +1 -1
- package/dist/client/assets/{skeleton-CkFFLL1Z.js → skeleton-BUe_WzkR.js} +1 -1
- package/dist/client/assets/{sso-DvIYBwsX.js → sso-dMXAkSfn.js} +1 -1
- package/dist/client/assets/{store-D2kZokQ2.js → store-qzvEGiXH.js} +1 -1
- package/dist/client/assets/store-registry-C0M7zBzp.js +2 -0
- package/dist/client/assets/{studio-tools-Dj_suUV-.js → studio-tools-CvoMFYCt.js} +1 -1
- package/dist/client/assets/{switch-CWGgmiWZ.js → switch-muGjhkBJ.js} +1 -1
- package/dist/client/assets/{table-B7Z84RDB.js → table-BUQ1sil8.js} +1 -1
- package/dist/client/assets/{tabs-CSjEyx_g.js → tabs-DHpcGpHH.js} +1 -1
- package/dist/client/assets/{textarea-DNrJISFS.js → textarea-Bt_QtOk0.js} +1 -1
- package/dist/client/assets/{toggle-group-DngQXFC1.js → toggle-group-CQKX4oUd.js} +1 -1
- package/dist/client/assets/{toolbar-BJAhXpws.js → toolbar-0DwtxERz.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BPZ8JgHL.js → toolbar-icon-button-DZhVI9-2.js} +1 -1
- package/dist/client/assets/{tooltip-BoYfeb4r.js → tooltip-BigwhDSP.js} +1 -1
- package/dist/client/assets/{use-ai-providers-B0uEL6GU.js → use-ai-providers-WKbvbsVL.js} +1 -1
- package/dist/client/assets/{use-api-keys-BUXdsmWE.js → use-api-keys-Te5PgtxD.js} +1 -1
- package/dist/client/assets/{use-automations-BX-f2xPQ.js → use-automations--GMik9NX.js} +1 -1
- package/dist/client/assets/{use-autosave-D2xExJSi.js → use-autosave-M2ceoril.js} +1 -1
- package/dist/client/assets/{use-capability-zn_dFQCr.js → use-capability-Bh8YlueK.js} +1 -1
- package/dist/client/assets/{use-clock-tick-Daz3W4ZL.js → use-clock-tick-IRvpmO0_.js} +1 -1
- package/dist/client/assets/{use-connection-CI4KVjBL.js → use-connection-COZgUeU0.js} +1 -1
- package/dist/client/assets/{use-copy-BFe-yhR7.js → use-copy-CFyLSHsK.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BruuOj8R.js → use-create-virtual-mcp-VVjBeALb.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C18-WjK7.js → use-debounced-autosave-BxkO-_ca.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CgLjUKeF.js → use-debounced-value-DmIl8W6n.js} +1 -1
- package/dist/client/assets/{use-deco-credits-Cl6XjjTb.js → use-deco-credits-CmiQbTPM.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Opg95yOG.js → use-decopilot-events-O1Gk-ETR.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CkYrHV-n.js → use-delete-connection-B5quwMM9.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CWMJlws-.js → use-deployment-admin-BElTs8M7.js} +1 -1
- package/dist/client/assets/{use-file-configs-CU2Y0Emb.js → use-file-configs-B0d07k9Y.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-mXDq9sbk.js → use-infinite-scroll-BZlKDm5N.js} +1 -1
- package/dist/client/assets/{use-join-requests-zFCwv89L.js → use-join-requests-CZ3onEZJ.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BoHM8OB0.js → use-mcp-auth-status-BeMiAxE7.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DL89siIV.js → use-mcp-client-CZsvR6c7.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C4CClJFZ.js → use-mcp-tools-C86d_75c.js} +1 -1
- package/dist/client/assets/{use-members-A3agoGMA.js → use-members-DmoF-3Ie.js} +1 -1
- package/dist/client/assets/{use-mobile-BwfgD4pT.js → use-mobile-BVFGUH1V.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Bc0CpSD2.js → use-navigate-to-agent-CID4qRVq.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BTfVRkCO.js → use-org-auth-client-CcOUerBq.js} +1 -1
- package/dist/client/assets/{use-org-sso-DYo24v3_.js → use-org-sso-DK1YMh-o.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DYKLAq-n.js → use-organization-roles-DGfdPMyJ.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DoCpZun-.js → use-organization-settings-C8zNTcuC.js} +1 -1
- package/dist/client/assets/{use-registry-app-nEihaLca.js → use-registry-app-DOaPd1Kq.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DuneVuyO.js → use-registry-connections-BLLrfs0c.js} +1 -1
- package/dist/client/assets/{use-secrets-CG9MzH4M.js → use-secrets-CmLaq4UW.js} +1 -1
- package/dist/client/assets/{use-status-sounds-C-LWwT7t.js → use-status-sounds-C_iNgi5N.js} +1 -1
- package/dist/client/assets/{use-view-mode--BSnFAw6.js → use-view-mode-Be73RvXD.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C6uu6xME.js → use-virtual-mcp-BGZZhgI8.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Cdk9mXL-.js +1 -0
- package/dist/client/assets/{useQueries-BT8q2MfJ.js → useQueries-C11UDtFe.js} +1 -1
- package/dist/client/assets/{useRouterState-BMgTcVFU.js → useRouterState-B8sLgF57.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-LZ9xlW1Z.js +1 -0
- package/dist/client/assets/{users-BXaOYgw2.js → users-B_lOVuoe.js} +1 -1
- package/dist/client/assets/{variant-calendar-C61DYxyp.js → variant-calendar-3-o3D_Rr.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C8Ikqgl7.js → view-mode-toggle-DnN-vUal.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/report-og-fallback.png +0 -0
- package/dist/server/cli.js +680 -686
- package/dist/server/migrate.js +5 -5
- package/dist/server/node_modules/@resvg/resvg-js/LICENSE +373 -0
- package/dist/server/node_modules/@resvg/resvg-js/README.md +314 -0
- package/dist/server/node_modules/@resvg/resvg-js/index.js +23 -0
- package/dist/server/node_modules/@resvg/resvg-js/js-binding.js +1 -0
- package/dist/server/node_modules/@resvg/resvg-js/package.json +152 -0
- package/dist/server/node_modules/@shuding/opentype.js/LICENSE +20 -0
- package/dist/server/node_modules/@shuding/opentype.js/README.md +9 -0
- package/dist/server/node_modules/@shuding/opentype.js/RELEASES.md +272 -0
- package/dist/server/node_modules/@shuding/opentype.js/bin/ot +84 -0
- package/dist/server/node_modules/@shuding/opentype.js/bin/server.js +64 -0
- package/dist/server/node_modules/@shuding/opentype.js/bin/test-render +96 -0
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.js +11655 -0
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.min.js +2 -0
- package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.module.js +11639 -0
- package/dist/server/node_modules/@shuding/opentype.js/package.json +73 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/bbox.js +158 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/bidi.js +243 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/char.js +43 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/check.js +16 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/encoding.js +1032 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/applySubstitution.js +74 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicPresentationForms.js +83 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicRequiredLigatures.js +41 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicSentence.js +43 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicWord.js +31 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/featureQuery.js +483 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/contextCheck/latinWord.js +31 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/latinLigatures.js +40 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/font.js +433 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/glyph.js +274 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/glyphset.js +150 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/hintingtt.js +3062 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/index.js +5 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/layout.js +357 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/opentype.js +375 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/parse.js +628 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/path.js +212 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/position.js +77 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/substitution.js +447 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/table.js +215 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cff.js +1156 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/cmap.js +145 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/fvar.js +71 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gdef.js +62 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/glyf.js +349 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gpos.js +146 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/gsub.js +251 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/head.js +35 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hhea.js +27 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/hmtx.js +51 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/kern.js +69 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/loca.js +31 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/ltag.js +33 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/maxp.js +32 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/meta.js +30 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/name.js +680 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/os2.js +65 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tables/post.js +41 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/tokenizer.js +522 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/types.js +976 -0
- package/dist/server/node_modules/@shuding/opentype.js/src/util.js +17 -0
- package/dist/server/node_modules/base64-js/.travis.yml +5 -0
- package/dist/server/node_modules/base64-js/LICENSE.MIT +21 -0
- package/dist/server/node_modules/base64-js/README.md +31 -0
- package/dist/server/node_modules/base64-js/bench/bench.js +19 -0
- package/dist/server/node_modules/base64-js/lib/b64.js +124 -0
- package/dist/server/node_modules/base64-js/package.json +34 -0
- package/dist/server/node_modules/base64-js/test/convert.js +51 -0
- package/dist/server/node_modules/base64-js/test/url-safe.js +18 -0
- package/dist/server/node_modules/camelize/.eslintrc +24 -0
- package/dist/server/node_modules/camelize/.github/FUNDING.yml +12 -0
- package/dist/server/node_modules/camelize/CHANGELOG.md +64 -0
- package/dist/server/node_modules/camelize/LICENSE +18 -0
- package/dist/server/node_modules/camelize/README.md +81 -0
- package/dist/server/node_modules/camelize/example/camel.js +12 -0
- package/dist/server/node_modules/camelize/index.js +61 -0
- package/dist/server/node_modules/camelize/package.json +84 -0
- package/dist/server/node_modules/camelize/test/camel.js +48 -0
- package/dist/server/node_modules/color-name/LICENSE +8 -0
- package/dist/server/node_modules/color-name/README.md +11 -0
- package/dist/server/node_modules/color-name/index.js +152 -0
- package/dist/server/node_modules/color-name/package.json +28 -0
- package/dist/server/node_modules/css-background-parser/LICENSE +22 -0
- package/dist/server/node_modules/css-background-parser/README.md +149 -0
- package/dist/server/node_modules/css-background-parser/index.js +162 -0
- package/dist/server/node_modules/css-background-parser/package.json +19 -0
- package/dist/server/node_modules/css-box-shadow/README.md +27 -0
- package/dist/server/node_modules/css-box-shadow/index.js +64 -0
- package/dist/server/node_modules/css-box-shadow/package.json +14 -0
- package/dist/server/node_modules/css-box-shadow/test.js +204 -0
- package/dist/server/node_modules/css-color-keywords/LICENSE +15 -0
- package/dist/server/node_modules/css-color-keywords/README.md +47 -0
- package/dist/server/node_modules/css-color-keywords/colors.json +148 -0
- package/dist/server/node_modules/css-color-keywords/index.js +3 -0
- package/dist/server/node_modules/css-color-keywords/package.json +27 -0
- package/dist/server/node_modules/css-gradient-parser/LICENSE +21 -0
- package/dist/server/node_modules/css-gradient-parser/README.md +75 -0
- package/dist/server/node_modules/css-gradient-parser/dist/index.cjs +2 -0
- package/dist/server/node_modules/css-gradient-parser/dist/index.js +2 -0
- package/dist/server/node_modules/css-gradient-parser/package.json +54 -0
- package/dist/server/node_modules/css-to-react-native/LICENSE.md +21 -0
- package/dist/server/node_modules/css-to-react-native/README.md +115 -0
- package/dist/server/node_modules/css-to-react-native/index.js +886 -0
- package/dist/server/node_modules/css-to-react-native/package.json +65 -0
- package/dist/server/node_modules/css-to-react-native/src/TokenStream.js +74 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/aspectRatio.js +23 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/border.js +85 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/borderColor.js +37 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxModel.js +136 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/boxShadow.js +83 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/colors.js +31 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flex.js +122 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/flexFlow.js +22 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/font.js +117 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontFamily.js +43 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontVariant.js +15 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/fontWeight.js +8 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/index.js +204 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/placeContent.js +19 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/shadowOffsets.js +13 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecoration.js +103 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecorationLine.js +23 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/textShadow.js +30 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/transform.js +55 -0
- package/dist/server/node_modules/css-to-react-native/src/__tests__/units.js +132 -0
- package/dist/server/node_modules/css-to-react-native/src/devPropertiesWithoutUnitsRegExp.js +19 -0
- package/dist/server/node_modules/css-to-react-native/src/index.js +90 -0
- package/dist/server/node_modules/css-to-react-native/src/tokenTypes.js +75 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/aspectRatio.js +12 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/border.js +53 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/boxShadow.js +11 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/flex.js +65 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/flexFlow.js +37 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/font.js +63 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontFamily.js +20 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/fontVariant.js +14 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/index.js +77 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/placeContent.js +24 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecoration.js +53 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/textDecorationLine.js +18 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/textShadow.js +10 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/transform.js +74 -0
- package/dist/server/node_modules/css-to-react-native/src/transforms/util.js +99 -0
- package/dist/server/node_modules/hex-rgb/index.js +47 -0
- package/dist/server/node_modules/hex-rgb/license +9 -0
- package/dist/server/node_modules/hex-rgb/package.json +39 -0
- package/dist/server/node_modules/hex-rgb/readme.md +86 -0
- package/dist/server/node_modules/linebreak/LICENSE +21 -0
- package/dist/server/node_modules/linebreak/dist/main.cjs +1369 -0
- package/dist/server/node_modules/linebreak/dist/module.mjs +1368 -0
- package/dist/server/node_modules/linebreak/package.json +57 -0
- package/dist/server/node_modules/linebreak/readme.md +62 -0
- package/dist/server/node_modules/parse-css-color/CHANGELOG.md +54 -0
- package/dist/server/node_modules/parse-css-color/LICENSE +21 -0
- package/dist/server/node_modules/parse-css-color/README.md +110 -0
- package/dist/server/node_modules/parse-css-color/dist/index.cjs.js +171 -0
- package/dist/server/node_modules/parse-css-color/dist/index.esm.js +167 -0
- package/dist/server/node_modules/parse-css-color/dist/index.umd.js +7 -0
- package/dist/server/node_modules/parse-css-color/package.json +55 -0
- package/dist/server/node_modules/postcss-value-parser/LICENSE +22 -0
- package/dist/server/node_modules/postcss-value-parser/README.md +263 -0
- package/dist/server/node_modules/postcss-value-parser/lib/index.js +28 -0
- package/dist/server/node_modules/postcss-value-parser/lib/parse.js +321 -0
- package/dist/server/node_modules/postcss-value-parser/lib/stringify.js +48 -0
- package/dist/server/node_modules/postcss-value-parser/lib/unit.js +120 -0
- package/dist/server/node_modules/postcss-value-parser/lib/walk.js +22 -0
- package/dist/server/node_modules/postcss-value-parser/package.json +58 -0
- package/dist/server/node_modules/satori/LICENSE +373 -0
- package/dist/server/node_modules/satori/README.md +516 -0
- package/dist/server/node_modules/satori/dist/index.cjs +8 -0
- package/dist/server/node_modules/satori/dist/index.cjs.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/dist/index.js +8 -0
- package/dist/server/node_modules/satori/dist/index.js.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/dist/jsx/index.cjs +2 -0
- package/dist/server/node_modules/satori/dist/jsx/index.cjs.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/jsx/index.js +2 -0
- 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 +2 -0
- 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 +2 -0
- package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js.LEGAL.txt +0 -0
- package/dist/server/node_modules/satori/dist/standalone.cjs +8 -0
- package/dist/server/node_modules/satori/dist/standalone.cjs.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/dist/standalone.js +8 -0
- package/dist/server/node_modules/satori/dist/standalone.js.LEGAL.txt +4 -0
- package/dist/server/node_modules/satori/package.json +149 -0
- package/dist/server/node_modules/satori/yoga.wasm +0 -0
- package/dist/server/node_modules/tiny-inflate/LICENSE +21 -0
- package/dist/server/node_modules/tiny-inflate/index.js +375 -0
- package/dist/server/node_modules/tiny-inflate/package.json +28 -0
- package/dist/server/node_modules/tiny-inflate/readme.md +31 -0
- package/dist/server/node_modules/tiny-inflate/test/index.js +75 -0
- package/dist/server/node_modules/tiny-inflate/test/lorem.txt +199 -0
- package/dist/server/node_modules/unicode-trie/LICENSE +8 -0
- package/dist/server/node_modules/unicode-trie/README.md +77 -0
- package/dist/server/node_modules/unicode-trie/builder.js +966 -0
- package/dist/server/node_modules/unicode-trie/index.js +136 -0
- package/dist/server/node_modules/unicode-trie/package.json +27 -0
- package/dist/server/node_modules/unicode-trie/swap.js +25 -0
- package/dist/server/node_modules/unicode-trie/test/mocha.opts +1 -0
- package/dist/server/node_modules/unicode-trie/test/test.js +243 -0
- package/dist/server/server.js +664 -670
- package/package.json +3 -1
- package/dist/client/assets/page-seo-sheet-BVOTKmAi.js +0 -1
- package/dist/client/assets/project-app-view-BJPw6BEN.js +0 -1
- package/dist/client/assets/record-editor-DGNLZeof.js +0 -1
- package/dist/client/assets/redirect-editor-rNADegcF.js +0 -1
- package/dist/client/assets/registry-DSHcnwR4.js +0 -2
- package/dist/client/assets/store-registry-q7deglpz.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DVl8ILZo.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-ClimnWE2.js +0 -1
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
// The `cmap` table stores the mappings from characters to glyphs.
|
|
2
|
+
// https://www.microsoft.com/typography/OTSPEC/cmap.htm
|
|
3
|
+
|
|
4
|
+
import check from '../check';
|
|
5
|
+
import parse from '../parse';
|
|
6
|
+
|
|
7
|
+
function parseCmapTableFormat12(cmap, p) {
|
|
8
|
+
//Skip reserved.
|
|
9
|
+
p.parseUShort();
|
|
10
|
+
|
|
11
|
+
// Length in bytes of the sub-tables.
|
|
12
|
+
cmap.length = p.parseULong();
|
|
13
|
+
cmap.language = p.parseULong();
|
|
14
|
+
|
|
15
|
+
let groupCount;
|
|
16
|
+
cmap.groupCount = groupCount = p.parseULong();
|
|
17
|
+
cmap.glyphIndexMap = {};
|
|
18
|
+
|
|
19
|
+
for (let i = 0; i < groupCount; i += 1) {
|
|
20
|
+
const startCharCode = p.parseULong();
|
|
21
|
+
const endCharCode = p.parseULong();
|
|
22
|
+
let startGlyphId = p.parseULong();
|
|
23
|
+
|
|
24
|
+
for (let c = startCharCode; c <= endCharCode; c += 1) {
|
|
25
|
+
cmap.glyphIndexMap[c] = startGlyphId;
|
|
26
|
+
startGlyphId++;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function parseCmapTableFormat4(cmap, p, data, start, offset) {
|
|
32
|
+
// Length in bytes of the sub-tables.
|
|
33
|
+
cmap.length = p.parseUShort();
|
|
34
|
+
cmap.language = p.parseUShort();
|
|
35
|
+
|
|
36
|
+
// segCount is stored x 2.
|
|
37
|
+
let segCount;
|
|
38
|
+
cmap.segCount = segCount = p.parseUShort() >> 1;
|
|
39
|
+
|
|
40
|
+
// Skip searchRange, entrySelector, rangeShift.
|
|
41
|
+
p.skip('uShort', 3);
|
|
42
|
+
|
|
43
|
+
// The "unrolled" mapping from character codes to glyph indices.
|
|
44
|
+
cmap.glyphIndexMap = {};
|
|
45
|
+
const endCountParser = new parse.Parser(data, start + offset + 14);
|
|
46
|
+
const startCountParser = new parse.Parser(
|
|
47
|
+
data,
|
|
48
|
+
start + offset + 16 + segCount * 2
|
|
49
|
+
);
|
|
50
|
+
const idDeltaParser = new parse.Parser(
|
|
51
|
+
data,
|
|
52
|
+
start + offset + 16 + segCount * 4
|
|
53
|
+
);
|
|
54
|
+
const idRangeOffsetParser = new parse.Parser(
|
|
55
|
+
data,
|
|
56
|
+
start + offset + 16 + segCount * 6
|
|
57
|
+
);
|
|
58
|
+
let glyphIndexOffset = start + offset + 16 + segCount * 8;
|
|
59
|
+
for (let i = 0; i < segCount - 1; i += 1) {
|
|
60
|
+
let glyphIndex;
|
|
61
|
+
const endCount = endCountParser.parseUShort();
|
|
62
|
+
const startCount = startCountParser.parseUShort();
|
|
63
|
+
const idDelta = idDeltaParser.parseShort();
|
|
64
|
+
const idRangeOffset = idRangeOffsetParser.parseUShort();
|
|
65
|
+
for (let c = startCount; c <= endCount; c += 1) {
|
|
66
|
+
if (idRangeOffset !== 0) {
|
|
67
|
+
// The idRangeOffset is relative to the current position in the idRangeOffset array.
|
|
68
|
+
// Take the current offset in the idRangeOffset array.
|
|
69
|
+
glyphIndexOffset =
|
|
70
|
+
idRangeOffsetParser.offset +
|
|
71
|
+
idRangeOffsetParser.relativeOffset -
|
|
72
|
+
2;
|
|
73
|
+
|
|
74
|
+
// Add the value of the idRangeOffset, which will move us into the glyphIndex array.
|
|
75
|
+
glyphIndexOffset += idRangeOffset;
|
|
76
|
+
|
|
77
|
+
// Then add the character index of the current segment, multiplied by 2 for USHORTs.
|
|
78
|
+
glyphIndexOffset += (c - startCount) * 2;
|
|
79
|
+
glyphIndex = parse.getUShort(data, glyphIndexOffset);
|
|
80
|
+
if (glyphIndex !== 0) {
|
|
81
|
+
glyphIndex = (glyphIndex + idDelta) & 0xffff;
|
|
82
|
+
}
|
|
83
|
+
} else {
|
|
84
|
+
glyphIndex = (c + idDelta) & 0xffff;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
cmap.glyphIndexMap[c] = glyphIndex;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Parse the `cmap` table. This table stores the mappings from characters to glyphs.
|
|
93
|
+
// There are many available formats, but we only support the Windows format 4 and 12.
|
|
94
|
+
// This function returns a `CmapEncoding` object or null if no supported format could be found.
|
|
95
|
+
function parseCmapTable(data, start) {
|
|
96
|
+
const cmap = {};
|
|
97
|
+
cmap.version = parse.getUShort(data, start);
|
|
98
|
+
check.argument(cmap.version === 0, 'cmap table version should be 0.');
|
|
99
|
+
|
|
100
|
+
// The cmap table can contain many sub-tables, each with their own format.
|
|
101
|
+
// We're only interested in a "platform 0" (Unicode format) and "platform 3" (Windows format) table.
|
|
102
|
+
cmap.numTables = parse.getUShort(data, start + 2);
|
|
103
|
+
let offset = -1;
|
|
104
|
+
for (let i = cmap.numTables - 1; i >= 0; i -= 1) {
|
|
105
|
+
const platformId = parse.getUShort(data, start + 4 + i * 8);
|
|
106
|
+
const encodingId = parse.getUShort(data, start + 4 + i * 8 + 2);
|
|
107
|
+
if (
|
|
108
|
+
(platformId === 3 &&
|
|
109
|
+
(encodingId === 0 || encodingId === 1 || encodingId === 10)) ||
|
|
110
|
+
(platformId === 0 &&
|
|
111
|
+
(encodingId === 0 ||
|
|
112
|
+
encodingId === 1 ||
|
|
113
|
+
encodingId === 2 ||
|
|
114
|
+
encodingId === 3 ||
|
|
115
|
+
encodingId === 4))
|
|
116
|
+
) {
|
|
117
|
+
offset = parse.getULong(data, start + 4 + i * 8 + 4);
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (offset === -1) {
|
|
123
|
+
// There is no cmap table in the font that we support.
|
|
124
|
+
throw new Error('No valid cmap sub-tables found.');
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const p = new parse.Parser(data, start + offset);
|
|
128
|
+
cmap.format = p.parseUShort();
|
|
129
|
+
|
|
130
|
+
if (cmap.format === 12) {
|
|
131
|
+
parseCmapTableFormat12(cmap, p);
|
|
132
|
+
} else if (cmap.format === 4) {
|
|
133
|
+
parseCmapTableFormat4(cmap, p, data, start, offset);
|
|
134
|
+
} else {
|
|
135
|
+
throw new Error(
|
|
136
|
+
'Only format 4 and 12 cmap tables are supported (found format ' +
|
|
137
|
+
cmap.format +
|
|
138
|
+
').'
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return cmap;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export default { parse: parseCmapTable };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// The `fvar` table stores font variation axes and instances.
|
|
2
|
+
// https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6fvar.html
|
|
3
|
+
|
|
4
|
+
import check from '../check';
|
|
5
|
+
import parse from '../parse';
|
|
6
|
+
|
|
7
|
+
function parseFvarAxis(data, start, names) {
|
|
8
|
+
const axis = {};
|
|
9
|
+
const p = new parse.Parser(data, start);
|
|
10
|
+
axis.tag = p.parseTag();
|
|
11
|
+
axis.minValue = p.parseFixed();
|
|
12
|
+
axis.defaultValue = p.parseFixed();
|
|
13
|
+
axis.maxValue = p.parseFixed();
|
|
14
|
+
p.skip('uShort', 1); // reserved for flags; no values defined
|
|
15
|
+
axis.name = names[p.parseUShort()] || {};
|
|
16
|
+
return axis;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function parseFvarInstance(data, start, axes, names) {
|
|
20
|
+
const inst = {};
|
|
21
|
+
const p = new parse.Parser(data, start);
|
|
22
|
+
inst.name = names[p.parseUShort()] || {};
|
|
23
|
+
p.skip('uShort', 1); // reserved for flags; no values defined
|
|
24
|
+
|
|
25
|
+
inst.coordinates = {};
|
|
26
|
+
for (let i = 0; i < axes.length; ++i) {
|
|
27
|
+
inst.coordinates[axes[i].tag] = p.parseFixed();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return inst;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function parseFvarTable(data, start, names) {
|
|
34
|
+
const p = new parse.Parser(data, start);
|
|
35
|
+
const tableVersion = p.parseULong();
|
|
36
|
+
check.argument(
|
|
37
|
+
tableVersion === 0x00010000,
|
|
38
|
+
'Unsupported fvar table version.'
|
|
39
|
+
);
|
|
40
|
+
const offsetToData = p.parseOffset16();
|
|
41
|
+
// Skip countSizePairs.
|
|
42
|
+
p.skip('uShort', 1);
|
|
43
|
+
const axisCount = p.parseUShort();
|
|
44
|
+
const axisSize = p.parseUShort();
|
|
45
|
+
const instanceCount = p.parseUShort();
|
|
46
|
+
const instanceSize = p.parseUShort();
|
|
47
|
+
|
|
48
|
+
const axes = [];
|
|
49
|
+
for (let i = 0; i < axisCount; i++) {
|
|
50
|
+
axes.push(
|
|
51
|
+
parseFvarAxis(data, start + offsetToData + i * axisSize, names)
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const instances = [];
|
|
56
|
+
const instanceStart = start + offsetToData + axisCount * axisSize;
|
|
57
|
+
for (let j = 0; j < instanceCount; j++) {
|
|
58
|
+
instances.push(
|
|
59
|
+
parseFvarInstance(
|
|
60
|
+
data,
|
|
61
|
+
instanceStart + j * instanceSize,
|
|
62
|
+
axes,
|
|
63
|
+
names
|
|
64
|
+
)
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return { axes: axes, instances: instances };
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default { parse: parseFvarTable };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// The `GDEF` table contains various glyph properties
|
|
2
|
+
// https://docs.microsoft.com/en-us/typography/opentype/spec/gdef
|
|
3
|
+
|
|
4
|
+
import check from '../check';
|
|
5
|
+
import { Parser } from '../parse';
|
|
6
|
+
|
|
7
|
+
var attachList = function() {
|
|
8
|
+
return {
|
|
9
|
+
coverage: this.parsePointer(Parser.coverage),
|
|
10
|
+
attachPoints: this.parseList(Parser.pointer(Parser.uShortList))
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
var caretValue = function() {
|
|
15
|
+
var format = this.parseUShort();
|
|
16
|
+
check.argument(format === 1 || format === 2 || format === 3,
|
|
17
|
+
'Unsupported CaretValue table version.');
|
|
18
|
+
if (format === 1) {
|
|
19
|
+
return { coordinate: this.parseShort() };
|
|
20
|
+
} else if (format === 2) {
|
|
21
|
+
return { pointindex: this.parseShort() };
|
|
22
|
+
} else if (format === 3) {
|
|
23
|
+
// Device / Variation Index tables unsupported
|
|
24
|
+
return { coordinate: this.parseShort() };
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
var ligGlyph = function() {
|
|
29
|
+
return this.parseList(Parser.pointer(caretValue));
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var ligCaretList = function() {
|
|
33
|
+
return {
|
|
34
|
+
coverage: this.parsePointer(Parser.coverage),
|
|
35
|
+
ligGlyphs: this.parseList(Parser.pointer(ligGlyph))
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
var markGlyphSets = function() {
|
|
40
|
+
this.parseUShort(); // Version
|
|
41
|
+
return this.parseList(Parser.pointer(Parser.coverage));
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
function parseGDEFTable(data, start) {
|
|
45
|
+
start = start || 0;
|
|
46
|
+
const p = new Parser(data, start);
|
|
47
|
+
const tableVersion = p.parseVersion(1);
|
|
48
|
+
check.argument(tableVersion === 1 || tableVersion === 1.2 || tableVersion === 1.3,
|
|
49
|
+
'Unsupported GDEF table version.');
|
|
50
|
+
var gdef = {
|
|
51
|
+
version: tableVersion,
|
|
52
|
+
classDef: p.parsePointer(Parser.classDef),
|
|
53
|
+
attachList: p.parsePointer(attachList),
|
|
54
|
+
ligCaretList: p.parsePointer(ligCaretList),
|
|
55
|
+
markAttachClassDef: p.parsePointer(Parser.classDef)
|
|
56
|
+
};
|
|
57
|
+
if (tableVersion >= 1.2) {
|
|
58
|
+
gdef.markGlyphSets = p.parsePointer(markGlyphSets);
|
|
59
|
+
}
|
|
60
|
+
return gdef;
|
|
61
|
+
}
|
|
62
|
+
export default { parse: parseGDEFTable };
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
// The `glyf` table describes the glyphs in TrueType outline format.
|
|
2
|
+
// http://www.microsoft.com/typography/otspec/glyf.htm
|
|
3
|
+
|
|
4
|
+
import check from '../check';
|
|
5
|
+
import glyphset from '../glyphset';
|
|
6
|
+
import parse from '../parse';
|
|
7
|
+
import Path from '../path';
|
|
8
|
+
|
|
9
|
+
// Parse the coordinate data for a glyph.
|
|
10
|
+
function parseGlyphCoordinate(p, flag, previousValue, shortVectorBitMask, sameBitMask) {
|
|
11
|
+
let v;
|
|
12
|
+
if ((flag & shortVectorBitMask) > 0) {
|
|
13
|
+
// The coordinate is 1 byte long.
|
|
14
|
+
v = p.parseByte();
|
|
15
|
+
// The `same` bit is re-used for short values to signify the sign of the value.
|
|
16
|
+
if ((flag & sameBitMask) === 0) {
|
|
17
|
+
v = -v;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
v = previousValue + v;
|
|
21
|
+
} else {
|
|
22
|
+
// The coordinate is 2 bytes long.
|
|
23
|
+
// If the `same` bit is set, the coordinate is the same as the previous coordinate.
|
|
24
|
+
if ((flag & sameBitMask) > 0) {
|
|
25
|
+
v = previousValue;
|
|
26
|
+
} else {
|
|
27
|
+
// Parse the coordinate as a signed 16-bit delta value.
|
|
28
|
+
v = previousValue + p.parseShort();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return v;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Parse a TrueType glyph.
|
|
36
|
+
function parseGlyph(glyph, data, start) {
|
|
37
|
+
const p = new parse.Parser(data, start);
|
|
38
|
+
glyph.numberOfContours = p.parseShort();
|
|
39
|
+
glyph._xMin = p.parseShort();
|
|
40
|
+
glyph._yMin = p.parseShort();
|
|
41
|
+
glyph._xMax = p.parseShort();
|
|
42
|
+
glyph._yMax = p.parseShort();
|
|
43
|
+
let flags;
|
|
44
|
+
let flag;
|
|
45
|
+
|
|
46
|
+
if (glyph.numberOfContours > 0) {
|
|
47
|
+
// This glyph is not a composite.
|
|
48
|
+
const endPointIndices = glyph.endPointIndices = [];
|
|
49
|
+
for (let i = 0; i < glyph.numberOfContours; i += 1) {
|
|
50
|
+
endPointIndices.push(p.parseUShort());
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
glyph.instructionLength = p.parseUShort();
|
|
54
|
+
glyph.instructions = [];
|
|
55
|
+
for (let i = 0; i < glyph.instructionLength; i += 1) {
|
|
56
|
+
glyph.instructions.push(p.parseByte());
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const numberOfCoordinates = endPointIndices[endPointIndices.length - 1] + 1;
|
|
60
|
+
flags = [];
|
|
61
|
+
for (let i = 0; i < numberOfCoordinates; i += 1) {
|
|
62
|
+
flag = p.parseByte();
|
|
63
|
+
flags.push(flag);
|
|
64
|
+
// If bit 3 is set, we repeat this flag n times, where n is the next byte.
|
|
65
|
+
if ((flag & 8) > 0) {
|
|
66
|
+
const repeatCount = p.parseByte();
|
|
67
|
+
for (let j = 0; j < repeatCount; j += 1) {
|
|
68
|
+
flags.push(flag);
|
|
69
|
+
i += 1;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
check.argument(flags.length === numberOfCoordinates, 'Bad flags.');
|
|
75
|
+
|
|
76
|
+
if (endPointIndices.length > 0) {
|
|
77
|
+
const points = [];
|
|
78
|
+
let point;
|
|
79
|
+
// X/Y coordinates are relative to the previous point, except for the first point which is relative to 0,0.
|
|
80
|
+
if (numberOfCoordinates > 0) {
|
|
81
|
+
for (let i = 0; i < numberOfCoordinates; i += 1) {
|
|
82
|
+
flag = flags[i];
|
|
83
|
+
point = {};
|
|
84
|
+
point.onCurve = !!(flag & 1);
|
|
85
|
+
point.lastPointOfContour = endPointIndices.indexOf(i) >= 0;
|
|
86
|
+
points.push(point);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
let px = 0;
|
|
90
|
+
for (let i = 0; i < numberOfCoordinates; i += 1) {
|
|
91
|
+
flag = flags[i];
|
|
92
|
+
point = points[i];
|
|
93
|
+
point.x = parseGlyphCoordinate(p, flag, px, 2, 16);
|
|
94
|
+
px = point.x;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
let py = 0;
|
|
98
|
+
for (let i = 0; i < numberOfCoordinates; i += 1) {
|
|
99
|
+
flag = flags[i];
|
|
100
|
+
point = points[i];
|
|
101
|
+
point.y = parseGlyphCoordinate(p, flag, py, 4, 32);
|
|
102
|
+
py = point.y;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
glyph.points = points;
|
|
107
|
+
} else {
|
|
108
|
+
glyph.points = [];
|
|
109
|
+
}
|
|
110
|
+
} else if (glyph.numberOfContours === 0) {
|
|
111
|
+
glyph.points = [];
|
|
112
|
+
} else {
|
|
113
|
+
glyph.isComposite = true;
|
|
114
|
+
glyph.points = [];
|
|
115
|
+
glyph.components = [];
|
|
116
|
+
let moreComponents = true;
|
|
117
|
+
while (moreComponents) {
|
|
118
|
+
flags = p.parseUShort();
|
|
119
|
+
const component = {
|
|
120
|
+
glyphIndex: p.parseUShort(),
|
|
121
|
+
xScale: 1,
|
|
122
|
+
scale01: 0,
|
|
123
|
+
scale10: 0,
|
|
124
|
+
yScale: 1,
|
|
125
|
+
dx: 0,
|
|
126
|
+
dy: 0
|
|
127
|
+
};
|
|
128
|
+
if ((flags & 1) > 0) {
|
|
129
|
+
// The arguments are words
|
|
130
|
+
if ((flags & 2) > 0) {
|
|
131
|
+
// values are offset
|
|
132
|
+
component.dx = p.parseShort();
|
|
133
|
+
component.dy = p.parseShort();
|
|
134
|
+
} else {
|
|
135
|
+
// values are matched points
|
|
136
|
+
component.matchedPoints = [p.parseUShort(), p.parseUShort()];
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
} else {
|
|
140
|
+
// The arguments are bytes
|
|
141
|
+
if ((flags & 2) > 0) {
|
|
142
|
+
// values are offset
|
|
143
|
+
component.dx = p.parseChar();
|
|
144
|
+
component.dy = p.parseChar();
|
|
145
|
+
} else {
|
|
146
|
+
// values are matched points
|
|
147
|
+
component.matchedPoints = [p.parseByte(), p.parseByte()];
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if ((flags & 8) > 0) {
|
|
152
|
+
// We have a scale
|
|
153
|
+
component.xScale = component.yScale = p.parseF2Dot14();
|
|
154
|
+
} else if ((flags & 64) > 0) {
|
|
155
|
+
// We have an X / Y scale
|
|
156
|
+
component.xScale = p.parseF2Dot14();
|
|
157
|
+
component.yScale = p.parseF2Dot14();
|
|
158
|
+
} else if ((flags & 128) > 0) {
|
|
159
|
+
// We have a 2x2 transformation
|
|
160
|
+
component.xScale = p.parseF2Dot14();
|
|
161
|
+
component.scale01 = p.parseF2Dot14();
|
|
162
|
+
component.scale10 = p.parseF2Dot14();
|
|
163
|
+
component.yScale = p.parseF2Dot14();
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
glyph.components.push(component);
|
|
167
|
+
moreComponents = !!(flags & 32);
|
|
168
|
+
}
|
|
169
|
+
if (flags & 0x100) {
|
|
170
|
+
// We have instructions
|
|
171
|
+
glyph.instructionLength = p.parseUShort();
|
|
172
|
+
glyph.instructions = [];
|
|
173
|
+
for (let i = 0; i < glyph.instructionLength; i += 1) {
|
|
174
|
+
glyph.instructions.push(p.parseByte());
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// Transform an array of points and return a new array.
|
|
181
|
+
function transformPoints(points, transform) {
|
|
182
|
+
const newPoints = [];
|
|
183
|
+
for (let i = 0; i < points.length; i += 1) {
|
|
184
|
+
const pt = points[i];
|
|
185
|
+
const newPt = {
|
|
186
|
+
x: transform.xScale * pt.x + transform.scale01 * pt.y + transform.dx,
|
|
187
|
+
y: transform.scale10 * pt.x + transform.yScale * pt.y + transform.dy,
|
|
188
|
+
onCurve: pt.onCurve,
|
|
189
|
+
lastPointOfContour: pt.lastPointOfContour
|
|
190
|
+
};
|
|
191
|
+
newPoints.push(newPt);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
return newPoints;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function getContours(points) {
|
|
198
|
+
const contours = [];
|
|
199
|
+
let currentContour = [];
|
|
200
|
+
for (let i = 0; i < points.length; i += 1) {
|
|
201
|
+
const pt = points[i];
|
|
202
|
+
currentContour.push(pt);
|
|
203
|
+
if (pt.lastPointOfContour) {
|
|
204
|
+
contours.push(currentContour);
|
|
205
|
+
currentContour = [];
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
check.argument(currentContour.length === 0, 'There are still points left in the current contour.');
|
|
210
|
+
return contours;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// Convert the TrueType glyph outline to a Path.
|
|
214
|
+
function getPath(points) {
|
|
215
|
+
const p = new Path();
|
|
216
|
+
if (!points) {
|
|
217
|
+
return p;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
const contours = getContours(points);
|
|
221
|
+
|
|
222
|
+
for (let contourIndex = 0; contourIndex < contours.length; ++contourIndex) {
|
|
223
|
+
const contour = contours[contourIndex];
|
|
224
|
+
|
|
225
|
+
let prev = null;
|
|
226
|
+
let curr = contour[contour.length - 1];
|
|
227
|
+
let next = contour[0];
|
|
228
|
+
|
|
229
|
+
if (curr.onCurve) {
|
|
230
|
+
p.moveTo(curr.x, curr.y);
|
|
231
|
+
} else {
|
|
232
|
+
if (next.onCurve) {
|
|
233
|
+
p.moveTo(next.x, next.y);
|
|
234
|
+
} else {
|
|
235
|
+
// If both first and last points are off-curve, start at their middle.
|
|
236
|
+
const start = {x: (curr.x + next.x) * 0.5, y: (curr.y + next.y) * 0.5};
|
|
237
|
+
p.moveTo(start.x, start.y);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
for (let i = 0; i < contour.length; ++i) {
|
|
242
|
+
prev = curr;
|
|
243
|
+
curr = next;
|
|
244
|
+
next = contour[(i + 1) % contour.length];
|
|
245
|
+
|
|
246
|
+
if (curr.onCurve) {
|
|
247
|
+
// This is a straight line.
|
|
248
|
+
p.lineTo(curr.x, curr.y);
|
|
249
|
+
} else {
|
|
250
|
+
let prev2 = prev;
|
|
251
|
+
let next2 = next;
|
|
252
|
+
|
|
253
|
+
if (!prev.onCurve) {
|
|
254
|
+
prev2 = { x: (curr.x + prev.x) * 0.5, y: (curr.y + prev.y) * 0.5 };
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
if (!next.onCurve) {
|
|
258
|
+
next2 = { x: (curr.x + next.x) * 0.5, y: (curr.y + next.y) * 0.5 };
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
p.quadraticCurveTo(curr.x, curr.y, next2.x, next2.y);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
p.closePath();
|
|
266
|
+
}
|
|
267
|
+
return p;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
function buildPath(glyphs, glyph) {
|
|
271
|
+
if (glyph.isComposite) {
|
|
272
|
+
for (let j = 0; j < glyph.components.length; j += 1) {
|
|
273
|
+
const component = glyph.components[j];
|
|
274
|
+
const componentGlyph = glyphs.get(component.glyphIndex);
|
|
275
|
+
// Force the ttfGlyphLoader to parse the glyph.
|
|
276
|
+
componentGlyph.getPath();
|
|
277
|
+
if (componentGlyph.points) {
|
|
278
|
+
let transformedPoints;
|
|
279
|
+
if (component.matchedPoints === undefined) {
|
|
280
|
+
// component positioned by offset
|
|
281
|
+
transformedPoints = transformPoints(componentGlyph.points, component);
|
|
282
|
+
} else {
|
|
283
|
+
// component positioned by matched points
|
|
284
|
+
if ((component.matchedPoints[0] > glyph.points.length - 1) ||
|
|
285
|
+
(component.matchedPoints[1] > componentGlyph.points.length - 1)) {
|
|
286
|
+
throw Error('Matched points out of range in ' + glyph.name);
|
|
287
|
+
}
|
|
288
|
+
const firstPt = glyph.points[component.matchedPoints[0]];
|
|
289
|
+
let secondPt = componentGlyph.points[component.matchedPoints[1]];
|
|
290
|
+
const transform = {
|
|
291
|
+
xScale: component.xScale, scale01: component.scale01,
|
|
292
|
+
scale10: component.scale10, yScale: component.yScale,
|
|
293
|
+
dx: 0, dy: 0
|
|
294
|
+
};
|
|
295
|
+
secondPt = transformPoints([secondPt], transform)[0];
|
|
296
|
+
transform.dx = firstPt.x - secondPt.x;
|
|
297
|
+
transform.dy = firstPt.y - secondPt.y;
|
|
298
|
+
transformedPoints = transformPoints(componentGlyph.points, transform);
|
|
299
|
+
}
|
|
300
|
+
glyph.points = glyph.points.concat(transformedPoints);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
return getPath(glyph.points);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
function parseGlyfTableAll(data, start, loca, font) {
|
|
309
|
+
const glyphs = new glyphset.GlyphSet(font);
|
|
310
|
+
|
|
311
|
+
// The last element of the loca table is invalid.
|
|
312
|
+
for (let i = 0; i < loca.length - 1; i += 1) {
|
|
313
|
+
const offset = loca[i];
|
|
314
|
+
const nextOffset = loca[i + 1];
|
|
315
|
+
if (offset !== nextOffset) {
|
|
316
|
+
glyphs.push(i, glyphset.ttfGlyphLoader(font, i, parseGlyph, data, start + offset, buildPath));
|
|
317
|
+
} else {
|
|
318
|
+
glyphs.push(i, glyphset.glyphLoader(font, i));
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
return glyphs;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
function parseGlyfTableOnLowMemory(data, start, loca, font) {
|
|
326
|
+
const glyphs = new glyphset.GlyphSet(font);
|
|
327
|
+
|
|
328
|
+
font._push = function(i) {
|
|
329
|
+
const offset = loca[i];
|
|
330
|
+
const nextOffset = loca[i + 1];
|
|
331
|
+
if (offset !== nextOffset) {
|
|
332
|
+
glyphs.push(i, glyphset.ttfGlyphLoader(font, i, parseGlyph, data, start + offset, buildPath));
|
|
333
|
+
} else {
|
|
334
|
+
glyphs.push(i, glyphset.glyphLoader(font, i));
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
return glyphs;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// Parse all the glyphs according to the offsets from the `loca` table.
|
|
342
|
+
function parseGlyfTable(data, start, loca, font, opt) {
|
|
343
|
+
if (opt.lowMemory)
|
|
344
|
+
return parseGlyfTableOnLowMemory(data, start, loca, font);
|
|
345
|
+
else
|
|
346
|
+
return parseGlyfTableAll(data, start, loca, font);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export default { getPath, parse: parseGlyfTable};
|