
內容簡介
總結:BT SVG Viewer 是一個WordPress外掛,能夠嵌入大型、詳細的SVG圖表,並提供支持觸控友好的縮放、平移和居中的查看器。該外掛讓地圖、技術圖稿和信息圖表在每個屏幕上保持清晰,同時還提供編輯人員一個可視化預設生成器,讓他們可以重複使用配置而不必重複短碼屬性。
問題與答案:
1. 如何使用BT SVG Viewer這個外掛?
- 在支持短碼的任何地方使用[btsvviewer]短碼。
- 可以傳遞直接的SVG URL或參考保存的預設ID。
- 所有短碼屬性(高度、縮放限制、控制佈局、按鈕顏色等)都可以在每個實例中被覆蓋。
2. 如何創建一個預設設定?
- 從WordPress管理員中的BT SVG Viewer → 預設中創建一個預設。
- 上傳一個SVG,調整控制,微調按鈕顏色,然後加載預覽以調整初始縮放和中心點。
- 儲存預設並在需要的地方放置生成的[btsvviewer id="123"]短碼。
3. 有哪些可用的本地化翻譯?
- 德語(de_DE)、西班牙語(es_ES)、法語(fr_FR)、意大利語(it_IT)。
- 這些翻譯最初是使用人工智能輔助進行的;歡迎通過https://github.com/ttscoff/bt-svg-viewer/issues提供更正。
外掛標籤
開發者團隊
原文外掛簡介
Embed large, detailed SVG diagrams in WordPress with an accessible viewer that supports touch-friendly zooming, panning, and centering. BT SVG Viewer keeps maps, technical drawings, and infographics sharp on every screen, while giving editors a visual preset builder so they can reuse configurations without repeating shortcode attributes.
Highlights
Interactive zoom and pan controls with keyboard shortcuts and optional slider mode.
Smooth, cursor-focused zoom animations with click-drag panning.
Preset post type with live preview, copy-ready shortcodes, and color pickers for control styling.
Fine-grained shortcode attributes for height, zoom bounds, center coordinates, titles, and captions.
Front-end wrapper classes and CSS custom properties for deep theme integration.
Localized UI and strings in English, German, Spanish, French, and Italian.
Shortcode Overview
Use the [btsvviewer] shortcode anywhere shortcodes are supported. Pass a direct SVG URL or reference a saved preset ID. All shortcode attributes (height, zoom limits, controls layout, button colors, etc.) can be overridden per instance. See the plugin’s admin Help tab or project README for a full attribute reference and examples. Existing shortcodes created before the rename continue to render, so archived posts don’t need to be touched.
Preset Workflow
Create a preset from BT SVG Viewer → Presets in the admin. Upload an SVG, tune the controls, tweak button colors, then load the preview to dial in the initial zoom and center point. Save the preset and drop the generated [btsvviewer id="123"] shortcode wherever you need the viewer. Inline attributes always win over stored preset values, making it easy to reuse a baseline configuration.
Localization
Available translations: German (de_DE), Spanish (es_ES), French (fr_FR), Italian (it_IT).
Translations were initially produced with AI assistance; corrections are welcome via https://github.com/ttscoff/bt-svg-viewer/issues.
