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

    Interface ITextStyle3D

    三维文本风格

    interface ITextStyle3D {
        alwaysVisible: boolean;
        backgroundColor: string;
        clampToGround: boolean;
        color: string;
        depthTestDistance: number;
        fixedSize: boolean;
        fontSize: number;
        kind: TextStyle3DKind;
        offsetX: number;
        offsetY: number;
        outlineColor: string;
        visibleDistance: number;
    }
    Index

    Properties

    alwaysVisible: boolean

    是否始终可见

    backgroundColor: string

    背景颜色,kind 为 background / backgroundAndOutline 时生效

    clampToGround: boolean

    是否贴地显示

    color: string

    文字颜色,CSS 颜色字符串

    depthTestDistance: number

    深度检测关闭距离,单位米

    fixedSize: boolean

    是否固定屏幕尺寸(不随视角远近缩放)

    fontSize: number

    字号,单位像素

    文本风格类型

    offsetX: number

    水平偏移量,单位像素

    offsetY: number

    垂直偏移量,单位像素,正值向上

    outlineColor: string

    描边颜色,kind 为 outline / backgroundAndOutline 时生效

    visibleDistance: number

    最大可见距离,单位米,alwaysVisible 为 false 时生效