checkpoints
This commit is contained in:
parent
bc687fea1b
commit
b314b939b2
@ -410,9 +410,7 @@ export const _renderScene = ({
|
|||||||
let i = 0;
|
let i = 0;
|
||||||
visibleElements.forEach((element) => {
|
visibleElements.forEach((element) => {
|
||||||
try {
|
try {
|
||||||
if(!appState.shouldCacheIgnoreZoom) console.log(`element ${++i}: ${element} of ${visibleElements.length}`);
|
|
||||||
renderElement(element, rc, context, renderConfig, appState);
|
renderElement(element, rc, context, renderConfig, appState);
|
||||||
if(!appState.shouldCacheIgnoreZoom) console.log(`rendered`);
|
|
||||||
// Getting the element using LinearElementEditor during collab mismatches version - being one head of visible elements due to
|
// Getting the element using LinearElementEditor during collab mismatches version - being one head of visible elements due to
|
||||||
// ShapeCache returns empty hence making sure that we get the
|
// ShapeCache returns empty hence making sure that we get the
|
||||||
// correct element from visible elements
|
// correct element from visible elements
|
||||||
@ -477,7 +475,7 @@ export const _renderScene = ({
|
|||||||
locallySelectedElements[0] as NonDeleted<ExcalidrawLinearElement>,
|
locallySelectedElements[0] as NonDeleted<ExcalidrawLinearElement>,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if(!appState.shouldCacheIgnoreZoom) console.log(`checkpoint 1`);
|
||||||
if (
|
if (
|
||||||
appState.selectedLinearElement &&
|
appState.selectedLinearElement &&
|
||||||
appState.selectedLinearElement.hoverPointIndex >= 0
|
appState.selectedLinearElement.hoverPointIndex >= 0
|
||||||
@ -639,10 +637,10 @@ export const _renderScene = ({
|
|||||||
}
|
}
|
||||||
context.restore();
|
context.restore();
|
||||||
}
|
}
|
||||||
|
if(!appState.shouldCacheIgnoreZoom) console.log(`checkpoint 2`);
|
||||||
// Reset zoom
|
// Reset zoom
|
||||||
context.restore();
|
context.restore();
|
||||||
|
if(!appState.shouldCacheIgnoreZoom) console.log(`checkpoint 3`);
|
||||||
// Paint remote pointers
|
// Paint remote pointers
|
||||||
for (const clientId in renderConfig.remotePointerViewportCoords) {
|
for (const clientId in renderConfig.remotePointerViewportCoords) {
|
||||||
let { x, y } = renderConfig.remotePointerViewportCoords[clientId];
|
let { x, y } = renderConfig.remotePointerViewportCoords[clientId];
|
||||||
@ -790,8 +788,9 @@ export const _renderScene = ({
|
|||||||
});
|
});
|
||||||
context.restore();
|
context.restore();
|
||||||
}
|
}
|
||||||
|
if(!appState.shouldCacheIgnoreZoom) console.log(`checkpoint 4`);
|
||||||
context.restore();
|
context.restore();
|
||||||
|
if(!appState.shouldCacheIgnoreZoom) console.log(`checkpoint 5`);
|
||||||
return { atLeastOneVisibleElement: visibleElements.length > 0, scrollBars };
|
return { atLeastOneVisibleElement: visibleElements.length > 0, scrollBars };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user