Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::JsxLockTweak Struct Reference

A single tweak to promote into authored JSX/TSX source. More...

#include <jsx_lock.hpp>

Public Attributes

std::string anchor_id
 The tweak's stable_anchor_id — matched against the element's injected data-pulp-anchor="<id>" attribute.
std::string property_path
 The canonical dotted property path used by pulp-tweaks.json (e.g.
std::string value
 The tweaked value as it should appear in source.

Detailed Description

A single tweak to promote into authored JSX/TSX source.

Mirrors the tuple the inspector tweak-store keys on: (anchor_id, property_path) → value, identical in shape to LockToSourceTweak.

Member Data Documentation

◆ anchor_id

std::string pulp::view::JsxLockTweak::anchor_id

The tweak's stable_anchor_id — matched against the element's injected data-pulp-anchor="<id>" attribute.

◆ property_path

std::string pulp::view::JsxLockTweak::property_path

The canonical dotted property path used by pulp-tweaks.json (e.g.

paint.backgroundColor, style.width, layout.padding). The leading paint. / style. / layout. namespace is optional and collapses onto the JSX style={{…}} / prop surface.

◆ value

std::string pulp::view::JsxLockTweak::value

The tweaked value as it should appear in source.

A value that looks numeric (optionally with a unit, e.g. 12, 0.5) is emitted as the right JS literal for the prop's existing form; a string value (#5a5a5a, Mike's Font) is emitted quoted.


The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/view/include/pulp/view/jsx_lock.hpp