d3-thematika - v0.0.1
    Preparing search index...

    Interface LineTextLayerOptions

    LineTextLayerの初期化オプション

    interface LineTextLayerOptions {
        arcControlPoint?: ArcControlPointType;
        arcHeight?: number;
        arcOffset?: ArcOffsetType;
        attr?: LayerAttr;
        data:
            | Feature<Geometry, GeoJsonProperties>
            | FeatureCollection<Geometry, GeoJsonProperties>
            | Feature<Geometry, GeoJsonProperties>[];
        dx?: number | ((feature: Feature, index: number) => number);
        dy?: number | ((feature: Feature, index: number) => number);
        flipText?: boolean;
        followPath?: boolean;
        fontFamily?: string | ((feature: Feature, index: number) => string);
        fontSize?:
            | string
            | number
            | ((feature: Feature, index: number) => string | number);
        fontWeight?:
            | "bold"
            | "inherit"
            | "normal"
            | "bolder"
            | "lighter"
            | "100"
            | "200"
            | "300"
            | "400"
            | "500"
            | "600"
            | "700"
            | "800"
            | "900"
            | ((feature: Feature, index: number) => string);
        guidePathStyle?: LayerAttr;
        lineType?: "straight" | "arc" | "smooth";
        showGuidePath?: boolean;
        smoothType?:
            | "curveBasis"
            | "curveCardinal"
            | "curveCatmullRom"
            | "curveLinear"
            | "curveMonotoneX"
            | "curveMonotoneY"
            | "curveNatural"
            | "curveStep"
            | "curveStepAfter"
            | "curveStepBefore";
        startOffset?: string
        | number;
        style?: LayerStyle;
        textAnchor?: "start" | "end" | "middle" | "inherit";
        textProperty?: string;
    }
    Index

    Properties

    arcControlPoint?: ArcControlPointType

    アーク制御点の位置(デフォルト: 'center')

    arcHeight?: number

    アーク描画時の高さ(デフォルト: 0.3)

    arcOffset?: ArcOffsetType

    アークオフセットの方向(デフォルト: 'perpendicular')

    attr?: LayerAttr

    レイヤーの属性設定

    data:
        | Feature<Geometry, GeoJsonProperties>
        | FeatureCollection<Geometry, GeoJsonProperties>
        | Feature<Geometry, GeoJsonProperties>[]

    GeoJSONデータ(LineString/MultiLineString)

    dx?: number | ((feature: Feature, index: number) => number)

    X方向のオフセット(デフォルト: 0)

    dy?: number | ((feature: Feature, index: number) => number)

    Y方向のオフセット(デフォルト: 0)

    flipText?: boolean

    テキストの向きを反転させるかどうか(デフォルト: false)

    followPath?: boolean

    パスに沿ってテキストを配置するかどうか(デフォルト: true)

    fontFamily?: string | ((feature: Feature, index: number) => string)

    フォントファミリー(デフォルト: "メイリオ, Meiryo, 'MS Pゴシック', MS Gothic, sans-serif")

    fontSize?:
        | string
        | number
        | ((feature: Feature, index: number) => string | number)

    フォントサイズ(デフォルト: 16)

    fontWeight?:
        | "bold"
        | "inherit"
        | "normal"
        | "bolder"
        | "lighter"
        | "100"
        | "200"
        | "300"
        | "400"
        | "500"
        | "600"
        | "700"
        | "800"
        | "900"
        | ((feature: Feature, index: number) => string)

    フォントウェイト(デフォルト: "normal")

    guidePathStyle?: LayerAttr

    ガイドパスのスタイル設定

    lineType?: "straight" | "arc" | "smooth"

    ライン描画タイプ(デフォルト: 'straight')

    showGuidePath?: boolean

    ガイドパスを表示するかどうか(デフォルト: false)

    smoothType?:
        | "curveBasis"
        | "curveCardinal"
        | "curveCatmullRom"
        | "curveLinear"
        | "curveMonotoneX"
        | "curveMonotoneY"
        | "curveNatural"
        | "curveStep"
        | "curveStepAfter"
        | "curveStepBefore"

    スムージング時のカーブタイプ(デフォルト: 'curveBasis')

    startOffset?: string | number

    textPath使用時のstartOffset(デフォルト: "50%")

    style?: LayerStyle

    レイヤーのCSS style属性設定

    textAnchor?: "start" | "end" | "middle" | "inherit"

    テキストアンカー(デフォルト: "middle")

    textProperty?: string

    テキストの内容を取得するプロパティ名(デフォルト: 'text'、次候補: 'name')