Skip to content

hm5-types (source format) / ValueDefault

Type Alias: ValueDefault ​

ts
type ValueDefault = 
  | float
  | boolean
  | string
  | {
  x: float;
  y: float;
};

An Input's saved value, by ValueInputType: number → number, switch / trigger → boolean, point → {x, y}, text → string, color → "rrggbbaa", option → the option's name.

HereSplash — 2D animation for the web