Agent skill
yfiles-nodestyle-configure
Creates configurable and data-driven custom node styles using constructor parameters, node.tag data binding, and text rendering with TextRenderSupport. Use when making styles configurable, binding node data to visuals, rendering text in nodes, or when user mentions "configurable style", "node.tag", "data binding", "TextRenderSupport", or "text rendering".
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/yfiles-nodestyle-configure
SKILL.md
Configurable Custom Node Styles
Make custom node styles configurable and data-driven.
Quick Start
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
rect.setAttribute('fill', node.tag?.color ?? this.fillColor)
// ... set other attributes
return new SvgVisual(rect)
}
}
Before Configuring
Always query 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")
Core Concepts
- Constructor params: Class-level configuration
- node.tag: Per-node data binding
- TextRenderSupport: Proper text rendering with font, wrapping
- Conditional rendering: Different visuals based on data
Configuration Strategies
- Constructor params - Style-level defaults
- node.tag - Per-node customization
- Combination - tag overrides constructor params
Code Examples
See examples.md for:
- Constructor-based configuration
- Data binding from node.tag
- Text rendering with TextRenderSupport
- Conditional styling
- Combined configuration
Reference
See reference.md for:
- Constructor patterns
- node.tag structure recommendations
- TextRenderSupport API
- Font and text wrapping options
Related Skills
/yfiles-nodestyle-basic- Learn basic rendering first/yfiles-nodestyle-interaction- Add hit testing next/yfiles-nodestyle-advanced- Advanced features
MCP Tools
yfiles:yfiles_get_symbol_details(name="TextRenderSupport")- Text rendering APIyfiles:yfiles_get_symbol_details(name="Font")- Font configurationyfiles:yfiles_search_by_description(query="text wrapping")- Wrapping options
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?