前言介紹
- 這款 WordPress 外掛「DXFViewer」是 2016-10-19 上架。
- 目前有 30 個安裝啟用數。
- 上一次更新是 2016-10-20,距離現在已有 3121 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.5.4 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
aviket |
外掛標籤
DXF |
內容簡介
此插件可在 WordPress 文章或頁面上顯示 DXF 檔案。
DXF (Drawing eXchange Format) 是 CAD 圖面的產業標準格式。
DXF 詳細規格請參閱:http://images.autodesk.com/adsk/files/autocad_2012_pdf_dxf-reference_enu.pdf
DXF 是一種 ASCII 檔案,您可以使用 AutoCAD 或其他軟體(例如 LibreCAD 或 QCad)來建立它。
網路上有一些免費的 DXF 檔案範例。
此插件使用 JavaScript,完全在客戶端工作,因此速度非常快。
使用方法:
此插件需要支援 HTML5 Canvas 的瀏覽器,大多數現代瀏覽器都支援。
安裝和啟用後,您必須使用簡碼 [DXF](即在頁面或文章中簡單輸入“[DXF]”)。
起始頁面會載入一些預設的 DXF 內容。
您的文章查看者會看到一個黑色矩形和一個按鈕,可在客戶端機器上選擇 DXF 檔案。
根據 DXF 檔案的大小,該檔案將在黑色矩形中呈現。
要縮放,請使用滑鼠滾輪,要平移,請按住並拖動左鍵。
呈現區域下方的連結可用於將畫布保存為 JPG 或 PNG 檔案。
下載的圖像不會顯示背景色和邊框。
要設置背景色和邊框,請使用設置頁面。
可在此處進行設置:管理區->設置->DXFView 選項。
此插件使用 JCanvas 和 DXFParser:
JCanvas 連結:http://projects.calebevans.me/jcanvas/
DXF 解析器連結:https://github.com/gdsestimating/dxf-parser
JCanvas 和 DXF 解析器的常見支援實體都是:線、折線、圓形、文字和弧形,
並且只呈現這些。帶有弧、彎曲等的多段線呈現為連接頂點的線串。
不同的文本字體會被忽略,所有文本都顯示在一個通用字體中。
隱藏或凍結圖層上的實體也會被呈現。
原文外掛簡介
This plugin displays a DXF file on your WordPress post or page.
DXF (Drawing eXchange Format) is industry standard format for CAD drawings.
For DXF specifications: refer- http://images.autodesk.com/adsk/files/autocad_2012_pdf_dxf-reference_enu.pdf
DXF is an Ascii file. You can create it by AutoCAD or a few other packages like LibreCAD or QCad.
Some free samples of DXF files can be found online.
This plugin uses javascript and fully works on client side and hence works at lightening speed.
How to Use:
This plugin requires the browser that supports HTML5 Canvas, most modern browsers do.
After installation and Activation, you have to use shortcode [DXF] (ie simply type “[DXF]” on the page or post).
The starting page is loaded with some default DXF contents.
Viewer of your post will see a black coloured rectangle and a button to select a DXF file on the client machine.
Depending on the size of the DXF file, the file will be rendered in the black rectangle.
For zooming, use mouse wheels, for panning click, hold and drag with the left mouse button.
The links below the rendering area can be used to save the canvas as a JPG or PNG file.
Background color and border are not shown in the saved images downloaded images.
For setting the Background color and Border, use the settings page.
Settings can be configured at: Admin area->Settings->DXFView Options.
This plugin uses JCanvas and DXFParser:
Link to JCanvas: http://projects.calebevans.me/jcanvas/
Link to DXF parser: https://github.com/gdsestimating/dxf-parser
Commonly supported Entities in both Jcanvas and DXF parser are : Line, polyline, circle, text and arc and only
these much are rendered. Polylines with arcs, buldges etc are rendered as line string joining vertices.
Different text fonts are ignored and all the texts are displayed in one common font.
Entities on hidden or freezed layers are also rendered.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「DXFViewer」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。