]> git.sven.stormbind.net Git - sven/vym.git/blobdiff - macros/slideeditor-snapshot.vys
New upstream version 2.9.22
[sven/vym.git] / macros / slideeditor-snapshot.vys
index 0aec4c3f24daa2214170a36e6d46554579e780d8..80ba1027dfdd573173a22735f10db9e2cb5618da 100644 (file)
@@ -1,5 +1,6 @@
-# Template for taking snapshots in slideeditor
+// Template for taking snapshots in slideeditor
 
-setMapZoom(CURRENT_ZOOM);
-setMapRotation(CURRENT_ANGLE);
-centerOnID(CURRENT_ID);
+map = vym.currentMap();
+map.setMapZoom(CURRENT_ZOOM);
+map.setMapRotation(CURRENT_ANGLE);
+map.centerOnID(CURRENT_ID);