edododraw 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/chunks/{EdodoDraw-DGkcHuA6.js → EdodoDraw-C3Yd1I9B.js} +6 -3
- package/dist-lib/chunks/{EdodoDraw-DGkcHuA6.js.map → EdodoDraw-C3Yd1I9B.js.map} +1 -1
- package/dist-lib/index.js +1 -1
- package/dist-lib/lib/EdodoDraw.d.ts.map +1 -1
- package/dist-lib/llms-full.txt +67 -5
- package/dist-lib/react.js +1 -1
- package/package.json +1 -1
|
@@ -5858,6 +5858,8 @@ class EdodoDraw {
|
|
|
5858
5858
|
this.renderer.measure();
|
|
5859
5859
|
this.renderer.applyCamera(this.renderer.getCamera());
|
|
5860
5860
|
this.updateGrid(this.controller.current);
|
|
5861
|
+
this.edit.render();
|
|
5862
|
+
this.live.render();
|
|
5861
5863
|
}
|
|
5862
5864
|
destroy() {
|
|
5863
5865
|
for (const fn of this.cleanup) fn();
|
|
@@ -5948,8 +5950,9 @@ class EdodoDraw {
|
|
|
5948
5950
|
this.edit.dblclick(this.renderer.screenToWorld(this.localPoint(e)));
|
|
5949
5951
|
});
|
|
5950
5952
|
const onKey = (e) => {
|
|
5951
|
-
const
|
|
5952
|
-
|
|
5953
|
+
const t = e.target;
|
|
5954
|
+
const tag = t?.tagName;
|
|
5955
|
+
if (tag === "INPUT" || tag === "TEXTAREA" || tag === "SELECT" || t?.isContentEditable || t?.closest?.("[contenteditable='true'], .cm-editor")) return;
|
|
5953
5956
|
if (this.mode === "edit" && this.edit.handleKey(e)) {
|
|
5954
5957
|
e.preventDefault();
|
|
5955
5958
|
return;
|
|
@@ -6116,4 +6119,4 @@ export {
|
|
|
6116
6119
|
deleteElements as y,
|
|
6117
6120
|
dist as z
|
|
6118
6121
|
};
|
|
6119
|
-
//# sourceMappingURL=EdodoDraw-
|
|
6122
|
+
//# sourceMappingURL=EdodoDraw-C3Yd1I9B.js.map
|