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

    Class BaseLayerAbstract

    全レイヤーの基底となる抽象クラス 共通の機能と振る舞いを定義します

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Methods

    • Protected

      単一要素にSVG属性とCSS style属性の両方を適用します

      Parameters

      • element: Selection<any, any, any, any>

        対象要素

      • layerGroup: Selection<SVGGElement, unknown, HTMLElement, any>

        レイヤーグループ

      Returns void

    • Protected

      複数要素にSVG属性とCSS style属性の両方を適用します(GeojsonLayer用)

      Parameters

      • elements: Selection<any, any, any, any>

        対象要素群

      • layerGroup: Selection<SVGGElement, unknown, HTMLElement, any>

        レイヤーグループ

      Returns void

    • Protected

      単一要素にSVG属性を適用します

      Parameters

      • element: Selection<any, any, any, any>

        対象要素

      • layerGroup: Selection<SVGGElement, unknown, HTMLElement, any>

      Returns void

    • Protected

      複数要素にSVG属性を適用します

      Parameters

      • elements: Selection<any, any, any, any>

        対象要素群

      • layerGroup: Selection<SVGGElement, unknown, HTMLElement, any>

        レイヤーグループ

      Returns void

    • Protected

      単一要素にCSS style属性を適用します

      Parameters

      • element: Selection<any, any, any, any>

        対象要素

      • layerGroup: Selection<SVGGElement, unknown, HTMLElement, any>

      Returns void

    • Protected

      複数要素にCSS style属性を適用します

      Parameters

      • elements: Selection<any, any, any, any>

        対象要素群

      • layerGroup: Selection<SVGGElement, unknown, HTMLElement, any>

        レイヤーグループ

      Returns void

    • Protected

      レイヤーグループ要素を作成します

      Parameters

      • container: Selection<SVGGElement, unknown, HTMLElement, any>

        親コンテナ

      Returns Selection<SVGGElement, unknown, HTMLElement, any>

      作成されたレイヤーグループ

    • レイヤーのD3セレクションを取得します

      Returns null | Selection<SVGGElement, unknown, HTMLElement, any>

      レイヤーグループのD3セレクション、未描画の場合はnull

    • レイヤーを描画します(サブクラスで実装)

      Parameters

      • container: Selection<SVGGElement, unknown, HTMLElement, any>

        描画先のSVGコンテナ

      Returns void

    Properties

    attr: LayerAttr

    レイヤーのSVG属性設定(d3命名規則)

    element?: SVGGElement

    レイヤーのSVGグループ要素

    id: string

    レイヤーの一意識別子

    style?: LayerStyle

    レイヤーのCSS style属性設定(d3命名規則)

    visible: boolean = true

    レイヤーの表示状態

    zIndex: number = 0

    レイヤーの描画順序