feat(创建编辑): 支持文字字号与颜色调整,完善编辑交互
build.yaml / build (push) Successful in 36s

This commit is contained in:
xiaoqidun committed 2026-09-15 16:13:02 +08:00
1 parent 249dacb278
commit 1c20287807
6 files changed
+181 -35

No files matched your search

+6 -5
View File
@@ -119,13 +119,14 @@ export class CanvasEditor {
return;
}
const node = event.target.closest(".edit-object");
if (!node) {
this.select(null);
if (node) {
event.preventDefault();
}
this.viewer.focus({ preventScroll: true });
this.select(node ? this.nodes.get(node) : null);
if (!node || this.options.busy()) {
return;
}
event.preventDefault();
this.select(this.nodes.get(node));
this.viewer.focus({ preventScroll: true });
const item = this.selected;
this.drag = {
item, pointerID: event.pointerId, corner: event.target.dataset.corner || "",