Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/events/states/SelectionState.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export default class SelectionState extends State {
* @param {PIXI.Point} p1 - The starting point of the drag.
* @param {PIXI.Point} p2 - The current pointer position.
*/

#drawSelectionBox(p1, p2) {
if (!p1 || !p2) return;

Expand Down
4 changes: 3 additions & 1 deletion src/transformer/Transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class Transformer extends Container {
* @private
* @type {WireframeStyle}
*/
_wireframeStyle = DEFAULT_WIREFRAME_STYLE;
_wireframeStyle = {};

/**
* A reference to the viewport, obtained when this container is added to the stage.
Expand All @@ -95,6 +95,7 @@ export default class Transformer extends Container {
if (isValidationError(options)) throw options;

this.#wireframe = this.addChild(new Wireframe({ label: 'wireframe' }));
this.wireframeStyle = DEFAULT_WIREFRAME_STYLE;
this.onRender = this.#refresh.bind(this);
for (const key in options) {
if (key === 'wireframeStyle') {
Expand Down Expand Up @@ -150,6 +151,7 @@ export default class Transformer extends Container {
set elements(value) {
this._elements = value ? (Array.isArray(value) ? value : [value]) : [];
this.update();
this.emit('update_elements');
}

/**
Expand Down