Module
RoughNotation.Config
- Package
- purescript-rough-notation
- Repository
- MitchStevens/purescript-rough-notation
#Config Source
type Config = Record ConfigRows
#ConfigRows Source
type ConfigRows :: Row Type
type ConfigRows = (animate :: Boolean, animationDuration :: Milliseconds, brackets :: Array BracketType, color :: String, iterations :: Int, multiline :: Boolean, padding :: RoughPadding, rtl :: Boolean, strokeWidth :: Number)
#NativeConfig Source
type NativeConfig = { animate :: Boolean, animationDuration :: Milliseconds, brackets :: Array String, color :: String, iterations :: Int, multiline :: Boolean, padding :: Array Number, rtl :: Boolean, strokeWidth :: Number }
for type safety reasons, the config that this purescript library uses is slightly different to the rough-notation expects. The type of config that rough-notation requires is called "NativeConfig"
#RoughAnnotationType Source
#toNativeConfig Source
toNativeConfig :: Config -> NativeConfig
- Modules
- RoughNotation
- RoughNotation.
Config
SimplePadding [number, number]