fix: make history local to a given excalidraw instance (#3481)

* fix: make history local to a given excalidraw instance

* changelog

* Update src/packages/excalidraw/CHANGELOG.md
This commit is contained in:
Aakansha Doshi 2021-04-24 18:21:02 +05:30 committed by GitHub
parent 891ac82447
commit d3106495b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 33 additions and 411 deletions

View file

@ -10,7 +10,7 @@ import { getElementAbsoluteCoords } from ".";
import { getElementPointsCoords } from "./bounds";
import { Point, AppState } from "../types";
import { mutateElement } from "./mutateElement";
import { SceneHistory } from "../history";
import History from "../history";
import Scene from "../scene/Scene";
import {
@ -167,7 +167,7 @@ export class LinearElementEditor {
event: React.PointerEvent<HTMLCanvasElement>,
appState: AppState,
setState: React.Component<any, AppState>["setState"],
history: SceneHistory,
history: History,
scenePointer: { x: number; y: number },
): {
didAddPoint: boolean;