@lvl99dotcom/paintcanvas 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +131 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -0
- package/dist/lib/brushes/BrushTipCache/index.d.ts +32 -0
- package/dist/lib/brushes/BrushTipCache/index.js +60 -0
- package/dist/lib/brushes/StrokeEngine/index.d.ts +171 -0
- package/dist/lib/brushes/StrokeEngine/index.js +324 -0
- package/dist/lib/brushes/StrokePath/index.d.ts +53 -0
- package/dist/lib/brushes/StrokePath/index.js +161 -0
- package/dist/lib/brushes/StrokeSampler/index.d.ts +55 -0
- package/dist/lib/brushes/StrokeSampler/index.js +75 -0
- package/dist/lib/brushes/authors/index.d.ts +55 -0
- package/dist/lib/brushes/authors/index.js +60 -0
- package/dist/lib/brushes/configRanges/index.d.ts +52 -0
- package/dist/lib/brushes/configRanges/index.js +206 -0
- package/dist/lib/brushes/index.d.ts +5 -0
- package/dist/lib/brushes/index.js +19 -0
- package/dist/lib/brushes/params/index.d.ts +108 -0
- package/dist/lib/brushes/params/index.js +139 -0
- package/dist/lib/brushes/presetFile/index.d.ts +32 -0
- package/dist/lib/brushes/presetFile/index.js +55 -0
- package/dist/lib/brushes/presets/drawing/brush-pen.js +3 -0
- package/dist/lib/brushes/presets/drawing/felt-pen.js +3 -0
- package/dist/lib/brushes/presets/drawing/index.d.ts +13 -0
- package/dist/lib/brushes/presets/drawing/index.js +88 -0
- package/dist/lib/brushes/presets/drawing/pencil-2b.js +3 -0
- package/dist/lib/brushes/presets/drawing/pencil-hb.js +3 -0
- package/dist/lib/brushes/presets/painting/grass.js +3 -0
- package/dist/lib/brushes/presets/painting/hair.js +3 -0
- package/dist/lib/brushes/presets/painting/index.d.ts +18 -0
- package/dist/lib/brushes/presets/painting/index.js +118 -0
- package/dist/lib/brushes/presets/painting/splatter.js +3 -0
- package/dist/lib/brushes/presets/painting/textured-paint.js +3 -0
- package/dist/lib/brushes/presets/painting/watery-paint.js +3 -0
- package/dist/lib/brushes/presets/round/index.d.ts +9 -0
- package/dist/lib/brushes/presets/round/index.js +44 -0
- package/dist/lib/brushes/presets/round/round.js +3 -0
- package/dist/lib/brushes/presets/round/soft-round.js +3 -0
- package/dist/lib/brushes/presets/sized/index.d.ts +20 -0
- package/dist/lib/brushes/presets/sized/index.js +30 -0
- package/dist/lib/brushes/presets/sketching/index.d.ts +14 -0
- package/dist/lib/brushes/presets/sketching/index.js +107 -0
- package/dist/lib/brushes/presets/square/index.d.ts +7 -0
- package/dist/lib/brushes/presets/square/index.js +22 -0
- package/dist/lib/brushes/presets/square/square.js +3 -0
- package/dist/lib/brushes/shapeImage/index.d.ts +40 -0
- package/dist/lib/brushes/shapeImage/index.js +61 -0
- package/dist/lib/brushes/types/index.d.ts +243 -0
- package/dist/lib/brushes/types/index.js +20 -0
- package/dist/lib/classes/BackgroundWork/index.d.ts +55 -0
- package/dist/lib/classes/BackgroundWork/index.js +97 -0
- package/dist/lib/classes/BrushSettings/index.d.ts +91 -0
- package/dist/lib/classes/BrushSettings/index.js +152 -0
- package/dist/lib/classes/CustomPresets/index.d.ts +53 -0
- package/dist/lib/classes/CustomPresets/index.js +71 -0
- package/dist/lib/classes/ExternalSheets/index.d.ts +64 -0
- package/dist/lib/classes/ExternalSheets/index.js +112 -0
- package/dist/lib/classes/GestureTracker/index.d.ts +62 -0
- package/dist/lib/classes/GestureTracker/index.js +122 -0
- package/dist/lib/classes/History/index.d.ts +83 -0
- package/dist/lib/classes/History/index.js +126 -0
- package/dist/lib/classes/HistoryGuard/index.d.ts +58 -0
- package/dist/lib/classes/HistoryGuard/index.js +97 -0
- package/dist/lib/classes/InputSettings/index.d.ts +74 -0
- package/dist/lib/classes/InputSettings/index.js +101 -0
- package/dist/lib/classes/KeyboardShortcuts/index.d.ts +48 -0
- package/dist/lib/classes/KeyboardShortcuts/index.js +137 -0
- package/dist/lib/classes/Layer/index.d.ts +86 -0
- package/dist/lib/classes/Layer/index.js +111 -0
- package/dist/lib/classes/LayerAutosave/index.d.ts +180 -0
- package/dist/lib/classes/LayerAutosave/index.js +346 -0
- package/dist/lib/classes/LayerStack/index.d.ts +177 -0
- package/dist/lib/classes/LayerStack/index.js +394 -0
- package/dist/lib/classes/PaintCanvas/index.d.ts +537 -0
- package/dist/lib/classes/PaintCanvas/index.js +965 -0
- package/dist/lib/classes/StrokeLog/index.d.ts +149 -0
- package/dist/lib/classes/StrokeLog/index.js +257 -0
- package/dist/lib/classes/Viewport/index.d.ts +108 -0
- package/dist/lib/classes/Viewport/index.js +194 -0
- package/dist/lib/document/index.d.ts +17 -0
- package/dist/lib/document/index.js +25 -0
- package/dist/lib/document/schema.d.ts +132 -0
- package/dist/lib/document/schema.js +110 -0
- package/dist/lib/i18n/index.d.ts +94 -0
- package/dist/lib/i18n/index.js +182 -0
- package/dist/lib/image/index.d.ts +90 -0
- package/dist/lib/image/index.js +147 -0
- package/dist/lib/messages/PatchSender/index.d.ts +75 -0
- package/dist/lib/messages/PatchSender/index.js +125 -0
- package/dist/lib/messages/index.d.ts +26 -0
- package/dist/lib/messages/index.js +59 -0
- package/dist/lib/messages/schema.d.ts +1775 -0
- package/dist/lib/messages/schema.js +192 -0
- package/dist/lib/presets/index.d.ts +32 -0
- package/dist/lib/presets/index.js +35 -0
- package/dist/lib/presets/schema.d.ts +753 -0
- package/dist/lib/presets/schema.js +181 -0
- package/dist/lib/rendering/BrushTip/index.d.ts +63 -0
- package/dist/lib/rendering/BrushTip/index.js +112 -0
- package/dist/lib/rendering/checkerboard/index.d.ts +22 -0
- package/dist/lib/rendering/checkerboard/index.js +31 -0
- package/dist/lib/rendering/compositing/index.d.ts +64 -0
- package/dist/lib/rendering/compositing/index.js +124 -0
- package/dist/lib/rendering/cursor/index.d.ts +14 -0
- package/dist/lib/rendering/cursor/index.js +39 -0
- package/dist/lib/rendering/cursors/index.d.ts +18 -0
- package/dist/lib/rendering/cursors/index.js +23 -0
- package/dist/lib/rendering/maskOutline/index.d.ts +22 -0
- package/dist/lib/rendering/maskOutline/index.js +78 -0
- package/dist/lib/rendering/outline/index.d.ts +36 -0
- package/dist/lib/rendering/outline/index.js +120 -0
- package/dist/lib/rendering/sample/index.d.ts +55 -0
- package/dist/lib/rendering/sample/index.js +83 -0
- package/dist/lib/rendering/screenshot/index.d.ts +67 -0
- package/dist/lib/rendering/screenshot/index.js +96 -0
- package/dist/lib/rendering/transformBox/index.d.ts +10 -0
- package/dist/lib/rendering/transformBox/index.js +57 -0
- package/dist/lib/selection/Lasso/index.d.ts +70 -0
- package/dist/lib/selection/Lasso/index.js +156 -0
- package/dist/lib/selection/Selection/index.d.ts +86 -0
- package/dist/lib/selection/Selection/index.js +228 -0
- package/dist/lib/selection/geometry/index.d.ts +37 -0
- package/dist/lib/selection/geometry/index.js +57 -0
- package/dist/lib/storage/index.d.ts +63 -0
- package/dist/lib/storage/index.js +114 -0
- package/dist/lib/transform/Transformer/index.d.ts +124 -0
- package/dist/lib/transform/Transformer/index.js +286 -0
- package/dist/lib/transform/geometry/index.d.ts +95 -0
- package/dist/lib/transform/geometry/index.js +258 -0
- package/dist/lib/utils/array/index.d.ts +10 -0
- package/dist/lib/utils/array/index.js +21 -0
- package/dist/lib/utils/gestures/index.d.ts +35 -0
- package/dist/lib/utils/gestures/index.js +81 -0
- package/dist/lib/utils/navigation/index.d.ts +51 -0
- package/dist/lib/utils/navigation/index.js +59 -0
- package/dist/lib/utils/random/index.d.ts +18 -0
- package/dist/lib/utils/random/index.js +27 -0
- package/dist/lib/utils/shortcuts/index.d.ts +74 -0
- package/dist/lib/utils/shortcuts/index.js +189 -0
- package/dist/lib/validation/validators.generated.d.ts +27 -0
- package/dist/lib/validation/validators.generated.js +19826 -0
- package/dist/locales/en-GB.js +188 -0
- package/dist/locales/en-US.js +188 -0
- package/dist/locales/fr.js +188 -0
- package/dist/locales/ja.js +188 -0
- package/dist/locales/ko.js +188 -0
- package/dist/locales/zh-Hans.js +188 -0
- package/dist/locales/zh-Hant.js +188 -0
- package/dist/package.js +3 -0
- package/dist/testing/app.d.ts +7 -0
- package/dist/testing/app.js +16 -0
- package/dist/testing/elements.d.ts +42 -0
- package/dist/testing/elements.js +58 -0
- package/dist/testing/fakeCanvas.d.ts +21 -0
- package/dist/testing/fakeCanvas.js +26 -0
- package/dist/testing/layerStore.d.ts +26 -0
- package/dist/testing/layerStore.js +43 -0
- package/dist/testing/locks.d.ts +15 -0
- package/dist/testing/locks.js +41 -0
- package/dist/testing/recordingCanvas.d.ts +14 -0
- package/dist/testing/recordingCanvas.js +28 -0
- package/dist/testing/recordingContext.d.ts +10 -0
- package/dist/testing/recordingContext.js +19 -0
- package/dist/ui/ChangeController/index.d.ts +40 -0
- package/dist/ui/ChangeController/index.js +62 -0
- package/dist/ui/base/index.d.ts +69 -0
- package/dist/ui/base/index.js +94 -0
- package/dist/ui/elements/PaintCanvas/index.d.ts +249 -0
- package/dist/ui/elements/PaintCanvas/index.js +584 -0
- package/dist/ui/elements/PaintCanvas/style.js +3 -0
- package/dist/ui/elements/PcBrushConfig/index.d.ts +130 -0
- package/dist/ui/elements/PcBrushConfig/index.js +463 -0
- package/dist/ui/elements/PcBrushConfig/style.js +3 -0
- package/dist/ui/elements/PcBrushMenu/index.d.ts +121 -0
- package/dist/ui/elements/PcBrushMenu/index.js +362 -0
- package/dist/ui/elements/PcBrushMenu/style.js +3 -0
- package/dist/ui/elements/PcBrushTest/index.d.ts +71 -0
- package/dist/ui/elements/PcBrushTest/index.js +136 -0
- package/dist/ui/elements/PcBrushTest/style.js +3 -0
- package/dist/ui/elements/PcButton/index.d.ts +57 -0
- package/dist/ui/elements/PcButton/index.js +124 -0
- package/dist/ui/elements/PcButtonGroup/index.d.ts +44 -0
- package/dist/ui/elements/PcButtonGroup/index.js +93 -0
- package/dist/ui/elements/PcCanvas/index.d.ts +356 -0
- package/dist/ui/elements/PcCanvas/index.js +1004 -0
- package/dist/ui/elements/PcCanvas/style.js +3 -0
- package/dist/ui/elements/PcCanvasMap/index.d.ts +96 -0
- package/dist/ui/elements/PcCanvasMap/index.js +187 -0
- package/dist/ui/elements/PcCanvasMap/style.js +3 -0
- package/dist/ui/elements/PcContextMenu/index.d.ts +72 -0
- package/dist/ui/elements/PcContextMenu/index.js +148 -0
- package/dist/ui/elements/PcDialog/index.d.ts +63 -0
- package/dist/ui/elements/PcDialog/index.js +114 -0
- package/dist/ui/elements/PcIcon/index.d.ts +36 -0
- package/dist/ui/elements/PcIcon/index.js +43 -0
- package/dist/ui/elements/PcIconToggle/index.d.ts +46 -0
- package/dist/ui/elements/PcIconToggle/index.js +87 -0
- package/dist/ui/elements/PcInfoTip/index.d.ts +40 -0
- package/dist/ui/elements/PcInfoTip/index.js +95 -0
- package/dist/ui/elements/PcInputSettings/index.d.ts +69 -0
- package/dist/ui/elements/PcInputSettings/index.js +150 -0
- package/dist/ui/elements/PcLayerItem/index.d.ts +221 -0
- package/dist/ui/elements/PcLayerItem/index.js +561 -0
- package/dist/ui/elements/PcLayerItem/style.js +3 -0
- package/dist/ui/elements/PcLayersMenu/index.d.ts +108 -0
- package/dist/ui/elements/PcLayersMenu/index.js +208 -0
- package/dist/ui/elements/PcLayersMenu/style.js +3 -0
- package/dist/ui/elements/PcMatch/index.d.ts +31 -0
- package/dist/ui/elements/PcMatch/index.js +58 -0
- package/dist/ui/elements/PcPanel/index.d.ts +43 -0
- package/dist/ui/elements/PcPanel/index.js +51 -0
- package/dist/ui/elements/PcPopover/index.d.ts +48 -0
- package/dist/ui/elements/PcPopover/index.js +86 -0
- package/dist/ui/elements/PcSlider/index.d.ts +57 -0
- package/dist/ui/elements/PcSlider/index.js +88 -0
- package/dist/ui/elements/PcStats/index.d.ts +54 -0
- package/dist/ui/elements/PcStats/index.js +141 -0
- package/dist/ui/elements/PcThemePicker/index.d.ts +56 -0
- package/dist/ui/elements/PcThemePicker/index.js +134 -0
- package/dist/ui/elements/PcToast/index.d.ts +58 -0
- package/dist/ui/elements/PcToast/index.js +110 -0
- package/dist/ui/elements/PcToggleCheckbox/index.d.ts +37 -0
- package/dist/ui/elements/PcToggleCheckbox/index.js +105 -0
- package/dist/ui/elements/PcToolSettings/index.d.ts +128 -0
- package/dist/ui/elements/PcToolSettings/index.js +543 -0
- package/dist/ui/elements/PcToolSettings/style.js +3 -0
- package/dist/ui/elements/PcToolbar/index.d.ts +71 -0
- package/dist/ui/elements/PcToolbar/index.js +190 -0
- package/dist/ui/elements/PcToolbar/style.js +3 -0
- package/dist/ui/icons/images/brush.js +3 -0
- package/dist/ui/icons/images/circle-mask.js +3 -0
- package/dist/ui/icons/images/clipboard.js +3 -0
- package/dist/ui/icons/images/cursor.js +3 -0
- package/dist/ui/icons/images/eraser.js +3 -0
- package/dist/ui/icons/images/eyedropper.js +3 -0
- package/dist/ui/icons/images/flip-horizontal.js +3 -0
- package/dist/ui/icons/images/flip-vertical.js +3 -0
- package/dist/ui/icons/images/focus-pen.js +3 -0
- package/dist/ui/icons/images/freehand-mask.js +3 -0
- package/dist/ui/icons/images/hidden.js +3 -0
- package/dist/ui/icons/images/layers.js +3 -0
- package/dist/ui/icons/images/linked.js +3 -0
- package/dist/ui/icons/images/locked.js +3 -0
- package/dist/ui/icons/images/moon.js +3 -0
- package/dist/ui/icons/images/pan.js +3 -0
- package/dist/ui/icons/images/polygon-mask.js +3 -0
- package/dist/ui/icons/images/pressure.js +3 -0
- package/dist/ui/icons/images/randomise.js +3 -0
- package/dist/ui/icons/images/rectangle-mask.js +3 -0
- package/dist/ui/icons/images/redo.js +3 -0
- package/dist/ui/icons/images/rotate-90-left.js +3 -0
- package/dist/ui/icons/images/rotate-90-right.js +3 -0
- package/dist/ui/icons/images/smoothing-bezier-cubic.js +3 -0
- package/dist/ui/icons/images/smoothing-bezier-quad.js +3 -0
- package/dist/ui/icons/images/smoothing-linear.js +3 -0
- package/dist/ui/icons/images/star.js +3 -0
- package/dist/ui/icons/images/sun.js +3 -0
- package/dist/ui/icons/images/tilt.js +3 -0
- package/dist/ui/icons/images/undo.js +3 -0
- package/dist/ui/icons/images/unlinked.js +3 -0
- package/dist/ui/icons/images/unlocked.js +3 -0
- package/dist/ui/icons/images/visible.js +3 -0
- package/dist/ui/icons/images/zoom-in.js +3 -0
- package/dist/ui/icons/images/zoom-out.js +3 -0
- package/dist/ui/icons/images/zoom.js +3 -0
- package/dist/ui/icons/index.d.ts +42 -0
- package/dist/ui/icons/index.js +130 -0
- package/dist/ui/index.d.ts +21 -0
- package/dist/ui/index.js +22 -0
- package/dist/ui/layout/index.d.ts +88 -0
- package/dist/ui/layout/index.js +96 -0
- package/dist/ui/styles/index.d.ts +13 -0
- package/dist/ui/styles/index.js +195 -0
- package/dist/ui/tokens/index.d.ts +29 -0
- package/dist/ui/tokens/index.js +114 -0
- package/locales/en-GB.json +186 -0
- package/locales/en-US.json +186 -0
- package/locales/fr.json +186 -0
- package/locales/ja.json +186 -0
- package/locales/ko.json +186 -0
- package/locales/zh-Hans.json +186 -0
- package/locales/zh-Hant.json +186 -0
- package/package.json +97 -3
|
@@ -0,0 +1,753 @@
|
|
|
1
|
+
/** Matches a lowercase UUID */
|
|
2
|
+
export declare const UUID_PATTERN = "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$";
|
|
3
|
+
/** The `format` of a brush preset file, unless the implementer names their own (see `PaintCanvasNames`) */
|
|
4
|
+
export declare const BRUSH_PRESET_FILE_FORMAT = "paintcanvas-brush-presets";
|
|
5
|
+
/** Formats of brush preset files that are imported by default */
|
|
6
|
+
export declare const BRUSH_PRESET_FILE_FORMATS: readonly string[];
|
|
7
|
+
/** Longest brush preset file format name (characters) */
|
|
8
|
+
export declare const MAX_PRESET_FILE_FORMAT_LENGTH = 100;
|
|
9
|
+
/** The version of the brush preset file format */
|
|
10
|
+
export declare const BRUSH_PRESET_FILE_VERSION = 1;
|
|
11
|
+
/** Most presets in one file */
|
|
12
|
+
export declare const MAX_PRESETS_PER_FILE = 1000;
|
|
13
|
+
/** Longest preset name, author name or handle (characters) */
|
|
14
|
+
export declare const MAX_PRESET_TEXT_LENGTH = 100;
|
|
15
|
+
/** Longest brush shape data URL (characters): a 2 MB PNG as base64 */
|
|
16
|
+
export declare const MAX_SHAPE_DATA_URL_LENGTH: number;
|
|
17
|
+
/** Matches a PNG data URL */
|
|
18
|
+
export declare const PNG_DATA_URL_PATTERN = "^data:image/png;base64,[A-Za-z0-9+/]+={0,2}$";
|
|
19
|
+
/** A brush preset file: what users export and import */
|
|
20
|
+
export interface BrushPresetFile {
|
|
21
|
+
/** Names the app or kind of file, e.g. `BRUSH_PRESET_FILE_FORMAT` */
|
|
22
|
+
format: string;
|
|
23
|
+
version: typeof BRUSH_PRESET_FILE_VERSION;
|
|
24
|
+
/** Presets, each matching `brushPresetSchema` */
|
|
25
|
+
presets: Record<string, unknown>[];
|
|
26
|
+
}
|
|
27
|
+
/** JSON schema for a brush preset a user made or imported (see `BrushConfig` in the app) */
|
|
28
|
+
export declare const brushPresetSchema: {
|
|
29
|
+
readonly $id: "paintcanvas/brush-preset";
|
|
30
|
+
readonly type: "object";
|
|
31
|
+
readonly additionalProperties: false;
|
|
32
|
+
readonly required: readonly ["id"];
|
|
33
|
+
readonly properties: {
|
|
34
|
+
readonly id: {
|
|
35
|
+
readonly type: "string";
|
|
36
|
+
readonly pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$";
|
|
37
|
+
};
|
|
38
|
+
readonly name: {
|
|
39
|
+
readonly type: "string";
|
|
40
|
+
readonly minLength: 1;
|
|
41
|
+
readonly maxLength: 100;
|
|
42
|
+
};
|
|
43
|
+
readonly group: {
|
|
44
|
+
readonly type: "string";
|
|
45
|
+
readonly minLength: 1;
|
|
46
|
+
readonly maxLength: 100;
|
|
47
|
+
};
|
|
48
|
+
readonly version: {
|
|
49
|
+
readonly type: "string";
|
|
50
|
+
readonly maxLength: 20;
|
|
51
|
+
};
|
|
52
|
+
readonly author: {
|
|
53
|
+
readonly anyOf: readonly [{
|
|
54
|
+
readonly type: "string";
|
|
55
|
+
readonly minLength: 1;
|
|
56
|
+
readonly maxLength: 100;
|
|
57
|
+
}, {
|
|
58
|
+
readonly type: "object";
|
|
59
|
+
readonly additionalProperties: false;
|
|
60
|
+
readonly required: readonly ["name"];
|
|
61
|
+
readonly properties: {
|
|
62
|
+
readonly name: {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
readonly minLength: 1;
|
|
65
|
+
readonly maxLength: 100;
|
|
66
|
+
};
|
|
67
|
+
readonly handle: {
|
|
68
|
+
readonly type: "string";
|
|
69
|
+
readonly minLength: 1;
|
|
70
|
+
readonly maxLength: 100;
|
|
71
|
+
};
|
|
72
|
+
readonly email: {
|
|
73
|
+
readonly type: "string";
|
|
74
|
+
readonly maxLength: 254;
|
|
75
|
+
};
|
|
76
|
+
readonly website: {
|
|
77
|
+
readonly type: "string";
|
|
78
|
+
readonly maxLength: 2048;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
}];
|
|
82
|
+
};
|
|
83
|
+
readonly image: {
|
|
84
|
+
readonly type: "string";
|
|
85
|
+
readonly pattern: "^data:image/png;base64,[A-Za-z0-9+/]+={0,2}$";
|
|
86
|
+
readonly maxLength: number;
|
|
87
|
+
};
|
|
88
|
+
readonly colourMode: {
|
|
89
|
+
readonly enum: readonly [0, 1];
|
|
90
|
+
};
|
|
91
|
+
readonly hue: {
|
|
92
|
+
readonly anyOf: readonly [{
|
|
93
|
+
readonly type: "number";
|
|
94
|
+
}, {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
readonly maxLength: 20;
|
|
97
|
+
}];
|
|
98
|
+
};
|
|
99
|
+
readonly hueConfig: {
|
|
100
|
+
readonly type: "object";
|
|
101
|
+
readonly additionalProperties: false;
|
|
102
|
+
readonly properties: {
|
|
103
|
+
readonly useRandomise: {
|
|
104
|
+
readonly type: "boolean";
|
|
105
|
+
};
|
|
106
|
+
readonly minRandomise: {
|
|
107
|
+
readonly type: "number";
|
|
108
|
+
readonly minimum: 0;
|
|
109
|
+
readonly maximum: 1;
|
|
110
|
+
};
|
|
111
|
+
readonly maxRandomise: {
|
|
112
|
+
readonly type: "number";
|
|
113
|
+
readonly minimum: 0;
|
|
114
|
+
readonly maximum: 1;
|
|
115
|
+
};
|
|
116
|
+
readonly usePressure: {
|
|
117
|
+
readonly type: "boolean";
|
|
118
|
+
};
|
|
119
|
+
readonly minPressure: {
|
|
120
|
+
readonly type: "number";
|
|
121
|
+
readonly minimum: 0;
|
|
122
|
+
readonly maximum: 1;
|
|
123
|
+
};
|
|
124
|
+
readonly maxPressure: {
|
|
125
|
+
readonly type: "number";
|
|
126
|
+
readonly minimum: 0;
|
|
127
|
+
readonly maximum: 1;
|
|
128
|
+
};
|
|
129
|
+
readonly useTilt: {
|
|
130
|
+
readonly type: "boolean";
|
|
131
|
+
};
|
|
132
|
+
readonly minTilt: {
|
|
133
|
+
readonly type: "number";
|
|
134
|
+
readonly minimum: 0;
|
|
135
|
+
readonly maximum: 1;
|
|
136
|
+
};
|
|
137
|
+
readonly maxTilt: {
|
|
138
|
+
readonly type: "number";
|
|
139
|
+
readonly minimum: 0;
|
|
140
|
+
readonly maximum: 1;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
readonly saturation: {
|
|
145
|
+
readonly anyOf: readonly [{
|
|
146
|
+
readonly type: "number";
|
|
147
|
+
}, {
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
readonly maxLength: 20;
|
|
150
|
+
}];
|
|
151
|
+
};
|
|
152
|
+
readonly saturationConfig: {
|
|
153
|
+
readonly type: "object";
|
|
154
|
+
readonly additionalProperties: false;
|
|
155
|
+
readonly properties: {
|
|
156
|
+
readonly useRandomise: {
|
|
157
|
+
readonly type: "boolean";
|
|
158
|
+
};
|
|
159
|
+
readonly minRandomise: {
|
|
160
|
+
readonly type: "number";
|
|
161
|
+
readonly minimum: 0;
|
|
162
|
+
readonly maximum: 1;
|
|
163
|
+
};
|
|
164
|
+
readonly maxRandomise: {
|
|
165
|
+
readonly type: "number";
|
|
166
|
+
readonly minimum: 0;
|
|
167
|
+
readonly maximum: 1;
|
|
168
|
+
};
|
|
169
|
+
readonly usePressure: {
|
|
170
|
+
readonly type: "boolean";
|
|
171
|
+
};
|
|
172
|
+
readonly minPressure: {
|
|
173
|
+
readonly type: "number";
|
|
174
|
+
readonly minimum: 0;
|
|
175
|
+
readonly maximum: 1;
|
|
176
|
+
};
|
|
177
|
+
readonly maxPressure: {
|
|
178
|
+
readonly type: "number";
|
|
179
|
+
readonly minimum: 0;
|
|
180
|
+
readonly maximum: 1;
|
|
181
|
+
};
|
|
182
|
+
readonly useTilt: {
|
|
183
|
+
readonly type: "boolean";
|
|
184
|
+
};
|
|
185
|
+
readonly minTilt: {
|
|
186
|
+
readonly type: "number";
|
|
187
|
+
readonly minimum: 0;
|
|
188
|
+
readonly maximum: 1;
|
|
189
|
+
};
|
|
190
|
+
readonly maxTilt: {
|
|
191
|
+
readonly type: "number";
|
|
192
|
+
readonly minimum: 0;
|
|
193
|
+
readonly maximum: 1;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
readonly lightness: {
|
|
198
|
+
readonly anyOf: readonly [{
|
|
199
|
+
readonly type: "number";
|
|
200
|
+
}, {
|
|
201
|
+
readonly type: "string";
|
|
202
|
+
readonly maxLength: 20;
|
|
203
|
+
}];
|
|
204
|
+
};
|
|
205
|
+
readonly lightnessConfig: {
|
|
206
|
+
readonly type: "object";
|
|
207
|
+
readonly additionalProperties: false;
|
|
208
|
+
readonly properties: {
|
|
209
|
+
readonly useRandomise: {
|
|
210
|
+
readonly type: "boolean";
|
|
211
|
+
};
|
|
212
|
+
readonly minRandomise: {
|
|
213
|
+
readonly type: "number";
|
|
214
|
+
readonly minimum: 0;
|
|
215
|
+
readonly maximum: 1;
|
|
216
|
+
};
|
|
217
|
+
readonly maxRandomise: {
|
|
218
|
+
readonly type: "number";
|
|
219
|
+
readonly minimum: 0;
|
|
220
|
+
readonly maximum: 1;
|
|
221
|
+
};
|
|
222
|
+
readonly usePressure: {
|
|
223
|
+
readonly type: "boolean";
|
|
224
|
+
};
|
|
225
|
+
readonly minPressure: {
|
|
226
|
+
readonly type: "number";
|
|
227
|
+
readonly minimum: 0;
|
|
228
|
+
readonly maximum: 1;
|
|
229
|
+
};
|
|
230
|
+
readonly maxPressure: {
|
|
231
|
+
readonly type: "number";
|
|
232
|
+
readonly minimum: 0;
|
|
233
|
+
readonly maximum: 1;
|
|
234
|
+
};
|
|
235
|
+
readonly useTilt: {
|
|
236
|
+
readonly type: "boolean";
|
|
237
|
+
};
|
|
238
|
+
readonly minTilt: {
|
|
239
|
+
readonly type: "number";
|
|
240
|
+
readonly minimum: 0;
|
|
241
|
+
readonly maximum: 1;
|
|
242
|
+
};
|
|
243
|
+
readonly maxTilt: {
|
|
244
|
+
readonly type: "number";
|
|
245
|
+
readonly minimum: 0;
|
|
246
|
+
readonly maximum: 1;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
readonly red: {
|
|
251
|
+
readonly anyOf: readonly [{
|
|
252
|
+
readonly type: "number";
|
|
253
|
+
}, {
|
|
254
|
+
readonly type: "string";
|
|
255
|
+
readonly maxLength: 20;
|
|
256
|
+
}];
|
|
257
|
+
};
|
|
258
|
+
readonly redConfig: {
|
|
259
|
+
readonly type: "object";
|
|
260
|
+
readonly additionalProperties: false;
|
|
261
|
+
readonly properties: {
|
|
262
|
+
readonly useRandomise: {
|
|
263
|
+
readonly type: "boolean";
|
|
264
|
+
};
|
|
265
|
+
readonly minRandomise: {
|
|
266
|
+
readonly type: "number";
|
|
267
|
+
readonly minimum: 0;
|
|
268
|
+
readonly maximum: 1;
|
|
269
|
+
};
|
|
270
|
+
readonly maxRandomise: {
|
|
271
|
+
readonly type: "number";
|
|
272
|
+
readonly minimum: 0;
|
|
273
|
+
readonly maximum: 1;
|
|
274
|
+
};
|
|
275
|
+
readonly usePressure: {
|
|
276
|
+
readonly type: "boolean";
|
|
277
|
+
};
|
|
278
|
+
readonly minPressure: {
|
|
279
|
+
readonly type: "number";
|
|
280
|
+
readonly minimum: 0;
|
|
281
|
+
readonly maximum: 1;
|
|
282
|
+
};
|
|
283
|
+
readonly maxPressure: {
|
|
284
|
+
readonly type: "number";
|
|
285
|
+
readonly minimum: 0;
|
|
286
|
+
readonly maximum: 1;
|
|
287
|
+
};
|
|
288
|
+
readonly useTilt: {
|
|
289
|
+
readonly type: "boolean";
|
|
290
|
+
};
|
|
291
|
+
readonly minTilt: {
|
|
292
|
+
readonly type: "number";
|
|
293
|
+
readonly minimum: 0;
|
|
294
|
+
readonly maximum: 1;
|
|
295
|
+
};
|
|
296
|
+
readonly maxTilt: {
|
|
297
|
+
readonly type: "number";
|
|
298
|
+
readonly minimum: 0;
|
|
299
|
+
readonly maximum: 1;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
readonly green: {
|
|
304
|
+
readonly anyOf: readonly [{
|
|
305
|
+
readonly type: "number";
|
|
306
|
+
}, {
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
readonly maxLength: 20;
|
|
309
|
+
}];
|
|
310
|
+
};
|
|
311
|
+
readonly greenConfig: {
|
|
312
|
+
readonly type: "object";
|
|
313
|
+
readonly additionalProperties: false;
|
|
314
|
+
readonly properties: {
|
|
315
|
+
readonly useRandomise: {
|
|
316
|
+
readonly type: "boolean";
|
|
317
|
+
};
|
|
318
|
+
readonly minRandomise: {
|
|
319
|
+
readonly type: "number";
|
|
320
|
+
readonly minimum: 0;
|
|
321
|
+
readonly maximum: 1;
|
|
322
|
+
};
|
|
323
|
+
readonly maxRandomise: {
|
|
324
|
+
readonly type: "number";
|
|
325
|
+
readonly minimum: 0;
|
|
326
|
+
readonly maximum: 1;
|
|
327
|
+
};
|
|
328
|
+
readonly usePressure: {
|
|
329
|
+
readonly type: "boolean";
|
|
330
|
+
};
|
|
331
|
+
readonly minPressure: {
|
|
332
|
+
readonly type: "number";
|
|
333
|
+
readonly minimum: 0;
|
|
334
|
+
readonly maximum: 1;
|
|
335
|
+
};
|
|
336
|
+
readonly maxPressure: {
|
|
337
|
+
readonly type: "number";
|
|
338
|
+
readonly minimum: 0;
|
|
339
|
+
readonly maximum: 1;
|
|
340
|
+
};
|
|
341
|
+
readonly useTilt: {
|
|
342
|
+
readonly type: "boolean";
|
|
343
|
+
};
|
|
344
|
+
readonly minTilt: {
|
|
345
|
+
readonly type: "number";
|
|
346
|
+
readonly minimum: 0;
|
|
347
|
+
readonly maximum: 1;
|
|
348
|
+
};
|
|
349
|
+
readonly maxTilt: {
|
|
350
|
+
readonly type: "number";
|
|
351
|
+
readonly minimum: 0;
|
|
352
|
+
readonly maximum: 1;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
readonly blue: {
|
|
357
|
+
readonly anyOf: readonly [{
|
|
358
|
+
readonly type: "number";
|
|
359
|
+
}, {
|
|
360
|
+
readonly type: "string";
|
|
361
|
+
readonly maxLength: 20;
|
|
362
|
+
}];
|
|
363
|
+
};
|
|
364
|
+
readonly blueConfig: {
|
|
365
|
+
readonly type: "object";
|
|
366
|
+
readonly additionalProperties: false;
|
|
367
|
+
readonly properties: {
|
|
368
|
+
readonly useRandomise: {
|
|
369
|
+
readonly type: "boolean";
|
|
370
|
+
};
|
|
371
|
+
readonly minRandomise: {
|
|
372
|
+
readonly type: "number";
|
|
373
|
+
readonly minimum: 0;
|
|
374
|
+
readonly maximum: 1;
|
|
375
|
+
};
|
|
376
|
+
readonly maxRandomise: {
|
|
377
|
+
readonly type: "number";
|
|
378
|
+
readonly minimum: 0;
|
|
379
|
+
readonly maximum: 1;
|
|
380
|
+
};
|
|
381
|
+
readonly usePressure: {
|
|
382
|
+
readonly type: "boolean";
|
|
383
|
+
};
|
|
384
|
+
readonly minPressure: {
|
|
385
|
+
readonly type: "number";
|
|
386
|
+
readonly minimum: 0;
|
|
387
|
+
readonly maximum: 1;
|
|
388
|
+
};
|
|
389
|
+
readonly maxPressure: {
|
|
390
|
+
readonly type: "number";
|
|
391
|
+
readonly minimum: 0;
|
|
392
|
+
readonly maximum: 1;
|
|
393
|
+
};
|
|
394
|
+
readonly useTilt: {
|
|
395
|
+
readonly type: "boolean";
|
|
396
|
+
};
|
|
397
|
+
readonly minTilt: {
|
|
398
|
+
readonly type: "number";
|
|
399
|
+
readonly minimum: 0;
|
|
400
|
+
readonly maximum: 1;
|
|
401
|
+
};
|
|
402
|
+
readonly maxTilt: {
|
|
403
|
+
readonly type: "number";
|
|
404
|
+
readonly minimum: 0;
|
|
405
|
+
readonly maximum: 1;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
readonly alpha: {
|
|
410
|
+
readonly type: "number";
|
|
411
|
+
readonly minimum: 0;
|
|
412
|
+
readonly maximum: 1;
|
|
413
|
+
};
|
|
414
|
+
readonly alphaConfig: {
|
|
415
|
+
readonly type: "object";
|
|
416
|
+
readonly additionalProperties: false;
|
|
417
|
+
readonly properties: {
|
|
418
|
+
readonly useRandomise: {
|
|
419
|
+
readonly type: "boolean";
|
|
420
|
+
};
|
|
421
|
+
readonly minRandomise: {
|
|
422
|
+
readonly type: "number";
|
|
423
|
+
readonly minimum: 0;
|
|
424
|
+
readonly maximum: 1;
|
|
425
|
+
};
|
|
426
|
+
readonly maxRandomise: {
|
|
427
|
+
readonly type: "number";
|
|
428
|
+
readonly minimum: 0;
|
|
429
|
+
readonly maximum: 1;
|
|
430
|
+
};
|
|
431
|
+
readonly usePressure: {
|
|
432
|
+
readonly type: "boolean";
|
|
433
|
+
};
|
|
434
|
+
readonly minPressure: {
|
|
435
|
+
readonly type: "number";
|
|
436
|
+
readonly minimum: 0;
|
|
437
|
+
readonly maximum: 1;
|
|
438
|
+
};
|
|
439
|
+
readonly maxPressure: {
|
|
440
|
+
readonly type: "number";
|
|
441
|
+
readonly minimum: 0;
|
|
442
|
+
readonly maximum: 1;
|
|
443
|
+
};
|
|
444
|
+
readonly useTilt: {
|
|
445
|
+
readonly type: "boolean";
|
|
446
|
+
};
|
|
447
|
+
readonly minTilt: {
|
|
448
|
+
readonly type: "number";
|
|
449
|
+
readonly minimum: 0;
|
|
450
|
+
readonly maximum: 1;
|
|
451
|
+
};
|
|
452
|
+
readonly maxTilt: {
|
|
453
|
+
readonly type: "number";
|
|
454
|
+
readonly minimum: 0;
|
|
455
|
+
readonly maximum: 1;
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
readonly width: {
|
|
460
|
+
readonly type: "number";
|
|
461
|
+
readonly minimum: 1;
|
|
462
|
+
readonly maximum: 256;
|
|
463
|
+
};
|
|
464
|
+
readonly widthConfig: {
|
|
465
|
+
readonly type: "object";
|
|
466
|
+
readonly additionalProperties: false;
|
|
467
|
+
readonly properties: {
|
|
468
|
+
readonly useRandomise: {
|
|
469
|
+
readonly type: "boolean";
|
|
470
|
+
};
|
|
471
|
+
readonly minRandomise: {
|
|
472
|
+
readonly type: "number";
|
|
473
|
+
readonly minimum: 0;
|
|
474
|
+
readonly maximum: 1;
|
|
475
|
+
};
|
|
476
|
+
readonly maxRandomise: {
|
|
477
|
+
readonly type: "number";
|
|
478
|
+
readonly minimum: 0;
|
|
479
|
+
readonly maximum: 1;
|
|
480
|
+
};
|
|
481
|
+
readonly usePressure: {
|
|
482
|
+
readonly type: "boolean";
|
|
483
|
+
};
|
|
484
|
+
readonly minPressure: {
|
|
485
|
+
readonly type: "number";
|
|
486
|
+
readonly minimum: 0;
|
|
487
|
+
readonly maximum: 1;
|
|
488
|
+
};
|
|
489
|
+
readonly maxPressure: {
|
|
490
|
+
readonly type: "number";
|
|
491
|
+
readonly minimum: 0;
|
|
492
|
+
readonly maximum: 1;
|
|
493
|
+
};
|
|
494
|
+
readonly useTilt: {
|
|
495
|
+
readonly type: "boolean";
|
|
496
|
+
};
|
|
497
|
+
readonly minTilt: {
|
|
498
|
+
readonly type: "number";
|
|
499
|
+
readonly minimum: 0;
|
|
500
|
+
readonly maximum: 1;
|
|
501
|
+
};
|
|
502
|
+
readonly maxTilt: {
|
|
503
|
+
readonly type: "number";
|
|
504
|
+
readonly minimum: 0;
|
|
505
|
+
readonly maximum: 1;
|
|
506
|
+
};
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
readonly height: {
|
|
510
|
+
readonly type: "number";
|
|
511
|
+
readonly minimum: 1;
|
|
512
|
+
readonly maximum: 256;
|
|
513
|
+
};
|
|
514
|
+
readonly heightConfig: {
|
|
515
|
+
readonly type: "object";
|
|
516
|
+
readonly additionalProperties: false;
|
|
517
|
+
readonly properties: {
|
|
518
|
+
readonly useRandomise: {
|
|
519
|
+
readonly type: "boolean";
|
|
520
|
+
};
|
|
521
|
+
readonly minRandomise: {
|
|
522
|
+
readonly type: "number";
|
|
523
|
+
readonly minimum: 0;
|
|
524
|
+
readonly maximum: 1;
|
|
525
|
+
};
|
|
526
|
+
readonly maxRandomise: {
|
|
527
|
+
readonly type: "number";
|
|
528
|
+
readonly minimum: 0;
|
|
529
|
+
readonly maximum: 1;
|
|
530
|
+
};
|
|
531
|
+
readonly usePressure: {
|
|
532
|
+
readonly type: "boolean";
|
|
533
|
+
};
|
|
534
|
+
readonly minPressure: {
|
|
535
|
+
readonly type: "number";
|
|
536
|
+
readonly minimum: 0;
|
|
537
|
+
readonly maximum: 1;
|
|
538
|
+
};
|
|
539
|
+
readonly maxPressure: {
|
|
540
|
+
readonly type: "number";
|
|
541
|
+
readonly minimum: 0;
|
|
542
|
+
readonly maximum: 1;
|
|
543
|
+
};
|
|
544
|
+
readonly useTilt: {
|
|
545
|
+
readonly type: "boolean";
|
|
546
|
+
};
|
|
547
|
+
readonly minTilt: {
|
|
548
|
+
readonly type: "number";
|
|
549
|
+
readonly minimum: 0;
|
|
550
|
+
readonly maximum: 1;
|
|
551
|
+
};
|
|
552
|
+
readonly maxTilt: {
|
|
553
|
+
readonly type: "number";
|
|
554
|
+
readonly minimum: 0;
|
|
555
|
+
readonly maximum: 1;
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
readonly constrainProportions: {
|
|
560
|
+
readonly type: "boolean";
|
|
561
|
+
};
|
|
562
|
+
readonly rotation: {
|
|
563
|
+
readonly type: "number";
|
|
564
|
+
readonly minimum: -360;
|
|
565
|
+
readonly maximum: 360;
|
|
566
|
+
};
|
|
567
|
+
readonly rotationConfig: {
|
|
568
|
+
readonly type: "object";
|
|
569
|
+
readonly additionalProperties: false;
|
|
570
|
+
readonly properties: {
|
|
571
|
+
readonly useRandomise: {
|
|
572
|
+
readonly type: "boolean";
|
|
573
|
+
};
|
|
574
|
+
readonly minRandomise: {
|
|
575
|
+
readonly type: "number";
|
|
576
|
+
readonly minimum: 0;
|
|
577
|
+
readonly maximum: 1;
|
|
578
|
+
};
|
|
579
|
+
readonly maxRandomise: {
|
|
580
|
+
readonly type: "number";
|
|
581
|
+
readonly minimum: 0;
|
|
582
|
+
readonly maximum: 1;
|
|
583
|
+
};
|
|
584
|
+
readonly usePressure: {
|
|
585
|
+
readonly type: "boolean";
|
|
586
|
+
};
|
|
587
|
+
readonly minPressure: {
|
|
588
|
+
readonly type: "number";
|
|
589
|
+
readonly minimum: 0;
|
|
590
|
+
readonly maximum: 1;
|
|
591
|
+
};
|
|
592
|
+
readonly maxPressure: {
|
|
593
|
+
readonly type: "number";
|
|
594
|
+
readonly minimum: 0;
|
|
595
|
+
readonly maximum: 1;
|
|
596
|
+
};
|
|
597
|
+
readonly useTilt: {
|
|
598
|
+
readonly type: "boolean";
|
|
599
|
+
};
|
|
600
|
+
readonly minTilt: {
|
|
601
|
+
readonly type: "number";
|
|
602
|
+
readonly minimum: 0;
|
|
603
|
+
readonly maximum: 1;
|
|
604
|
+
};
|
|
605
|
+
readonly maxTilt: {
|
|
606
|
+
readonly type: "number";
|
|
607
|
+
readonly minimum: 0;
|
|
608
|
+
readonly maximum: 1;
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
readonly offsetX: {
|
|
613
|
+
readonly type: "number";
|
|
614
|
+
readonly minimum: -256;
|
|
615
|
+
readonly maximum: 256;
|
|
616
|
+
};
|
|
617
|
+
readonly offsetXConfig: {
|
|
618
|
+
readonly type: "object";
|
|
619
|
+
readonly additionalProperties: false;
|
|
620
|
+
readonly properties: {
|
|
621
|
+
readonly useRandomise: {
|
|
622
|
+
readonly type: "boolean";
|
|
623
|
+
};
|
|
624
|
+
readonly minRandomise: {
|
|
625
|
+
readonly type: "number";
|
|
626
|
+
readonly minimum: 0;
|
|
627
|
+
readonly maximum: 1;
|
|
628
|
+
};
|
|
629
|
+
readonly maxRandomise: {
|
|
630
|
+
readonly type: "number";
|
|
631
|
+
readonly minimum: 0;
|
|
632
|
+
readonly maximum: 1;
|
|
633
|
+
};
|
|
634
|
+
readonly usePressure: {
|
|
635
|
+
readonly type: "boolean";
|
|
636
|
+
};
|
|
637
|
+
readonly minPressure: {
|
|
638
|
+
readonly type: "number";
|
|
639
|
+
readonly minimum: 0;
|
|
640
|
+
readonly maximum: 1;
|
|
641
|
+
};
|
|
642
|
+
readonly maxPressure: {
|
|
643
|
+
readonly type: "number";
|
|
644
|
+
readonly minimum: 0;
|
|
645
|
+
readonly maximum: 1;
|
|
646
|
+
};
|
|
647
|
+
readonly useTilt: {
|
|
648
|
+
readonly type: "boolean";
|
|
649
|
+
};
|
|
650
|
+
readonly minTilt: {
|
|
651
|
+
readonly type: "number";
|
|
652
|
+
readonly minimum: 0;
|
|
653
|
+
readonly maximum: 1;
|
|
654
|
+
};
|
|
655
|
+
readonly maxTilt: {
|
|
656
|
+
readonly type: "number";
|
|
657
|
+
readonly minimum: 0;
|
|
658
|
+
readonly maximum: 1;
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
readonly offsetY: {
|
|
663
|
+
readonly type: "number";
|
|
664
|
+
readonly minimum: -256;
|
|
665
|
+
readonly maximum: 256;
|
|
666
|
+
};
|
|
667
|
+
readonly offsetYConfig: {
|
|
668
|
+
readonly type: "object";
|
|
669
|
+
readonly additionalProperties: false;
|
|
670
|
+
readonly properties: {
|
|
671
|
+
readonly useRandomise: {
|
|
672
|
+
readonly type: "boolean";
|
|
673
|
+
};
|
|
674
|
+
readonly minRandomise: {
|
|
675
|
+
readonly type: "number";
|
|
676
|
+
readonly minimum: 0;
|
|
677
|
+
readonly maximum: 1;
|
|
678
|
+
};
|
|
679
|
+
readonly maxRandomise: {
|
|
680
|
+
readonly type: "number";
|
|
681
|
+
readonly minimum: 0;
|
|
682
|
+
readonly maximum: 1;
|
|
683
|
+
};
|
|
684
|
+
readonly usePressure: {
|
|
685
|
+
readonly type: "boolean";
|
|
686
|
+
};
|
|
687
|
+
readonly minPressure: {
|
|
688
|
+
readonly type: "number";
|
|
689
|
+
readonly minimum: 0;
|
|
690
|
+
readonly maximum: 1;
|
|
691
|
+
};
|
|
692
|
+
readonly maxPressure: {
|
|
693
|
+
readonly type: "number";
|
|
694
|
+
readonly minimum: 0;
|
|
695
|
+
readonly maximum: 1;
|
|
696
|
+
};
|
|
697
|
+
readonly useTilt: {
|
|
698
|
+
readonly type: "boolean";
|
|
699
|
+
};
|
|
700
|
+
readonly minTilt: {
|
|
701
|
+
readonly type: "number";
|
|
702
|
+
readonly minimum: 0;
|
|
703
|
+
readonly maximum: 1;
|
|
704
|
+
};
|
|
705
|
+
readonly maxTilt: {
|
|
706
|
+
readonly type: "number";
|
|
707
|
+
readonly minimum: 0;
|
|
708
|
+
readonly maximum: 1;
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
};
|
|
712
|
+
readonly sampleRate: {
|
|
713
|
+
readonly type: "number";
|
|
714
|
+
readonly minimum: 5;
|
|
715
|
+
readonly maximum: 400;
|
|
716
|
+
};
|
|
717
|
+
readonly smoothingType: {
|
|
718
|
+
readonly enum: readonly [0, 1, 2, 3];
|
|
719
|
+
};
|
|
720
|
+
readonly spacing: {
|
|
721
|
+
readonly type: "number";
|
|
722
|
+
readonly minimum: 0;
|
|
723
|
+
readonly maximum: 200;
|
|
724
|
+
};
|
|
725
|
+
readonly snapToPixelGrid: {
|
|
726
|
+
readonly type: "boolean";
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
/** JSON schema for a brush preset file */
|
|
731
|
+
export declare const brushPresetFileSchema: {
|
|
732
|
+
readonly $id: "paintcanvas/brush-preset-file";
|
|
733
|
+
readonly type: "object";
|
|
734
|
+
readonly additionalProperties: false;
|
|
735
|
+
readonly required: readonly ["format", "version", "presets"];
|
|
736
|
+
readonly properties: {
|
|
737
|
+
readonly format: {
|
|
738
|
+
readonly type: "string";
|
|
739
|
+
readonly minLength: 1;
|
|
740
|
+
readonly maxLength: 100;
|
|
741
|
+
};
|
|
742
|
+
readonly version: {
|
|
743
|
+
readonly const: 1;
|
|
744
|
+
};
|
|
745
|
+
readonly presets: {
|
|
746
|
+
readonly type: "array";
|
|
747
|
+
readonly maxItems: 1000;
|
|
748
|
+
readonly items: {
|
|
749
|
+
readonly $ref: "brush-preset";
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
};
|