|
Last change
on this file was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
697 bytes
|
| Line | |
|---|
| 1 | import {Transition, newId} from "./index.js";
|
|---|
| 2 | import schedule, {get} from "./schedule.js";
|
|---|
| 3 |
|
|---|
| 4 | export default function() {
|
|---|
| 5 | var name = this._name,
|
|---|
| 6 | id0 = this._id,
|
|---|
| 7 | id1 = newId();
|
|---|
| 8 |
|
|---|
| 9 | for (var groups = this._groups, m = groups.length, j = 0; j < m; ++j) {
|
|---|
| 10 | for (var group = groups[j], n = group.length, node, i = 0; i < n; ++i) {
|
|---|
| 11 | if (node = group[i]) {
|
|---|
| 12 | var inherit = get(node, id0);
|
|---|
| 13 | schedule(node, name, id1, i, group, {
|
|---|
| 14 | time: inherit.time + inherit.delay + inherit.duration,
|
|---|
| 15 | delay: 0,
|
|---|
| 16 | duration: inherit.duration,
|
|---|
| 17 | ease: inherit.ease
|
|---|
| 18 | });
|
|---|
| 19 | }
|
|---|
| 20 | }
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | return new Transition(groups, this._parents, name, id1);
|
|---|
| 24 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.