@hussmartinez/image-sdk 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 +202 -0
- package/README.md +68 -2
- package/dist/assets/image/render.worker.js +1 -0
- package/dist/element.d.ts +1152 -0
- package/dist/element.js +129 -0
- package/dist/element.js.map +1 -0
- package/dist/index.d.ts +1729 -0
- package/dist/index.js +157 -0
- package/dist/index.js.map +1 -0
- package/dist/lazy/inline-worker-Cvw0Gpxf.js +30 -0
- package/dist/lazy/inline-worker-Cvw0Gpxf.js.map +1 -0
- package/dist/react.d.ts +1530 -0
- package/dist/react.js +2 -0
- package/dist/shared/core-CAX3GOaj.js +1444 -0
- package/dist/shared/core-CAX3GOaj.js.map +1 -0
- package/dist/shared/editor-DziYqEP3.js +1748 -0
- package/dist/shared/editor-DziYqEP3.js.map +1 -0
- package/dist/styles.css +399 -0
- package/formats/hm-image-command/v1.schema.json +102 -0
- package/formats/hm-image-plan/v1.schema.json +328 -0
- package/package.json +117 -3
package/dist/styles.css
ADDED
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* All styles of @hussmartinez/image-sdk. Applications import this file once;
|
|
3
|
+
* library code never imports CSS (ADR 0004).
|
|
4
|
+
*
|
|
5
|
+
* The layer order comes first, so it holds whichever stylesheet loads first,
|
|
6
|
+
* this one or @hussmartinez/ui's. The SDK writes only into hm.sdk, and a
|
|
7
|
+
* host's unlayered CSS beats every hm layer without !important (ADR 0005).
|
|
8
|
+
*/
|
|
9
|
+
@layer hm.tokens, hm.base, hm.components, hm.sdk;
|
|
10
|
+
|
|
11
|
+
@layer hm.sdk {
|
|
12
|
+
/*
|
|
13
|
+
* The element (docs/adr/0007) is a block, as the editor inside it is;
|
|
14
|
+
* custom elements are inline by default. A host's CSS sizes it.
|
|
15
|
+
*/
|
|
16
|
+
hm-image-editor {
|
|
17
|
+
display: block;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/*
|
|
21
|
+
* The editor (docs/adr/0007): toolbar, then the stage, filling the
|
|
22
|
+
* editor's box. Sizes follow the editor's own width through a container
|
|
23
|
+
* query, not the viewport's.
|
|
24
|
+
*/
|
|
25
|
+
.hm-image-editor {
|
|
26
|
+
container-type: inline-size;
|
|
27
|
+
display: grid;
|
|
28
|
+
/* The layout fills the editor's box and no more: the inspector scrolls. */
|
|
29
|
+
grid-template-rows: minmax(0, 1fr);
|
|
30
|
+
/* 24rem: room for the toolbar, a usable stage and the start of the inspector. */
|
|
31
|
+
min-block-size: calc(var(--hm-space-12) * 4);
|
|
32
|
+
block-size: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/*
|
|
36
|
+
* The layout, inside the editor so the editor's own width can query it:
|
|
37
|
+
* toolbar, stage and inspector in one column, the editor fitting its
|
|
38
|
+
* container however narrow; from 720 pixels, the inspector beside the stage.
|
|
39
|
+
*/
|
|
40
|
+
.hm-image-editor-layout {
|
|
41
|
+
display: grid;
|
|
42
|
+
grid-template-columns: minmax(0, 1fr);
|
|
43
|
+
/* A stage of at least 15rem; the inspector takes what's left, and scrolls. */
|
|
44
|
+
grid-template-rows: auto minmax(calc(var(--hm-space-12) * 2.5), 1fr) minmax(0, auto);
|
|
45
|
+
grid-template-areas: "toolbar" "stage" "inspector";
|
|
46
|
+
gap: var(--hm-gap-normal);
|
|
47
|
+
min-block-size: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.hm-image-editor-toolbar {
|
|
51
|
+
grid-area: toolbar;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.hm-image-editor-stage {
|
|
55
|
+
grid-area: stage;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/*
|
|
59
|
+
* The inspector keeps to its column: its content wraps rather than widening
|
|
60
|
+
* it, and it scrolls up and down, with room kept for the scrollbar so it
|
|
61
|
+
* never covers the values.
|
|
62
|
+
*/
|
|
63
|
+
.hm-image-editor-inspector {
|
|
64
|
+
grid-area: inspector;
|
|
65
|
+
display: grid;
|
|
66
|
+
align-content: start;
|
|
67
|
+
gap: var(--hm-gap-normal);
|
|
68
|
+
min-block-size: 0;
|
|
69
|
+
overflow-x: hidden;
|
|
70
|
+
overflow-y: auto;
|
|
71
|
+
scrollbar-gutter: stable;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.hm-image-editor-inspector > * {
|
|
75
|
+
min-inline-size: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* A choice of more options than fit, such as the filter presets, wraps. */
|
|
79
|
+
.hm-image-editor-inspector .hm-segmented-control {
|
|
80
|
+
flex-wrap: wrap;
|
|
81
|
+
max-inline-size: 100%;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@container (width >= 720px) {
|
|
85
|
+
.hm-image-editor-layout {
|
|
86
|
+
grid-template-columns: minmax(0, 1fr) calc(var(--hm-space-12) * 3);
|
|
87
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
88
|
+
grid-template-areas: "toolbar toolbar" "stage inspector";
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.hm-image-editor--styled {
|
|
93
|
+
font-family: var(--hm-font-family);
|
|
94
|
+
color: var(--hm-color-text);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* In a narrow editor, the toolbar's groups wrap onto more rows. */
|
|
98
|
+
.hm-image-editor-toolbar {
|
|
99
|
+
flex-wrap: wrap;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/*
|
|
103
|
+
* The stage: the canvas fills its frame, and the designed states sit over
|
|
104
|
+
* it, so the current image stays visible while another opens.
|
|
105
|
+
*/
|
|
106
|
+
.hm-image-stage {
|
|
107
|
+
position: relative;
|
|
108
|
+
display: grid;
|
|
109
|
+
min-block-size: calc(var(--hm-space-12) * 2.5);
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.hm-image-editor--styled .hm-image-stage {
|
|
114
|
+
background: var(--hm-color-surface-sunken);
|
|
115
|
+
border: var(--hm-border-width) solid var(--hm-color-border);
|
|
116
|
+
border-radius: var(--hm-radius-surface);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.hm-image-stage > * {
|
|
120
|
+
grid-area: 1 / 1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.hm-image-stage-frame {
|
|
124
|
+
position: relative;
|
|
125
|
+
min-block-size: 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.hm-image-stage-canvas {
|
|
129
|
+
position: absolute;
|
|
130
|
+
inset: 0;
|
|
131
|
+
inline-size: 100%;
|
|
132
|
+
block-size: 100%;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.hm-image-stage-canvas[hidden] {
|
|
136
|
+
display: none;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.hm-image-stage-drop {
|
|
140
|
+
margin: var(--hm-inset-loose);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.hm-image-stage-opening {
|
|
144
|
+
display: flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
gap: var(--hm-gap-normal);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* The notices and a failure, stacked at the stage's foot, over the image. */
|
|
151
|
+
.hm-image-stage-foot {
|
|
152
|
+
/* Positioned, so it paints over the canvas, which is too. */
|
|
153
|
+
position: relative;
|
|
154
|
+
align-self: end;
|
|
155
|
+
display: grid;
|
|
156
|
+
gap: var(--hm-gap-tight);
|
|
157
|
+
margin: var(--hm-inset-normal);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.hm-image-stage-notices ul {
|
|
161
|
+
display: grid;
|
|
162
|
+
gap: var(--hm-gap-tight);
|
|
163
|
+
margin: 0;
|
|
164
|
+
padding: 0;
|
|
165
|
+
list-style: none;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.hm-image-stage-notice {
|
|
169
|
+
display: flex;
|
|
170
|
+
align-items: center;
|
|
171
|
+
justify-content: space-between;
|
|
172
|
+
gap: var(--hm-gap-tight);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.hm-image-editor--styled .hm-image-stage-notice {
|
|
176
|
+
padding-inline-start: var(--hm-inset-normal);
|
|
177
|
+
color: var(--hm-color-text);
|
|
178
|
+
background: var(--hm-color-surface);
|
|
179
|
+
border: var(--hm-border-width) solid var(--hm-color-border-strong);
|
|
180
|
+
border-radius: var(--hm-radius-control);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.hm-image-stage-error {
|
|
184
|
+
margin: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/*
|
|
188
|
+
* Inside the drop zone, it's part of its content, not a banner over it,
|
|
189
|
+
* centred as the rest is: in the zone's column, align-self is across it.
|
|
190
|
+
*/
|
|
191
|
+
.hm-image-stage-drop .hm-image-stage-error {
|
|
192
|
+
align-self: center;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.hm-image-editor--styled .hm-image-stage-error {
|
|
196
|
+
padding: var(--hm-inset-tight) var(--hm-inset-normal);
|
|
197
|
+
color: var(--hm-color-danger-text);
|
|
198
|
+
background: var(--hm-color-danger-subtle);
|
|
199
|
+
border-radius: var(--hm-radius-control);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.hm-image-stage-overlay {
|
|
203
|
+
position: relative;
|
|
204
|
+
min-block-size: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/*
|
|
208
|
+
* The crop frame: outlined, with the area outside it dimmed by a shadow
|
|
209
|
+
* as large as any stage, and handles at the target size (docs/adr/0007).
|
|
210
|
+
*/
|
|
211
|
+
.hm-image-crop-frame {
|
|
212
|
+
position: absolute;
|
|
213
|
+
box-sizing: border-box;
|
|
214
|
+
touch-action: none;
|
|
215
|
+
cursor: move;
|
|
216
|
+
outline: var(--hm-border-width-2) solid var(--hm-color-accent);
|
|
217
|
+
/* stylelint-disable-next-line hm/no-literal-values -- a spread that covers any stage, not a design size */
|
|
218
|
+
box-shadow: 0 0 0 100vmax var(--hm-color-overlay);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.hm-image-crop-frame:focus-visible {
|
|
222
|
+
outline-color: var(--hm-color-accent-active);
|
|
223
|
+
outline-offset: var(--hm-border-width-2);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.hm-image-crop-handle {
|
|
227
|
+
position: absolute;
|
|
228
|
+
inline-size: var(--hm-target-size);
|
|
229
|
+
block-size: var(--hm-target-size);
|
|
230
|
+
translate: -50% -50%;
|
|
231
|
+
touch-action: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.hm-image-crop-handle::after {
|
|
235
|
+
content: "";
|
|
236
|
+
position: absolute;
|
|
237
|
+
inset: 33%;
|
|
238
|
+
background: var(--hm-color-surface);
|
|
239
|
+
border: var(--hm-border-width) solid var(--hm-color-accent);
|
|
240
|
+
border-radius: var(--hm-radius-sm);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.hm-image-crop-handle[data-hm-handle="nw"] {
|
|
244
|
+
inset-block-start: 0;
|
|
245
|
+
inset-inline-start: 0;
|
|
246
|
+
cursor: nwse-resize;
|
|
247
|
+
}
|
|
248
|
+
.hm-image-crop-handle[data-hm-handle="n"] {
|
|
249
|
+
inset-block-start: 0;
|
|
250
|
+
inset-inline-start: 50%;
|
|
251
|
+
cursor: ns-resize;
|
|
252
|
+
}
|
|
253
|
+
.hm-image-crop-handle[data-hm-handle="ne"] {
|
|
254
|
+
inset-block-start: 0;
|
|
255
|
+
inset-inline-start: 100%;
|
|
256
|
+
cursor: nesw-resize;
|
|
257
|
+
}
|
|
258
|
+
.hm-image-crop-handle[data-hm-handle="e"] {
|
|
259
|
+
inset-block-start: 50%;
|
|
260
|
+
inset-inline-start: 100%;
|
|
261
|
+
cursor: ew-resize;
|
|
262
|
+
}
|
|
263
|
+
.hm-image-crop-handle[data-hm-handle="se"] {
|
|
264
|
+
inset-block-start: 100%;
|
|
265
|
+
inset-inline-start: 100%;
|
|
266
|
+
cursor: nwse-resize;
|
|
267
|
+
}
|
|
268
|
+
.hm-image-crop-handle[data-hm-handle="s"] {
|
|
269
|
+
inset-block-start: 100%;
|
|
270
|
+
inset-inline-start: 50%;
|
|
271
|
+
cursor: ns-resize;
|
|
272
|
+
}
|
|
273
|
+
.hm-image-crop-handle[data-hm-handle="sw"] {
|
|
274
|
+
inset-block-start: 100%;
|
|
275
|
+
inset-inline-start: 0;
|
|
276
|
+
cursor: nesw-resize;
|
|
277
|
+
}
|
|
278
|
+
.hm-image-crop-handle[data-hm-handle="w"] {
|
|
279
|
+
inset-block-start: 50%;
|
|
280
|
+
inset-inline-start: 0;
|
|
281
|
+
cursor: ew-resize;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.hm-image-editor-inspector:empty {
|
|
285
|
+
display: none;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.hm-image-crop-panel {
|
|
289
|
+
display: grid;
|
|
290
|
+
gap: var(--hm-gap-normal);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/* Left and top, then width and height: two columns that shrink with the inspector. */
|
|
294
|
+
.hm-image-crop-fields {
|
|
295
|
+
display: grid;
|
|
296
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
297
|
+
gap: var(--hm-gap-tight);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.hm-image-crop-actions {
|
|
301
|
+
display: flex;
|
|
302
|
+
flex-wrap: wrap;
|
|
303
|
+
justify-content: end;
|
|
304
|
+
gap: var(--hm-gap-tight);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.hm-image-adjust-panel,
|
|
308
|
+
.hm-image-filter-panel {
|
|
309
|
+
display: grid;
|
|
310
|
+
gap: var(--hm-gap-normal);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* A slider's field: its visible name above it, and the slider across the column. */
|
|
314
|
+
.hm-image-slider-field {
|
|
315
|
+
justify-items: stretch;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* The Info panel: each term over its value. */
|
|
319
|
+
.hm-image-info-list {
|
|
320
|
+
display: grid;
|
|
321
|
+
gap: var(--hm-gap-tight);
|
|
322
|
+
margin: 0;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.hm-image-info-list dt {
|
|
326
|
+
color: var(--hm-color-text-muted);
|
|
327
|
+
font-size: var(--hm-font-size-small);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.hm-image-info-list dd {
|
|
331
|
+
margin: 0 0 var(--hm-gap-tight);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.hm-image-info-list ul {
|
|
335
|
+
margin: 0;
|
|
336
|
+
padding-inline-start: var(--hm-space-4);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.hm-image-adjust-actions {
|
|
340
|
+
display: flex;
|
|
341
|
+
justify-content: end;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/* A slider, its value, and its reset when it isn't 0. */
|
|
345
|
+
.hm-image-adjust-row {
|
|
346
|
+
display: grid;
|
|
347
|
+
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
348
|
+
align-items: center;
|
|
349
|
+
gap: var(--hm-gap-tight);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.hm-image-adjust-value {
|
|
353
|
+
font-variant-numeric: tabular-nums;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* The export dialog: its choices, the summary before Export, and the result. */
|
|
357
|
+
.hm-image-export-choices,
|
|
358
|
+
.hm-image-export-metadata {
|
|
359
|
+
display: grid;
|
|
360
|
+
gap: var(--hm-gap-normal);
|
|
361
|
+
min-inline-size: 0;
|
|
362
|
+
margin: 0;
|
|
363
|
+
padding: 0;
|
|
364
|
+
border: 0;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.hm-image-export-metadata > legend {
|
|
368
|
+
padding: 0;
|
|
369
|
+
font-weight: var(--hm-font-weight-strong);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.hm-image-export-fields {
|
|
373
|
+
display: grid;
|
|
374
|
+
grid-template-columns: repeat(auto-fit, minmax(calc(var(--hm-space-12) * 2), 1fr));
|
|
375
|
+
gap: var(--hm-gap-tight);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.hm-image-export-hint,
|
|
379
|
+
.hm-image-export-summary p,
|
|
380
|
+
.hm-image-export-result {
|
|
381
|
+
margin: 0;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.hm-image-export-summary {
|
|
385
|
+
display: grid;
|
|
386
|
+
gap: var(--hm-gap-tight);
|
|
387
|
+
margin-block-start: var(--hm-gap-normal);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.hm-image-export-summary ul {
|
|
391
|
+
margin: 0;
|
|
392
|
+
padding-inline-start: var(--hm-space-4);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.hm-image-export-error {
|
|
396
|
+
margin: 0;
|
|
397
|
+
color: var(--hm-color-danger-text);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/ie-huss-martinez/image-sdk/blob/main/formats/hm-image-command/v1.schema.json",
|
|
4
|
+
"title": "hm-image-command, version 1",
|
|
5
|
+
"description": "One user-level edit to an hm-image-plan (docs/formats/hm-image-plan.md, sdk-core ADR 0045). Beyond this schema, the reducer checks a crop against the plan's source.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"description": "Sets the crop, or removes it with null.",
|
|
9
|
+
"type": "object",
|
|
10
|
+
"required": ["type", "crop"],
|
|
11
|
+
"additionalProperties": false,
|
|
12
|
+
"properties": {
|
|
13
|
+
"type": {
|
|
14
|
+
"const": "image.setCrop"
|
|
15
|
+
},
|
|
16
|
+
"crop": {
|
|
17
|
+
"oneOf": [
|
|
18
|
+
{
|
|
19
|
+
"type": "null"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"$ref": "https://github.com/ie-huss-martinez/image-sdk/blob/main/formats/hm-image-plan/v1.schema.json#/$defs/crop"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"description": "Sets the rotation and flips.",
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": ["type", "orientation"],
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"properties": {
|
|
34
|
+
"type": {
|
|
35
|
+
"const": "image.setOrientation"
|
|
36
|
+
},
|
|
37
|
+
"orientation": {
|
|
38
|
+
"$ref": "https://github.com/ie-huss-martinez/image-sdk/blob/main/formats/hm-image-plan/v1.schema.json#/$defs/orientation"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"description": "Sets the export's size.",
|
|
44
|
+
"type": "object",
|
|
45
|
+
"required": ["type", "output"],
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"properties": {
|
|
48
|
+
"type": {
|
|
49
|
+
"const": "image.setOutput"
|
|
50
|
+
},
|
|
51
|
+
"output": {
|
|
52
|
+
"$ref": "https://github.com/ie-huss-martinez/image-sdk/blob/main/formats/hm-image-plan/v1.schema.json#/$defs/output"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"description": "Sets one kept metadata field.",
|
|
58
|
+
"type": "object",
|
|
59
|
+
"required": ["type", "field", "value"],
|
|
60
|
+
"additionalProperties": false,
|
|
61
|
+
"properties": {
|
|
62
|
+
"type": {
|
|
63
|
+
"const": "image.setMetadata"
|
|
64
|
+
},
|
|
65
|
+
"field": {
|
|
66
|
+
"$ref": "https://github.com/ie-huss-martinez/image-sdk/blob/main/formats/hm-image-plan/v1.schema.json#/$defs/metadataField"
|
|
67
|
+
},
|
|
68
|
+
"value": {
|
|
69
|
+
"$ref": "https://github.com/ie-huss-martinez/image-sdk/blob/main/formats/hm-image-plan/v1.schema.json#/$defs/metadataValue"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"description": "Sets some develop adjustments.",
|
|
75
|
+
"type": "object",
|
|
76
|
+
"required": ["type", "values"],
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"properties": {
|
|
79
|
+
"type": {
|
|
80
|
+
"const": "image.setDevelop"
|
|
81
|
+
},
|
|
82
|
+
"values": {
|
|
83
|
+
"$ref": "https://github.com/ie-huss-martinez/image-sdk/blob/main/formats/hm-image-plan/v1.schema.json#/$defs/developValues"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"description": "Sets the filter, or removes it with null.",
|
|
89
|
+
"type": "object",
|
|
90
|
+
"required": ["type", "filter"],
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"properties": {
|
|
93
|
+
"type": {
|
|
94
|
+
"const": "image.setFilter"
|
|
95
|
+
},
|
|
96
|
+
"filter": {
|
|
97
|
+
"$ref": "https://github.com/ie-huss-martinez/image-sdk/blob/main/formats/hm-image-plan/v1.schema.json#/$defs/filter"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|