anime_target_layer: Target elements by a data-layer attribute

View source: R/targets.R

anime_target_layerR Documentation

Target elements by a data-layer attribute

Description

Produces an attribute selector matching a data-layer attribute, a convention used by SVG annotation pipelines that tag all data elements belonging to one plot layer (e.g. ggplot2 layers) with their layer index.

Usage

anime_target_layer(layer_index)

Arguments

layer_index

Integer scalar. 1-based index of the layer.

Value

A CSS selector string of the form "[data-layer='<layer_index>']".

Examples

anime_target_layer(1L)


animejs documentation built on Aug. 21, 2026, 5:17 p.m.