Browse Source

auto commit

master
jfinn 3 years ago
parent
commit
3009ebbea1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/actions/actionCanvas.tsx

+ 2
- 2
src/actions/actionCanvas.tsx View File

74
 export const actionZoomIn = register({
74
 export const actionZoomIn = register({
75
   name: "zoomIn",
75
   name: "zoomIn",
76
   perform: (_elements, appState) => {
76
   perform: (_elements, appState) => {
77
-    console.log("xdev zoom_in")
78
     /*
77
     /*
79
     var z = {
78
     var z = {
80
       ZOOM_STEP,
79
       ZOOM_STEP,
85
     }
84
     }
86
     var _ZOOM_STEP
85
     var _ZOOM_STEP
87
     */
86
     */
87
+    console.log("xdev perform_zoom_in",{ left: appState.offsetLeft, top: appState.offsetTop })
88
 
88
 
89
     const zoom = getNewZoom(
89
     const zoom = getNewZoom(
90
       getNormalizedZoom(appState.zoom.value + ZOOM_STEP),
90
       getNormalizedZoom(appState.zoom.value + ZOOM_STEP),
92
       { left: appState.offsetLeft, top: appState.offsetTop },
92
       { left: appState.offsetLeft, top: appState.offsetTop },
93
       { x: appState.width / 2, y: appState.height / 2 },
93
       { x: appState.width / 2, y: appState.height / 2 },
94
     );
94
     );
95
-    console.trace("perform_zoom_in")
95
+    // console.trace("perform_zoom_in")
96
     // window.tmp_hooks ? tmp_hooks.ac2 = {NormalizedZoomValue,AppState} : 0
96
     // window.tmp_hooks ? tmp_hooks.ac2 = {NormalizedZoomValue,AppState} : 0
97
     window.tmp_hooks ? tmp_hooks.ac2 = {NormalizedZoomValue} : 0
97
     window.tmp_hooks ? tmp_hooks.ac2 = {NormalizedZoomValue} : 0
98
     window.tmp_hooks ? tmp_hooks.zoomin2 = {zoom,_elements, appState,args:[...arguments],that:this} : 0
98
     window.tmp_hooks ? tmp_hooks.zoomin2 = {zoom,_elements, appState,args:[...arguments],that:this} : 0

Loading…
Cancel
Save