|
@@ -210,13 +210,12 @@ export const updateTextElement = (
|
|
export const newLinearElement = (
|
|
export const newLinearElement = (
|
|
opts: {
|
|
opts: {
|
|
type: ExcalidrawLinearElement["type"];
|
|
type: ExcalidrawLinearElement["type"];
|
|
- lastCommittedPoint?: ExcalidrawLinearElement["lastCommittedPoint"];
|
|
|
|
} & ElementConstructorOpts,
|
|
} & ElementConstructorOpts,
|
|
): NonDeleted<ExcalidrawLinearElement> => {
|
|
): NonDeleted<ExcalidrawLinearElement> => {
|
|
return {
|
|
return {
|
|
..._newElementBase<ExcalidrawLinearElement>(opts.type, opts),
|
|
..._newElementBase<ExcalidrawLinearElement>(opts.type, opts),
|
|
points: [],
|
|
points: [],
|
|
- lastCommittedPoint: opts.lastCommittedPoint || null,
|
|
|
|
|
|
+ lastCommittedPoint: null,
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
|