UNPKG

606 BJavaScriptView Raw
1import { __decorate } from "tslib";
2import { singleton } from 'mana-syringe';
3import { parsePoints } from '../parser';
4
5var CSSPropertyPoints =
6/** @class */
7function () {
8 function CSSPropertyPoints() {
9 this.parser = parsePoints;
10 }
11 /**
12 * update local position
13 */
14
15
16 CSSPropertyPoints.prototype.postProcessor = function (object) {
17 var _a = object.parsedStyle,
18 defX = _a.defX,
19 defY = _a.defY;
20 object.setLocalPosition(defX, defY);
21 };
22
23 CSSPropertyPoints = __decorate([singleton()], CSSPropertyPoints);
24 return CSSPropertyPoints;
25}();
26
27export { CSSPropertyPoints };
\No newline at end of file