UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

21 lines 693 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PathIn = void 0; /** * Transform mark from transparent to solid. */ const PathIn = (options) => { return (from, _, defaults) => { var _a, _b; const [shape] = from; const length = ((_b = (_a = shape).getTotalLength) === null || _b === void 0 ? void 0 : _b.call(_a)) || 0; const keyframes = [ { lineDash: [0, length] }, { lineDash: [length, 0] }, ]; return shape.animate(keyframes, Object.assign(Object.assign({}, defaults), options)); }; }; exports.PathIn = PathIn; exports.PathIn.props = {}; //# sourceMappingURL=pathIn.js.map