Skip to content

Commit 838e436

Browse files
committed
Добавление примера в 19.6
1 parent a3a6bc1 commit 838e436

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,6 +2598,10 @@
25982598
25992599
// хорошо
26002600
const leds = stage.selectAll('.led').data(data);
2601+
const svg = leds.enter().append('svg:svg');
2602+
svg.classed('led', true).attr('width', (radius + margin) * 2);
2603+
const g = svg.append('svg:g');
2604+
g.attr('transform', `translate(${radius + margin},${radius + margin})`).call(tron.led);
26012605
```
26022606

26032607
<a name="whitespace--after-blocks"></a><a name="18.7"></a>

0 commit comments

Comments
 (0)