Minor refactoring and fixes

This commit is contained in:
barsdeveloper
2022-12-26 14:10:25 +01:00
parent 3df33bfe05
commit a1ae7799a1
30 changed files with 651 additions and 536 deletions

View File

@@ -24,11 +24,15 @@ export default class Copy extends IInput {
window.removeEventListener("copy", this.#copyHandler)
}
copied() {
const value = this.blueprint
getSerializedText() {
return this.blueprint
.getNodes(true)
.map(node => Copy.#serializer.serialize(node.entity, false))
.join("")
}
copied() {
const value = this.getSerializedText()
navigator.clipboard.writeText(value)
}
}