react-native-mobilex 开发文档
    Preparing search index...

    Interface GraphicDrawOption

    三维图形绘制选项

    interface GraphicDrawOption {
        autoCreateLayer: boolean;
        autoPersist: boolean;
        clampMode: ClampMode;
        continuousPointDraw: boolean;
        countPerSegment: number;
        helperStyle?: Partial<GraphicDrawHelperStyle>;
        internalGesture: boolean;
        lineShape: "linestring" | "spline" | "circle" | "rectangle";
        lineStyle?: Partial<ILineStyle3D>;
        pointCount: number;
        pointStyle?: Partial<IPointStyle3D>;
        regionShape: "circle" | "rectangle" | "polygon";
        regionStyle?: Partial<IRegionStyle3D>;
        splineType: SplineType3D;
        target: GraphicDrawTarget;
        text: string;
        textStyle?: Partial<ITextStyle3D>;
    }
    Index

    Properties

    autoCreateLayer: boolean

    目标图层不存在时是否自动创建,默认 true

    autoPersist: boolean

    submit 时是否自动持久化,默认 true

    clampMode: ClampMode

    编辑器预览贴地方式,默认 'both'

    continuousPointDraw: boolean

    点/文本绘制模式下每次点击立即提交,默认 false

    countPerSegment: number

    样条线每段插值点数,默认 5

    helperStyle?: Partial<GraphicDrawHelperStyle>

    绘制/编辑辅助图层(顶点节点)风格;多次调用按字段合并,未传字段沿用上次值

    internalGesture: boolean

    EDIT3D/DRAW3D_* 下是否由 webview 内部接管手势,默认 true; 准星模式设为 false,由外部通过 pickVertex/moveVertex/translate 等驱动。 会话进行中切换会实时安装/卸载手势 handler。

    lineShape: "linestring" | "spline" | "circle" | "rectangle"

    DRAW3D_LINE 绘制的线形状,默认 'linestring'

    lineStyle?: Partial<ILineStyle3D>

    线风格

    pointCount: number

    圆弧采样点数,默认 72

    pointStyle?: Partial<IPointStyle3D>

    点风格(持久化与预览共用)

    regionShape: "circle" | "rectangle" | "polygon"

    DRAW3D_REGION 绘制的面形状,默认 'polygon'

    regionStyle?: Partial<IRegionStyle3D>

    面风格

    splineType: SplineType3D

    样条线插值类型,默认 'catmullRom'

    提交目标图层

    text: string

    DRAW3D_TEXT 的文本内容,默认 ''

    textStyle?: Partial<ITextStyle3D>

    文本风格