@flyfish-group/file-viewer 1.0.16 → 1.0.18
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/README.md +17 -16
- package/dist/components/3MFLoader.js +1 -1
- package/dist/components/AMFLoader.js +1 -1
- package/dist/components/AudioViewer.js +1 -1
- package/dist/components/CadViewer.js +1 -1
- package/dist/components/CodeViewer.js +1 -1
- package/dist/components/ColladaLoader.js +1 -1
- package/dist/components/DrawingViewer.js +1 -1
- package/dist/components/EdaViewer.js +1 -1
- package/dist/components/EmailViewer.js +1 -1
- package/dist/components/EpubViewer.js +1 -1
- package/dist/components/FBXLoader.js +1 -1
- package/dist/components/GLTFLoader.js +1 -1
- package/dist/components/ImageViewer.js +1 -1
- package/dist/components/KMZLoader.js +1 -1
- package/dist/components/MarkdownViewer.js +1 -1
- package/dist/components/OBJLoader.js +1 -1
- package/dist/components/OfdViewer.js +1 -1
- package/dist/components/PCDLoader.js +1 -1
- package/dist/components/PLYLoader.js +1 -1
- package/dist/components/PdfView.js +3595 -3564
- package/dist/components/STLLoader.js +1 -1
- package/dist/components/TDSLoader.js +1 -1
- package/dist/components/USDLoader.js +1 -1
- package/dist/components/UmdViewer.js +2 -2
- package/dist/components/VRMLLoader.js +1 -1
- package/dist/components/VTKLoader.js +1 -1
- package/dist/components/XYZLoader.js +1 -1
- package/dist/components/XlsxTable.js +1 -1
- package/dist/components/___vite-browser-external_commonjs-proxy.js +1 -1
- package/dist/components/_commonjs-dynamic-modules.js +1 -1
- package/dist/components/_commonjsHelpers.js +1 -1
- package/dist/components/ar-SA-G6X2FPQ2.js +1 -1
- package/dist/components/arc.js +1 -1
- package/dist/components/architecture-7EHR7CIX.js +1 -1
- package/dist/components/architectureDiagram-3BPJPVTR.js +1 -1
- package/dist/components/az-AZ-76LH7QW2.js +1 -1
- package/dist/components/bg-BG-XCXSNQG7.js +1 -1
- package/dist/components/blockDiagram-GPEHLZMM.js +1 -1
- package/dist/components/bn-BD-2XOGV67Q.js +1 -1
- package/dist/components/c4Diagram-AAUBKEIU.js +1 -1
- package/dist/components/ca-ES-6MX7JW3Y.js +1 -1
- package/dist/components/cfb.js +1 -1
- package/dist/components/channel.js +1 -1
- package/dist/components/chunk-2J33WTMH.js +1 -1
- package/dist/components/chunk-4BX2VUAB.js +1 -1
- package/dist/components/chunk-55IACEB6.js +1 -1
- package/dist/components/chunk-727SXJPM.js +1 -1
- package/dist/components/chunk-AQP2D5EJ.js +1 -1
- package/dist/components/chunk-FMBD7UC4.js +1 -1
- package/dist/components/chunk-ND2GUHAM.js +1 -1
- package/dist/components/chunk-QZHKN3VN.js +1 -1
- package/dist/components/classDiagram-4FO5ZUOK.js +1 -1
- package/dist/components/classDiagram-v2-Q7XG4LA2.js +1 -1
- package/dist/components/cose-bilkent-S5V4N54A.js +1 -1
- package/dist/components/cs-CZ-2BRQDIVT.js +1 -1
- package/dist/components/cytoscape.esm.js +1 -1
- package/dist/components/da-DK-5WZEPLOC.js +1 -1
- package/dist/components/dagre-BM42HDAG.js +1 -1
- package/dist/components/de-DE-XR44H4JA.js +1 -1
- package/dist/components/defaultLocale.js +1 -1
- package/dist/components/diagram-2AECGRRQ.js +1 -1
- package/dist/components/diagram-5GNKFQAL.js +1 -1
- package/dist/components/diagram-KO2AKTUF.js +1 -1
- package/dist/components/diagram-LMA3HP47.js +1 -1
- package/dist/components/diagram-OG6HWLK6.js +1 -1
- package/dist/components/directory-open-01563666.js +1 -1
- package/dist/components/directory-open-4ed118d0.js +1 -1
- package/dist/components/docx-preview.js +2 -2
- package/dist/components/el-GR-BZB4AONW.js +1 -1
- package/dist/components/en-B4ZKOASM.js +1 -1
- package/dist/components/erDiagram-TEJ5UH35.js +1 -1
- package/dist/components/es-ES-U4NZUMDT.js +1 -1
- package/dist/components/eu-ES-A7QVB2H4.js +1 -1
- package/dist/components/eventmodeling-FCH6USID.js +1 -1
- package/dist/components/fa-IR-HGAKTJCU.js +1 -1
- package/dist/components/fflate.module.js +1 -1
- package/dist/components/fi-FI-Z5N7JZ37.js +1 -1
- package/dist/components/file-open-002ab408.js +1 -1
- package/dist/components/file-open-7c801643.js +1 -1
- package/dist/components/file-save-3189631c.js +1 -1
- package/dist/components/file-save-745eba88.js +1 -1
- package/dist/components/flowDiagram-I6XJVG4X.js +1 -1
- package/dist/components/fr-FR-RHASNOE6.js +1 -1
- package/dist/components/ganttDiagram-6RSMTGT7.js +1 -1
- package/dist/components/gitGraph-WXDBUCRP.js +1 -1
- package/dist/components/gitGraphDiagram-PVQCEYII.js +1 -1
- package/dist/components/gl-ES-HMX3MZ6V.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/he-IL-6SHJWFNN.js +1 -1
- package/dist/components/hi-IN-IWLTKZ5I.js +1 -1
- package/dist/components/hu-HU-A5ZG7DT2.js +1 -1
- package/dist/components/id-ID-SAP4L64H.js +1 -1
- package/dist/components/image-GAAHSSAO.js +1 -1
- package/dist/components/image-blob-reduce.esm.js +1 -1
- package/dist/components/index10.js +1 -1
- package/dist/components/index11.js +1 -1
- package/dist/components/index12.js +1 -1
- package/dist/components/index13.js +1 -1
- package/dist/components/index14.js +1 -1
- package/dist/components/index15.js +1 -1
- package/dist/components/index16.js +1 -1
- package/dist/components/index17.js +1 -1
- package/dist/components/index18.js +1 -1
- package/dist/components/index19.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/index20.js +1 -1
- package/dist/components/index21.js +2 -2
- package/dist/components/index22.js +1 -1
- package/dist/components/index23.js +1 -1
- package/dist/components/index24.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index4.js +1 -1
- package/dist/components/index5.js +1 -1
- package/dist/components/index6.js +1 -1
- package/dist/components/index7.js +1 -1
- package/dist/components/index8.js +1 -1
- package/dist/components/index9.js +1 -1
- package/dist/components/info-J43DQDTF.js +1 -1
- package/dist/components/infoDiagram-5YYISTIA.js +1 -1
- package/dist/components/init.js +1 -1
- package/dist/components/ishikawaDiagram-YF4QCWOH.js +1 -1
- package/dist/components/it-IT-JPQ66NNP.js +1 -1
- package/dist/components/ja-JP-DBVTYXUO.js +1 -1
- package/dist/components/journeyDiagram-JHISSGLW.js +1 -1
- package/dist/components/jszip.min.js +1 -1
- package/dist/components/kaa-6HZHGXH3.js +1 -1
- package/dist/components/kab-KAB-ZGHBKWFO.js +1 -1
- package/dist/components/kanban-definition-UN3LZRKU.js +1 -1
- package/dist/components/katex.js +1 -1
- package/dist/components/kk-KZ-P5N5QNE5.js +1 -1
- package/dist/components/km-KH-HSX4SM5Z.js +1 -1
- package/dist/components/ko-KR-MTYHY66A.js +1 -1
- package/dist/components/ku-TR-6OUDTVRD.js +1 -1
- package/dist/components/layout.js +1 -1
- package/dist/components/libarchive.js +1 -1
- package/dist/components/linear.js +1 -1
- package/dist/components/lt-LT-XHIRWOB4.js +1 -1
- package/dist/components/lv-LV-5QDEKY6T.js +1 -1
- package/dist/components/mermaid-parser.core.js +2 -2
- package/dist/components/mindmap-definition-RKZ34NQL.js +1 -1
- package/dist/components/mr-IN-CRQNXWMA.js +1 -1
- package/dist/components/my-MM-5M5IBNSE.js +1 -1
- package/dist/components/nb-NO-T6EIAALU.js +1 -1
- package/dist/components/nestedRender.js +1 -1
- package/dist/components/nl-NL-IS3SIHDZ.js +1 -1
- package/dist/components/nn-NO-6E72VCQL.js +1 -1
- package/dist/components/oc-FR-POXYY2M6.js +1 -1
- package/dist/components/ofd.js +1 -1
- package/dist/components/ordinal.js +1 -1
- package/dist/components/pa-IN-N4M65BXN.js +1 -1
- package/dist/components/packet-YPE3B663.js +1 -1
- package/dist/components/percentages-BXMCSKIN.js +1 -1
- package/dist/components/pica.js +1 -1
- package/dist/components/pie-LRSECV5Y.js +1 -1
- package/dist/components/pie.js +1 -1
- package/dist/components/pieDiagram-4H26LBE5.js +1 -1
- package/dist/components/pl-PL-T2D74RX3.js +1 -1
- package/dist/components/postal-mime.js +1 -1
- package/dist/components/pt-BR-5N22H2LF.js +1 -1
- package/dist/components/pt-PT-UZXXM6DQ.js +1 -1
- package/dist/components/quadrantDiagram-W4KKPZXB.js +1 -1
- package/dist/components/radar-GUYGQ44K.js +1 -1
- package/dist/components/requirementDiagram-4Y6WPE33.js +1 -1
- package/dist/components/ro-RO-JPDTUUEW.js +1 -1
- package/dist/components/rough.esm.js +1 -1
- package/dist/components/roundRect.js +1 -1
- package/dist/components/ru-RU-B4JR7IUQ.js +1 -1
- package/dist/components/sankeyDiagram-5OEKKPKP.js +1 -1
- package/dist/components/sequenceDiagram-3UESZ5HK.js +1 -1
- package/dist/components/si-LK-N5RQ5JYF.js +1 -1
- package/dist/components/sk-SK-C5VTKIMK.js +1 -1
- package/dist/components/sl-SI-NN7IZMDC.js +1 -1
- package/dist/components/stateDiagram-AJRCARHV.js +1 -1
- package/dist/components/stateDiagram-v2-BHNVJYJU.js +1 -1
- package/dist/components/subset-shared.chunk.js +1 -1
- package/dist/components/subset-worker.chunk.js +1 -1
- package/dist/components/sv-SE-XGPEYMSR.js +1 -1
- package/dist/components/ta-IN-2NMHFXQM.js +1 -1
- package/dist/components/th-TH-HPSO5L25.js +1 -1
- package/dist/components/time.js +1 -1
- package/dist/components/timeline-definition-PNZ67QCA.js +1 -1
- package/dist/components/tr-TR-DEFEU3FU.js +1 -1
- package/dist/components/transform.js +1 -1
- package/dist/components/treeView-BLDUP644.js +1 -1
- package/dist/components/treemap-LRROVOQU.js +1 -1
- package/dist/components/uk-UA-QMV73CPH.js +1 -1
- package/dist/components/vennDiagram-CIIHVFJN.js +1 -1
- package/dist/components/vi-VN-M7AON7JQ.js +1 -1
- package/dist/components/wardley-L42UT6IY.js +1 -1
- package/dist/components/wardleyDiagram-YWT4CUSO.js +1 -1
- package/dist/components/worker-ref.js +1 -1
- package/dist/components/xychartDiagram-2RQKCTM6.js +1 -1
- package/dist/components/zh-CN-LNUGB5OW.js +1 -1
- package/dist/components/zh-HK-E62DVLB3.js +1 -1
- package/dist/components/zh-TW-RAJ6MFWO.js +1 -1
- package/dist/index.d.ts +82 -1
- package/dist/index.mjs +1 -1
- package/dist/package/index.d.ts +1 -1
- package/dist/style.css +3 -3
- package/package.json +8 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var I=j;(function(k,q){var H=j,x=k();while(!![]){try{var z=parseInt(H(0x1bd))/0x1+-parseInt(H(0x1f1))/0x2+parseInt(H(0x1cd))/0x3*(parseInt(H(0x1f6))/0x4)+parseInt(H(0x1d5))/0x5*(-parseInt(H(0x1cc))/0x6)+-parseInt(H(0x1e7))/0x7+parseInt(H(0x1fe))/0x8*(parseInt(H(0x1fd))/0x9)+-parseInt(H(0x1e6))/0xa;if(z===q)break;else x['push'](x['shift']());}catch(G){x['push'](x['shift']());}}}(f,0xc3b17));function j(a,b){a=a-0x1bb;var c=f();var d=c[a];return d;}import'./index.js';function f(){var J=['目前不允許嵌入此網址。您可至\x20GitHub\x20提出\x20issue\x20以要求將此網址加入合格名單。','儲存目前檔案','提示:亦可使用選取工具在任何地方雙擊來加入文字','按下\x20Enter\x20以加入文字。','已選項目','26934hgcqig','字體集','三角形','已發布','筆跡寬度','758336BJJxus','儲存至硬碟','以\x20Excalidraw\x20製作','目前無法輸出至\x20Excalidraw+','選個工具開始畫圖吧!','內間距','AI\x20設定','669942RRjuoD','160wQjqLl','開始連線','手形(平移工具)','469922yuKifw','已複製樣式','點擊以放置圖片,或點擊並拖曳以手動調整其尺寸。','GitHub\x20帳號','切換主題','從檔案載入將<bold>取代您目前的內容</bold>。<br></br>可先使用下方的選項備份您的繪圖。','加入\x20Excalidraw\x20上的即時協作會議室','全螢幕','閱讀部落格','避免箭號連結','點擊並拖曳來繪圖,放開即結束','這將會將\x20{{numShapes}}\x20個圖形加入你的資料庫,你確定嗎?','顯示線條檢色器','無法由提供的\x20URL\x20匯入場景。可能是發生異常,或未包含有效的\x20Excalidraw\x20JSON\x20資料。','換行(文字編輯器)','4286910MSTODE','15TyxqSm','複製至剪貼簿。','連線使用\x20end-to-end\x20加密故無須擔心作品的安全性。即使是我們的伺服器也無法取得其內容。','取代我的內容','加上\x20\x22Made\x20with\x20Excalidraw\x22\x20浮水印','菱形(外框)','無法由此資料庫移除項目','沒有可用的網路連線。\x0a變更無法儲存!','5UAQatX','尚未加入任何物件...','重設資料庫','從資料庫中移除','你可以邀請其他人一起協作目前的作品。','資料庫名稱','Mermaid\x20至\x20Excalidraw','縮放比例','將此場景儲存至您的\x20Excalidraw+\x20工作區','參照我們的說明','深色模式','水平翻轉','加密鍵必須為22字元。即時協作已停用。','儲存至檔案','無法建立共享連結:場景太大','水平置中','從連結載入','2758560tZWozi','7708645fRoEIC','繪圖\x20canvas','你的名稱','嵌入網站','嵌入場景'];f=function(){return J;};return f();}import'./_commonjsHelpers.js';var u={'paste':'貼上','pasteAsPlaintext':'以純文字貼上','pasteCharts':'貼上圖表','selectAll':'全選','multiSelect':'將物件加入選取範圍','moveCanvas':'移動畫布','cut':'剪下','copy':'複製','copyAsPng':'以PNG格式儲存到剪貼板','copyAsSvg':'以SVG格式複製到剪貼板','copyText':'以文字格式複製至剪貼簿','copySource':'複製來源至剪貼簿','convertToCode':'轉換為程式碼','bringForward':'上移一層','sendToBack':'移到最底層','bringToFront':'置於最頂層','sendBackward':'往後移一層','delete':'刪除','copyStyles':'複製樣式','pasteStyles':'貼上樣式','stroke':'筆畫','background':'背景','fill':'填滿','strokeWidth':I(0x1f5),'strokeStyle':'筆畫樣式','strokeStyle_solid':'實線','strokeStyle_dashed':'虛線','strokeStyle_dotted':'點線','sloppiness':'線條風格','opacity':'透明度','textAlign':'文字對齊','edges':'邊緣','sharp':'尖銳','round':'平滑','arrowheads':'箭頭','arrowhead_none':'無','arrowhead_arrow':'箭頭','arrowhead_bar':'條狀箭頭','arrowhead_circle':'圓形','arrowhead_circle_outline':'圓形(外框)','arrowhead_triangle':I(0x1f3),'arrowhead_triangle_outline':'三角形(外框)','arrowhead_diamond':'菱形','arrowhead_diamond_outline':I(0x1d2),'fontSize':'字型大小','fontFamily':I(0x1f2),'addWatermark':I(0x1d1),'handDrawn':'手寫','normal':'一般','code':'代碼','small':'小','medium':'中','large':'大','veryLarge':'特大','solid':'實心','hachure':'斜線筆觸','zigzag':'Z字形','crossHatch':'交叉筆觸','thin':'細','bold':'粗','left':'左側','center':'置中','right':'右側','extraBold':'極粗','architect':'精確','artist':'藝術','cartoonist':'卡通','fileTitle':'檔案名稱','colorPicker':'色彩選擇工具','canvasColors':'使用於畫布','canvasBackground':'Canvas\x20背景','drawingCanvas':I(0x1e8),'layers':'圖層','actions':'動作','language':'語言','liveCollaboration':'即時協作...','duplicateSelection':'複製','untitled':'無標題','name':'名稱','yourName':I(0x1e9),'madeWithExcalidraw':I(0x1f8),'group':'建立群組','ungroup':'取消群組','collaborators':'協作者','showGrid':'顯示格線','addToLibrary':'加入資料庫','removeFromLibrary':I(0x1d8),'libraryLoadingMessage':'資料庫讀取中…','libraries':'瀏覽資料庫','loadingScene':'場景讀取中…','align':'對齊','alignTop':'對齊頂部','alignBottom':'對齊底部','alignLeft':'對齊左側','alignRight':'對齊右側','centerVertically':'垂直置中','centerHorizontally':I(0x1e4),'distributeHorizontally':'水平分布','distributeVertically':'垂直分布','flipHorizontal':I(0x1e0),'flipVertical':'垂直翻轉','viewMode':'檢視模式','share':'共享','showStroke':I(0x1c9),'showBackground':'顯示背景檢色器','toggleTheme':I(0x1c1),'personalLib':'個人資料庫','excalidrawLib':'Excalidraw\x20資料庫','decreaseFontSize':'縮小文字','increaseFontSize':'放大文字','unbindText':'取消綁定文字','bindText':'結合文字至容器','createContainerFromText':'將文字包於容器中','link':{'edit':'編輯連結','editEmbed':'編輯連結&嵌入','create':'建立連結','createEmbed':'建立連結&嵌入','label':'連結','labelEmbed':'連結&嵌入','empty':'未設定連結'},'lineEditor':{'edit':'編輯線條','exit':'結束線條編輯'},'elementLock':{'lock':'鎖定','unlock':'解鎖','lockAll':'全部鎖定','unlockAll':'全部解鎖'},'statusPublished':I(0x1f4),'sidebarLock':'側欄維持開啟','selectAllElementsInFrame':'選取框架內的所有元素','removeAllElementsFromFrame':'從框架內移除所有元素','eyeDropper':'從畫布中選取顏色','textToDiagram':'文字轉圖表','prompt':'提示詞'},F={'noItems':I(0x1d6),'hint_emptyLibrary':'選取畫布上的物件以加入,或從下方的公開\x20repository\x20中安裝資料庫','hint_emptyPrivateLibrary':'選擇畫布上的物件以在此加入'},e={'clearReset':'重置\x20canvas','exportJSON':'匯出至檔案','exportImage':'匯出圖片','export':'儲存至...','copyToClipboard':'複製至剪貼簿','save':I(0x1ed),'saveAs':'儲存為','load':'開啟','getShareableLink':'取得共享連結','close':'關閉','selectLanguage':'選擇語言','scrollBackToContent':'捲動回到內容','zoomIn':'放大','zoomOut':'縮小','resetZoom':'重設縮放','menu':'選單','done':'完成','edit':'編輯','undo':'復原','redo':'重做','resetLibrary':'重設資料庫','createNewRoom':'建立新協作會議室','fullScreen':I(0x1c4),'darkMode':I(0x1df),'lightMode':'淺色模式','zenMode':'專注模式','objectsSnapMode':'吸附至物件','exitZenMode':'離開專注模式','cancel':'取消','clear':'清除','remove':'刪除','embed':'切換嵌入','publishLibrary':'發布','submit':'送出','confirm':'確認','embeddableInteractionButton':'點擊以互動'},E={'clearReset':'這將會清除整個\x20canvas。你確定嗎?','couldNotCreateShareableLink':'無法建立共享連結。','couldNotCreateShareableLinkTooBig':I(0x1e3),'couldNotLoadInvalidFile':'無法讀取失效的檔案。','importBackendFailed':'後端讀取失敗。','cannotExportEmptyCanvas':'無法輸出空白的\x20canvas。','couldNotCopyToClipboard':'無法複製到剪貼簿','decryptFailed':'無法解密資料。','uploadedSecurly':'上傳已通過\x20end-to-end\x20加密,Excalidraw\x20伺服器和第三方無法皆讀取其內容。','loadSceneOverridePrompt':'讀取外部圖樣將取代目前的內容。是否要繼續?','collabStopOverridePrompt':'停止連線將覆蓋您先前於本機儲存的繪圖進度,是否確認?\x0a\x0a(如要保留原有的本機繪圖進度,直接關閉瀏覽器分頁即可。)','errorAddingToLibrary':'無法於此資料庫加入項目','errorRemovingFromLibrary':I(0x1d3),'confirmAddLibrary':I(0x1c8),'imageDoesNotContainScene':'此圖檔中未包含場景資料。輸出檔案時是否有包含場景資料?','cannotRestoreFromImage':'無法由此檔案回復場景。','invalidSceneUrl':I(0x1ca),'resetLibrary':'這會清除您的資料庫,是否確定?','removeItemsFromsLibrary':'從資料庫刪除\x20{{count}}\x20項?','invalidEncryptionKey':I(0x1e1),'collabOfflineWarning':I(0x1d4)},C={'unsupportedFileType':'不支援的檔案類型。','imageInsertError':'無法插入圖片。請稍後再試…','fileTooBig':'檔案過大。可接受的最大尺寸為\x20{{maxSize}}\x20。','svgImageInsertError':'無法插入\x20SVG\x20圖片。此\x20SVG\x20檔案有問題。','failedToFetchImage':'無法獲取圖片。','invalidSVGString':'無效的\x20SVG。','cannotResolveCollabServer':'無法連結至\x20collab\x20伺服器。請重新整理後再試一次。','importLibraryError':'無法載入資料庫','collabSaveFailed':'無法儲存至後端資料庫。若此問題持續發生,請將檔案儲存於本機以確保資料不會遺失。','collabSaveFailed_sizeExceeded':'無法儲存至後端資料庫,可能的原因為畫布尺寸過大。請將檔案儲存於本機以確保資料不會遺失。','imageToolNotSupported':'圖片已停用','brave_measure_text_error':{'line1':'看起來您開啟了\x20Brave\x20瀏覽器的\x20<bold>Aggressively\x20Block\x20Fingerprinting</bold>\x20設定。','line2':'這可能造成您畫布中\x20<bold>文字元素</bold>\x20的異常。','line3':'我們強烈建議您關閉此設定。您可以依照\x20<link>這些步驟</link>\x20來進行。','line4':'若關閉此設定並未修復文字元素的顯示問題,請回報於我們\x20GitHub\x20上的\x20<issueLink>issue</issueLink>,或在\x20<discordLink>Discord</discordLink>\x20上告訴我們。'},'libraryElementTypeError':{'embeddable':'可嵌入元素無法加入資料庫','iframe':'IFrame\x20元素無法加入資料庫','image':'即將支援加入圖片至資料庫!'},'asyncPasteFailedOnRead':'無法貼上(無法由系統剪貼簿讀入)','asyncPasteFailedOnParse':'無法貼上','copyToSystemClipboardFailed':'無法複製至剪貼簿'},A={'selection':'選取','image':'插入圖片','rectangle':'長方形','diamond':'菱形','ellipse':'橢圓','arrow':'箭頭','line':'線條','freedraw':'繪圖','text':'文字','library':'資料庫','lock':'可連續使用選取的工具','penMode':'筆模式\x20-\x20避免觸摸','link':'為所選的形狀增加\x08/更新連結','eraser':'橡皮擦','frame':'框架工具','magicframe':'線框稿轉為程式碼','embeddable':I(0x1ea),'laser':'雷射筆','hand':I(0x1bc),'extraTools':'更多工具','mermaidToExcalidraw':I(0x1db),'magicSettings':I(0x1fc)},D={'canvasActions':'canvas\x20動作','selectedShapeActions':'選取圖形動作','shapes':'形狀'},B={'canvasPanning':'若要移動畫布,請在拖曳時按住滑鼠滾輪或空白鍵,或使用手形工具','linearElement':'點擊以繪製多點曲線;或拖曳以繪製直線','freeDraw':I(0x1c7),'text':I(0x1ee),'embeddable':'點擊並拖移以建立嵌入網站','text_selected':'雙擊滑鼠或按\x20Enter\x20以編輯文字','text_editing':'按跳脫鍵或\x20Ctrl\x20或\x20Cmd\x20+\x20Enter\x20以結束編輯','linearElementMulti':'按下\x20Escape\x20或\x20Enter\x20以結束繪製','lockAngle':'按住\x20SHIFT\x20可限制旋轉角度','resize':'縮放時按住\x20Shift\x20可保持原比例縮放;\x5cn按住\x20Alt\x20可由中心點進行縮放','resizeImage':'按住\x20SHIFT\x20可任意縮放,按住\x20ALT\x20可由中央縮放。','rotate':'旋轉時按住\x20Shift\x20可限制旋轉角度','lineEditor_info':'按住\x20Ctrl\x20或\x20Cmd\x20並雙擊或按住\x20Ctrl\x20或\x20Cmd\x20+\x20Enter\x20來編輯控制點','lineEditor_pointSelected':'按下\x20Delete\x20可移除錨點;Ctrl\x20或\x20Cmd\x20+\x20D\x20可複製;或可拖曳來移動','lineEditor_nothingSelected':'選擇要編輯的錨點(按住\x20SHIFT\x20可多選),\x0a或按住\x20Alt\x20並點擊以增加新錨點。','placeImage':I(0x1bf),'publishLibrary':'發布個人資料庫','bindTextToElement':I(0x1ef),'deepBoxSelect':'按住\x20Ctrl\x20或\x20Cmd\x20以深度選取並避免拖曳','eraserRevert':'按住\x20Alt\x20以反選取已標記待刪除的元素','firefox_clipboard_write':'此功能有機會透過將\x20\x22dom.events.asyncClipboard.clipboardItem\x22\x20設定為\x20\x22true\x22\x20來開啟。\x0a若要變更\x20Firefox\x20瀏覽器的此設定值,請至\x20\x22about:config\x22\x20頁面。','disableSnapping':'按住\x20Ctrl\x20或\x20Cmd\x20以禁用吸附'},a={'cannotShowPreview':'無法顯示預覽','canvasTooBig':'畫布可能過大','canvasTooBigTip':'提示:可嘗試將最遠的元素移動至較集中的位置'},r={'headingMain':'發生錯誤,嘗試<button>重新載入頁面。</button>','clearCanvasMessage':'若重新載入仍無法解決問題,嘗試<button>清除\x20canvas。</button>','clearCanvasCaveat':'此動作將造成目前的作品被移除。','trackedToSentry':'此錯誤與其識別碼{{eventId}}將由系統記錄。','openIssueMessage':'我們將謹慎處理,你的作品內容不會被包含在錯誤報告中。若你的作品不需保持私密,請考慮使用我們的<button>bug\x20tracker。</button>請將下列資訊複製貼上至\x20GitHub\x20issue\x20中。','sceneContent':'作品內容:'},t={'desc_intro':I(0x1d9),'desc_privacy':I(0x1cf),'button_startSession':I(0x1bb),'button_stopSession':'停止連線','desc_inProgressIntro':'即時協作連線正在進行中。','desc_shareLink':'將此連結分享給欲協作的對象:','desc_exitSession':'停止連線將中斷你與協作會議室的連結,但你仍可於本機編輯此作品。意指停止連線後你的編輯不會被先前共同協作的人看見,且他們可繼續共同協作另一個版本。','shareTitle':I(0x1c3)},o={'title':'錯誤'},i={'disk_title':'儲存至硬碟','disk_details':'將場景匯出為可供匯入之檔案','disk_button':I(0x1e2),'link_title':'可共享連結','link_details':'匯出為唯讀連結','link_button':'匯出為連結','excalidrawplus_description':'將此場景儲存至你的\x20Excalidraw+\x20工作區','excalidrawplus_button':'輸出','excalidrawplus_exportError':I(0x1f9)},l={'blog':I(0x1c5),'click':'點擊','deepSelect':'深度選取','deepBoxSelect':'在容器內深度選取並避免拖曳','curvedArrow':'曲箭頭','curvedLine':'曲線','documentation':'文件','doubleClick':'雙擊','drag':'拖曳','editor':'編輯器','editLineArrowPoints':'編輯線/箭頭控制點','editText':'編輯文字/增加標籤','github':'發現異常?回報問題','howto':I(0x1de),'or':'或','preventBinding':I(0x1c6),'tools':'工具','shortcuts':'鍵盤快速鍵','textFinish':'完成編輯(文字編輯器)','textNewLine':I(0x1cb),'title':'說明','view':'檢視','zoomToFit':'放大至填滿畫面','zoomToSelection':'縮放至選取區','toggleElementLock':'鎖定/解鎖已選的項目','movePageUpDown':'向上/下移動頁面','movePageLeftRight':'向左/右移動頁面'},n={'title':'清除畫布'},s={'title':'發布資料庫','itemName':'項目名稱','authorName':'作者名稱','githubUsername':I(0x1c0),'twitterUsername':'Twitter\x20帳號','libraryName':I(0x1da),'libraryDesc':'資料庫說明','website':'網站','placeholder':{'authorName':'您的名稱或帳號','libraryName':'您的資料庫名稱','libraryDesc':'提供您的資料庫說明以利他人理解其用途','githubHandle':'Github\x20handle(選填),填寫後您可編輯已送出待審查的資料庫','twitterHandle':'Twitter\x20帳號(選填),填寫後若我們在\x20Twitter\x20推廣時可提及您','website':'您個人網站或其他網站的連結(選填)'},'errors':{'required':'必填','website':'請輸入有效的\x20URL'},'noteDescription':'送出您的資料庫後將被包含於<link>公開資料庫\x20repository</link>以利他人在其繪圖中使用。','noteGuidelines':'資料庫需先經人工審查。請閱讀<link>說明文件</link>再送出。若需溝通與修改時要透過\x20GitHub\x20帳號來進行,但並非強制需求。','noteLicense':'送出即代表您同意此資料庫將發布時使用\x20<link>MIT\x20授權,</link>簡單來說是指任何人都能不受限制的使用。','noteItems':'每個資料庫項目都有獨立的名稱故可篩選。會包含下列資料庫項目:','atleastOneLibItem':'請選擇至少一項資料庫項目','republishWarning':'注意:部分選取中的物件先前已發布/送出過。建議僅在要更新現存資料庫或已送出的物件時才重新送出這些物件。'},d={'title':'資料庫已送出','content':'感謝\x20{{authorName}}\x20。您的資料庫已送出待審查。您可查看目前狀態<link>在此</link>'},c={'resetLibrary':I(0x1d7),'removeItemsFromLib':'從資料庫移除所選的項目'},m={'header':'匯出圖片','label':{'withBackground':'背景','onlySelected':'僅選取物件','darkMode':'深色模式','embedScene':I(0x1eb),'scale':I(0x1dc),'padding':I(0x1fb)},'tooltip':{'embedScene':'用於回復場景的場景資料會被包含在輸出的\x20PNG/SVG\x20檔案中。\x0a會增加輸出的檔案大小。'},'title':{'exportToPng':'輸出成\x20PNG','exportToSvg':'輸出成\x20SVG','copyPngToClipboard':'複製\x20PNG\x20至剪貼簿'},'button':{'exportToPng':'PNG','exportToSvg':'SVG','copyPngToClipboard':'複製至剪貼簿'}},b={'tooltip':'你的作品已使用\x20end-to-end\x20方式加密,Excalidraw\x20的伺服器也無法取得其內容。','link':'Excalidraw\x20端到端加密的相關部落格文章'},p={'angle':'角度','element':'元素','elements':'元素','height':'高度','scene':'場景','selected':'已選','storage':'儲存','title':'詳細統計','total':'合計','version':'版本','versionCopy':'點擊複製','versionNotAvailable':'無法取得版本','width':'寬度'},g={'addedToLibrary':'加入資料庫','copyStyles':I(0x1be),'copyToClipboard':I(0x1ce),'copyToClipboardAsPng':'以\x20PNG\x20格式將\x20{{exportSelection}}\x20複製至剪貼簿\x0a({{exportColorScheme}})','fileSaved':'已儲存檔案。','fileSavedToFilename':'儲存為\x20{filename}','canvas':'畫布','selection':I(0x1f0),'pasteAsSingleElement':'使用\x20{{shortcut}}\x20以做為單一物件貼上,\x0a或貼上至現有的文字編輯器','unableToEmbed':I(0x1ec),'unrecognizedLinkFormat':'您嵌入的連結格式不符。請嘗試貼入原網站所提供的「嵌入」字串。'},h={'transparent':'透明','black':'黑','white':'白','red':'紅','pink':'粉紅','grape':'深紫','violet':'藍紫','gray':'灰','blue':'藍','cyan':'青','teal':'藍綠','green':'綠','yellow':'黃','orange':'橘','bronze':'銅'},y={'app':{'center_heading':'所有資料皆已在瀏覽器中儲存於本機','center_heading_plus':'您是否是要前往\x20Excalidraw+\x20?','menuHint':'輸出、偏好設定、語言...'},'defaults':{'menuHint':'輸出、偏好設定及其他...','center_heading':'圖表。製作。超簡單。','toolbarHint':I(0x1fa),'helpHint':'快速鍵與說明'}},S={'mostUsedCustomColors':'最常使用的自訂顏色','colors':'顏色','shades':'漸變色','hexCode':'Hex\x20碼','noShades':'沒有此顏色的漸變色'},v={'action':{'exportToImage':{'title':'匯出為圖片','button':'匯出為圖片','description':'將場景匯出為可供匯入的圖片檔案'},'saveToDisk':{'title':I(0x1f7),'button':'儲存至硬碟','description':'將場景匯出為可供匯入的檔案'},'excalidrawPlus':{'title':'Excalidraw+','button':'匯出至\x20Excalidraw+','description':I(0x1dd)}},'modal':{'loadFromFile':{'title':'從檔案載入','button':'從檔案載入','description':I(0x1c2)},'shareableLink':{'title':I(0x1e5),'button':I(0x1d0),'description':'載入外部繪圖將<bold>取代您目前的內容</bold>。<br></br>可先使用下方的選項備份您的繪圖。'}}},w={'title':'Mermaid\x20至\x20Excalidraw','button':'插入','description':'目前僅支援\x20<flowchartLink>Flowchart</flowchartLink>\x20、\x20<sequenceLink>Sequence</sequenceLink>\x20及\x20<classLink>Class\x20</classLink>\x20圖表。其餘檔案類型在\x20Excalidraw\x20將會以圖像呈現。','syntax':'Mermaid\x20語法','preview':'預覽'},T={'labels':u,'library':F,'buttons':e,'alerts':E,'errors':C,'toolBar':A,'headings':D,'hints':B,'canvasError':a,'errorSplash':r,'roomDialog':t,'errorDialog':o,'exportDialog':i,'helpDialog':l,'clearCanvasDialog':n,'publishDialog':s,'publishSuccessDialog':d,'confirmDialog':c,'imageExportDialog':m,'encrypted':b,'stats':p,'toast':g,'colors':h,'welcomeScreen':y,'colorPicker':S,'overwriteConfirm':v,'mermaid':w};export{E as alerts,e as buttons,a as canvasError,n as clearCanvasDialog,S as colorPicker,h as colors,c as confirmDialog,T as default,b as encrypted,o as errorDialog,r as errorSplash,C as errors,i as exportDialog,D as headings,l as helpDialog,B as hints,m as imageExportDialog,u as labels,F as library,w as mermaid,v as overwriteConfirm,s as publishDialog,d as publishSuccessDialog,t as roomDialog,p as stats,g as toast,A as toolBar,y as welcomeScreen};
|
|
1
|
+
var I=j;(function(k,q){var H=j,x=k();while(!![]){try{var z=-parseInt(H(0xe3))/0x1*(parseInt(H(0xd3))/0x2)+parseInt(H(0xe0))/0x3*(-parseInt(H(0xb0))/0x4)+parseInt(H(0xa6))/0x5+parseInt(H(0xdb))/0x6*(-parseInt(H(0xc7))/0x7)+parseInt(H(0xda))/0x8*(-parseInt(H(0xb7))/0x9)+-parseInt(H(0xcb))/0xa+parseInt(H(0xb3))/0xb;if(z===q)break;else x['push'](x['shift']());}catch(G){x['push'](x['shift']());}}}(f,0x24112));import'./index.js';function j(a,b){a=a-0xa2;var c=f();var d=c[a];return d;}function f(){var J=['Mermaid\x20語法','83318AsWNWm','選個工具開始畫圖吧!','資料庫需先經人工審查。請閱讀<link>說明文件</link>再送出。若需溝通與修改時要透過\x20GitHub\x20帳號來進行,但並非強制需求。','僅選取物件','點擊以繪製多點曲線;或拖曳以繪製直線','972270EEXvTJ','Excalidraw\x20資料庫','發現異常?回報問題','AI\x20設定','可連續使用選取的工具','為所選的形狀增加\x08/更新連結','點擊複製','切換嵌入','無法建立共享連結。','儲存至硬碟','4JtgSrJ','資料庫已送出','水平分布','2085556gOztKn','無法顯示預覽','每個資料庫項目都有獨立的名稱故可篩選。會包含下列資料庫項目:','顯示線條檢色器','9jdtMgL','無法插入\x20SVG\x20圖片。此\x20SVG\x20檔案有問題。','已儲存檔案。','你的作品已使用\x20end-to-end\x20方式加密,Excalidraw\x20的伺服器也無法取得其內容。','深度選取','未設定連結','對齊頂部','選擇語言','垂直翻轉','你可以邀請其他人一起協作目前的作品。','縮放至選取區','點擊並拖曳來繪圖,放開即結束','加密鍵必須為22字元。即時協作已停用。','按下\x20Delete\x20可移除錨點;Ctrl\x20或\x20Cmd\x20+\x20D\x20可複製;或可拖曳來移動','將場景匯出為可供匯入的檔案','這會清除您的資料庫,是否確定?','64029cRBTaC','無法建立共享連結:場景太大','您嵌入的連結格式不符。請嘗試貼入原網站所提供的「嵌入」字串。','Excalidraw+','170800lHbXgG','這將會清除整個\x20canvas。你確定嗎?','儲存至檔案','資料庫說明','對齊右側','垂直分布','你的名稱','條狀箭頭','2hSuZzi','IFrame\x20元素無法加入資料庫','無法連結至\x20collab\x20伺服器。請重新整理後再試一次。','對齊底部','按下\x20Enter\x20以加入文字。','重設資料庫','目前無法輸出至\x20Excalidraw+','50568puRtLG','6ghUsdP','放大文字','圖表。製作。超簡單。','匯出為連結','水平翻轉','361362sxAnUG','框架工具'];f=function(){return J;};return f();}import'./_commonjsHelpers.js';var u={'paste':'貼上','pasteAsPlaintext':'以純文字貼上','pasteCharts':'貼上圖表','selectAll':'全選','multiSelect':'將物件加入選取範圍','moveCanvas':'移動畫布','cut':'剪下','copy':'複製','copyAsPng':'以PNG格式儲存到剪貼板','copyAsSvg':'以SVG格式複製到剪貼板','copyText':'以文字格式複製至剪貼簿','copySource':'複製來源至剪貼簿','convertToCode':'轉換為程式碼','bringForward':'上移一層','sendToBack':'移到最底層','bringToFront':'置於最頂層','sendBackward':'往後移一層','delete':'刪除','copyStyles':'複製樣式','pasteStyles':'貼上樣式','stroke':'筆畫','background':'背景','fill':'填滿','strokeWidth':'筆跡寬度','strokeStyle':'筆畫樣式','strokeStyle_solid':'實線','strokeStyle_dashed':'虛線','strokeStyle_dotted':'點線','sloppiness':'線條風格','opacity':'透明度','textAlign':'文字對齊','edges':'邊緣','sharp':'尖銳','round':'平滑','arrowheads':'箭頭','arrowhead_none':'無','arrowhead_arrow':'箭頭','arrowhead_bar':I(0xd2),'arrowhead_circle':'圓形','arrowhead_circle_outline':'圓形(外框)','arrowhead_triangle':'三角形','arrowhead_triangle_outline':'三角形(外框)','arrowhead_diamond':'菱形','arrowhead_diamond_outline':'菱形(外框)','fontSize':'字型大小','fontFamily':'字體集','addWatermark':'加上\x20\x22Made\x20with\x20Excalidraw\x22\x20浮水印','handDrawn':'手寫','normal':'一般','code':'代碼','small':'小','medium':'中','large':'大','veryLarge':'特大','solid':'實心','hachure':'斜線筆觸','zigzag':'Z字形','crossHatch':'交叉筆觸','thin':'細','bold':'粗','left':'左側','center':'置中','right':'右側','extraBold':'極粗','architect':'精確','artist':'藝術','cartoonist':'卡通','fileTitle':'檔案名稱','colorPicker':'色彩選擇工具','canvasColors':'使用於畫布','canvasBackground':'Canvas\x20背景','drawingCanvas':'繪圖\x20canvas','layers':'圖層','actions':'動作','language':'語言','liveCollaboration':'即時協作...','duplicateSelection':'複製','untitled':'無標題','name':'名稱','yourName':I(0xd1),'madeWithExcalidraw':'以\x20Excalidraw\x20製作','group':'建立群組','ungroup':'取消群組','collaborators':'協作者','showGrid':'顯示格線','addToLibrary':'加入資料庫','removeFromLibrary':'從資料庫中移除','libraryLoadingMessage':'資料庫讀取中…','libraries':'瀏覽資料庫','loadingScene':'場景讀取中…','align':'對齊','alignTop':I(0xbd),'alignBottom':I(0xd6),'alignLeft':'對齊左側','alignRight':I(0xcf),'centerVertically':'垂直置中','centerHorizontally':'水平置中','distributeHorizontally':I(0xb2),'distributeVertically':I(0xd0),'flipHorizontal':I(0xdf),'flipVertical':I(0xbf),'viewMode':'檢視模式','share':'共享','showStroke':I(0xb6),'showBackground':'顯示背景檢色器','toggleTheme':'切換主題','personalLib':'個人資料庫','excalidrawLib':I(0xa7),'decreaseFontSize':'縮小文字','increaseFontSize':I(0xdc),'unbindText':'取消綁定文字','bindText':'結合文字至容器','createContainerFromText':'將文字包於容器中','link':{'edit':'編輯連結','editEmbed':'編輯連結&嵌入','create':'建立連結','createEmbed':'建立連結&嵌入','label':'連結','labelEmbed':'連結&嵌入','empty':I(0xbc)},'lineEditor':{'edit':'編輯線條','exit':'結束線條編輯'},'elementLock':{'lock':'鎖定','unlock':'解鎖','lockAll':'全部鎖定','unlockAll':'全部解鎖'},'statusPublished':'已發布','sidebarLock':'側欄維持開啟','selectAllElementsInFrame':'選取框架內的所有元素','removeAllElementsFromFrame':'從框架內移除所有元素','eyeDropper':'從畫布中選取顏色','textToDiagram':'文字轉圖表','prompt':'提示詞'},F={'noItems':'尚未加入任何物件...','hint_emptyLibrary':'選取畫布上的物件以加入,或從下方的公開\x20repository\x20中安裝資料庫','hint_emptyPrivateLibrary':'選擇畫布上的物件以在此加入'},e={'clearReset':'重置\x20canvas','exportJSON':'匯出至檔案','exportImage':'匯出圖片','export':'儲存至...','copyToClipboard':'複製至剪貼簿','save':'儲存目前檔案','saveAs':'儲存為','load':'開啟','getShareableLink':'取得共享連結','close':'關閉','selectLanguage':I(0xbe),'scrollBackToContent':'捲動回到內容','zoomIn':'放大','zoomOut':'縮小','resetZoom':'重設縮放','menu':'選單','done':'完成','edit':'編輯','undo':'復原','redo':'重做','resetLibrary':I(0xd8),'createNewRoom':'建立新協作會議室','fullScreen':'全螢幕','darkMode':'深色模式','lightMode':'淺色模式','zenMode':'專注模式','objectsSnapMode':'吸附至物件','exitZenMode':'離開專注模式','cancel':'取消','clear':'清除','remove':'刪除','embed':I(0xad),'publishLibrary':'發布','submit':'送出','confirm':'確認','embeddableInteractionButton':'點擊以互動'},E={'clearReset':I(0xcc),'couldNotCreateShareableLink':I(0xae),'couldNotCreateShareableLinkTooBig':I(0xc8),'couldNotLoadInvalidFile':'無法讀取失效的檔案。','importBackendFailed':'後端讀取失敗。','cannotExportEmptyCanvas':'無法輸出空白的\x20canvas。','couldNotCopyToClipboard':'無法複製到剪貼簿','decryptFailed':'無法解密資料。','uploadedSecurly':'上傳已通過\x20end-to-end\x20加密,Excalidraw\x20伺服器和第三方無法皆讀取其內容。','loadSceneOverridePrompt':'讀取外部圖樣將取代目前的內容。是否要繼續?','collabStopOverridePrompt':'停止連線將覆蓋您先前於本機儲存的繪圖進度,是否確認?\x0a\x0a(如要保留原有的本機繪圖進度,直接關閉瀏覽器分頁即可。)','errorAddingToLibrary':'無法於此資料庫加入項目','errorRemovingFromLibrary':'無法由此資料庫移除項目','confirmAddLibrary':'這將會將\x20{{numShapes}}\x20個圖形加入你的資料庫,你確定嗎?','imageDoesNotContainScene':'此圖檔中未包含場景資料。輸出檔案時是否有包含場景資料?','cannotRestoreFromImage':'無法由此檔案回復場景。','invalidSceneUrl':'無法由提供的\x20URL\x20匯入場景。可能是發生異常,或未包含有效的\x20Excalidraw\x20JSON\x20資料。','resetLibrary':I(0xc6),'removeItemsFromsLibrary':'從資料庫刪除\x20{{count}}\x20項?','invalidEncryptionKey':I(0xc3),'collabOfflineWarning':'沒有可用的網路連線。\x0a變更無法儲存!'},C={'unsupportedFileType':'不支援的檔案類型。','imageInsertError':'無法插入圖片。請稍後再試…','fileTooBig':'檔案過大。可接受的最大尺寸為\x20{{maxSize}}\x20。','svgImageInsertError':I(0xb8),'failedToFetchImage':'無法獲取圖片。','invalidSVGString':'無效的\x20SVG。','cannotResolveCollabServer':I(0xd5),'importLibraryError':'無法載入資料庫','collabSaveFailed':'無法儲存至後端資料庫。若此問題持續發生,請將檔案儲存於本機以確保資料不會遺失。','collabSaveFailed_sizeExceeded':'無法儲存至後端資料庫,可能的原因為畫布尺寸過大。請將檔案儲存於本機以確保資料不會遺失。','imageToolNotSupported':'圖片已停用','brave_measure_text_error':{'line1':'看起來您開啟了\x20Brave\x20瀏覽器的\x20<bold>Aggressively\x20Block\x20Fingerprinting</bold>\x20設定。','line2':'這可能造成您畫布中\x20<bold>文字元素</bold>\x20的異常。','line3':'我們強烈建議您關閉此設定。您可以依照\x20<link>這些步驟</link>\x20來進行。','line4':'若關閉此設定並未修復文字元素的顯示問題,請回報於我們\x20GitHub\x20上的\x20<issueLink>issue</issueLink>,或在\x20<discordLink>Discord</discordLink>\x20上告訴我們。'},'libraryElementTypeError':{'embeddable':'可嵌入元素無法加入資料庫','iframe':I(0xd4),'image':'即將支援加入圖片至資料庫!'},'asyncPasteFailedOnRead':'無法貼上(無法由系統剪貼簿讀入)','asyncPasteFailedOnParse':'無法貼上','copyToSystemClipboardFailed':'無法複製至剪貼簿'},A={'selection':'選取','image':'插入圖片','rectangle':'長方形','diamond':'菱形','ellipse':'橢圓','arrow':'箭頭','line':'線條','freedraw':'繪圖','text':'文字','library':'資料庫','lock':I(0xaa),'penMode':'筆模式\x20-\x20避免觸摸','link':I(0xab),'eraser':'橡皮擦','frame':I(0xe1),'magicframe':'線框稿轉為程式碼','embeddable':'嵌入網站','laser':'雷射筆','hand':'手形(平移工具)','extraTools':'更多工具','mermaidToExcalidraw':'Mermaid\x20至\x20Excalidraw','magicSettings':I(0xa9)},D={'canvasActions':'canvas\x20動作','selectedShapeActions':'選取圖形動作','shapes':'形狀'},B={'canvasPanning':'若要移動畫布,請在拖曳時按住滑鼠滾輪或空白鍵,或使用手形工具','linearElement':I(0xa5),'freeDraw':I(0xc2),'text':'提示:亦可使用選取工具在任何地方雙擊來加入文字','embeddable':'點擊並拖移以建立嵌入網站','text_selected':'雙擊滑鼠或按\x20Enter\x20以編輯文字','text_editing':'按跳脫鍵或\x20Ctrl\x20或\x20Cmd\x20+\x20Enter\x20以結束編輯','linearElementMulti':'按下\x20Escape\x20或\x20Enter\x20以結束繪製','lockAngle':'按住\x20SHIFT\x20可限制旋轉角度','resize':'縮放時按住\x20Shift\x20可保持原比例縮放;\x5cn按住\x20Alt\x20可由中心點進行縮放','resizeImage':'按住\x20SHIFT\x20可任意縮放,按住\x20ALT\x20可由中央縮放。','rotate':'旋轉時按住\x20Shift\x20可限制旋轉角度','lineEditor_info':'按住\x20Ctrl\x20或\x20Cmd\x20並雙擊或按住\x20Ctrl\x20或\x20Cmd\x20+\x20Enter\x20來編輯控制點','lineEditor_pointSelected':I(0xc4),'lineEditor_nothingSelected':'選擇要編輯的錨點(按住\x20SHIFT\x20可多選),\x0a或按住\x20Alt\x20並點擊以增加新錨點。','placeImage':'點擊以放置圖片,或點擊並拖曳以手動調整其尺寸。','publishLibrary':'發布個人資料庫','bindTextToElement':I(0xd7),'deepBoxSelect':'按住\x20Ctrl\x20或\x20Cmd\x20以深度選取並避免拖曳','eraserRevert':'按住\x20Alt\x20以反選取已標記待刪除的元素','firefox_clipboard_write':'此功能有機會透過將\x20\x22dom.events.asyncClipboard.clipboardItem\x22\x20設定為\x20\x22true\x22\x20來開啟。\x0a若要變更\x20Firefox\x20瀏覽器的此設定值,請至\x20\x22about:config\x22\x20頁面。','disableSnapping':'按住\x20Ctrl\x20或\x20Cmd\x20以禁用吸附'},a={'cannotShowPreview':I(0xb4),'canvasTooBig':'畫布可能過大','canvasTooBigTip':'提示:可嘗試將最遠的元素移動至較集中的位置'},r={'headingMain':'發生錯誤,嘗試<button>重新載入頁面。</button>','clearCanvasMessage':'若重新載入仍無法解決問題,嘗試<button>清除\x20canvas。</button>','clearCanvasCaveat':'此動作將造成目前的作品被移除。','trackedToSentry':'此錯誤與其識別碼{{eventId}}將由系統記錄。','openIssueMessage':'我們將謹慎處理,你的作品內容不會被包含在錯誤報告中。若你的作品不需保持私密,請考慮使用我們的<button>bug\x20tracker。</button>請將下列資訊複製貼上至\x20GitHub\x20issue\x20中。','sceneContent':'作品內容:'},t={'desc_intro':I(0xc0),'desc_privacy':'連線使用\x20end-to-end\x20加密故無須擔心作品的安全性。即使是我們的伺服器也無法取得其內容。','button_startSession':'開始連線','button_stopSession':'停止連線','desc_inProgressIntro':'即時協作連線正在進行中。','desc_shareLink':'將此連結分享給欲協作的對象:','desc_exitSession':'停止連線將中斷你與協作會議室的連結,但你仍可於本機編輯此作品。意指停止連線後你的編輯不會被先前共同協作的人看見,且他們可繼續共同協作另一個版本。','shareTitle':'加入\x20Excalidraw\x20上的即時協作會議室'},o={'title':'錯誤'},i={'disk_title':'儲存至硬碟','disk_details':'將場景匯出為可供匯入之檔案','disk_button':I(0xcd),'link_title':'可共享連結','link_details':'匯出為唯讀連結','link_button':I(0xde),'excalidrawplus_description':'將此場景儲存至你的\x20Excalidraw+\x20工作區','excalidrawplus_button':'輸出','excalidrawplus_exportError':I(0xd9)},l={'blog':'閱讀部落格','click':'點擊','deepSelect':I(0xbb),'deepBoxSelect':'在容器內深度選取並避免拖曳','curvedArrow':'曲箭頭','curvedLine':'曲線','documentation':'文件','doubleClick':'雙擊','drag':'拖曳','editor':'編輯器','editLineArrowPoints':'編輯線/箭頭控制點','editText':'編輯文字/增加標籤','github':I(0xa8),'howto':'參照我們的說明','or':'或','preventBinding':'避免箭號連結','tools':'工具','shortcuts':'鍵盤快速鍵','textFinish':'完成編輯(文字編輯器)','textNewLine':'換行(文字編輯器)','title':'說明','view':'檢視','zoomToFit':'放大至填滿畫面','zoomToSelection':I(0xc1),'toggleElementLock':'鎖定/解鎖已選的項目','movePageUpDown':'向上/下移動頁面','movePageLeftRight':'向左/右移動頁面'},n={'title':'清除畫布'},s={'title':'發布資料庫','itemName':'項目名稱','authorName':'作者名稱','githubUsername':'GitHub\x20帳號','twitterUsername':'Twitter\x20帳號','libraryName':'資料庫名稱','libraryDesc':I(0xce),'website':'網站','placeholder':{'authorName':'您的名稱或帳號','libraryName':'您的資料庫名稱','libraryDesc':'提供您的資料庫說明以利他人理解其用途','githubHandle':'Github\x20handle(選填),填寫後您可編輯已送出待審查的資料庫','twitterHandle':'Twitter\x20帳號(選填),填寫後若我們在\x20Twitter\x20推廣時可提及您','website':'您個人網站或其他網站的連結(選填)'},'errors':{'required':'必填','website':'請輸入有效的\x20URL'},'noteDescription':'送出您的資料庫後將被包含於<link>公開資料庫\x20repository</link>以利他人在其繪圖中使用。','noteGuidelines':I(0xa3),'noteLicense':'送出即代表您同意此資料庫將發布時使用\x20<link>MIT\x20授權,</link>簡單來說是指任何人都能不受限制的使用。','noteItems':I(0xb5),'atleastOneLibItem':'請選擇至少一項資料庫項目','republishWarning':'注意:部分選取中的物件先前已發布/送出過。建議僅在要更新現存資料庫或已送出的物件時才重新送出這些物件。'},d={'title':I(0xb1),'content':'感謝\x20{{authorName}}\x20。您的資料庫已送出待審查。您可查看目前狀態<link>在此</link>'},c={'resetLibrary':'重設資料庫','removeItemsFromLib':'從資料庫移除所選的項目'},m={'header':'匯出圖片','label':{'withBackground':'背景','onlySelected':I(0xa4),'darkMode':'深色模式','embedScene':'嵌入場景','scale':'縮放比例','padding':'內間距'},'tooltip':{'embedScene':'用於回復場景的場景資料會被包含在輸出的\x20PNG/SVG\x20檔案中。\x0a會增加輸出的檔案大小。'},'title':{'exportToPng':'輸出成\x20PNG','exportToSvg':'輸出成\x20SVG','copyPngToClipboard':'複製\x20PNG\x20至剪貼簿'},'button':{'exportToPng':'PNG','exportToSvg':'SVG','copyPngToClipboard':'複製至剪貼簿'}},b={'tooltip':I(0xba),'link':'Excalidraw\x20端到端加密的相關部落格文章'},p={'angle':'角度','element':'元素','elements':'元素','height':'高度','scene':'場景','selected':'已選','storage':'儲存','title':'詳細統計','total':'合計','version':'版本','versionCopy':I(0xac),'versionNotAvailable':'無法取得版本','width':'寬度'},g={'addedToLibrary':'加入資料庫','copyStyles':'已複製樣式','copyToClipboard':'複製至剪貼簿。','copyToClipboardAsPng':'以\x20PNG\x20格式將\x20{{exportSelection}}\x20複製至剪貼簿\x0a({{exportColorScheme}})','fileSaved':I(0xb9),'fileSavedToFilename':'儲存為\x20{filename}','canvas':'畫布','selection':'已選項目','pasteAsSingleElement':'使用\x20{{shortcut}}\x20以做為單一物件貼上,\x0a或貼上至現有的文字編輯器','unableToEmbed':'目前不允許嵌入此網址。您可至\x20GitHub\x20提出\x20issue\x20以要求將此網址加入合格名單。','unrecognizedLinkFormat':I(0xc9)},h={'transparent':'透明','black':'黑','white':'白','red':'紅','pink':'粉紅','grape':'深紫','violet':'藍紫','gray':'灰','blue':'藍','cyan':'青','teal':'藍綠','green':'綠','yellow':'黃','orange':'橘','bronze':'銅'},y={'app':{'center_heading':'所有資料皆已在瀏覽器中儲存於本機','center_heading_plus':'您是否是要前往\x20Excalidraw+\x20?','menuHint':'輸出、偏好設定、語言...'},'defaults':{'menuHint':'輸出、偏好設定及其他...','center_heading':I(0xdd),'toolbarHint':I(0xa2),'helpHint':'快速鍵與說明'}},S={'mostUsedCustomColors':'最常使用的自訂顏色','colors':'顏色','shades':'漸變色','hexCode':'Hex\x20碼','noShades':'沒有此顏色的漸變色'},v={'action':{'exportToImage':{'title':'匯出為圖片','button':'匯出為圖片','description':'將場景匯出為可供匯入的圖片檔案'},'saveToDisk':{'title':'儲存至硬碟','button':I(0xaf),'description':I(0xc5)},'excalidrawPlus':{'title':I(0xca),'button':'匯出至\x20Excalidraw+','description':'將此場景儲存至您的\x20Excalidraw+\x20工作區'}},'modal':{'loadFromFile':{'title':'從檔案載入','button':'從檔案載入','description':'從檔案載入將<bold>取代您目前的內容</bold>。<br></br>可先使用下方的選項備份您的繪圖。'},'shareableLink':{'title':'從連結載入','button':'取代我的內容','description':'載入外部繪圖將<bold>取代您目前的內容</bold>。<br></br>可先使用下方的選項備份您的繪圖。'}}},w={'title':'Mermaid\x20至\x20Excalidraw','button':'插入','description':'目前僅支援\x20<flowchartLink>Flowchart</flowchartLink>\x20、\x20<sequenceLink>Sequence</sequenceLink>\x20及\x20<classLink>Class\x20</classLink>\x20圖表。其餘檔案類型在\x20Excalidraw\x20將會以圖像呈現。','syntax':I(0xe2),'preview':'預覽'},T={'labels':u,'library':F,'buttons':e,'alerts':E,'errors':C,'toolBar':A,'headings':D,'hints':B,'canvasError':a,'errorSplash':r,'roomDialog':t,'errorDialog':o,'exportDialog':i,'helpDialog':l,'clearCanvasDialog':n,'publishDialog':s,'publishSuccessDialog':d,'confirmDialog':c,'imageExportDialog':m,'encrypted':b,'stats':p,'toast':g,'colors':h,'welcomeScreen':y,'colorPicker':S,'overwriteConfirm':v,'mermaid':w};export{E as alerts,e as buttons,a as canvasError,n as clearCanvasDialog,S as colorPicker,h as colors,c as confirmDialog,T as default,b as encrypted,o as errorDialog,r as errorSplash,C as errors,i as exportDialog,D as headings,l as helpDialog,B as hints,m as imageExportDialog,u as labels,F as library,w as mermaid,v as overwriteConfirm,s as publishDialog,d as publishSuccessDialog,t as roomDialog,p as stats,g as toast,A as toolBar,y as welcomeScreen};
|
package/dist/index.d.ts
CHANGED
|
@@ -26,6 +26,45 @@ export default _default;
|
|
|
26
26
|
*/
|
|
27
27
|
export declare type FileRef = File | Blob | ArrayBuffer;
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* 渲染器专属导出适配器。
|
|
31
|
+
*/
|
|
32
|
+
export declare interface FileRenderExportAdapter {
|
|
33
|
+
/**
|
|
34
|
+
* 当前渲染器是否允许打印。未设置时由文件类型能力矩阵兜底判断。
|
|
35
|
+
*/
|
|
36
|
+
print?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* 当前渲染器是否允许导出渲染后的 HTML。
|
|
39
|
+
*/
|
|
40
|
+
exportHtml?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* 是否把当前页面的全局 style/link 一并带进导出窗口。
|
|
43
|
+
*
|
|
44
|
+
* 专属分页适配器通常会自行输出必要样式,应关闭该项,避免宿主应用的
|
|
45
|
+
* `height: 100vh`、`overflow: hidden` 等布局样式干扰浏览器分页打印。
|
|
46
|
+
*/
|
|
47
|
+
includeDocumentStyles?: boolean;
|
|
48
|
+
beforeSnapshot?: () => Promise<void> | void;
|
|
49
|
+
toHtml?: (options: FileRenderExportOptions) => Promise<string> | string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 导出/打印模式。
|
|
54
|
+
*/
|
|
55
|
+
export declare type FileRenderExportMode = 'export' | 'print';
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 渲染器自定义导出上下文。
|
|
59
|
+
*
|
|
60
|
+
* 大多数格式可以直接克隆当前 DOM;PDF 这类虚拟滚动或按需渲染格式
|
|
61
|
+
* 需要在打印前重新生成完整页面,因此允许渲染器注册专属适配器。
|
|
62
|
+
*/
|
|
63
|
+
export declare interface FileRenderExportOptions {
|
|
64
|
+
mode: FileRenderExportMode;
|
|
65
|
+
title: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
29
68
|
export declare const FileViewer: DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
30
69
|
/**
|
|
31
70
|
* 本地二进制输入。优先级高于 `url`。
|
|
@@ -47,13 +86,23 @@ url?: string | undefined;
|
|
|
47
86
|
* 目前覆盖内置操作栏、水印,以及压缩包内文件预览的缓存/体积限制。
|
|
48
87
|
*/
|
|
49
88
|
options?: FileViewerOptions | undefined;
|
|
50
|
-
}>, {
|
|
89
|
+
}>, {
|
|
90
|
+
downloadOriginalFile: () => Promise<void>;
|
|
91
|
+
printRenderedHtml: () => Promise<void>;
|
|
92
|
+
exportRenderedHtml: () => Promise<void>;
|
|
93
|
+
getOperationAvailability: () => {
|
|
94
|
+
download: boolean;
|
|
95
|
+
print: boolean;
|
|
96
|
+
exportHtml: boolean;
|
|
97
|
+
};
|
|
98
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
51
99
|
"load-start": (context: FileViewerLifecycleContext) => void;
|
|
52
100
|
"load-complete": (context: FileViewerLifecycleContext) => void;
|
|
53
101
|
"unload-start": (context: FileViewerLifecycleContext) => void;
|
|
54
102
|
"unload-complete": (context: FileViewerLifecycleContext) => void;
|
|
55
103
|
"operation-before": (context: FileViewerOperationContext) => void;
|
|
56
104
|
"operation-cancel": (context: FileViewerOperationContext) => void;
|
|
105
|
+
"operation-availability-change": (availability: FileViewerOperationAvailability) => void;
|
|
57
106
|
}, string, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
58
107
|
/**
|
|
59
108
|
* 本地二进制输入。优先级高于 `url`。
|
|
@@ -132,6 +181,19 @@ export declare interface FileViewerLifecycleHooks {
|
|
|
132
181
|
|
|
133
182
|
export declare type FileViewerLifecyclePhase = 'load-start' | 'load-complete' | 'unload-start' | 'unload-complete';
|
|
134
183
|
|
|
184
|
+
/**
|
|
185
|
+
* 当前文档对内置操作的真实可用性。
|
|
186
|
+
*
|
|
187
|
+
* `toolbar` 只表达宿主想不想展示某个按钮;这里表达当前文件类型和渲染器
|
|
188
|
+
* 是否真的能稳定完成该操作。尤其是打印,虚拟表格、播放器、3D 画布、
|
|
189
|
+
* EPUB iframe 等链路无法保证完整分页输出时会主动关闭。
|
|
190
|
+
*/
|
|
191
|
+
export declare interface FileViewerOperationAvailability {
|
|
192
|
+
download: boolean;
|
|
193
|
+
print: boolean;
|
|
194
|
+
exportHtml: boolean;
|
|
195
|
+
}
|
|
196
|
+
|
|
135
197
|
export declare interface FileViewerOperationContext extends Omit<FileViewerLifecycleContext, 'phase'> {
|
|
136
198
|
operation: FileViewerOperationType;
|
|
137
199
|
label: string;
|
|
@@ -146,6 +208,7 @@ export declare interface FileViewerOptions {
|
|
|
146
208
|
watermark?: boolean | FileViewerWatermarkOptions;
|
|
147
209
|
toolbar?: boolean | FileViewerToolbarOptions;
|
|
148
210
|
archive?: FileViewerArchiveOptions;
|
|
211
|
+
pdf?: FileViewerPdfOptions;
|
|
149
212
|
/**
|
|
150
213
|
* 文档加载/卸载生命周期钩子。直接使用 Vue 组件时可以传函数;
|
|
151
214
|
* iframe 集成时同名事件会通过 `postMessage` 向宿主发送。
|
|
@@ -157,6 +220,24 @@ export declare interface FileViewerOptions {
|
|
|
157
220
|
beforeOperation?: FileViewerBeforeOperation;
|
|
158
221
|
}
|
|
159
222
|
|
|
223
|
+
/**
|
|
224
|
+
* PDF 预览配置。
|
|
225
|
+
*/
|
|
226
|
+
declare interface FileViewerPdfOptions {
|
|
227
|
+
/**
|
|
228
|
+
* 是否启用左侧页面/目录导航窗格。设为 `false` 时会同时隐藏侧栏和切换按钮。
|
|
229
|
+
*/
|
|
230
|
+
navigation?: boolean;
|
|
231
|
+
/**
|
|
232
|
+
* 导航窗格初始是否展开。未设置时默认展开,`navigation: false` 时会被忽略。
|
|
233
|
+
*/
|
|
234
|
+
defaultNavigationVisible?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* 初始页面旋转角度。会按 90 度归一化到 0 / 90 / 180 / 270。
|
|
237
|
+
*/
|
|
238
|
+
rotation?: number;
|
|
239
|
+
}
|
|
240
|
+
|
|
160
241
|
export declare type FileViewerSourceType = 'file' | 'url' | 'empty';
|
|
161
242
|
|
|
162
243
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(f,g){var k=c,h=f();while(!![]){try{var i=-parseInt(k(0xb1))/0x1*(-parseInt(k(0xb6))/0x2)+parseInt(k(0xb2))/0x3+-parseInt(k(0xba))/0x4*(parseInt(k(0xb3))/0x5)+-parseInt(k(0xb4))/0x6*(-parseInt(k(0xb8))/0x7)+parseInt(k(0xb0))/0x8*(parseInt(k(0xb9))/0x9)+-parseInt(k(0xb7))/0xa+parseInt(k(0xb5))/0xb*(-parseInt(k(0xbb))/0xc);if(i===g)break;else h['push'](h['shift']());}catch(j){h['push'](h['shift']());}}}(b,0x949e0));import{F as d,i as e}from'./components/index7.js';import'vue';function c(a,d){a=a-0xb0;var e=b();var f=e[a];return f;}function b(){var l=['3575826RLtKeY','11ccGUBv','1926696CzeUyc','1561610dDipsJ','7tksjpg','216vqCqvO','16FiBsiO','2946036PtFQXz','10984YUYxCv','1tLvGGK','328035Zorlpt','864020UfBrvM'];b=function(){return l;};return b();}export{d as FileViewer,e as default};
|
package/dist/package/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ declare class Installer implements FileViewerInstaller {
|
|
|
16
16
|
declare const _default: Installer;
|
|
17
17
|
export default _default;
|
|
18
18
|
export { FileViewer };
|
|
19
|
-
export type { FileRef, FileViewerArchiveOptions, FileViewerBeforeOperation, FileViewerLifecycleContext, FileViewerLifecycleHooks, FileViewerLifecyclePhase, FileViewerOperationContext, FileViewerOperationType, FileViewerOptions, FileViewerSourceType, FileViewerToolbarOptions, FileViewerWatermarkOptions } from './common/type';
|
|
19
|
+
export type { FileRef, FileRenderExportAdapter, FileRenderExportMode, FileRenderExportOptions, FileViewerArchiveOptions, FileViewerBeforeOperation, FileViewerLifecycleContext, FileViewerLifecycleHooks, FileViewerLifecyclePhase, FileViewerOperationAvailability, FileViewerOperationContext, FileViewerOperationType, FileViewerOptions, FileViewerSourceType, FileViewerToolbarOptions, FileViewerWatermarkOptions } from './common/type';
|
|
20
20
|
|
|
21
21
|
declare global {
|
|
22
22
|
interface Window {
|