StringTune/Docs

Concepts

Object IDs

How object identity works, how events are scoped by id, and which id-driven patterns are supported.

Object IDs

Why string-id exists

string-id gives an object a stable name for:

  • object-scoped events
  • center invalidation
  • cross-object coordination patterns

Example

HTML
<section string="progress" string-id="hero"></section>
TypeScript
stringTune.on('object:progress:hero', (value) => {
  console.log(value);
});

Important payload note

  • object:progress:<id> emits a number
  • object:parallax:<id> emits a number

Public API boundary

If you need to target an object id from the public instance, use supported helpers such as invalidateCenter(id) and supported event channels.

Do not document private access like stringTune['objectManager'] as if it were stable API.

Attribute removal

Current runtime behavior should not be documented as if removing string or string-inited from an existing node were a guaranteed public detachment mechanism.