- Docusaurus 3.7.0 with both English and Chinese (zh-CN) locales - Full API reference split into structured pages - Homepage with hero, feature cards, and quick start section - GitHub Actions workflow for auto-deployment to GitHub Pages Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
456 B
Markdown
22 lines
456 B
Markdown
---
|
|
id: local-paths
|
|
title: 从 API 传入本地路径
|
|
---
|
|
|
|
# 🌐 从 API 传入本地路径
|
|
|
|
```tsx
|
|
<MaskSegmentCanvas
|
|
originUrl={localOriginPath}
|
|
maskUrl={localMaskPath}
|
|
showDebugPickers={false}
|
|
showToolbar={false}
|
|
semanticColors={MASK_SEMANTIC_COLORS}
|
|
regionOutlineColor="#1e96ff"
|
|
onWatch={(state, ms, detail) => {
|
|
if (state === 'interactive') hideBlockingLoader();
|
|
if (state === 'mask_paths_ready') hideOutlineHint();
|
|
}}
|
|
/>
|
|
```
|