Variable: appSettingsSchema
constappSettingsSchema:object
Defined in: src/lib/settings/schema.ts:174
Schema of an app settings file. Parts it doesn't name are added by wrapper apps, which check them (see
SettingsExtension), and can publish schemas of their own that extend this one.
Type Declaration
@type
readonly@type:"PaintCanvas/AppSettings"=APP_SETTINGS_TYPE
$id
readonly$id:string
$schema
readonly$schema:"https://json-schema.org/draft/2020-12/schema"=SCHEMA_DIALECT
properties
readonlyproperties:object
properties.@type
readonly@type:object
properties.@type.const
readonlyconst:"PaintCanvas/AppSettings"=APP_SETTINGS_TYPE
properties.$schema
readonly$schema:object=fileSchemaUrlSchema
properties.$schema.maxLength
readonlymaxLength:2048=MAX_URL_LENGTH
properties.$schema.minLength
readonlyminLength:1=1
properties.$schema.type
readonlytype:"string"="string"
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.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"
required
readonlyrequired: readonly ["$schema","@type"]
type
readonlytype:"object"="object"