g3-toolkit API Reference
    Preparing search index...

    Class StyleEngine

    The incremental engine (G3L:STY-004). Holds resolved attributes and the rule/field indexes; changes recompute the minimum element set the declarations allow.

    Index

    Constructors

    Methods

    • A data change on one element: fields already written to the element by the caller; the engine recomputes the minimum set the declarations allow (G3L:STY-004). Unmatched fields cost ZERO evaluations.

      Parameters

      • elementId: string
      • changedFields: readonly string[]

      Returns InvalidationResult

    • Total rule evaluations since construction (test instrumentation).

      Returns { evaluations: number }