Variable: settingsSchema
constsettingsSchema:object
Defined in: src/lib/settings/schema.ts:164
Schema of the user's app settings as kept in the browser: parts PaintCanvas doesn't know are left for wrapper apps
to check (see SettingsExtension), and colours older versions saved in PaintCanvas's palette (palette) are allowed.
Type Declaration
$id
readonly$id:"paintcanvas/settings"="paintcanvas/settings"
properties
readonlyproperties:object
properties.brushes
readonlybrushes:object
properties.brushes.items
readonlyitems:object
properties.brushes.items.$ref
readonly$ref:string=brushPresetSchema.$id
properties.brushes.maxItems
readonlymaxItems:1000=MAX_PRESETS_PER_FILE
properties.brushes.type
readonlytype:"array"="array"
properties.colours
readonlycolours:object
properties.colours.additionalProperties
readonlyadditionalProperties:false=false
properties.colours.properties
readonlyproperties:object
properties.colours.properties.background
readonlybackground:object=hexColour
properties.colours.properties.background.pattern
readonlypattern:"^#[0-9a-fA-F]{6}$"=HEX_COLOUR_PATTERN
properties.colours.properties.background.type
readonlytype:"string"="string"
properties.colours.properties.foreground
readonlyforeground:object=hexColour
properties.colours.properties.foreground.pattern
readonlypattern:"^#[0-9a-fA-F]{6}$"=HEX_COLOUR_PATTERN
properties.colours.properties.foreground.type
readonlytype:"string"="string"
properties.colours.required
readonlyrequired: readonly ["foreground","background"]
properties.colours.type
readonlytype:"object"="object"
properties.input
readonlyinput:object
properties.input.additionalProperties
readonlyadditionalProperties:false=false
properties.input.properties
readonlyproperties:object
properties.input.properties.focusPen
readonlyfocusPen:object
properties.input.properties.focusPen.type
readonlytype:"boolean"="boolean"
properties.input.properties.gestures
readonlygestures:object
properties.input.properties.gestures.additionalProperties
readonlyadditionalProperties:object
properties.input.properties.gestures.additionalProperties.maxLength
readonlymaxLength:50=50
properties.input.properties.gestures.additionalProperties.type
readonlytype:"string"="string"
properties.input.properties.gestures.maxProperties
readonlymaxProperties:20=20
properties.input.properties.gestures.type
readonlytype:"object"="object"
properties.input.properties.modifierScrollZoom
readonlymodifierScrollZoom:object
properties.input.properties.modifierScrollZoom.type
readonlytype:"boolean"="boolean"
properties.input.properties.penPressure
readonlypenPressure:object
properties.input.properties.penPressure.type
readonlytype:"boolean"="boolean"
properties.input.properties.penTilt
readonlypenTilt:object
properties.input.properties.penTilt.type
readonlytype:"boolean"="boolean"
properties.input.properties.pinchZoom
readonlypinchZoom:object
properties.input.properties.pinchZoom.type
readonlytype:"boolean"="boolean"
properties.input.properties.scrollPan
readonlyscrollPan:object
properties.input.properties.scrollPan.type
readonlytype:"boolean"="boolean"
properties.input.type
readonlytype:"object"="object"
properties.palette
readonlypalette:object=paletteColoursSchema
properties.palette.items
readonlyitems:object
properties.palette.items.pattern
readonlypattern:"^#[0-9a-fA-F]{6}$"=HEX_COLOUR_PATTERN
properties.palette.items.type
readonlytype:"string"="string"
properties.palette.maxItems
readonlymaxItems:1000=MAX_PALETTE_COLOURS
properties.palette.type
readonlytype:"array"="array"
properties.palettes
readonlypalettes:object
properties.palettes.items
readonlyitems:object
properties.palettes.items.$ref
readonly$ref:string=colourPaletteSchema.$id
properties.palettes.maxItems
readonlymaxItems:100=MAX_PALETTES_PER_FILE
properties.palettes.type
readonlytype:"array"="array"
properties.profiles
readonlyprofiles:object
properties.profiles.items
readonlyitems:object
properties.profiles.items.$ref
readonly$ref:string=profileGraphSchema.$id
properties.profiles.maxItems
readonlymaxItems:100=MAX_SAVED_PROFILES
properties.profiles.type
readonlytype:"array"="array"
properties.shortcuts
readonlyshortcuts:object
properties.shortcuts.additionalProperties
readonlyadditionalProperties:object
properties.shortcuts.additionalProperties.anyOf
readonlyanyOf: readonly [{type:"null"; }, {additionalProperties:false;properties: {alt: {type:"boolean"; };cmd: {type:"boolean"; };ctrl: {type:"boolean"; };key: {maxLength:32;minLength:1;type:"string"; };shift: {type:"boolean"; }; };required: readonly ["key"];type:"object"; }]
properties.shortcuts.maxProperties
readonlymaxProperties:200=MAX_SAVED_SHORTCUTS
properties.shortcuts.propertyNames
readonlypropertyNames:object
properties.shortcuts.propertyNames.maxLength
readonlymaxLength:64=64
properties.shortcuts.type
readonlytype:"object"="object"
properties.ui
readonlyui:object
properties.ui.additionalProperties
readonlyadditionalProperties:false=false
properties.ui.properties
readonlyproperties:object
properties.ui.properties.locale
readonlylocale:object
properties.ui.properties.locale.maxLength
readonlymaxLength:35=MAX_LOCALE_LENGTH
properties.ui.properties.locale.minLength
readonlyminLength:1=1
properties.ui.properties.locale.pattern
readonlypattern:"^[A-Za-z0-9-]+$"=LOCALE_PATTERN
properties.ui.properties.locale.type
readonlytype:"string"="string"
properties.ui.properties.rendering
readonlyrendering:object
properties.ui.properties.rendering.enum
readonlyenum: readonly ["cpu","gpu"] =RENDERINGS
properties.ui.properties.theme
readonlytheme:object
properties.ui.properties.theme.enum
readonlyenum: readonly ["light","dark","system"] =THEMES
properties.ui.type
readonlytype:"object"="object"
properties.updatedAt
readonlyupdatedAt:object=dateTimeSchema
properties.updatedAt.pattern
readonlypattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(Z|[+-]\\d{2}:\\d{2})$" =DATE_TIME_PATTERN
properties.updatedAt.type
readonlytype:"string"="string"
type
readonlytype:"object"="object"