FIMViz.jsAPI
    Preparing search index...

    Function createToolsPanel

    • Mount a tools panel for layer into root. controls overrides the preset — an array or a (layer) => Control[] function. pretty:true injects a scoped stylesheet; otherwise the panel is bare structure the host styles.

      reactive:true keeps the panel in step with changes made anywhere else — layer.set(), another panel, a preset button. See the focus rule below; it is the reason this is opt-in rather than always on.

      Parameters

      • root: string | Element
      • opts: { controls?: any; layer: Layer; pretty?: boolean; reactive?: boolean } = {}

      Returns { destroy: () => void; el: Element; update: () => void }