G.controlPositionX = function () {
return this.currentControl[0];
};
G.controlPositionY = function () {
return this.currentControl[1];
};
G.controlPosition = function () {
return [].concat(this.currentControl);
};
S.controlX = function (coord) {
if (coord != null) {
this.control[0] = coord;
this.updateDirty();
this.dirtyControl = true;
this.currentControlPathData = false;
}
};
S.controlY = function (coord) {
if (coord != null) {
this.control[1] = coord;
this.updateDirty();
this.dirtyControl = true;
this.currentControlPathData = false;
}
};
S.control = function (x, y) {
this.setCoordinateHelper(CONTROL, x, y);
this.updateDirty();
this.dirtyControl = true;
this.currentControlPathData = false;
};
D.controlX = function (coord) {
const c = this.control;
c[0] = addStrings(c[0], coord);
this.updateDirty();
this.dirtyControl = true;
this.currentControlPathData = false;
};
D.controlY = function (coord) {
const c = this.control;
c[1] = addStrings(c[1], coord);
this.updateDirty();
this.dirtyControl = true;
this.currentControlPathData = false;
};
D.control = function (x, y) {
this.setDeltaCoordinateHelper(CONTROL, x, y);
this.updateDirty();
this.dirtyControl = true;
this.currentControlPathData = false;
};