UNPKG

tldraw

Version:

A tiny little drawing editor.

131 lines (130 loc) • 4.86 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var styles_exports = {}; __export(styles_exports, { STYLES: () => STYLES }); module.exports = __toCommonJS(styles_exports); const STYLES = { color: [ { value: "black", icon: "color" }, { value: "grey", icon: "color" }, { value: "light-violet", icon: "color" }, { value: "violet", icon: "color" }, { value: "blue", icon: "color" }, { value: "light-blue", icon: "color" }, { value: "yellow", icon: "color" }, { value: "orange", icon: "color" }, { value: "green", icon: "color" }, { value: "light-green", icon: "color" }, { value: "light-red", icon: "color" }, { value: "red", icon: "color" } ], fill: [ { value: "none", icon: "fill-none" }, { value: "semi", icon: "fill-semi" }, { value: "solid", icon: "fill-solid" }, { value: "pattern", icon: "fill-pattern" } // { value: 'fill', icon: 'fill-fill' }, ], dash: [ { value: "draw", icon: "dash-draw" }, { value: "dashed", icon: "dash-dashed" }, { value: "dotted", icon: "dash-dotted" }, { value: "solid", icon: "dash-solid" } ], size: [ { value: "s", icon: "size-small" }, { value: "m", icon: "size-medium" }, { value: "l", icon: "size-large" }, { value: "xl", icon: "size-extra-large" } ], font: [ { value: "draw", icon: "font-draw" }, { value: "sans", icon: "font-sans" }, { value: "serif", icon: "font-serif" }, { value: "mono", icon: "font-mono" } ], textAlign: [ { value: "start", icon: "text-align-left" }, { value: "middle", icon: "text-align-center" }, { value: "end", icon: "text-align-right" } ], horizontalAlign: [ { value: "start", icon: "horizontal-align-start" }, { value: "middle", icon: "horizontal-align-middle" }, { value: "end", icon: "horizontal-align-end" } ], verticalAlign: [ { value: "start", icon: "vertical-align-start" }, { value: "middle", icon: "vertical-align-middle" }, { value: "end", icon: "vertical-align-end" } ], geo: [ { value: "rectangle", icon: "geo-rectangle" }, { value: "ellipse", icon: "geo-ellipse" }, { value: "triangle", icon: "geo-triangle" }, { value: "diamond", icon: "geo-diamond" }, { value: "star", icon: "geo-star" }, { value: "pentagon", icon: "geo-pentagon" }, { value: "hexagon", icon: "geo-hexagon" }, { value: "octagon", icon: "geo-octagon" }, { value: "rhombus", icon: "geo-rhombus" }, { value: "rhombus-2", icon: "geo-rhombus-2" }, { value: "oval", icon: "geo-oval" }, { value: "trapezoid", icon: "geo-trapezoid" }, { value: "arrow-left", icon: "geo-arrow-left" }, { value: "arrow-up", icon: "geo-arrow-up" }, { value: "arrow-down", icon: "geo-arrow-down" }, { value: "arrow-right", icon: "geo-arrow-right" }, { value: "cloud", icon: "geo-cloud" }, { value: "x-box", icon: "geo-x-box" }, { value: "check-box", icon: "geo-check-box" }, { value: "heart", icon: "geo-heart" } ], arrowKind: [ { value: "arc", icon: "arrow-arc" }, { value: "elbow", icon: "arrow-elbow" } ], arrowheadStart: [ { value: "none", icon: "arrowhead-none" }, { value: "arrow", icon: "arrowhead-arrow" }, { value: "triangle", icon: "arrowhead-triangle" }, { value: "square", icon: "arrowhead-square" }, { value: "dot", icon: "arrowhead-dot" }, { value: "diamond", icon: "arrowhead-diamond" }, { value: "inverted", icon: "arrowhead-triangle-inverted" }, { value: "bar", icon: "arrowhead-bar" } ], arrowheadEnd: [ { value: "none", icon: "arrowhead-none" }, { value: "arrow", icon: "arrowhead-arrow" }, { value: "triangle", icon: "arrowhead-triangle" }, { value: "square", icon: "arrowhead-square" }, { value: "dot", icon: "arrowhead-dot" }, { value: "diamond", icon: "arrowhead-diamond" }, { value: "inverted", icon: "arrowhead-triangle-inverted" }, { value: "bar", icon: "arrowhead-bar" } ], spline: [ { value: "line", icon: "spline-line" }, { value: "cubic", icon: "spline-cubic" } ] }; //# sourceMappingURL=styles.js.map