Skip to main content

Variable: messageSchemas

const messageSchemas: readonly [{ $id: "paintcanvas/stroke-preset"; additionalProperties: false; properties: { alpha: { maximum: 1; minimum: 0; type: "number"; }; alphaConfig: { additionalProperties: false; properties: { max: { maximum: 360; minimum: -360; type: "number"; }; maxPressure: { maximum: 1; minimum: 0; type: "number"; }; maxRandomise: { maximum: 1; minimum: 0; type: "number"; }; maxTilt: { maximum: 1; minimum: 0; type: "number"; }; min: { maximum: 360; minimum: -360; type: "number"; }; minPressure: { maximum: 1; minimum: 0; type: "number"; }; minRandomise: { maximum: 1; minimum: 0; type: "number"; }; minTilt: { maximum: 1; minimum: 0; type: "number"; }; pressureProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; pressureProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; profile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; profileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; randomiseProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; randomiseProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; tiltProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; tiltProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; usePressure: { type: "boolean"; }; useRandomise: { type: "boolean"; }; useTilt: { type: "boolean"; }; }; type: "object"; }; blue: { anyOf: readonly [{ type: "number"; }, { maxLength: 20; type: "string"; }]; }; blueConfig: { additionalProperties: false; properties: { max: { maximum: 360; minimum: -360; type: "number"; }; maxPressure: { maximum: 1; minimum: 0; type: "number"; }; maxRandomise: { maximum: 1; minimum: 0; type: "number"; }; maxTilt: { maximum: 1; minimum: 0; type: "number"; }; min: { maximum: 360; minimum: -360; type: "number"; }; minPressure: { maximum: 1; minimum: 0; type: "number"; }; minRandomise: { maximum: 1; minimum: 0; type: "number"; }; minTilt: { maximum: 1; minimum: 0; type: "number"; }; pressureProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; pressureProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; profile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; profileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; randomiseProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; randomiseProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; tiltProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; tiltProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; usePressure: { type: "boolean"; }; useRandomise: { type: "boolean"; }; useTilt: { type: "boolean"; }; }; type: "object"; }; colourMode: { enum: readonly [0, 1]; }; constrainProportions: { type: "boolean"; }; green: { anyOf: readonly [{ type: "number"; }, { maxLength: 20; type: "string"; }]; }; greenConfig: { additionalProperties: false; properties: { max: { maximum: 360; minimum: -360; type: "number"; }; maxPressure: { maximum: 1; minimum: 0; type: "number"; }; maxRandomise: { maximum: 1; minimum: 0; type: "number"; }; maxTilt: { maximum: 1; minimum: 0; type: "number"; }; min: { maximum: 360; minimum: -360; type: "number"; }; minPressure: { maximum: 1; minimum: 0; type: "number"; }; minRandomise: { maximum: 1; minimum: 0; type: "number"; }; minTilt: { maximum: 1; minimum: 0; type: "number"; }; pressureProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; pressureProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; profile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; profileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; randomiseProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; randomiseProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; tiltProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; tiltProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; usePressure: { type: "boolean"; }; useRandomise: { type: "boolean"; }; useTilt: { type: "boolean"; }; }; type: "object"; }; height: { maximum: 256; minimum: 1; type: "number"; }; heightConfig: { additionalProperties: false; properties: { max: { maximum: 360; minimum: -360; type: "number"; }; maxPressure: { maximum: 1; minimum: 0; type: "number"; }; maxRandomise: { maximum: 1; minimum: 0; type: "number"; }; maxTilt: { maximum: 1; minimum: 0; type: "number"; }; min: { maximum: 360; minimum: -360; type: "number"; }; minPressure: { maximum: 1; minimum: 0; type: "number"; }; minRandomise: { maximum: 1; minimum: 0; type: "number"; }; minTilt: { maximum: 1; minimum: 0; type: "number"; }; pressureProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; pressureProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; profile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; profileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; randomiseProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; randomiseProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; tiltProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; tiltProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; usePressure: { type: "boolean"; }; useRandomise: { type: "boolean"; }; useTilt: { type: "boolean"; }; }; type: "object"; }; hue: { anyOf: readonly [{ type: "number"; }, { maxLength: 20; type: "string"; }]; }; hueConfig: { additionalProperties: false; properties: { max: { maximum: 360; minimum: -360; type: "number"; }; maxPressure: { maximum: 1; minimum: 0; type: "number"; }; maxRandomise: { maximum: 1; minimum: 0; type: "number"; }; maxTilt: { maximum: 1; minimum: 0; type: "number"; }; min: { maximum: 360; minimum: -360; type: "number"; }; minPressure: { maximum: 1; minimum: 0; type: "number"; }; minRandomise: { maximum: 1; minimum: 0; type: "number"; }; minTilt: { maximum: 1; minimum: 0; type: "number"; }; pressureProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; pressureProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; profile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; profileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; randomiseProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; randomiseProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; tiltProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; tiltProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; usePressure: { type: "boolean"; }; useRandomise: { type: "boolean"; }; useTilt: { type: "boolean"; }; }; type: "object"; }; image: { maxLength: number; pattern: "^data:image/png;base64,[A-Za-z0-9+/]+={0,2}$"; type: "string"; }; lightness: { anyOf: readonly [{ type: "number"; }, { maxLength: 20; type: "string"; }]; }; lightnessConfig: { additionalProperties: false; properties: { max: { maximum: 360; minimum: -360; type: "number"; }; maxPressure: { maximum: 1; minimum: 0; type: "number"; }; maxRandomise: { maximum: 1; minimum: 0; type: "number"; }; maxTilt: { maximum: 1; minimum: 0; type: "number"; }; min: { maximum: 360; minimum: -360; type: "number"; }; minPressure: { maximum: 1; minimum: 0; type: "number"; }; minRandomise: { maximum: 1; minimum: 0; type: "number"; }; minTilt: { maximum: 1; minimum: 0; type: "number"; }; pressureProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; pressureProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; profile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; profileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; randomiseProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; randomiseProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; tiltProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; tiltProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; usePressure: { type: "boolean"; }; useRandomise: { type: "boolean"; }; useTilt: { type: "boolean"; }; }; type: "object"; }; offsetX: { maximum: 256; minimum: -256; type: "number"; }; offsetXConfig: { additionalProperties: false; properties: { max: { maximum: 360; minimum: -360; type: "number"; }; maxPressure: { maximum: 1; minimum: 0; type: "number"; }; maxRandomise: { maximum: 1; minimum: 0; type: "number"; }; maxTilt: { maximum: 1; minimum: 0; type: "number"; }; min: { maximum: 360; minimum: -360; type: "number"; }; minPressure: { maximum: 1; minimum: 0; type: "number"; }; minRandomise: { maximum: 1; minimum: 0; type: "number"; }; minTilt: { maximum: 1; minimum: 0; type: "number"; }; pressureProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; pressureProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; profile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; profileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; randomiseProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; randomiseProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; tiltProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; tiltProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; usePressure: { type: "boolean"; }; useRandomise: { type: "boolean"; }; useTilt: { type: "boolean"; }; }; type: "object"; }; offsetY: { maximum: 256; minimum: -256; type: "number"; }; offsetYConfig: { additionalProperties: false; properties: { max: { maximum: 360; minimum: -360; type: "number"; }; maxPressure: { maximum: 1; minimum: 0; type: "number"; }; maxRandomise: { maximum: 1; minimum: 0; type: "number"; }; maxTilt: { maximum: 1; minimum: 0; type: "number"; }; min: { maximum: 360; minimum: -360; type: "number"; }; minPressure: { maximum: 1; minimum: 0; type: "number"; }; minRandomise: { maximum: 1; minimum: 0; type: "number"; }; minTilt: { maximum: 1; minimum: 0; type: "number"; }; pressureProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; pressureProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; profile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; profileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; randomiseProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; randomiseProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; tiltProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; tiltProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; usePressure: { type: "boolean"; }; useRandomise: { type: "boolean"; }; useTilt: { type: "boolean"; }; }; type: "object"; }; red: { anyOf: readonly [{ type: "number"; }, { maxLength: 20; type: "string"; }]; }; redConfig: { additionalProperties: false; properties: { max: { maximum: 360; minimum: -360; type: "number"; }; maxPressure: { maximum: 1; minimum: 0; type: "number"; }; maxRandomise: { maximum: 1; minimum: 0; type: "number"; }; maxTilt: { maximum: 1; minimum: 0; type: "number"; }; min: { maximum: 360; minimum: -360; type: "number"; }; minPressure: { maximum: 1; minimum: 0; type: "number"; }; minRandomise: { maximum: 1; minimum: 0; type: "number"; }; minTilt: { maximum: 1; minimum: 0; type: "number"; }; pressureProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; pressureProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; profile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; profileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; randomiseProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; randomiseProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; tiltProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; tiltProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; usePressure: { type: "boolean"; }; useRandomise: { type: "boolean"; }; useTilt: { type: "boolean"; }; }; type: "object"; }; rotation: { maximum: 360; minimum: -360; type: "number"; }; rotationConfig: { additionalProperties: false; properties: { max: { maximum: 360; minimum: -360; type: "number"; }; maxPressure: { maximum: 1; minimum: 0; type: "number"; }; maxRandomise: { maximum: 1; minimum: 0; type: "number"; }; maxTilt: { maximum: 1; minimum: 0; type: "number"; }; min: { maximum: 360; minimum: -360; type: "number"; }; minPressure: { maximum: 1; minimum: 0; type: "number"; }; minRandomise: { maximum: 1; minimum: 0; type: "number"; }; minTilt: { maximum: 1; minimum: 0; type: "number"; }; pressureProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; pressureProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; profile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; profileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; randomiseProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; randomiseProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; tiltProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; tiltProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; usePressure: { type: "boolean"; }; useRandomise: { type: "boolean"; }; useTilt: { type: "boolean"; }; }; type: "object"; }; rotationFollowsLean: { type: "boolean"; }; sampleRate: { maximum: 400; minimum: 5; type: "number"; }; saturation: { anyOf: readonly [{ type: "number"; }, { maxLength: 20; type: "string"; }]; }; saturationConfig: { additionalProperties: false; properties: { max: { maximum: 360; minimum: -360; type: "number"; }; maxPressure: { maximum: 1; minimum: 0; type: "number"; }; maxRandomise: { maximum: 1; minimum: 0; type: "number"; }; maxTilt: { maximum: 1; minimum: 0; type: "number"; }; min: { maximum: 360; minimum: -360; type: "number"; }; minPressure: { maximum: 1; minimum: 0; type: "number"; }; minRandomise: { maximum: 1; minimum: 0; type: "number"; }; minTilt: { maximum: 1; minimum: 0; type: "number"; }; pressureProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; pressureProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; profile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; profileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; randomiseProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; randomiseProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; tiltProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; tiltProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; usePressure: { type: "boolean"; }; useRandomise: { type: "boolean"; }; useTilt: { type: "boolean"; }; }; type: "object"; }; smoothingType: { enum: readonly [0, 1, 2, 3]; }; snapToPixelGrid: { type: "boolean"; }; spacing: { maximum: 200; minimum: 0; type: "number"; }; width: { maximum: 256; minimum: 1; type: "number"; }; widthConfig: { additionalProperties: false; properties: { max: { maximum: 360; minimum: -360; type: "number"; }; maxPressure: { maximum: 1; minimum: 0; type: "number"; }; maxRandomise: { maximum: 1; minimum: 0; type: "number"; }; maxTilt: { maximum: 1; minimum: 0; type: "number"; }; min: { maximum: 360; minimum: -360; type: "number"; }; minPressure: { maximum: 1; minimum: 0; type: "number"; }; minRandomise: { maximum: 1; minimum: 0; type: "number"; }; minTilt: { maximum: 1; minimum: 0; type: "number"; }; pressureProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; pressureProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; profile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; profileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; randomiseProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; randomiseProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; tiltProfile: { items: { additionalProperties: false; properties: { i: { enum: (... | ... | ...)[]; }; x: { maximum: 10; minimum: 0; type: "number"; }; y: { maximum: 0; minimum: number; type: "number"; }; }; required: readonly ["x", "y", "i"]; type: "object"; }; maxItems: 32; minItems: 2; type: "array"; }; tiltProfileId: { anyOf: readonly [{ pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }, { enum: string[]; }]; }; usePressure: { type: "boolean"; }; useRandomise: { type: "boolean"; }; useTilt: { type: "boolean"; }; }; type: "object"; }; }; type: "object"; }, { $id: "paintcanvas/message/patch"; additionalProperties: false; properties: { coords: { items: { maximum: 10000; minimum: 0; type: "integer"; }; maxItems: 4; minItems: 4; type: "array"; }; data: { maxLength: number; pattern: "^[A-Za-z0-9+/]*={0,2}$"; type: "string"; }; encoding: { enum: ("rgba-deflate" | "png")[]; }; protocol: { const: 2; }; type: { const: "patch"; }; }; required: readonly ["protocol", "type", "coords", "encoding", "data"]; type: "object"; }, { $id: "paintcanvas/message/stroke"; additionalProperties: false; properties: { colour: { pattern: "^#[0-9a-fA-F]{6}$"; type: "string"; }; isPen: { type: "boolean"; }; layer: { maxLength: 100; minLength: 1; type: "string"; }; mode: { enum: readonly ["paint", "erase"]; }; points: { items: { additionalProperties: false; properties: { pressure: { maximum: 1; minimum: 0; type: "number"; }; rotation: { type: "number"; }; tiltX: { maximum: 90; minimum: -90; type: "number"; }; tiltY: { maximum: 90; minimum: -90; type: "number"; }; time: { type: "number"; }; x: { type: "number"; }; y: { type: "number"; }; }; required: readonly ["x", "y", "time"]; type: "object"; }; maxItems: 100000; minItems: 1; type: "array"; }; preset: { $ref: "../stroke-preset"; }; protocol: { const: 2; }; seed: { maximum: 4294967295; minimum: 0; type: "integer"; }; size: { additionalProperties: false; properties: { height: { maximum: 10000; minimum: 0; type: "number"; }; width: { maximum: 10000; minimum: 0; type: "number"; }; }; required: readonly ["width", "height"]; type: "object"; }; step: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }; type: { const: "stroke"; }; }; required: readonly ["protocol", "type", "step", "layer", "mode", "preset", "size", "colour", "isPen", "seed", "points"]; type: "object"; }, { $id: "paintcanvas/message/history"; additionalProperties: false; properties: { protocol: { const: 2; }; step: { pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; type: "string"; }; type: { enum: readonly ["undo", "redo"]; }; }; required: readonly ["protocol", "type", "step"]; type: "object"; }]

Defined in: src/lib/messages/schema.ts:205