📖 API 参考
导入
import MaskSegmentCanvas, {
type MaskSegmentCanvasRef,
type MaskSegmentCanvasProps,
type MaskSegmentSession,
type MaskSegmentWatchState,
type MaskSegmentWatchDetail,
type BgrColor,
type MaskSemanticColor,
type PaintCallbackPayload,
type PaintedRegionRecord,
type PipelineConfig,
type MaskSegmentConfig,
type PaintConfig,
type InteractionConfig,
type SavePaintResult,
MASK_SEMANTIC_COLORS,
BASEBOARD_SEMANTIC_NAME,
prewarmPngBgrCacheAsync,
DEFAULT_PIPELINE_CONFIG,
DEFAULT_MASK_CONFIG,
DEFAULT_PAINT_CONFIG,
DEFAULT_INTERACTION_CONFIG,
} from 'react-native-mask-segment-canvas';
| 分类 |
名称 |
| 组件 |
MaskSegmentCanvas(默认导出) |
| Ref / Props 类型 |
MaskSegmentCanvasRef, MaskSegmentCanvasProps |
| 会话 / 回调类型 |
MaskSegmentSession, PaintCallbackPayload, PaintedRegionRecord, SavePaintResult |
| Watch 类型 |
MaskSegmentWatchState, MaskSegmentWatchDetail |
| 配置类型 |
PipelineConfig, MaskSegmentConfig, PaintConfig, InteractionConfig |
| 语义颜色 |
MASK_SEMANTIC_COLORS, BASEBOARD_SEMANTIC_NAME |
| 工具函数 |
prewarmPngBgrCacheAsync |
| 运行时默认值 |
DEFAULT_*_CONFIG |
Props 概览