mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 23:27:09 +00:00
Remember colormap
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import type { ColormapType } from './previews/Colormap.js'
|
||||
import type { VersionId } from './services/index.js'
|
||||
|
||||
type Method = 'menu' | 'hotkey'
|
||||
@@ -110,6 +111,12 @@ export namespace Analytics {
|
||||
})
|
||||
}
|
||||
|
||||
export function setColormap(colormap: ColormapType) {
|
||||
gtag('set', {
|
||||
colormap,
|
||||
})
|
||||
}
|
||||
|
||||
export function resetGenerator(file_type: string, history: number, method: Method) {
|
||||
event(ID_GENERATOR, 'reset')
|
||||
gtag('event', 'reset_generator', {
|
||||
|
||||
Reference in New Issue
Block a user