fix bug
This commit is contained in:
parent
52b773d8d5
commit
8aae9bf462
|
|
@ -23,6 +23,8 @@ const styles = css`
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
cursor: move;
|
cursor: move;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
transform-origin: 0 0;
|
transform-origin: 0 0;
|
||||||
|
|
@ -270,6 +272,7 @@ export class FolkShape extends HTMLElement {
|
||||||
this.width = Number(this.getAttribute('width')) || 'auto';
|
this.width = Number(this.getAttribute('width')) || 'auto';
|
||||||
this.height = Number(this.getAttribute('height')) || 'auto';
|
this.height = Number(this.getAttribute('height')) || 'auto';
|
||||||
this.rotation = (Number(this.getAttribute('rotation')) || 0) * (Math.PI / 180);
|
this.rotation = (Number(this.getAttribute('rotation')) || 0) * (Math.PI / 180);
|
||||||
|
this.#previousRect = new TransformDOMRect(this.#rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
#isConnected = false;
|
#isConnected = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue