| 12345678910111213141516171819202122232425 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.FadeIn = void 0;
- const utils_1 = require("./utils");
- /**
- * Transform mark from transparent to solid.
- */
- const FadeIn = (options) => {
- return (from, to, value, coordinate, defaults) => {
- const [shape] = from;
- const { fillOpacity = 1, strokeOpacity = 1, opacity = 1 } = shape.style;
- const keyframes = [
- { fillOpacity: 0, strokeOpacity: 0, opacity: 0 },
- {
- fillOpacity,
- strokeOpacity,
- opacity,
- },
- ];
- return shape.animate(keyframes, (0, utils_1.effectTiming)(defaults, value, options));
- };
- };
- exports.FadeIn = FadeIn;
- exports.FadeIn.props = {};
- //# sourceMappingURL=fadeIn.js.map
|