kopia lustrzana https://github.com/Tldraw/Tldraw
Revert.
rodzic
c22d224929
commit
d16b305d68
|
@ -34,7 +34,8 @@ export class Pointing extends StateNode {
|
||||||
|
|
||||||
this.editor.mark(this.markId)
|
this.editor.mark(this.markId)
|
||||||
|
|
||||||
this.editor.createShapes<TLBaseBoxShape>([
|
this.editor
|
||||||
|
.createShapes<TLBaseBoxShape>([
|
||||||
{
|
{
|
||||||
id,
|
id,
|
||||||
type: shapeType,
|
type: shapeType,
|
||||||
|
@ -46,7 +47,8 @@ export class Pointing extends StateNode {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
this.editor.select(id)
|
.select(id)
|
||||||
|
|
||||||
this.editor.setCurrentTool('select.resizing', {
|
this.editor.setCurrentTool('select.resizing', {
|
||||||
...info,
|
...info,
|
||||||
target: 'selection',
|
target: 'selection',
|
||||||
|
|
|
@ -107,7 +107,8 @@ export class Pointing extends StateNode {
|
||||||
this.markId = `creating:${id}`
|
this.markId = `creating:${id}`
|
||||||
this.editor.mark(this.markId)
|
this.editor.mark(this.markId)
|
||||||
|
|
||||||
this.editor.createShapes([
|
this.editor
|
||||||
|
.createShapes([
|
||||||
{
|
{
|
||||||
id,
|
id,
|
||||||
type: 'note',
|
type: 'note',
|
||||||
|
@ -115,7 +116,7 @@ export class Pointing extends StateNode {
|
||||||
y: originPagePoint.y,
|
y: originPagePoint.y,
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
this.editor.select(id)
|
.select(id)
|
||||||
|
|
||||||
const shape = this.editor.getShape<TLNoteShape>(id)!
|
const shape = this.editor.getShape<TLNoteShape>(id)!
|
||||||
const bounds = this.editor.getShapeGeometry(shape).bounds
|
const bounds = this.editor.getShapeGeometry(shape).bounds
|
||||||
|
|
Ładowanie…
Reference in New Issue