react-native-mask-segment-c.../docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/api/props-semantic.md
a1518 bea6de3767 Add Docusaurus documentation site with i18n support
- 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>
2026-07-02 23:25:56 -07:00

849 B
Raw Permalink Blame History

id title
props-semantic Props语义颜色与轮廓

🎨 Props语义颜色与轮廓

Prop 类型 默认值 描述
semanticColors MaskSemanticColor[] MASK_SEMANTIC_COLORS 遮罩语义识别颜色;等同于 maskConfig.semanticColors
regionOutlineColor string rgba(20, 120, 235, 0.58) 区域虚线高亮颜色;等同于 paintConfig.regionOverlayFill

顶层 props 优先于嵌套的 maskConfig / paintConfig

MaskSemanticColor 结构

{
  name: string;   // 语义名称,如 wall / ceiling / baseboard
  hex: string;    // 显示用的十六进制颜色
  bgr: { b: number; g: number; r: number }; // 必须与遮罩像素 BGR 通道匹配
}

内置调色板:MASK_SEMANTIC_COLORS(详见 src/utils/maskSemanticPalette.ts)。