Bladeren bron

auto commit

master
jfinn 3 jaren geleden
bovenliggende
commit
890949b166
1 gewijzigde bestanden met toevoegingen van 35 en 2 verwijderingen
  1. 35
    2
      src/actions/actionCanvas.tsx

+ 35
- 2
src/actions/actionCanvas.tsx Bestand weergeven

80
       { left: appState.offsetLeft, top: appState.offsetTop },
80
       { left: appState.offsetLeft, top: appState.offsetTop },
81
       { x: appState.width / 2, y: appState.height / 2 },
81
       { x: appState.width / 2, y: appState.height / 2 },
82
     );
82
     );
83
+    console.trace("perform_zoom_in")
84
+    window.tmp_hooks ? tmp_hooks.ac2 = {NormalizedZoomValue,AppState} : 0
85
+    window.tmp_hooks ? tmp_hooks.zoomin2 = {zoom,_elements, appState,args:[...arguments],that:this} : 0
83
     return {
86
     return {
84
       appState: {
87
       appState: {
85
         ...appState,
88
         ...appState,
95
       title={`${t("buttons.zoomIn")} — ${getShortcutKey("CtrlOrCmd++")}`}
98
       title={`${t("buttons.zoomIn")} — ${getShortcutKey("CtrlOrCmd++")}`}
96
       aria-label={t("buttons.zoomIn")}
99
       aria-label={t("buttons.zoomIn")}
97
       onClick={() => {
100
       onClick={() => {
101
+        window.tmp_hooks ? tmp_hooks.zoomIn_onclick = {that:this,updateData} : 0
102
+    window.tmp_hooks ? tmp_hooks.ac3 = {NormalizedZoomValue,AppState} : 0
103
+        console.log("xcal_dev ZoomIn:",{that:this,updateData})
98
         updateData(null);
104
         updateData(null);
99
       }}
105
       }}
100
       size="small"
106
       size="small"
130
       title={`${t("buttons.zoomOut")} — ${getShortcutKey("CtrlOrCmd+-")}`}
136
       title={`${t("buttons.zoomOut")} — ${getShortcutKey("CtrlOrCmd+-")}`}
131
       aria-label={t("buttons.zoomOut")}
137
       aria-label={t("buttons.zoomOut")}
132
       onClick={() => {
138
       onClick={() => {
139
+        window.tmp_hooks ? tmp_hooks.zoomOut_onclick = {that:this,updateData} : 0
140
+        console.log("xcal_dev ZoomOut:",{that:this,updateData})
133
         updateData(null);
141
         updateData(null);
134
       }}
142
       }}
135
       size="small"
143
       size="small"
285
   ),
293
   ),
286
   keyTest: (event) => event.altKey && event.shiftKey && event.code === CODES.D,
294
   keyTest: (event) => event.altKey && event.shiftKey && event.code === CODES.D,
287
 });
295
 });
288
-window.idk_var=1;
289
-window.idk_var2=2;
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+window.tmp_hooks ? tmp_hooks.actionZoomIn = actionZoomIn : 0
305
+window.tmp_hooks ? tmp_hooks.actionZoomOut = actionZoomOut : 0
306
+
307
+window.tmp_hooks ? tmp_hooks.ac = {
308
+// AppState,
309
+getDefaultAppState,
310
+getNormalizedZoom,
311
+centerScrollOn,
312
+getNewZoom,
313
+NormalizedZoomValue,
314
+getShortcutKey,
315
+register,
316
+
317
+
318
+} : 0
319
+// tmp_hooks.ac2
320
+
321
+console.log("?QWERTYUIO")
322
+window.tmp_hooks ? tmp_hooks.ac2 = {}: 0

Laden…
Annuleren
Opslaan