yfiles-nodestyle-configure — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited yfiles-nodestyle-configure (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Make custom node styles configurable via constructor parameters and data-driven via node.tag.
Always query the yFiles MCP for current API:
yfiles:yfiles_get_symbol_details(name="TextRenderSupport")
yfiles:yfiles_search_documentation(query="node tag data binding")
yfiles:yfiles_search_by_description(query="text rendering")export class ConfigurableNodeStyle extends NodeStyleBase {
constructor(public fillColor: string = '#0b7189') {
super()
}
protected createVisual(context: IRenderContext, node: INode): SvgVisual {
const rect = document.createElementNS('http://www.w3.org/2000/svg', 'rect')
const { x, y, width, height } = node.layout
// node.tag overrides constructor default
rect.setAttribute('fill', node.tag?.color ?? this.fillColor)
rect.setAttribute('x', String(x))
rect.setAttribute('y', String(y))
rect.setAttribute('width', String(width))
rect.setAttribute('height', String(height))
return new SvgVisual(rect)
}
}node.tag?.property ?? defaultValue to allow overridesnode.tag takes precedence over constructor params| Strategy | When to use |
|---|---|
| Constructor params only | All nodes share the same appearance |
node.tag only | Each node has its own data |
Constructor + node.tag | Shared defaults, per-node overrides |
node.tag data binding, text rendering with TextRenderSupport, conditional styling, combined patternsnode.tag structure recommendations, TextRenderSupport API, font and text wrapping options/yfiles-nodestyle-basic — Learn basic rendering first/yfiles-nodestyle-interaction — Add hit testing/yfiles-nodestyle-advanced — Advanced rendering features~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.