2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2015-04-15 02:48:21 +03:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
2017-12-15 23:55:55 +03:00
|
|
|
* https://drafts.csswg.org/web-animations/#animationeffectreadonly
|
2015-04-15 02:48:21 +03:00
|
|
|
*
|
|
|
|
* Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
|
|
* liability, trademark and document use rules apply.
|
|
|
|
*/
|
|
|
|
|
2015-10-13 23:17:00 +03:00
|
|
|
enum FillMode {
|
|
|
|
"none",
|
|
|
|
"forwards",
|
|
|
|
"backwards",
|
|
|
|
"both",
|
|
|
|
"auto"
|
|
|
|
};
|
|
|
|
|
|
|
|
enum PlaybackDirection {
|
|
|
|
"normal",
|
|
|
|
"reverse",
|
|
|
|
"alternate",
|
|
|
|
"alternate-reverse"
|
|
|
|
};
|
|
|
|
|
2018-05-07 06:09:54 +03:00
|
|
|
dictionary EffectTiming {
|
2015-10-13 23:17:00 +03:00
|
|
|
double delay = 0.0;
|
|
|
|
double endDelay = 0.0;
|
|
|
|
FillMode fill = "auto";
|
|
|
|
double iterationStart = 0.0;
|
|
|
|
unrestricted double iterations = 1.0;
|
|
|
|
(unrestricted double or DOMString) duration = "auto";
|
|
|
|
PlaybackDirection direction = "normal";
|
2020-12-17 17:04:35 +03:00
|
|
|
UTF8String easing = "linear";
|
2015-10-13 23:17:00 +03:00
|
|
|
};
|
|
|
|
|
2018-05-07 06:37:11 +03:00
|
|
|
dictionary OptionalEffectTiming {
|
|
|
|
double delay;
|
|
|
|
double endDelay;
|
|
|
|
FillMode fill;
|
|
|
|
double iterationStart;
|
|
|
|
unrestricted double iterations;
|
|
|
|
(unrestricted double or DOMString) duration;
|
|
|
|
PlaybackDirection direction;
|
2020-12-17 17:04:35 +03:00
|
|
|
UTF8String easing;
|
2018-05-07 06:37:11 +03:00
|
|
|
};
|
|
|
|
|
2018-05-07 06:09:54 +03:00
|
|
|
dictionary ComputedEffectTiming : EffectTiming {
|
2015-10-13 23:17:00 +03:00
|
|
|
unrestricted double endTime = 0.0;
|
|
|
|
unrestricted double activeDuration = 0.0;
|
|
|
|
double? localTime = null;
|
2016-04-21 08:34:05 +03:00
|
|
|
double? progress = null;
|
2015-10-13 23:17:00 +03:00
|
|
|
unrestricted double? currentIteration = null;
|
|
|
|
};
|
|
|
|
|
2023-09-20 11:55:50 +03:00
|
|
|
[Exposed=Window]
|
2018-05-07 05:15:16 +03:00
|
|
|
interface AnimationEffect {
|
2018-05-07 06:32:38 +03:00
|
|
|
EffectTiming getTiming();
|
2015-10-13 23:17:00 +03:00
|
|
|
[BinaryName="getComputedTimingAsDict"]
|
2018-05-07 06:09:54 +03:00
|
|
|
ComputedEffectTiming getComputedTiming();
|
2018-05-07 06:37:11 +03:00
|
|
|
[Throws]
|
2022-09-21 10:44:58 +03:00
|
|
|
undefined updateTiming(optional OptionalEffectTiming timing = {});
|
2015-04-15 02:48:21 +03:00
|
|
|
};
|