@dicebear/avatars
Version:
An avatar library for designers and developers.
5 lines (4 loc) • 2.63 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.schema = void 0;
exports.schema = { "type": "object", "$schema": "http://json-schema.org/draft-07/schema#", "title": "Options", "definitions": { "seed": { "title": "Seed", "type": "string" }, "radius": { "title": "Radius", "type": "integer", "minimum": 0, "maximum": 50, "default": 0 }, "width": { "title": "Width", "type": "integer", "minimum": 1 }, "height": { "title": "Height", "type": "integer", "minimum": 1 }, "margin": { "title": "Margin", "type": "integer", "minimum": 0, "maximum": 25, "default": 0 }, "backgroundColor": { "title": "Background Color", "oneOf": [{ "type": "string", "pattern": "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})+$" }, { "type": "string", "enum": ["transparent"] }], "default": "transparent" } }, "properties": { "seed": { "title": "Seed", "type": "string" }, "s": { "title": "Seed", "type": "string" }, "base64": { "title": "Base64", "description": "@deprecated use dataUri instead", "type": "boolean", "default": false }, "dataUri": { "title": "Data URI", "type": "boolean", "default": false }, "userAgent": { "title": "User Agent", "description": "@deprecated", "type": "string" }, "radius": { "title": "Radius", "type": "integer", "minimum": 0, "maximum": 50, "default": 0 }, "r": { "title": "Radius", "type": "integer", "minimum": 0, "maximum": 50, "default": 0 }, "width": { "title": "Width", "type": "integer", "minimum": 1 }, "w": { "title": "Width", "type": "integer", "minimum": 1 }, "height": { "title": "Height", "type": "integer", "minimum": 1 }, "h": { "title": "Height", "type": "integer", "minimum": 1 }, "margin": { "title": "Margin", "type": "integer", "minimum": 0, "maximum": 25, "default": 0 }, "m": { "title": "Margin", "type": "integer", "minimum": 0, "maximum": 25, "default": 0 }, "backgroundColor": { "title": "Background Color", "oneOf": [{ "type": "string", "pattern": "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})+$" }, { "type": "string", "enum": ["transparent"] }], "default": "transparent" }, "background": { "description": "@deprecated use backgroundColor instead", "title": "Background Color", "oneOf": [{ "type": "string", "pattern": "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})+$" }, { "type": "string", "enum": ["transparent"] }], "default": "transparent" }, "b": { "title": "Background Color", "oneOf": [{ "type": "string", "pattern": "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})+$" }, { "type": "string", "enum": ["transparent"] }], "default": "transparent" } }, "additionalProperties": false };