kopia lustrzana https://github.com/Tldraw/Tldraw
Undo sort, seems it broke a bunch of tests.
rodzic
84b7cdef9c
commit
6405040d7f
|
@ -1478,7 +1478,7 @@ export class Editor extends EventEmitter<TLEventMap> {
|
|||
historyOptions?: TLCommandHistoryOptions
|
||||
): this {
|
||||
const ids = shapes.map((shape) => (typeof shape === 'string' ? shape : shape.id))
|
||||
this._setSelectedShapes(ids.sort(), historyOptions)
|
||||
this._setSelectedShapes(ids, historyOptions)
|
||||
return this
|
||||
}
|
||||
|
||||
|
|
|
@ -180,7 +180,7 @@ export class Brushing extends StateNode {
|
|||
}
|
||||
|
||||
this.editor.updateInstanceState({ brush: { ...this.brush.toJson() } })
|
||||
this.editor.setSelectedShapes(Array.from(results), { squashing: true })
|
||||
this.editor.setSelectedShapes(Array.from(results).sort(), { squashing: true })
|
||||
}
|
||||
|
||||
override onInterrupt: TLInterruptEvent = () => {
|
||||
|
|
Ładowanie…
Reference in New Issue