# com.kosora623.pikkles.binder.page

> シール帳の1ページ。rkey はページ番号。

- Kind: record
- Record key: any
- Authority: binder.pikkles.kosora623.com
- Lexicon: 1
- Published by [kosora623.bsky.social](https://lexicon.garden/identity/did:plc:mi67np3wgmwyjtqmgy3l5y2m), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mi67np3wgmwyjtqmgy3l5y2m/com.kosora623.pikkles.binder.page)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mi67np3wgmwyjtqmgy3l5y2m/com.kosora623.pikkles.binder.page/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mi67np3wgmwyjtqmgy3l5y2m/com.kosora623.pikkles.binder.page/analytics)

## Record (`com.kosora623.pikkles.binder.page`)

Type: record · key any

### Properties

- `brine` (string): ページの漬け液（背景の色）。無いときや知らない値は dill
  - Constraints: maxLength: 32, knownValues: dill | ume | beet | curry
- `placements` (array, required)
  - `items` (ref)
    - Reference: `#placement`
- `updatedAt` (string · datetime, required)

## #placement (`com.kosora623.pikkles.binder.page#placement`)

Type: object

ページ上のステッカー1枚の配置。Lexicon に小数は無いので整数で持つ。

### Properties

- `rotation` (integer, required): 回転（度、時計回り）
  - Constraints: minimum: -180, maximum: 180
- `scale` (integer, required): 拡大率。1000で等倍（100 = 0.1倍、5000 = 5倍）
  - Constraints: minimum: 100, maximum: 5000
- `sticker` (ref, required)
  - Reference: `com.atproto.repo.strongRef`
- `x` (integer, required): ステッカー中心の横位置。ページ幅を10000とした値。端からはみ出して貼れるよう -2000〜12000
  - Constraints: minimum: -2000, maximum: 12000
- `y` (integer, required): ステッカー中心の縦位置。ページ高さを10000とした値。端からはみ出して貼れるよう -2000〜12000
  - Constraints: minimum: -2000, maximum: 12000
- `z` (integer, required): 重なり順。大きいほど上
  - Constraints: minimum: 0

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "シール帳の1ページ。rkey はページ番号。",
      "key": "any",
      "record": {
        "properties": {
          "brine": {
            "description": "ページの漬け液（背景の色）。無いときや知らない値は dill",
            "knownValues": [
              "dill",
              "ume",
              "beet",
              "curry"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "placements": {
            "items": {
              "ref": "#placement",
              "type": "ref"
            },
            "type": "array"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "placements",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "placement": {
      "description": "ページ上のステッカー1枚の配置。Lexicon に小数は無いので整数で持つ。",
      "properties": {
        "rotation": {
          "description": "回転（度、時計回り）",
          "maximum": 180,
          "minimum": -180,
          "type": "integer"
        },
        "scale": {
          "description": "拡大率。1000で等倍（100 = 0.1倍、5000 = 5倍）",
          "maximum": 5000,
          "minimum": 100,
          "type": "integer"
        },
        "sticker": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "x": {
          "description": "ステッカー中心の横位置。ページ幅を10000とした値。端からはみ出して貼れるよう -2000〜12000",
          "maximum": 12000,
          "minimum": -2000,
          "type": "integer"
        },
        "y": {
          "description": "ステッカー中心の縦位置。ページ高さを10000とした値。端からはみ出して貼れるよう -2000〜12000",
          "maximum": 12000,
          "minimum": -2000,
          "type": "integer"
        },
        "z": {
          "description": "重なり順。大きいほど上",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "sticker",
        "x",
        "y",
        "scale",
        "rotation",
        "z"
      ],
      "type": "object"
    }
  },
  "id": "com.kosora623.pikkles.binder.page",
  "lexicon": 1
}
```
