# com.lvl99.livecanvas.settings

> A user's LiveCanvas settings (PaintCanvas's are in com.lvl99.paintcanvas.settings). Settings that aren't set use LiveCanvas's defaults.

- Kind: record
- Record key: literal:self
- Authority: livecanvas.lvl99.com
- Lexicon: 1
- Published by [livecanvas.lvl99.com](https://lexicon.garden/identity/did:plc:pnraiwv3cf2ue5qdfsrze63z), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:pnraiwv3cf2ue5qdfsrze63z/com.lvl99.livecanvas.settings)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:pnraiwv3cf2ue5qdfsrze63z/com.lvl99.livecanvas.settings/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:pnraiwv3cf2ue5qdfsrze63z/com.lvl99.livecanvas.settings/analytics)

## Record (`com.lvl99.livecanvas.settings`)

Type: record · key literal:self

### Properties

- `avatar` (blob): A 200×200 picture shown to others, instead of their profile's.
  - Constraints: maxSize: 100000, accept: image/png, image/jpeg, image/gif
- `colour` (string): Colour of their name in chat and their cursor, as "#rrggbb".
  - Constraints: maxLength: 7
- `displayName` (string): The name shown to others, instead of their profile's.
  - Constraints: maxLength: 640, maxGraphemes: 64
- `hideCursors` (boolean): Hide everyone else's cursors.
- `notifications` (boolean): Notify them of chat messages while the tab is in the background.
- `shareCursor` (boolean): Show others where their cursor is.
- `sound` (boolean): Play a sound for chat messages.
- `soundName` (string): Which sound to play.
  - Constraints: maxLength: 32, knownValues: boop | ding | click | squizzle
- `storageNoticeDismissed` (boolean): Whether they dismissed the notice that browsers may delete offline sessions.
- `updatedAt` (string · datetime): When the settings were last changed.
- `volume` (integer): Sound volume in thousandths, from 0 (silent) to 1000 (loudest).
  - Constraints: minimum: 0, maximum: 1000

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A user's LiveCanvas settings (PaintCanvas's are in com.lvl99.paintcanvas.settings). Settings that aren't set use LiveCanvas's defaults.",
      "key": "literal:self",
      "record": {
        "properties": {
          "avatar": {
            "accept": [
              "image/png",
              "image/jpeg",
              "image/gif"
            ],
            "description": "A 200×200 picture shown to others, instead of their profile's.",
            "maxSize": 100000,
            "type": "blob"
          },
          "colour": {
            "description": "Colour of their name in chat and their cursor, as \"#rrggbb\".",
            "maxLength": 7,
            "type": "string"
          },
          "displayName": {
            "description": "The name shown to others, instead of their profile's.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "hideCursors": {
            "description": "Hide everyone else's cursors.",
            "type": "boolean"
          },
          "notifications": {
            "description": "Notify them of chat messages while the tab is in the background.",
            "type": "boolean"
          },
          "shareCursor": {
            "description": "Show others where their cursor is.",
            "type": "boolean"
          },
          "sound": {
            "description": "Play a sound for chat messages.",
            "type": "boolean"
          },
          "soundName": {
            "description": "Which sound to play.",
            "knownValues": [
              "boop",
              "ding",
              "click",
              "squizzle"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "storageNoticeDismissed": {
            "description": "Whether they dismissed the notice that browsers may delete offline sessions.",
            "type": "boolean"
          },
          "updatedAt": {
            "description": "When the settings were last changed.",
            "format": "datetime",
            "type": "string"
          },
          "volume": {
            "description": "Sound volume in thousandths, from 0 (silent) to 1000 (loudest).",
            "maximum": 1000,
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A user's LiveCanvas settings (PaintCanvas's are in com.lvl99.paintcanvas.settings). Settings that aren't set use LiveCanvas's defaults.",
  "id": "com.lvl99.livecanvas.settings",
  "lexicon": 1
}
```
