mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Update renderScene.ts
This commit is contained in:
parent
c7346e3a77
commit
11109fcc62
1 changed files with 4 additions and 2 deletions
|
@ -407,7 +407,9 @@ export const _renderScene = ({
|
|||
|
||||
let editingLinearElement: NonDeleted<ExcalidrawLinearElement> | undefined =
|
||||
undefined;
|
||||
let i = 0;
|
||||
const start = Date.now();
|
||||
const showDebug = !appState.shouldCacheIgnoreZoom && (appState.zoom.value < 0.5);
|
||||
if(showDebug) console.log("start: renderElements");
|
||||
visibleElements.forEach((element) => {
|
||||
try {
|
||||
renderElement(element, rc, context, renderConfig, appState);
|
||||
|
@ -427,7 +429,7 @@ export const _renderScene = ({
|
|||
console.error(error);
|
||||
}
|
||||
});
|
||||
|
||||
if(showDebug) console.log(`finish: renderElements ${Date.now()-start}`);
|
||||
if (editingLinearElement) {
|
||||
renderLinearPointHandles(
|
||||
context,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue