mirror of
				https://github.com/excalidraw/excalidraw.git
				synced 2025-10-31 19:04:35 +01:00 
			
		
		
		
	debug
This commit is contained in:
		| @@ -1361,10 +1361,10 @@ class App extends React.Component<AppProps, AppState> { | |||||||
|       document.querySelector(".excalidraw")!, |       document.querySelector(".excalidraw")!, | ||||||
|     ).getPropertyValue("--color-selection"); |     ).getPropertyValue("--color-selection"); | ||||||
|  |  | ||||||
|     const now = Date.now(); |     //const now = Date.now(); | ||||||
|     if (!this.state.shouldCacheIgnoreZoom) { |     //if (!this.state.shouldCacheIgnoreZoom) { | ||||||
|       console.log(`renderScene`, now); |     //  console.log(`renderScene`, now); | ||||||
|     } |     //} | ||||||
|     renderScene( |     renderScene( | ||||||
|       { |       { | ||||||
|         elements: renderingElements, |         elements: renderingElements, | ||||||
| @@ -1402,9 +1402,9 @@ class App extends React.Component<AppProps, AppState> { | |||||||
|             this.setState({ scrolledOutside }); |             this.setState({ scrolledOutside }); | ||||||
|           } |           } | ||||||
|           this.scheduleImageRefresh(); |           this.scheduleImageRefresh(); | ||||||
|           if (!this.state.shouldCacheIgnoreZoom) { |           //if (!this.state.shouldCacheIgnoreZoom) { | ||||||
|             setTimeout(() => console.log(`after renderScene`, now)); |           //  setTimeout(() => console.log(`after renderScene`, now)); | ||||||
|           } |           //} | ||||||
|         }, |         }, | ||||||
|       }, |       }, | ||||||
|       true || |       true || | ||||||
|   | |||||||
| @@ -140,12 +140,12 @@ export const throttleRAF = <T extends any[]>( | |||||||
|   const scheduleFunc = (args: T) => { |   const scheduleFunc = (args: T) => { | ||||||
|     timerId = window.requestAnimationFrame(() => { |     timerId = window.requestAnimationFrame(() => { | ||||||
|       timerId = null; |       timerId = null; | ||||||
|       console.log("start render in animation frame"); |       //console.log("start render in animation frame"); | ||||||
|       fn(...args); |       fn(...args); | ||||||
|       console.log("render done in animation frame"); |       //console.log("render done in animation frame"); | ||||||
|       lastArgs = null; |       lastArgs = null; | ||||||
|       if (lastArgsTrailing) { |       if (lastArgsTrailing) { | ||||||
|         console.log("last args trailing", lastArgsTrailing); |         //console.log("last args trailing", lastArgsTrailing); | ||||||
|         lastArgs = lastArgsTrailing; |         lastArgs = lastArgsTrailing; | ||||||
|         lastArgsTrailing = null; |         lastArgsTrailing = null; | ||||||
|         scheduleFunc(lastArgs); |         scheduleFunc(lastArgs); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 zsviczian
					zsviczian