瀏覽代碼

auto commit

master
jfinn 3 年之前
父節點
當前提交
890949b166
共有 1 個文件被更改,包括 35 次插入2 次删除
  1. 35
    2
      src/actions/actionCanvas.tsx

+ 35
- 2
src/actions/actionCanvas.tsx 查看文件

@@ -80,6 +80,9 @@ export const actionZoomIn = register({
80 80
       { left: appState.offsetLeft, top: appState.offsetTop },
81 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 86
     return {
84 87
       appState: {
85 88
         ...appState,
@@ -95,6 +98,9 @@ export const actionZoomIn = register({
95 98
       title={`${t("buttons.zoomIn")} — ${getShortcutKey("CtrlOrCmd++")}`}
96 99
       aria-label={t("buttons.zoomIn")}
97 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 104
         updateData(null);
99 105
       }}
100 106
       size="small"
@@ -130,6 +136,8 @@ export const actionZoomOut = register({
130 136
       title={`${t("buttons.zoomOut")} — ${getShortcutKey("CtrlOrCmd+-")}`}
131 137
       aria-label={t("buttons.zoomOut")}
132 138
       onClick={() => {
139
+        window.tmp_hooks ? tmp_hooks.zoomOut_onclick = {that:this,updateData} : 0
140
+        console.log("xcal_dev ZoomOut:",{that:this,updateData})
133 141
         updateData(null);
134 142
       }}
135 143
       size="small"
@@ -285,5 +293,30 @@ export const actionToggleTheme = register({
285 293
   ),
286 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

Loading…
取消
儲存