Explorar el Código

auto commit

master
jfinn hace 3 años
padre
commit
4750f6a27d
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6
    0
      src/actions/actionCanvas.tsx

+ 6
- 0
src/actions/actionCanvas.tsx Ver fichero

206
   bounds: [number, number, number, number],
206
   bounds: [number, number, number, number],
207
   viewportDimensions: { width: number; height: number },
207
   viewportDimensions: { width: number; height: number },
208
 ) => {
208
 ) => {
209
+  // const _ZOOM_STEP
210
+  var _ZOOM_STEP = ZOOM_STEP
211
+  if (window?.glob_dev_fns?.get_zoom_step){
212
+    _ZOOM_STEP=window.glob_dev_fns.get_zoom_step()
213
+  }
214
+
209
   const [x1, y1, x2, y2] = bounds;
215
   const [x1, y1, x2, y2] = bounds;
210
   const commonBoundsWidth = x2 - x1;
216
   const commonBoundsWidth = x2 - x1;
211
   const zoomValueForWidth = viewportDimensions.width / commonBoundsWidth;
217
   const zoomValueForWidth = viewportDimensions.width / commonBoundsWidth;

Loading…
Cancelar
Guardar