diff --git a/js/blockfactory.js b/js/blockfactory.js index 653db1cc6..6e8e6d19a 100644 --- a/js/blockfactory.js +++ b/js/blockfactory.js @@ -187,18 +187,17 @@ class SVG { /** * @public - * @param {number} w - * @param {number} h - * @param {number} w2 - * @param {number} h2 + * @param {number} w - width + * @param {number} h - height + * @param {number} w2 - width2 + * @param {number} h2 - height2 * @returns {void} */ setExpand(w, h, w2, h2) { - // TODO: make this an array - this._expandX = w; - this._expandY = h; - this._expandX2 = w2; - this._expandY2 = h2; + // Store expansion dimensions as array internally + this._expandDimensions = [w, h, w2, h2]; + // Keep individual properties in sync for backward compatibility + [this._expandX, this._expandY, this._expandX2, this._expandY2] = this._expandDimensions; } /**