|
Last change
on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
309 bytes
|
| Line | |
|---|
| 1 | export default function(parent, x0, y0, x1, y1) {
|
|---|
| 2 | var nodes = parent.children,
|
|---|
| 3 | node,
|
|---|
| 4 | i = -1,
|
|---|
| 5 | n = nodes.length,
|
|---|
| 6 | k = parent.value && (x1 - x0) / parent.value;
|
|---|
| 7 |
|
|---|
| 8 | while (++i < n) {
|
|---|
| 9 | node = nodes[i], node.y0 = y0, node.y1 = y1;
|
|---|
| 10 | node.x0 = x0, node.x1 = x0 += node.value * k;
|
|---|
| 11 | }
|
|---|
| 12 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.