20 changed files with 183 additions and 61 deletions
@ -0,0 +1,31 @@
@@ -0,0 +1,31 @@
|
||||
| Excalidraw | Name | Category | Label | Value | |
||||
| ------------------ | ------ | ---------------------------------- | ----------------------- | --------- | |
||||
| Shape / Selection | shape | selection, rectangle, diamond, etc | `toolbar` or `shortcut` | |
||||
| Lock selection | shape | lock | `on` or `off` | |
||||
| Load file | action | load | `MIME type` | |
||||
| Import from URL | action | import | |
||||
| Save | action | save | |
||||
| Save as | action | save as | |
||||
| Clear canvas | action | clear canvas | |
||||
| Zoom in | action | zoom | in | `zoom` | |
||||
| Zoom out | action | zoom | out | `zoom` | |
||||
| Zoom fit | action | zoom | fit | `zoom` | |
||||
| Zoom reset | action | zoom | reset | `zoom` | |
||||
| Open shortcut menu | action | keyboard shortcuts | |
||||
| Canvas color | change | canvas color | `color` | |
||||
| Background color | change | background color | `color` | |
||||
| Stroke color | change | stroke color | `color` | |
||||
| Stroke width | change | stroke | width | `width` | |
||||
| Stroke sloppiness | change | stroke | sloppiness | `value` | |
||||
| Fill | change | fill | `value` | |
||||
| Edge | change | edge | `value` | |
||||
| Opacity | change | opacity | value | `opacity` | |
||||
| Project name | change | title | |
||||
| Theme | change | theme | `light` or `dark` | |
||||
| Change language | change | language | `language` | |
||||
| Language on load | change | language on load | `language` | |
||||
| E2EE shield | exit | e2ee shield | |
||||
| GitHub corner | exit | github | |
||||
| Excalidraw blog | exit | blog | |
||||
| Excalidraw guides | exit | guides | |
||||
| File issues | exit | issues | |
||||
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
export const EVENT_ACTION = "action"; |
||||
export const EVENT_EXIT = "exit"; |
||||
export const EVENT_CHANGE = "change"; |
||||
export const EVENT_SHAPE = "shape"; |
||||
|
||||
export const trackEvent = window.gtag |
||||
? (name: string, category: string, label?: string, value?: number) => { |
||||
window.gtag("event", name, { |
||||
event_category: category, |
||||
event_label: label, |
||||
value, |
||||
}); |
||||
} |
||||
: (name: string, category: string, label?: string, value?: number) => { |
||||
console.info("Track Event", name, category, label, value); |
||||
}; |
||||
Loading…
Reference in new issue