Study編 Action一覧
記事作成日: 2023-11-20
Actionに関する勉強メモです。
Actionとは、コマンドみたいなものです。copy,paste,open,importのようなものがあり自分でactionをアプリに登録してメニュー、コンテキストメニュー、キーボードショートカット、各種イベントハンドラなどから使用することができます。draw.ioに登録してあるactionもすべて使えてしまうので使いこなせればとても便利です。
Action一覧
Action name | Label | Shortcut key |
---|---|---|
new | New... | |
open | Open... | |
smartFit | Fit Window / Reset View | Enter |
keyPressEnter | keyPressEnter | |
import | Import... | |
save | Save | Ctrl+S |
saveAs | Save As... | Ctrl+Shift+S |
export | Export... | |
editDiagram | Edit Diagram... | |
pageSetup | Page Setup... | |
Print... | Ctrl+P | |
preview | Preview | |
undo | Undo | Ctrl+Z |
redo | Redo | Ctrl+Y |
cut | Cut | Ctrl+X |
copy | Copy | Ctrl+C |
paste | Paste | Ctrl+V |
pasteHere | Paste here | |
swap | Swap | |
copySize | Copy Size | Alt+Shift+F |
pasteSize | Paste Size | Alt+Shift+V |
copyData | Copy Data | Alt+Shift+B |
pasteData | Paste Data | Alt+Shift+E |
delete | Delete | Delete |
deleteAll | deleteAll | |
deleteLabels | deleteLabels | Ctrl+Delete |
duplicate | Duplicate | Ctrl+D |
mergeCells | Merge | |
unmergeCells | Unmerge | |
turn | Rotate shape only by 90° / Reverse | Ctrl+R |
selectConnections | Select Edges | |
selectVertices | Select Vertices | Ctrl+Shift+I |
selectEdges | Select Edges | Ctrl+Shift+E |
selectAll | Select All | Ctrl+A |
selectNone | Select None | Ctrl+Shift+A |
lockUnlock | Lock/Unlock | Ctrl+L |
home | Home | Shift+Home |
exitGroup | Exit Group | Ctrl+Shift+Home |
enterGroup | Enter Group | Ctrl+Shift+End |
collapse | Collapse | Ctrl+Home |
expand | Expand | Ctrl+End |
toFront | To Front | Ctrl+Shift+F |
toBack | To Back | Ctrl+Shift+B |
bringForward | Bring Forward | |
sendBackward | Send Backward | |
group | Group | Ctrl+G |
ungroup | Ungroup | Ctrl+Shift+U |
removeFromGroup | Remove from Group | |
edit | Edit | F2/Enter |
editData | Edit Data... | Ctrl+M |
editTooltip | Edit Tooltip... | Alt+Shift+T |
openLink | Open Link | |
editLink | Edit Link... | Alt+Shift+L |
insertImage | Image... | |
editImage | Edit Image... | |
insertLink | Link... | L |
link | Link... | |
autosize | Autosize | Ctrl+Shift+Y |
snapToGrid | Snap to Grid | |
formattedText | Formatted Text | |
wordWrap | Word Wrap | |
rotation | Rotation | |
resetView | Reset View | Enter/Home |
zoomIn | Zoom In | Ctrl + (Numpad) / Alt+Mousewheel |
zoomOut | Zoom Out | Ctrl - (Numpad) / Alt+Mousewheel |
fitWindow | Fit Window | Ctrl+Shift+H |
fitPage | Fit Page | Ctrl+J |
fitTwoPages | Two Pages | Ctrl+Shift+J |
fitPageWidth | Fit Page Width | |
customZoom | Custom... | Ctrl+0 |
pageScale | Page Scale... | |
grid | Grid | Ctrl+Shift+G |
guides | Guides | |
tooltips | Tooltips | |
collapseExpand | Collapse/Expand | |
pageView | Page View | |
connectionArrows | Connection Arrows | Alt+Shift+A |
connectionPoints | Connection Points | Alt+Shift+O |
copyConnect | Copy on connect | |
autosave | Autosave | |
help | Help | |
about | v22.1.2 | |
bold | Bold | Ctrl+B |
italic | Italic | Ctrl+I |
underline | Underline | Ctrl+U |
fontColor | Font Color... | |
strokeColor | Line Color... | |
fillColor | Fill Color... | |
gradientColor | Color... | |
backgroundColor | Background Color... | |
borderColor | Border Color... | |
removeFormat | Clear Formatting | |
vertical | Vertical | |
shadow | Shadow | |
solid | Solid | |
dashed | Dashed | |
dotted | Dotted | |
sharp | Sharp | |
rounded | Rounded | |
toggleRounded | toggleRounded | |
curved | Curved | |
collapsible | Collapsible | |
editStyle | Edit Style... | Ctrl+E |
setAsDefaultStyle | Set as Default Style | Ctrl+Shift+D |
clearDefaultStyle | Clear Default Style | Ctrl+Shift+R |
addWaypoint | Add Waypoint | |
removeWaypoint | Remove Waypoint | |
clearWaypoints | Clear Waypoints | Alt+Shift+R |
subscript | Subscript | Ctrl+, |
superscript | Superscript | Ctrl+. |
decreaseFontSize | decreaseFontSize | Ctrl+Shift + (Numpad) |
increaseFontSize | increaseFontSize | Ctrl+Shift - (Numpad) |
image | Image... | |
crop | Crop... | |
layers | Layers | Ctrl+Shift+L |
format | Format | Ctrl+Shift+P |
outline | Outline | Ctrl+Shift+O |
editConnectionPoints | Edit Connection Points... | Alt+Shift+Q |
insertTemplate | Template... | |
shareCursor | Share Mouse Cursor | |
showRemoteCursors | Show Remote Mouse Cursors | |
points | Points | |
inches | Inches | |
millimeters | Millimeters | |
meters | Meters | |
pageTabs | Page Tabs | |
ruler | Ruler | |
fullscreen | Fullscreen | |
lightMode | Light | |
darkMode | Dark | |
autoMode | Automatic | |
toggleSimpleMode | Simple | |
toggleSketchMode | Sketch | |
properties | Properties... | |
insertFreehand | Freehand... | X |
exportXml | XML... | |
exportUrl | URL... | |
exportHtml | HTML... | |
exportPdf | PDF... | |
close | Close | |
editShape | Edit Shape... | |
revisionHistory | Revision History... | |
createRevision | Create Revision | Ctrl+S |
synchronize | Synchronize | Alt+Shift+S |
upload | Upload... | |
mathematicalTypesetting | Mathematical Typesetting | |
showStartScreen | Show Start Screen | |
editGeometry | Edit Geometry... | Ctrl+Shift+M |
copyStyle | Copy Style | Alt+C |
pasteStyle | Paste Style | Alt+V |
exportSvg | SVG... | |
exportPng | PNG... | |
exportJpg | JPEG... | |
exportWebp | WebP... | |
copyAsImage | Copy as Image | Ctrl+Alt+X |
shadowVisible | Shadow | |
support | Support... | |
exportOptionsDisabled | Export options disabled... | |
keyboardShortcuts | Keyboard Shortcuts... | |
feedback | Feedback... | |
quickStart | Quick Start Video... | |
tags | Tags | Ctrl+K |
findReplace | Find/Replace | Ctrl+F |
exportVsdx | VSDX (beta)... | |
configuration | Configuration... | |
runLayout | runLayout | |
convertDarkModeColors | Dark Mode Colors... | |
languageCode | Language Code... | |
shapes | More Shapes... | |
createShape | Shape... | |
embedHtml | HTML... | |
liveImage | Live image... | |
embedImage | Image... | |
embedSvg | SVG... | |
embedIframe | IFrame... | |
embedNotion | Notion... | |
publishLink | Link... | |
microsoftOffice | Microsoft Office... | |
googleDocs | Google Docs... | |
googleSlides | Google Slides... | |
googleSheets | Google Sheets... | |
googleSites | Google Sites... | |
scratchpad | Scratchpad | |
plugins | Plugins... | |
improveContrast | Improve Contrast | |
search | Search Shapes | |
addToScratchpad | Add to Scratchpad | |
accounts | Accounts... | |
rename | Rename... | |
makeCopy | Make a Copy... | |
openFolder | Open Folder... | |
openFile | Open File... | |
moveToFolder | Move to Folder... | |
useOffline | Use Offline... | |
share | Share... | |
insertText | Text | A |
insertRectangle | Rectangle | D |
insertNote | Note | S |
insertEllipse | Ellipse | F |
insertRhombus | Rhombus | R |
insertEdge | Line | C |
toggleShapes | Shapes | Ctrl+Shift+K |
comments | Comments | |
previousPage | Previous Page | |
nextPage | Next Page | |
selectChildren | Select Children | Alt+Shift+C |
selectDescendants | Select Descendants | Alt+Shift+X |
selectParent | Select Parent | Alt+Shift+P |
selectSiblings | Select Siblings | Alt+Shift+S |
以下はmxGraphのApiでありdraw.io(diagrams.net)とは異なるかもしれませんが参考までに載せておきます。
Actionの登録
指定されたアクション名を指定された関数にバインドします。
パラメーター
actionname | 追加するアクションの名前を指定する文字列。 |
funct | 新しいアクションを実装する関数。関数の最初の引数は、関数が使用されるエディターであり、2 番目の引数は関数が操作するセルです。 |