mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-08 10:07:04 +02:00
Compare commits
4 Commits
v0.16.2
...
zsviczian-
Author | SHA1 | Date | |
---|---|---|---|
![]() |
452cceae40 | ||
![]() |
4765f5536e | ||
![]() |
556175558a | ||
![]() |
4db73a7f95 |
@@ -1086,7 +1086,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
cursor: CURSOR_TYPE.MOVE,
|
cursor: CURSOR_TYPE.MOVE,
|
||||||
pointerEvents: this.state.viewModeEnabled
|
pointerEvents: this.state.viewModeEnabled
|
||||||
? POINTER_EVENTS.disabled
|
? POINTER_EVENTS.disabled
|
||||||
: POINTER_EVENTS.inheritFromUI,
|
: POINTER_EVENTS.enabled,
|
||||||
}}
|
}}
|
||||||
onPointerDown={(event) => this.handleCanvasPointerDown(event)}
|
onPointerDown={(event) => this.handleCanvasPointerDown(event)}
|
||||||
onWheel={(event) => this.handleWheel(event)}
|
onWheel={(event) => this.handleWheel(event)}
|
||||||
@@ -6400,9 +6400,11 @@ class App extends React.Component<AppProps, AppState> {
|
|||||||
isInvisiblySmallElement(draggingElement)
|
isInvisiblySmallElement(draggingElement)
|
||||||
) {
|
) {
|
||||||
// remove invisible element which was added in onPointerDown
|
// remove invisible element which was added in onPointerDown
|
||||||
this.scene.replaceAllElements(
|
if (draggingElement.type !== "selection") {
|
||||||
this.scene.getElementsIncludingDeleted().slice(0, -1),
|
this.scene.replaceAllElements(
|
||||||
);
|
this.scene.getElementsIncludingDeleted().slice(0, -1),
|
||||||
|
);
|
||||||
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
draggingElement: null,
|
draggingElement: null,
|
||||||
});
|
});
|
||||||
|
@@ -11,6 +11,22 @@ The change should be grouped under one of the below section and must contain PR
|
|||||||
Please add the latest change on the top under the correct section.
|
Please add the latest change on the top under the correct section.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
## 0.16.1 (2023-09-21)
|
||||||
|
|
||||||
|
## Excalidraw Library
|
||||||
|
|
||||||
|
**_This section lists the updates made to the excalidraw library and will not affect the integration._**
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
- More eye-droper fixes [#7019](https://github.com/excalidraw/excalidraw/pull/7019)
|
||||||
|
|
||||||
|
### Refactor
|
||||||
|
|
||||||
|
- Move excalidraw-app outside src [#6987](https://github.com/excalidraw/excalidraw/pull/6987)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## 0.16.0 (2023-09-19)
|
## 0.16.0 (2023-09-19)
|
||||||
|
|
||||||
- Support creating containers, linear elements, text containers, labelled arrows and arrow bindings programatically [#6546](https://github.com/excalidraw/excalidraw/pull/6546)
|
- Support creating containers, linear elements, text containers, labelled arrows and arrow bindings programatically [#6546](https://github.com/excalidraw/excalidraw/pull/6546)
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@excalidraw/excalidraw",
|
"name": "@excalidraw/excalidraw",
|
||||||
"version": "0.16.0",
|
"version": "0.16.1",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"types": "types/packages/excalidraw/index.d.ts",
|
"types": "types/packages/excalidraw/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
|
@@ -22,5 +22,12 @@ const polyfill = () => {
|
|||||||
configurable: true,
|
configurable: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Element.prototype.replaceChildren) {
|
||||||
|
Element.prototype.replaceChildren = function (...nodes) {
|
||||||
|
this.innerHTML = "";
|
||||||
|
this.append(...nodes);
|
||||||
|
};
|
||||||
|
}
|
||||||
};
|
};
|
||||||
export default polyfill;
|
export default polyfill;
|
||||||
|
Reference in New Issue
Block a user