g3-toolkit API Reference
    Preparing search index...

    Function applyVisualAttributes

    • Apply engine-resolved attributes to a live Cytoscape instance as per-element bypasses. Returns the honesty report per element id so a surface can show what Cytoscape could not express.

      Parameters

      • cy: Core
      • resolved: ReadonlyMap<string, VisualAttributes>
      • Optionaloptions: { resetFirst?: boolean }
        • OptionalresetFirst?: boolean

          Clear each element's existing bypasses before applying. A re-application whose attribute set SHRANK (e.g. an LOD tier transition back toward full detail) must reset, or channels the coarser tier set (text-opacity, opacity) persist as stale bypasses: the projection only writes keys that are present. Callers sharing bypass ownership with other writers (the routed-segment bypass on structural edges) should NOT reset blindly; the Style Lab's engine pane owns all its bypasses.

      Returns Map<string, Pick<CyProjection, "unsupported" | "approximated">>