@jxsuite/studio 10.1.0 → 10.3.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/dist/chunks/{2020-mkb0qa6p.js → 2020-906vx2dq.js} +3 -3
- package/dist/chunks/adapter-hnvad61x.js +4 -0
- package/dist/chunks/add-new-flow-3tkn72ey.js +4 -0
- package/dist/chunks/cf-account-picker-xb8vvt2h.js +4 -0
- package/dist/chunks/cf-settings-mkbcz4z2.js +4 -0
- package/dist/chunks/components-w5zqwva1.js +4 -0
- package/dist/chunks/content-source-1vzxq1ba.js +4 -0
- package/dist/chunks/convert-to-repeater-gwzh9gar.js +4 -0
- package/dist/chunks/editor-wvf5e6j9.js +4 -0
- package/dist/chunks/entry-commands-mx2whrjx.js +4 -0
- package/dist/chunks/extension-sections-338ee35t.js +4 -0
- package/dist/chunks/file-ops-9bxvk59j.js +4 -0
- package/dist/chunks/files-t07yqqej.js +4 -0
- package/dist/chunks/format-host-5ja5gxyk.js +4 -0
- package/dist/chunks/fs-events-3424ezp3.js +4 -0
- package/dist/chunks/grid-open-1mpq9mzb.js +4 -0
- package/dist/chunks/{grid-view-r22jsqht.js → grid-view-w9nfy203.js} +15 -15
- package/dist/chunks/icons-gb967qc8.js +4 -0
- package/dist/chunks/iframe-host-wsg0bn73.js +4 -0
- package/dist/chunks/image-bake-4afr4y6a.js +4 -0
- package/dist/chunks/image-editor-x7t8jbjn.js +4 -0
- package/dist/chunks/index-f9qr7kzh.js +4 -0
- package/dist/chunks/{index-pxwwf00y.js → index-yjrfeks8.js} +3 -3
- package/dist/chunks/{javascript-pzqryby6.js → javascript-hy2mws8v.js} +3 -3
- package/dist/chunks/{jsonMode-tcnyxyap.js → jsonMode-vj30te2h.js} +6 -6
- package/dist/chunks/jx-validate-ttr5ewf0.js +4 -0
- package/dist/chunks/layers-m49nmwvx.js +4 -0
- package/dist/chunks/layers-panel-hvy2e549.js +4 -0
- package/dist/chunks/lit-html-k2mb9k0r.js +4 -0
- package/dist/chunks/media-library-ae67q4at.js +4 -0
- package/dist/chunks/media-open-yp9jm834.js +4 -0
- package/dist/chunks/media-picker-s41ngdfr.js +4 -0
- package/dist/chunks/{monaco-binding-bqpge64f.js → monaco-binding-a51py33c.js} +3 -3
- package/dist/chunks/monaco-buffer-pa0g6ax7.js +4 -0
- package/dist/chunks/{monaco-setup-1mkab762.js → monaco-setup-g9kterhx.js} +3 -3
- package/dist/chunks/notify-bwehrp7q.js +4 -0
- package/dist/chunks/parse-hee7ne9b.js +4 -0
- package/dist/chunks/platform-kv0k65cy.js +4 -0
- package/dist/chunks/publish-panel-gzfxcm0t.js +4 -0
- package/dist/chunks/publish-quick-w3nxd7q4.js +4 -0
- package/dist/chunks/publish-workspace-dppd82tc.js +4 -0
- package/dist/chunks/quick-search-tdxaam55.js +4 -0
- package/dist/chunks/references-vqyr5s9x.js +4 -0
- package/dist/chunks/right-panel-0yrw4cgz.js +4 -0
- package/dist/chunks/source-control-6fk72me2.js +4 -0
- package/dist/chunks/{studio-0g2sm01j.js → studio-0939t1q1.js} +4 -4
- package/dist/chunks/studio-0gvvqj3h.js +5 -0
- package/dist/chunks/studio-0khd8xtx.js +4 -0
- package/dist/chunks/{studio-rf8d6p9f.js → studio-0w3541dg.js} +6 -6
- package/dist/chunks/{studio-9b7177jq.js → studio-0x6f3nk9.js} +4 -4
- package/dist/chunks/studio-1410q5dw.js +5 -0
- package/dist/chunks/{studio-8qejv8yf.js → studio-15hwqgd8.js} +4 -4
- package/dist/chunks/studio-1ks5d9y4.js +5 -0
- package/dist/chunks/{studio-881z1xrx.js → studio-2ggfzrrd.js} +4 -4
- package/dist/chunks/{studio-jw0q5j6k.js → studio-321ym1tt.js} +4 -4
- package/dist/chunks/studio-3c10v2q1.js +5 -0
- package/dist/chunks/{studio-9rcbvksg.js → studio-3na1r48j.js} +8 -8
- package/dist/chunks/{studio-ggm7zf70.js → studio-3q7mhbgx.js} +5 -5
- package/dist/chunks/studio-3qr08sxq.js +4 -0
- package/dist/chunks/studio-3xk9zdgb.js +5 -0
- package/dist/chunks/studio-423tfdte.js +5 -0
- package/dist/chunks/{studio-brdp85q7.js → studio-45mj4jqe.js} +4 -4
- package/dist/chunks/studio-4f7thq0p.js +5 -0
- package/dist/chunks/{studio-w67vfgy5.js → studio-4fnb5648.js} +4 -4
- package/dist/chunks/studio-4zd6an2b.js +5 -0
- package/dist/chunks/studio-53wy9ek3.js +5 -0
- package/dist/chunks/studio-5n193zqd.js +5 -0
- package/dist/chunks/{studio-x2metr13.js → studio-5tet77de.js} +3 -3
- package/dist/chunks/studio-7rrdbvex.js +5 -0
- package/dist/chunks/studio-8kx6m0rg.js +5 -0
- package/dist/chunks/{studio-va0e63sk.js → studio-90zkgne5.js} +7 -7
- package/dist/chunks/studio-9c6cbq2c.js +4 -0
- package/dist/chunks/studio-9dq7rwc7.js +5 -0
- package/dist/chunks/studio-9qx1ywbv.js +9 -0
- package/dist/chunks/studio-a65kbs2e.js +9 -0
- package/dist/chunks/studio-aam8zt8z.js +5 -0
- package/dist/chunks/{studio-8jb31dcf.js → studio-abh9kfdh.js} +4 -4
- package/dist/chunks/studio-b4e0ftkt.js +5 -0
- package/dist/chunks/studio-b68k0z00.js +5 -0
- package/dist/chunks/{studio-dy2xtt7a.js → studio-bct64zmj.js} +4 -4
- package/dist/chunks/studio-bz0b5brj.js +6 -0
- package/dist/chunks/studio-cfnn70h1.js +5 -0
- package/dist/chunks/studio-daksw8kh.js +5 -0
- package/dist/chunks/{studio-mwnmzx7g.js → studio-e7vjyp04.js} +7 -7
- package/dist/chunks/studio-ea6r1zyr.js +5 -0
- package/dist/chunks/studio-egnjpyde.js +9 -0
- package/dist/chunks/studio-ejrypvmq.js +5 -0
- package/dist/chunks/studio-eqcddvc2.js +928 -0
- package/dist/chunks/studio-f8tyeyzt.js +5 -0
- package/dist/chunks/studio-fj6c905s.js +5 -0
- package/dist/chunks/{studio-hsr3k06v.js → studio-fkrr7kgg.js} +5 -5
- package/dist/chunks/studio-fspe7m9t.js +5 -0
- package/dist/chunks/{studio-4zqfw5ha.js → studio-g0hxtcga.js} +4 -4
- package/dist/chunks/studio-g9brbewz.js +5 -0
- package/dist/chunks/studio-ggx3j7nd.js +5 -0
- package/dist/chunks/{studio-jh6t5qz4.js → studio-hfxttkyr.js} +4 -4
- package/dist/chunks/studio-hh394phe.js +5 -0
- package/dist/chunks/{studio-07k0geap.js → studio-j0zf5x2x.js} +4 -4
- package/dist/chunks/studio-jeb7hth3.js +5 -0
- package/dist/chunks/studio-k0xzrse2.js +64 -0
- package/dist/chunks/studio-k1xqrgm5.js +5 -0
- package/dist/chunks/studio-k2evngrj.js +7 -0
- package/dist/chunks/studio-k3we3kqb.js +5 -0
- package/dist/chunks/{studio-nf0pqpbj.js → studio-n9qba0gx.js} +4 -4
- package/dist/chunks/studio-nf8esxxc.js +5 -0
- package/dist/chunks/studio-nn4f9m9c.js +5 -0
- package/dist/chunks/studio-nskxe9q1.js +6 -0
- package/dist/chunks/{studio-4nkm4404.js → studio-nvcn2ykc.js} +4 -4
- package/dist/chunks/studio-nwynxqtb.js +5 -0
- package/dist/chunks/{studio-f2j9et3h.js → studio-nzemfbkk.js} +8 -8
- package/dist/chunks/studio-p2a03pgm.js +5 -0
- package/dist/chunks/{studio-skynbac3.js → studio-pm17wdc4.js} +4 -4
- package/dist/chunks/{studio-9cp96v90.js → studio-q80fg1d6.js} +7 -7
- package/dist/chunks/studio-r050sez0.js +6 -0
- package/dist/chunks/{studio-sd07xva5.js → studio-s7t4vp1d.js} +5 -5
- package/dist/chunks/studio-s9fng7m8.js +7 -0
- package/dist/chunks/studio-sce30r7b.js +4 -0
- package/dist/chunks/{studio-zxm98z2m.js → studio-stahswgb.js} +6 -6
- package/dist/chunks/studio-swedpd82.js +5 -0
- package/dist/chunks/studio-thz5t120.js +5 -0
- package/dist/chunks/studio-tpxcryf2.js +5 -0
- package/dist/chunks/{studio-tpy3rdxn.js → studio-v5wktj6f.js} +4 -4
- package/dist/chunks/{studio-7vb997ff.js → studio-vpevkfxw.js} +4 -4
- package/dist/chunks/studio-waekn290.js +5 -0
- package/dist/chunks/studio-wfct4h6n.js +5 -0
- package/dist/chunks/studio-wgc54sxf.js +5 -0
- package/dist/chunks/studio-wqfaqw4m.js +5 -0
- package/dist/chunks/studio-wse1rs8t.js +7 -0
- package/dist/chunks/studio-x0gsfr1d.js +16 -0
- package/dist/chunks/studio-xpx91fby.js +6 -0
- package/dist/chunks/studio-y1b86ast.js +5 -0
- package/dist/chunks/studio-yrcrncev.js +5 -0
- package/dist/chunks/{studio-zacvfm31.js → studio-yzpskb0j.js} +4 -4
- package/dist/chunks/studio-zfdbmhp3.js +5 -0
- package/dist/chunks/{tsMode-6vwhy6ty.js → tsMode-jg1dtphj.js} +7 -7
- package/dist/chunks/workspace-9btkc8tk.js +4 -0
- package/dist/chunks/workspace-home-qcc4z5ag.js +4 -0
- package/dist/chunks/{ws-client-zcxkfgmf.js → ws-client-arz2qsy9.js} +3 -3
- package/dist/iframe-entry.js +13 -13
- package/dist/manifest.json +83 -77
- package/dist/studio.js +74 -75
- package/package.json +5 -5
- package/src/browse/library-model.ts +56 -23
- package/src/browse/library-pane.ts +44 -29
- package/src/browse/library-preview.ts +6 -2
- package/src/canvas/asset-refs.ts +13 -4
- package/src/canvas/asset-resolve.ts +54 -11
- package/src/canvas/canvas-render.ts +25 -0
- package/src/canvas/iframe-entry.ts +5 -1
- package/src/canvas/iframe-host.ts +16 -6
- package/src/canvas/iframe-protocol.ts +9 -1
- package/src/commands/context.ts +6 -0
- package/src/commands/live-context.ts +5 -2
- package/src/editor/shortcuts.ts +6 -0
- package/src/files/asset-versions.ts +108 -2
- package/src/files/file-ops.ts +11 -1
- package/src/files/files.ts +111 -48
- package/src/files/media-paths.ts +12 -4
- package/src/files/media-upload.ts +195 -21
- package/src/files/new-file-name.ts +39 -1
- package/src/media/image-bake.ts +164 -0
- package/src/media/image-editor.ts +846 -0
- package/src/media/image-format.ts +262 -0
- package/src/media/image-recipe.ts +651 -0
- package/src/media/media-commands.ts +65 -1
- package/src/media/media-library-model.ts +1 -1
- package/src/media/media-library.ts +175 -15
- package/src/media/media-open.ts +156 -3
- package/src/media/media-pane.ts +8 -4
- package/src/panels/data-grid.ts +0 -4
- package/src/panels/pane-context.ts +6 -1
- package/src/panels/settings-menu.ts +3 -3
- package/src/panels/settings-pane.ts +42 -56
- package/src/panels/tab-strip.ts +12 -3
- package/src/services/ai-import-tools.ts +6 -3
- package/src/services/ai-models.ts +65 -11
- package/src/services/ai-settings.ts +45 -5
- package/src/services/document-assistant.ts +5 -2
- package/src/services/settings/definitions.ts +19 -0
- package/src/settings/contributed-section.ts +16 -7
- package/src/settings/css-vars-editor.ts +4 -4
- package/src/settings/general-settings.ts +1 -4
- package/src/settings/preferences-accounts.ts +2 -2
- package/src/settings/preferences-dialog.ts +4 -2
- package/src/settings/project-sections.ts +1 -1
- package/src/settings/section-registry.ts +5 -4
- package/src/settings/settings-document.ts +33 -24
- package/src/settings/settings-workspace.ts +205 -0
- package/src/shell.ts +31 -6
- package/src/studio.ts +13 -2
- package/src/surfaces/ai-credentials-form.json +59 -5
- package/src/surfaces/ai-credentials-form.ts +15 -2
- package/src/surfaces/commandbar.ts +7 -3
- package/src/surfaces/image-editor.json +1390 -0
- package/src/surfaces/image-editor.ts +272 -0
- package/src/surfaces/media-library.json +129 -1
- package/src/surfaces/media-library.ts +17 -2
- package/src/surfaces/settings-contributed.json +4 -4
- package/src/surfaces/settings-contributed.ts +2 -2
- package/src/surfaces/settings-pane.json +262 -180
- package/src/surfaces/settings-pane.ts +63 -14
- package/src/types.ts +2 -1
- package/src/ui/ai-credentials-form.ts +128 -11
- package/src/ui/regions.ts +5 -5
- package/src/workspace/tab-workspace.ts +5 -3
- package/src/workspace/workspace-home.ts +18 -4
- package/src/workspace/workspace-ids.ts +40 -7
- package/src/workspace/workspace-switch.ts +3 -1
- package/src/workspace/workspace.ts +22 -1
- package/dist/chunks/adapter-xcpsmecx.js +0 -4
- package/dist/chunks/add-new-flow-ptmhmzr9.js +0 -4
- package/dist/chunks/cf-account-picker-z1sgwpwd.js +0 -4
- package/dist/chunks/cf-settings-xqvhxxe9.js +0 -4
- package/dist/chunks/components-whsc81a7.js +0 -4
- package/dist/chunks/content-source-jwtxg78w.js +0 -4
- package/dist/chunks/convert-to-repeater-f92ey3kp.js +0 -4
- package/dist/chunks/editor-zdqdpq1x.js +0 -4
- package/dist/chunks/entry-commands-w8p2fbpt.js +0 -4
- package/dist/chunks/extension-sections-y2p1te2r.js +0 -4
- package/dist/chunks/file-ops-13ab4swj.js +0 -4
- package/dist/chunks/files-zbc8p6v1.js +0 -4
- package/dist/chunks/format-host-zjsbktbx.js +0 -4
- package/dist/chunks/fs-events-t6x0hch6.js +0 -4
- package/dist/chunks/grid-open-fyzdwpkh.js +0 -4
- package/dist/chunks/icons-853n6qt3.js +0 -4
- package/dist/chunks/iframe-host-kbyqc7pt.js +0 -4
- package/dist/chunks/index-6nvj89vb.js +0 -4
- package/dist/chunks/jx-validate-5sp8a4rm.js +0 -4
- package/dist/chunks/layers-panel-qrxj9vr2.js +0 -4
- package/dist/chunks/layers-tpzayggx.js +0 -4
- package/dist/chunks/lit-html-x6nrxsx3.js +0 -4
- package/dist/chunks/media-library-ywppnjrz.js +0 -4
- package/dist/chunks/media-picker-etxgc8qq.js +0 -4
- package/dist/chunks/monaco-buffer-qrnqhk0b.js +0 -4
- package/dist/chunks/notify-kcv38wwe.js +0 -4
- package/dist/chunks/parse-df2kkmhc.js +0 -4
- package/dist/chunks/platform-dtsysmyd.js +0 -4
- package/dist/chunks/publish-panel-evb1rcxt.js +0 -4
- package/dist/chunks/publish-quick-m9vkhahq.js +0 -4
- package/dist/chunks/publish-workspace-ktk9h536.js +0 -4
- package/dist/chunks/quick-search-2f47fxcw.js +0 -4
- package/dist/chunks/references-5w6ajjv7.js +0 -4
- package/dist/chunks/right-panel-kz0a6byf.js +0 -4
- package/dist/chunks/source-control-1phx90zk.js +0 -4
- package/dist/chunks/studio-0hr000ba.js +0 -5
- package/dist/chunks/studio-1wyp7dt5.js +0 -5
- package/dist/chunks/studio-20ap8dds.js +0 -5
- package/dist/chunks/studio-291gqh98.js +0 -5
- package/dist/chunks/studio-37twdaf7.js +0 -64
- package/dist/chunks/studio-4smcnv33.js +0 -5
- package/dist/chunks/studio-56egy6vf.js +0 -5
- package/dist/chunks/studio-5dmgmyw4.js +0 -5
- package/dist/chunks/studio-5e7p1vgd.js +0 -5
- package/dist/chunks/studio-5m0w815d.js +0 -5
- package/dist/chunks/studio-695k95bw.js +0 -5
- package/dist/chunks/studio-6vwvshw8.js +0 -6
- package/dist/chunks/studio-732mw0g8.js +0 -5
- package/dist/chunks/studio-76t560kn.js +0 -6
- package/dist/chunks/studio-7823f0g8.js +0 -5
- package/dist/chunks/studio-8486jn4r.js +0 -5
- package/dist/chunks/studio-848rk4p1.js +0 -5
- package/dist/chunks/studio-8x8616xd.js +0 -5
- package/dist/chunks/studio-a3s6frde.js +0 -4
- package/dist/chunks/studio-ahf3cspq.js +0 -4
- package/dist/chunks/studio-bkmv1h3e.js +0 -9
- package/dist/chunks/studio-cgb97rwv.js +0 -5
- package/dist/chunks/studio-ch8gt8vt.js +0 -5
- package/dist/chunks/studio-cqf1k4qk.js +0 -5
- package/dist/chunks/studio-cvz0e00f.js +0 -5
- package/dist/chunks/studio-dbgv4fv9.js +0 -16
- package/dist/chunks/studio-eesyjg7h.js +0 -9
- package/dist/chunks/studio-et6t8g4m.js +0 -4
- package/dist/chunks/studio-fep7hr66.js +0 -7
- package/dist/chunks/studio-fyf7j57j.js +0 -5
- package/dist/chunks/studio-g5prntab.js +0 -5
- package/dist/chunks/studio-ga77mf07.js +0 -5
- package/dist/chunks/studio-h7gy12h2.js +0 -5
- package/dist/chunks/studio-j933k8nr.js +0 -5
- package/dist/chunks/studio-jgbvqcgh.js +0 -5
- package/dist/chunks/studio-k4xc5g6h.js +0 -5
- package/dist/chunks/studio-p0nf2e1f.js +0 -6
- package/dist/chunks/studio-pd9dsqpq.js +0 -5
- package/dist/chunks/studio-pmzg17fj.js +0 -5
- package/dist/chunks/studio-pzfa2vmb.js +0 -5
- package/dist/chunks/studio-qyb5bebs.js +0 -9
- package/dist/chunks/studio-rt498t2v.js +0 -5
- package/dist/chunks/studio-s0fg2wav.js +0 -5
- package/dist/chunks/studio-t3j8htp7.js +0 -7
- package/dist/chunks/studio-thj81e98.js +0 -7
- package/dist/chunks/studio-tyw7tk0x.js +0 -5
- package/dist/chunks/studio-vcz63n42.js +0 -5
- package/dist/chunks/studio-vffwe9k7.js +0 -5
- package/dist/chunks/studio-vjhej0w5.js +0 -928
- package/dist/chunks/studio-vxjap704.js +0 -5
- package/dist/chunks/studio-xebavr9s.js +0 -5
- package/dist/chunks/studio-yg5n49za.js +0 -5
- package/dist/chunks/studio-yhz5b313.js +0 -5
- package/dist/chunks/studio-zsjpsw08.js +0 -5
- package/dist/chunks/workspace-d65bz1qk.js +0 -4
- package/dist/chunks/workspace-home-vbg9b3jh.js +0 -4
- package/src/settings/settings-dialog.ts +0 -192
- package/src/surfaces/settings-dialog.json +0 -51
- package/src/surfaces/settings-dialog.ts +0 -169
|
@@ -0,0 +1,1390 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://jxsuite.com/schema/v1",
|
|
3
|
+
"$id": "StudioImageEditor",
|
|
4
|
+
"$description": "The Image editor (studio.md §9.5): one image asset, edited where it is opened, as a recipe previewed in CSS over the picture already on screen and baked once at save. `media/image-editor.ts` owns the recipe, the undo stack, the decoded source and the one write door, and hands this document a flat projection of pre-formatted strings and discriminant words; nothing here computes geometry. The preview is the real image under a `transform` for the turns and flips and a `filter` for the tone pass, with the crop drawn as a frame over it, so there is no `<canvas>` in this document at all. The crop geometry and the oriented aspect travel as custom properties bound to state in this document's own `style` block, which is how a document binds a style declaration to state (spec.md §9.1). The overwrite sentence is permanent: the path, the absence of a backup and the recovery path are in view whenever the button that writes is.",
|
|
5
|
+
"tagName": "div",
|
|
6
|
+
"attributes": {
|
|
7
|
+
"part": "editor",
|
|
8
|
+
"data-jx-region": "${state.region}"
|
|
9
|
+
},
|
|
10
|
+
"style": {
|
|
11
|
+
"$description": "Keyed on `part`, re-valued onto the studio token layer like every other pane document. The stage is a size container so the frame can fit the picture inside it with container units and an `aspect-ratio`, never larger than the picture's own pixels; the crop scrim is a spread shadow on the crop box clipped by the frame, written as `rgba(0, 0, 0, 0.5)` because `check-styles.ts` allow-lists colour by value.",
|
|
12
|
+
"--jx-image-ratio": "${state.ratio}",
|
|
13
|
+
"--jx-image-max": "${state.maxWidth}",
|
|
14
|
+
"--jx-image-w": "${state.imageWidth}",
|
|
15
|
+
"--jx-image-h": "${state.imageHeight}",
|
|
16
|
+
"--jx-image-transform": "${state.imageTransform}",
|
|
17
|
+
"--jx-image-filter": "${state.filter}",
|
|
18
|
+
"--jx-crop-x": "${state.cropX}",
|
|
19
|
+
"--jx-crop-y": "${state.cropY}",
|
|
20
|
+
"--jx-crop-w": "${state.cropW}",
|
|
21
|
+
"--jx-crop-h": "${state.cropH}",
|
|
22
|
+
"--jx-crop-cursor": "${state.moveCursor}",
|
|
23
|
+
"height": "100%",
|
|
24
|
+
"display": "flex",
|
|
25
|
+
"gap": "var(--jx-space-5)",
|
|
26
|
+
"padding": "var(--jx-space-5)",
|
|
27
|
+
"boxSizing": "border-box",
|
|
28
|
+
"background": "var(--bg-panel)",
|
|
29
|
+
"fontFamily": "var(--jx-font-sans)",
|
|
30
|
+
"color": "var(--fg)",
|
|
31
|
+
"& [part=\"stage-slot\"], & [part=\"quality-slot\"]": {
|
|
32
|
+
"$description": "A `$switch` renders a container of its own, and neither of these is a box: each case stands where the switch does.",
|
|
33
|
+
"display": "contents"
|
|
34
|
+
},
|
|
35
|
+
"& [part=\"stage\"]": {
|
|
36
|
+
"flex": "1",
|
|
37
|
+
"minWidth": "0",
|
|
38
|
+
"minHeight": "0",
|
|
39
|
+
"display": "flex",
|
|
40
|
+
"alignItems": "center",
|
|
41
|
+
"justifyContent": "center",
|
|
42
|
+
"containerType": "size"
|
|
43
|
+
},
|
|
44
|
+
"& [part=\"frame\"]": {
|
|
45
|
+
"$description": "The whole picture as the author sees it, turned and mirrored: the largest box of the oriented aspect that fits the stage, and never wider than the picture's own pixels, because an upscaled preview is a lie about the asset. It clips nothing itself, so a handle on the picture's edge can stand half outside it.",
|
|
46
|
+
"position": "relative",
|
|
47
|
+
"aspectRatio": "var(--jx-image-ratio, 1)",
|
|
48
|
+
"width": "min(100cqw, calc(100cqh * var(--jx-image-ratio, 1)), var(--jx-image-max, 100cqw))"
|
|
49
|
+
},
|
|
50
|
+
"& [part=\"picture\"]": {
|
|
51
|
+
"$description": "The clipped layer: the turned image and the crop scrim, which is a spread shadow that has to stop at the picture.",
|
|
52
|
+
"position": "absolute",
|
|
53
|
+
"inset": "0",
|
|
54
|
+
"overflow": "hidden",
|
|
55
|
+
"background": "var(--bg-input)"
|
|
56
|
+
},
|
|
57
|
+
"& [part=\"image\"]": {
|
|
58
|
+
"$description": "The image in its own, unturned frame, centred in the oriented one and turned into it. On an odd turn its box is the frame's with the sides swapped, which is why the two sizes are percentages the host computes rather than 100%.",
|
|
59
|
+
"position": "absolute",
|
|
60
|
+
"left": "50%",
|
|
61
|
+
"top": "50%",
|
|
62
|
+
"width": "var(--jx-image-w, 100%)",
|
|
63
|
+
"height": "var(--jx-image-h, 100%)",
|
|
64
|
+
"maxWidth": "none",
|
|
65
|
+
"transform": "var(--jx-image-transform, translate(-50%, -50%))",
|
|
66
|
+
"filter": "var(--jx-image-filter, none)",
|
|
67
|
+
"userSelect": "none",
|
|
68
|
+
"pointerEvents": "none"
|
|
69
|
+
},
|
|
70
|
+
"& [part=\"scrim\"], & [part=\"crop\"]": {
|
|
71
|
+
"position": "absolute",
|
|
72
|
+
"left": "var(--jx-crop-x, 0%)",
|
|
73
|
+
"top": "var(--jx-crop-y, 0%)",
|
|
74
|
+
"width": "var(--jx-crop-w, 100%)",
|
|
75
|
+
"height": "var(--jx-crop-h, 100%)",
|
|
76
|
+
"boxSizing": "border-box"
|
|
77
|
+
},
|
|
78
|
+
"& [part=\"scrim\"]": {
|
|
79
|
+
"boxShadow": "0 0 0 100vmax rgba(0, 0, 0, 0.5)"
|
|
80
|
+
},
|
|
81
|
+
"& [part=\"crop\"]": {
|
|
82
|
+
"$description": "The kept region's outline, in white with a dark halo so it reads over a picture of any colour. Above the clipped layer, not in it, so the handles are whole at every edge.",
|
|
83
|
+
"outline": "1px solid white",
|
|
84
|
+
"boxShadow": "0 0 0 1px rgba(0, 0, 0, 0.6)"
|
|
85
|
+
},
|
|
86
|
+
"& [part=\"handle\"]": {
|
|
87
|
+
"$description": "A handle is a real button, so it has a name and a focus ring; drawn as a white square with a dark edge, centred on the point it moves, with `touch-action: none` so a touch drag moves the edge rather than scrolling the pane.",
|
|
88
|
+
"position": "absolute",
|
|
89
|
+
"width": "14px",
|
|
90
|
+
"height": "14px",
|
|
91
|
+
"margin": "-7px 0 0 -7px",
|
|
92
|
+
"padding": "0",
|
|
93
|
+
"border": "1px solid rgba(0, 0, 0, 0.7)",
|
|
94
|
+
"borderRadius": "var(--jx-radius-xs)",
|
|
95
|
+
"background": "white",
|
|
96
|
+
"touchAction": "none",
|
|
97
|
+
":focus-visible": {
|
|
98
|
+
"outline": "var(--jx-focus-ring)",
|
|
99
|
+
"outlineOffset": "2px"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"& [part=\"handle\"][data-handle=\"move\"]": {
|
|
103
|
+
"$description": "The kept area itself, the one stop that moves the crop rather than resizing it. Drawn first, so the eight handles paint over it, and a button like them, so it can be focused and moved from the keyboard as well as dragged.",
|
|
104
|
+
"inset": "0",
|
|
105
|
+
"width": "auto",
|
|
106
|
+
"height": "auto",
|
|
107
|
+
"margin": "0",
|
|
108
|
+
"border": "none",
|
|
109
|
+
"borderRadius": "0",
|
|
110
|
+
"background": "transparent",
|
|
111
|
+
"cursor": "var(--jx-crop-cursor, move)"
|
|
112
|
+
},
|
|
113
|
+
"& [part=\"handle\"][data-handle=\"n\"]": {
|
|
114
|
+
"left": "50%",
|
|
115
|
+
"top": "0%",
|
|
116
|
+
"cursor": "ns-resize"
|
|
117
|
+
},
|
|
118
|
+
"& [part=\"handle\"][data-handle=\"ne\"]": {
|
|
119
|
+
"left": "100%",
|
|
120
|
+
"top": "0%",
|
|
121
|
+
"cursor": "nesw-resize"
|
|
122
|
+
},
|
|
123
|
+
"& [part=\"handle\"][data-handle=\"e\"]": {
|
|
124
|
+
"left": "100%",
|
|
125
|
+
"top": "50%",
|
|
126
|
+
"cursor": "ew-resize"
|
|
127
|
+
},
|
|
128
|
+
"& [part=\"handle\"][data-handle=\"se\"]": {
|
|
129
|
+
"left": "100%",
|
|
130
|
+
"top": "100%",
|
|
131
|
+
"cursor": "nwse-resize"
|
|
132
|
+
},
|
|
133
|
+
"& [part=\"handle\"][data-handle=\"s\"]": {
|
|
134
|
+
"left": "50%",
|
|
135
|
+
"top": "100%",
|
|
136
|
+
"cursor": "ns-resize"
|
|
137
|
+
},
|
|
138
|
+
"& [part=\"handle\"][data-handle=\"sw\"]": {
|
|
139
|
+
"left": "0%",
|
|
140
|
+
"top": "100%",
|
|
141
|
+
"cursor": "nesw-resize"
|
|
142
|
+
},
|
|
143
|
+
"& [part=\"handle\"][data-handle=\"w\"]": {
|
|
144
|
+
"left": "0%",
|
|
145
|
+
"top": "50%",
|
|
146
|
+
"cursor": "ew-resize"
|
|
147
|
+
},
|
|
148
|
+
"& [part=\"handle\"][data-handle=\"nw\"]": {
|
|
149
|
+
"left": "0%",
|
|
150
|
+
"top": "0%",
|
|
151
|
+
"cursor": "nwse-resize"
|
|
152
|
+
},
|
|
153
|
+
"& [part=\"note\"], & [part=\"refused\"]": {
|
|
154
|
+
"maxWidth": "48ch",
|
|
155
|
+
"margin": "0",
|
|
156
|
+
"padding": "var(--jx-space-6)",
|
|
157
|
+
"fontSize": "var(--jx-text-md)",
|
|
158
|
+
"color": "var(--fg-dim)",
|
|
159
|
+
"textAlign": "center"
|
|
160
|
+
},
|
|
161
|
+
"& [part=\"refused\"]": {
|
|
162
|
+
"border": "1px dashed var(--border)",
|
|
163
|
+
"borderRadius": "var(--radius)"
|
|
164
|
+
},
|
|
165
|
+
"& [part=\"controls\"]": {
|
|
166
|
+
"flex": "0 0 260px",
|
|
167
|
+
"display": "flex",
|
|
168
|
+
"flexDirection": "column",
|
|
169
|
+
"gap": "var(--jx-space-4)",
|
|
170
|
+
"overflowY": "auto"
|
|
171
|
+
},
|
|
172
|
+
"& [part=\"title\"]": {
|
|
173
|
+
"margin": "0",
|
|
174
|
+
"fontSize": "var(--jx-text-lg)",
|
|
175
|
+
"overflowWrap": "anywhere"
|
|
176
|
+
},
|
|
177
|
+
"& [part=\"facts\"], & [part=\"help\"]": {
|
|
178
|
+
"margin": "0",
|
|
179
|
+
"fontSize": "var(--jx-text-sm)",
|
|
180
|
+
"color": "var(--fg-dim)"
|
|
181
|
+
},
|
|
182
|
+
"& [part=\"group\"]": {
|
|
183
|
+
"display": "flex",
|
|
184
|
+
"flexDirection": "column",
|
|
185
|
+
"gap": "var(--jx-space-2)"
|
|
186
|
+
},
|
|
187
|
+
"& [part=\"group-title\"]": {
|
|
188
|
+
"margin": "0",
|
|
189
|
+
"fontSize": "var(--jx-text-md)",
|
|
190
|
+
"fontWeight": "500",
|
|
191
|
+
"color": "var(--fg-dim)"
|
|
192
|
+
},
|
|
193
|
+
"& [part=\"tools\"]": {
|
|
194
|
+
"display": "flex",
|
|
195
|
+
"flexWrap": "wrap",
|
|
196
|
+
"gap": "2px"
|
|
197
|
+
},
|
|
198
|
+
"& [part=\"field-row\"]": {
|
|
199
|
+
"display": "flex",
|
|
200
|
+
"alignItems": "center",
|
|
201
|
+
"justifyContent": "space-between",
|
|
202
|
+
"gap": "var(--jx-space-3)",
|
|
203
|
+
"fontSize": "var(--jx-text-md)"
|
|
204
|
+
},
|
|
205
|
+
"& [part=\"field-label\"]": {
|
|
206
|
+
"flex": "1"
|
|
207
|
+
},
|
|
208
|
+
"& [part=\"actions\"]": {
|
|
209
|
+
"display": "flex",
|
|
210
|
+
"gap": "var(--jx-space-2)",
|
|
211
|
+
"justifyContent": "flex-end"
|
|
212
|
+
},
|
|
213
|
+
"& [part=\"footer\"]": {
|
|
214
|
+
"$description": "The button that writes and the sentence about it stay together and stay in view: a column too short for its controls scrolls behind them rather than taking the sentence away.",
|
|
215
|
+
"position": "sticky",
|
|
216
|
+
"bottom": "0",
|
|
217
|
+
"display": "flex",
|
|
218
|
+
"flexDirection": "column",
|
|
219
|
+
"gap": "var(--jx-space-3)",
|
|
220
|
+
"marginTop": "auto",
|
|
221
|
+
"paddingTop": "var(--jx-space-2)",
|
|
222
|
+
"background": "var(--bg-panel)"
|
|
223
|
+
},
|
|
224
|
+
"& [part=\"warning\"]": {
|
|
225
|
+
"$description": "The permanent sentence, beside the button that writes. Not a dialog, because a confirmation on every save is a tax the author learns to dismiss unread.",
|
|
226
|
+
"margin": "0",
|
|
227
|
+
"padding": "var(--jx-space-3)",
|
|
228
|
+
"fontSize": "var(--jx-text-sm)",
|
|
229
|
+
"color": "var(--fg-dim)",
|
|
230
|
+
"border": "1px solid var(--border)",
|
|
231
|
+
"borderRadius": "var(--radius)",
|
|
232
|
+
"overflowWrap": "anywhere"
|
|
233
|
+
},
|
|
234
|
+
"& [part=\"discards\"]": {
|
|
235
|
+
"margin": "0",
|
|
236
|
+
"fontSize": "var(--jx-text-sm)",
|
|
237
|
+
"color": "var(--fg-dim)"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"children": [
|
|
241
|
+
{
|
|
242
|
+
"tagName": "div",
|
|
243
|
+
"attributes": {
|
|
244
|
+
"part": "stage"
|
|
245
|
+
},
|
|
246
|
+
"children": [
|
|
247
|
+
{
|
|
248
|
+
"tagName": "div",
|
|
249
|
+
"attributes": {
|
|
250
|
+
"part": "stage-slot",
|
|
251
|
+
"role": "none"
|
|
252
|
+
},
|
|
253
|
+
"$switch": {
|
|
254
|
+
"$ref": "#/state/status"
|
|
255
|
+
},
|
|
256
|
+
"cases": {
|
|
257
|
+
"loading": {
|
|
258
|
+
"tagName": "p",
|
|
259
|
+
"attributes": {
|
|
260
|
+
"part": "note"
|
|
261
|
+
},
|
|
262
|
+
"textContent": "${state.message}"
|
|
263
|
+
},
|
|
264
|
+
"refused": {
|
|
265
|
+
"tagName": "p",
|
|
266
|
+
"attributes": {
|
|
267
|
+
"part": "refused",
|
|
268
|
+
"role": "status"
|
|
269
|
+
},
|
|
270
|
+
"textContent": "${state.message}"
|
|
271
|
+
},
|
|
272
|
+
"ready": {
|
|
273
|
+
"tagName": "div",
|
|
274
|
+
"attributes": {
|
|
275
|
+
"part": "frame"
|
|
276
|
+
},
|
|
277
|
+
"children": [
|
|
278
|
+
{
|
|
279
|
+
"tagName": "div",
|
|
280
|
+
"attributes": {
|
|
281
|
+
"part": "picture"
|
|
282
|
+
},
|
|
283
|
+
"children": [
|
|
284
|
+
{
|
|
285
|
+
"tagName": "img",
|
|
286
|
+
"attributes": {
|
|
287
|
+
"part": "image",
|
|
288
|
+
"src": "${state.src}",
|
|
289
|
+
"alt": "${state.alt}"
|
|
290
|
+
},
|
|
291
|
+
"onload": {
|
|
292
|
+
"$prototype": "Function",
|
|
293
|
+
"body": [
|
|
294
|
+
{
|
|
295
|
+
"operator": "call",
|
|
296
|
+
"target": {
|
|
297
|
+
"$ref": "#/state/imageLoaded"
|
|
298
|
+
},
|
|
299
|
+
"value": [
|
|
300
|
+
{
|
|
301
|
+
"$ref": "event#/target/naturalWidth"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"$ref": "event#/target/naturalHeight"
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"description": "The decoded size, with any orientation tag applied, which is the frame the crop is stored in."
|
|
310
|
+
},
|
|
311
|
+
"onerror": {
|
|
312
|
+
"$prototype": "Function",
|
|
313
|
+
"body": [
|
|
314
|
+
{
|
|
315
|
+
"operator": "call",
|
|
316
|
+
"target": {
|
|
317
|
+
"$ref": "#/state/imageFailed"
|
|
318
|
+
},
|
|
319
|
+
"value": [
|
|
320
|
+
{
|
|
321
|
+
"$ref": "event#/target/src"
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
"description": "A header can parse over a body that does not decode. The host decides what that means."
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"tagName": "div",
|
|
331
|
+
"attributes": {
|
|
332
|
+
"part": "scrim"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"tagName": "div",
|
|
339
|
+
"attributes": {
|
|
340
|
+
"part": "crop",
|
|
341
|
+
"role": "group",
|
|
342
|
+
"aria-label": "Crop"
|
|
343
|
+
},
|
|
344
|
+
"children": [
|
|
345
|
+
{
|
|
346
|
+
"$prototype": "Array",
|
|
347
|
+
"items": {
|
|
348
|
+
"$ref": "#/state/handles"
|
|
349
|
+
},
|
|
350
|
+
"key": {
|
|
351
|
+
"$ref": "$map/item/id"
|
|
352
|
+
},
|
|
353
|
+
"map": {
|
|
354
|
+
"tagName": "button",
|
|
355
|
+
"attributes": {
|
|
356
|
+
"part": "handle",
|
|
357
|
+
"type": "button",
|
|
358
|
+
"data-handle": "${$map.item.id}",
|
|
359
|
+
"aria-label": "${$map.item.label}",
|
|
360
|
+
"aria-describedby": "${state.handleHelpId}",
|
|
361
|
+
"tabindex": "${$map.item.tabindex}"
|
|
362
|
+
},
|
|
363
|
+
"onpointerdown": {
|
|
364
|
+
"$prototype": "Function",
|
|
365
|
+
"body": [
|
|
366
|
+
{
|
|
367
|
+
"operator": "call",
|
|
368
|
+
"target": {
|
|
369
|
+
"$ref": "#/state/handleDown"
|
|
370
|
+
},
|
|
371
|
+
"value": [
|
|
372
|
+
{
|
|
373
|
+
"$ref": "$map/item/id"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"$ref": "event#/pointerId"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"$ref": "event#/clientX"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"$ref": "event#/clientY"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"$ref": "event#/currentTarget"
|
|
386
|
+
}
|
|
387
|
+
]
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
"description": "A drag starts on the handle and captures the pointer to it, so every move and the release arrive here however far the pointer travels. The host decides what a pixel on screen is in the image's own frame."
|
|
391
|
+
},
|
|
392
|
+
"onpointermove": {
|
|
393
|
+
"$prototype": "Function",
|
|
394
|
+
"body": [
|
|
395
|
+
{
|
|
396
|
+
"operator": "call",
|
|
397
|
+
"target": {
|
|
398
|
+
"$ref": "#/state/handleMove"
|
|
399
|
+
},
|
|
400
|
+
"value": [
|
|
401
|
+
{
|
|
402
|
+
"$ref": "event#/pointerId"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"$ref": "event#/clientX"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"$ref": "event#/clientY"
|
|
409
|
+
}
|
|
410
|
+
]
|
|
411
|
+
}
|
|
412
|
+
]
|
|
413
|
+
},
|
|
414
|
+
"onpointerup": {
|
|
415
|
+
"$prototype": "Function",
|
|
416
|
+
"body": [
|
|
417
|
+
{
|
|
418
|
+
"operator": "call",
|
|
419
|
+
"target": {
|
|
420
|
+
"$ref": "#/state/handleUp"
|
|
421
|
+
},
|
|
422
|
+
"value": [
|
|
423
|
+
{
|
|
424
|
+
"$ref": "event#/pointerId"
|
|
425
|
+
}
|
|
426
|
+
]
|
|
427
|
+
}
|
|
428
|
+
]
|
|
429
|
+
},
|
|
430
|
+
"onpointercancel": {
|
|
431
|
+
"$prototype": "Function",
|
|
432
|
+
"body": [
|
|
433
|
+
{
|
|
434
|
+
"operator": "call",
|
|
435
|
+
"target": {
|
|
436
|
+
"$ref": "#/state/handleUp"
|
|
437
|
+
},
|
|
438
|
+
"value": [
|
|
439
|
+
{
|
|
440
|
+
"$ref": "event#/pointerId"
|
|
441
|
+
}
|
|
442
|
+
]
|
|
443
|
+
}
|
|
444
|
+
]
|
|
445
|
+
},
|
|
446
|
+
"onfocus": {
|
|
447
|
+
"$prototype": "Function",
|
|
448
|
+
"body": [
|
|
449
|
+
{
|
|
450
|
+
"operator": "call",
|
|
451
|
+
"target": {
|
|
452
|
+
"$ref": "#/state/handleFocused"
|
|
453
|
+
},
|
|
454
|
+
"value": [
|
|
455
|
+
{
|
|
456
|
+
"$ref": "$map/item/id"
|
|
457
|
+
}
|
|
458
|
+
]
|
|
459
|
+
}
|
|
460
|
+
]
|
|
461
|
+
},
|
|
462
|
+
"onkeydown": {
|
|
463
|
+
"$prototype": "Function",
|
|
464
|
+
"body": [
|
|
465
|
+
{
|
|
466
|
+
"$switch": {
|
|
467
|
+
"$ref": "event#/key"
|
|
468
|
+
},
|
|
469
|
+
"cases": {
|
|
470
|
+
"ArrowLeft": [
|
|
471
|
+
{
|
|
472
|
+
"preventDefault": true
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"operator": "call",
|
|
476
|
+
"target": {
|
|
477
|
+
"$ref": "#/state/nudge"
|
|
478
|
+
},
|
|
479
|
+
"value": [
|
|
480
|
+
{
|
|
481
|
+
"$ref": "$map/item/id"
|
|
482
|
+
},
|
|
483
|
+
-1,
|
|
484
|
+
0,
|
|
485
|
+
{
|
|
486
|
+
"$ref": "event#/shiftKey"
|
|
487
|
+
}
|
|
488
|
+
]
|
|
489
|
+
}
|
|
490
|
+
],
|
|
491
|
+
"ArrowRight": [
|
|
492
|
+
{
|
|
493
|
+
"preventDefault": true
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"operator": "call",
|
|
497
|
+
"target": {
|
|
498
|
+
"$ref": "#/state/nudge"
|
|
499
|
+
},
|
|
500
|
+
"value": [
|
|
501
|
+
{
|
|
502
|
+
"$ref": "$map/item/id"
|
|
503
|
+
},
|
|
504
|
+
1,
|
|
505
|
+
0,
|
|
506
|
+
{
|
|
507
|
+
"$ref": "event#/shiftKey"
|
|
508
|
+
}
|
|
509
|
+
]
|
|
510
|
+
}
|
|
511
|
+
],
|
|
512
|
+
"ArrowUp": [
|
|
513
|
+
{
|
|
514
|
+
"preventDefault": true
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"operator": "call",
|
|
518
|
+
"target": {
|
|
519
|
+
"$ref": "#/state/nudge"
|
|
520
|
+
},
|
|
521
|
+
"value": [
|
|
522
|
+
{
|
|
523
|
+
"$ref": "$map/item/id"
|
|
524
|
+
},
|
|
525
|
+
0,
|
|
526
|
+
-1,
|
|
527
|
+
{
|
|
528
|
+
"$ref": "event#/shiftKey"
|
|
529
|
+
}
|
|
530
|
+
]
|
|
531
|
+
}
|
|
532
|
+
],
|
|
533
|
+
"ArrowDown": [
|
|
534
|
+
{
|
|
535
|
+
"preventDefault": true
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"operator": "call",
|
|
539
|
+
"target": {
|
|
540
|
+
"$ref": "#/state/nudge"
|
|
541
|
+
},
|
|
542
|
+
"value": [
|
|
543
|
+
{
|
|
544
|
+
"$ref": "$map/item/id"
|
|
545
|
+
},
|
|
546
|
+
0,
|
|
547
|
+
1,
|
|
548
|
+
{
|
|
549
|
+
"$ref": "event#/shiftKey"
|
|
550
|
+
}
|
|
551
|
+
]
|
|
552
|
+
}
|
|
553
|
+
],
|
|
554
|
+
"Home": [
|
|
555
|
+
{
|
|
556
|
+
"preventDefault": true
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"operator": "call",
|
|
560
|
+
"target": {
|
|
561
|
+
"$ref": "#/state/cycleHandle"
|
|
562
|
+
},
|
|
563
|
+
"value": [
|
|
564
|
+
{
|
|
565
|
+
"$ref": "$map/item/id"
|
|
566
|
+
},
|
|
567
|
+
-1
|
|
568
|
+
]
|
|
569
|
+
}
|
|
570
|
+
],
|
|
571
|
+
"End": [
|
|
572
|
+
{
|
|
573
|
+
"preventDefault": true
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"operator": "call",
|
|
577
|
+
"target": {
|
|
578
|
+
"$ref": "#/state/cycleHandle"
|
|
579
|
+
},
|
|
580
|
+
"value": [
|
|
581
|
+
{
|
|
582
|
+
"$ref": "$map/item/id"
|
|
583
|
+
},
|
|
584
|
+
1
|
|
585
|
+
]
|
|
586
|
+
}
|
|
587
|
+
]
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
],
|
|
591
|
+
"description": "One roving tab stop for all eight handles: the arrows move the focused handle's edge one pixel (ten with Shift), and Home and End move to the previous and next handle clockwise. Tab leaves the group, so the handles are not eight stops between the image and the controls."
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
]
|
|
596
|
+
}
|
|
597
|
+
]
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
]
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"tagName": "div",
|
|
605
|
+
"attributes": {
|
|
606
|
+
"part": "controls"
|
|
607
|
+
},
|
|
608
|
+
"children": [
|
|
609
|
+
{
|
|
610
|
+
"tagName": "h2",
|
|
611
|
+
"attributes": {
|
|
612
|
+
"part": "title"
|
|
613
|
+
},
|
|
614
|
+
"textContent": "${state.name}"
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"tagName": "p",
|
|
618
|
+
"attributes": {
|
|
619
|
+
"part": "facts",
|
|
620
|
+
"aria-live": "polite"
|
|
621
|
+
},
|
|
622
|
+
"textContent": "${state.facts}"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"tagName": "p",
|
|
626
|
+
"attributes": {
|
|
627
|
+
"part": "help",
|
|
628
|
+
"id": "${state.handleHelpId}"
|
|
629
|
+
},
|
|
630
|
+
"textContent": "Drag inside the crop to move it, or drag a handle to resize it. From the keyboard, the arrows move whichever is focused by one pixel, Shift by ten; Home and End step between them."
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"tagName": "section",
|
|
634
|
+
"attributes": {
|
|
635
|
+
"part": "group"
|
|
636
|
+
},
|
|
637
|
+
"children": [
|
|
638
|
+
{
|
|
639
|
+
"tagName": "h3",
|
|
640
|
+
"attributes": {
|
|
641
|
+
"part": "group-title"
|
|
642
|
+
},
|
|
643
|
+
"textContent": "Crop"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"tagName": "label",
|
|
647
|
+
"attributes": {
|
|
648
|
+
"part": "field-row"
|
|
649
|
+
},
|
|
650
|
+
"children": [
|
|
651
|
+
{
|
|
652
|
+
"tagName": "span",
|
|
653
|
+
"attributes": {
|
|
654
|
+
"part": "field-label"
|
|
655
|
+
},
|
|
656
|
+
"textContent": "Ratio"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"tagName": "jx-select",
|
|
660
|
+
"attributes": {
|
|
661
|
+
"part": "aspect"
|
|
662
|
+
},
|
|
663
|
+
"$props": {
|
|
664
|
+
"label": "Ratio",
|
|
665
|
+
"size": "sm",
|
|
666
|
+
"options": {
|
|
667
|
+
"$ref": "#/state/aspectOptions"
|
|
668
|
+
},
|
|
669
|
+
"value": {
|
|
670
|
+
"$ref": "#/state/aspect"
|
|
671
|
+
},
|
|
672
|
+
"disabled": {
|
|
673
|
+
"$ref": "#/state/undecoded"
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
"onchange": {
|
|
677
|
+
"$prototype": "Function",
|
|
678
|
+
"body": [
|
|
679
|
+
{
|
|
680
|
+
"operator": "call",
|
|
681
|
+
"target": {
|
|
682
|
+
"$ref": "#/state/setAspect"
|
|
683
|
+
},
|
|
684
|
+
"value": [
|
|
685
|
+
{
|
|
686
|
+
"$ref": "event#/target/value"
|
|
687
|
+
}
|
|
688
|
+
]
|
|
689
|
+
}
|
|
690
|
+
]
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
]
|
|
694
|
+
}
|
|
695
|
+
]
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"tagName": "section",
|
|
699
|
+
"attributes": {
|
|
700
|
+
"part": "group"
|
|
701
|
+
},
|
|
702
|
+
"children": [
|
|
703
|
+
{
|
|
704
|
+
"tagName": "h3",
|
|
705
|
+
"attributes": {
|
|
706
|
+
"part": "group-title"
|
|
707
|
+
},
|
|
708
|
+
"textContent": "Orientation"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"tagName": "div",
|
|
712
|
+
"attributes": {
|
|
713
|
+
"part": "tools",
|
|
714
|
+
"role": "toolbar",
|
|
715
|
+
"aria-label": "Orientation and history"
|
|
716
|
+
},
|
|
717
|
+
"children": [
|
|
718
|
+
{
|
|
719
|
+
"tagName": "jx-action-button",
|
|
720
|
+
"attributes": {
|
|
721
|
+
"part": "rotate-left"
|
|
722
|
+
},
|
|
723
|
+
"$props": {
|
|
724
|
+
"size": "sm",
|
|
725
|
+
"quiet": true,
|
|
726
|
+
"icon": "arrows-clockwise",
|
|
727
|
+
"label": "Rotate left",
|
|
728
|
+
"hint": "Rotate left",
|
|
729
|
+
"mirror": true,
|
|
730
|
+
"disabled": {
|
|
731
|
+
"$ref": "#/state/busy"
|
|
732
|
+
}
|
|
733
|
+
},
|
|
734
|
+
"onclick": {
|
|
735
|
+
"$prototype": "Function",
|
|
736
|
+
"body": [
|
|
737
|
+
{
|
|
738
|
+
"operator": "call",
|
|
739
|
+
"target": {
|
|
740
|
+
"$ref": "#/state/rotate"
|
|
741
|
+
},
|
|
742
|
+
"value": [-1]
|
|
743
|
+
}
|
|
744
|
+
]
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"tagName": "jx-action-button",
|
|
749
|
+
"attributes": {
|
|
750
|
+
"part": "rotate-right"
|
|
751
|
+
},
|
|
752
|
+
"$props": {
|
|
753
|
+
"size": "sm",
|
|
754
|
+
"quiet": true,
|
|
755
|
+
"icon": "arrows-clockwise",
|
|
756
|
+
"label": "Rotate right",
|
|
757
|
+
"hint": "Rotate right",
|
|
758
|
+
"disabled": {
|
|
759
|
+
"$ref": "#/state/busy"
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
"onclick": {
|
|
763
|
+
"$prototype": "Function",
|
|
764
|
+
"body": [
|
|
765
|
+
{
|
|
766
|
+
"operator": "call",
|
|
767
|
+
"target": {
|
|
768
|
+
"$ref": "#/state/rotate"
|
|
769
|
+
},
|
|
770
|
+
"value": [1]
|
|
771
|
+
}
|
|
772
|
+
]
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"tagName": "jx-action-button",
|
|
777
|
+
"attributes": {
|
|
778
|
+
"part": "flip-h"
|
|
779
|
+
},
|
|
780
|
+
"$props": {
|
|
781
|
+
"size": "sm",
|
|
782
|
+
"quiet": true,
|
|
783
|
+
"icon": "flip-horizontal",
|
|
784
|
+
"label": "Flip horizontally",
|
|
785
|
+
"hint": "Flip horizontally",
|
|
786
|
+
"disabled": {
|
|
787
|
+
"$ref": "#/state/busy"
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
"onclick": {
|
|
791
|
+
"$prototype": "Function",
|
|
792
|
+
"body": [
|
|
793
|
+
{
|
|
794
|
+
"operator": "call",
|
|
795
|
+
"target": {
|
|
796
|
+
"$ref": "#/state/flip"
|
|
797
|
+
},
|
|
798
|
+
"value": ["h"]
|
|
799
|
+
}
|
|
800
|
+
]
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"tagName": "jx-action-button",
|
|
805
|
+
"attributes": {
|
|
806
|
+
"part": "flip-v"
|
|
807
|
+
},
|
|
808
|
+
"$props": {
|
|
809
|
+
"size": "sm",
|
|
810
|
+
"quiet": true,
|
|
811
|
+
"icon": "flip-vertical",
|
|
812
|
+
"label": "Flip vertically",
|
|
813
|
+
"hint": "Flip vertically",
|
|
814
|
+
"disabled": {
|
|
815
|
+
"$ref": "#/state/busy"
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"onclick": {
|
|
819
|
+
"$prototype": "Function",
|
|
820
|
+
"body": [
|
|
821
|
+
{
|
|
822
|
+
"operator": "call",
|
|
823
|
+
"target": {
|
|
824
|
+
"$ref": "#/state/flip"
|
|
825
|
+
},
|
|
826
|
+
"value": ["v"]
|
|
827
|
+
}
|
|
828
|
+
]
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
"tagName": "jx-action-button",
|
|
833
|
+
"attributes": {
|
|
834
|
+
"part": "undo"
|
|
835
|
+
},
|
|
836
|
+
"$props": {
|
|
837
|
+
"size": "sm",
|
|
838
|
+
"quiet": true,
|
|
839
|
+
"icon": "arrow-u-up-left",
|
|
840
|
+
"label": "Undo",
|
|
841
|
+
"hint": "Undo",
|
|
842
|
+
"disabled": {
|
|
843
|
+
"$ref": "#/state/cannotUndo"
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
"onclick": {
|
|
847
|
+
"$prototype": "Function",
|
|
848
|
+
"body": [
|
|
849
|
+
{
|
|
850
|
+
"operator": "call",
|
|
851
|
+
"target": {
|
|
852
|
+
"$ref": "#/state/undo"
|
|
853
|
+
},
|
|
854
|
+
"value": []
|
|
855
|
+
}
|
|
856
|
+
]
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"tagName": "jx-action-button",
|
|
861
|
+
"attributes": {
|
|
862
|
+
"part": "redo"
|
|
863
|
+
},
|
|
864
|
+
"$props": {
|
|
865
|
+
"size": "sm",
|
|
866
|
+
"quiet": true,
|
|
867
|
+
"icon": "arrow-u-up-right",
|
|
868
|
+
"label": "Redo",
|
|
869
|
+
"hint": "Redo",
|
|
870
|
+
"disabled": {
|
|
871
|
+
"$ref": "#/state/cannotRedo"
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
"onclick": {
|
|
875
|
+
"$prototype": "Function",
|
|
876
|
+
"body": [
|
|
877
|
+
{
|
|
878
|
+
"operator": "call",
|
|
879
|
+
"target": {
|
|
880
|
+
"$ref": "#/state/redo"
|
|
881
|
+
},
|
|
882
|
+
"value": []
|
|
883
|
+
}
|
|
884
|
+
]
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
]
|
|
888
|
+
}
|
|
889
|
+
]
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"tagName": "section",
|
|
893
|
+
"attributes": {
|
|
894
|
+
"part": "group"
|
|
895
|
+
},
|
|
896
|
+
"children": [
|
|
897
|
+
{
|
|
898
|
+
"tagName": "h3",
|
|
899
|
+
"attributes": {
|
|
900
|
+
"part": "group-title"
|
|
901
|
+
},
|
|
902
|
+
"textContent": "Size"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"tagName": "label",
|
|
906
|
+
"attributes": {
|
|
907
|
+
"part": "field-row"
|
|
908
|
+
},
|
|
909
|
+
"children": [
|
|
910
|
+
{
|
|
911
|
+
"tagName": "span",
|
|
912
|
+
"attributes": {
|
|
913
|
+
"part": "field-label"
|
|
914
|
+
},
|
|
915
|
+
"textContent": "Width"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"tagName": "jx-number-field",
|
|
919
|
+
"attributes": {
|
|
920
|
+
"part": "width"
|
|
921
|
+
},
|
|
922
|
+
"$props": {
|
|
923
|
+
"size": "sm",
|
|
924
|
+
"label": "Width",
|
|
925
|
+
"value": {
|
|
926
|
+
"$ref": "#/state/width"
|
|
927
|
+
},
|
|
928
|
+
"stepper": true,
|
|
929
|
+
"max": {
|
|
930
|
+
"$ref": "#/state/maxOutputWidth"
|
|
931
|
+
},
|
|
932
|
+
"min": "1",
|
|
933
|
+
"disabled": {
|
|
934
|
+
"$ref": "#/state/undecoded"
|
|
935
|
+
}
|
|
936
|
+
},
|
|
937
|
+
"onchange": {
|
|
938
|
+
"$prototype": "Function",
|
|
939
|
+
"body": [
|
|
940
|
+
{
|
|
941
|
+
"operator": "call",
|
|
942
|
+
"target": {
|
|
943
|
+
"$ref": "#/state/setWidth"
|
|
944
|
+
},
|
|
945
|
+
"value": [
|
|
946
|
+
{
|
|
947
|
+
"$ref": "event#/target/value"
|
|
948
|
+
}
|
|
949
|
+
]
|
|
950
|
+
}
|
|
951
|
+
]
|
|
952
|
+
},
|
|
953
|
+
"oninput": {
|
|
954
|
+
"$prototype": "Function",
|
|
955
|
+
"body": [
|
|
956
|
+
{
|
|
957
|
+
"operator": "call",
|
|
958
|
+
"target": {
|
|
959
|
+
"$ref": "#/state/fieldEdited"
|
|
960
|
+
},
|
|
961
|
+
"value": []
|
|
962
|
+
}
|
|
963
|
+
],
|
|
964
|
+
"description": "Text not yet committed is unsaved work, so the Save chord is not refused over it."
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
]
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"tagName": "jx-button",
|
|
971
|
+
"attributes": {
|
|
972
|
+
"part": "fit"
|
|
973
|
+
},
|
|
974
|
+
"$props": {
|
|
975
|
+
"size": "sm",
|
|
976
|
+
"variant": "secondary",
|
|
977
|
+
"disabled": {
|
|
978
|
+
"$ref": "#/state/cannotFit"
|
|
979
|
+
},
|
|
980
|
+
"hint": "${state.fitHint}"
|
|
981
|
+
},
|
|
982
|
+
"onclick": {
|
|
983
|
+
"$prototype": "Function",
|
|
984
|
+
"body": [
|
|
985
|
+
{
|
|
986
|
+
"operator": "call",
|
|
987
|
+
"target": {
|
|
988
|
+
"$ref": "#/state/fitForWeb"
|
|
989
|
+
},
|
|
990
|
+
"value": []
|
|
991
|
+
}
|
|
992
|
+
]
|
|
993
|
+
},
|
|
994
|
+
"children": [
|
|
995
|
+
{
|
|
996
|
+
"tagName": "span",
|
|
997
|
+
"textContent": "${state.fitLabel}"
|
|
998
|
+
}
|
|
999
|
+
]
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"tagName": "div",
|
|
1003
|
+
"attributes": {
|
|
1004
|
+
"part": "quality-slot",
|
|
1005
|
+
"role": "none"
|
|
1006
|
+
},
|
|
1007
|
+
"$switch": {
|
|
1008
|
+
"$ref": "#/state/quality"
|
|
1009
|
+
},
|
|
1010
|
+
"cases": {
|
|
1011
|
+
"shown": {
|
|
1012
|
+
"tagName": "label",
|
|
1013
|
+
"attributes": {
|
|
1014
|
+
"part": "field-row"
|
|
1015
|
+
},
|
|
1016
|
+
"children": [
|
|
1017
|
+
{
|
|
1018
|
+
"tagName": "span",
|
|
1019
|
+
"attributes": {
|
|
1020
|
+
"part": "field-label"
|
|
1021
|
+
},
|
|
1022
|
+
"textContent": "Quality"
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"tagName": "jx-number-field",
|
|
1026
|
+
"attributes": {
|
|
1027
|
+
"part": "quality"
|
|
1028
|
+
},
|
|
1029
|
+
"$props": {
|
|
1030
|
+
"size": "sm",
|
|
1031
|
+
"label": "Quality",
|
|
1032
|
+
"value": {
|
|
1033
|
+
"$ref": "#/state/qualityValue"
|
|
1034
|
+
},
|
|
1035
|
+
"stepper": true,
|
|
1036
|
+
"min": "1",
|
|
1037
|
+
"max": "100",
|
|
1038
|
+
"disabled": {
|
|
1039
|
+
"$ref": "#/state/undecoded"
|
|
1040
|
+
}
|
|
1041
|
+
},
|
|
1042
|
+
"onchange": {
|
|
1043
|
+
"$prototype": "Function",
|
|
1044
|
+
"body": [
|
|
1045
|
+
{
|
|
1046
|
+
"operator": "call",
|
|
1047
|
+
"target": {
|
|
1048
|
+
"$ref": "#/state/setValue"
|
|
1049
|
+
},
|
|
1050
|
+
"value": [
|
|
1051
|
+
"quality",
|
|
1052
|
+
{
|
|
1053
|
+
"$ref": "event#/target/value"
|
|
1054
|
+
}
|
|
1055
|
+
]
|
|
1056
|
+
}
|
|
1057
|
+
]
|
|
1058
|
+
},
|
|
1059
|
+
"oninput": {
|
|
1060
|
+
"$prototype": "Function",
|
|
1061
|
+
"body": [
|
|
1062
|
+
{
|
|
1063
|
+
"operator": "call",
|
|
1064
|
+
"target": {
|
|
1065
|
+
"$ref": "#/state/fieldEdited"
|
|
1066
|
+
},
|
|
1067
|
+
"value": []
|
|
1068
|
+
}
|
|
1069
|
+
],
|
|
1070
|
+
"description": "Text not yet committed is unsaved work, so the Save chord is not refused over it."
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
]
|
|
1074
|
+
},
|
|
1075
|
+
"hidden": {
|
|
1076
|
+
"tagName": "span",
|
|
1077
|
+
"attributes": {
|
|
1078
|
+
"hidden": true
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
]
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
"tagName": "section",
|
|
1087
|
+
"attributes": {
|
|
1088
|
+
"part": "group"
|
|
1089
|
+
},
|
|
1090
|
+
"children": [
|
|
1091
|
+
{
|
|
1092
|
+
"tagName": "h3",
|
|
1093
|
+
"attributes": {
|
|
1094
|
+
"part": "group-title"
|
|
1095
|
+
},
|
|
1096
|
+
"textContent": "Tone"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"tagName": "label",
|
|
1100
|
+
"attributes": {
|
|
1101
|
+
"part": "field-row"
|
|
1102
|
+
},
|
|
1103
|
+
"children": [
|
|
1104
|
+
{
|
|
1105
|
+
"tagName": "span",
|
|
1106
|
+
"attributes": {
|
|
1107
|
+
"part": "field-label"
|
|
1108
|
+
},
|
|
1109
|
+
"textContent": "Brightness"
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"tagName": "jx-number-field",
|
|
1113
|
+
"attributes": {
|
|
1114
|
+
"part": "brightness"
|
|
1115
|
+
},
|
|
1116
|
+
"$props": {
|
|
1117
|
+
"size": "sm",
|
|
1118
|
+
"label": "Brightness",
|
|
1119
|
+
"value": {
|
|
1120
|
+
"$ref": "#/state/brightness"
|
|
1121
|
+
},
|
|
1122
|
+
"stepper": true,
|
|
1123
|
+
"min": "0",
|
|
1124
|
+
"max": "200",
|
|
1125
|
+
"disabled": {
|
|
1126
|
+
"$ref": "#/state/undecoded"
|
|
1127
|
+
}
|
|
1128
|
+
},
|
|
1129
|
+
"onchange": {
|
|
1130
|
+
"$prototype": "Function",
|
|
1131
|
+
"body": [
|
|
1132
|
+
{
|
|
1133
|
+
"operator": "call",
|
|
1134
|
+
"target": {
|
|
1135
|
+
"$ref": "#/state/setValue"
|
|
1136
|
+
},
|
|
1137
|
+
"value": [
|
|
1138
|
+
"brightness",
|
|
1139
|
+
{
|
|
1140
|
+
"$ref": "event#/target/value"
|
|
1141
|
+
}
|
|
1142
|
+
]
|
|
1143
|
+
}
|
|
1144
|
+
]
|
|
1145
|
+
},
|
|
1146
|
+
"oninput": {
|
|
1147
|
+
"$prototype": "Function",
|
|
1148
|
+
"body": [
|
|
1149
|
+
{
|
|
1150
|
+
"operator": "call",
|
|
1151
|
+
"target": {
|
|
1152
|
+
"$ref": "#/state/fieldEdited"
|
|
1153
|
+
},
|
|
1154
|
+
"value": []
|
|
1155
|
+
}
|
|
1156
|
+
],
|
|
1157
|
+
"description": "Text not yet committed is unsaved work, so the Save chord is not refused over it."
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
]
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"tagName": "label",
|
|
1164
|
+
"attributes": {
|
|
1165
|
+
"part": "field-row"
|
|
1166
|
+
},
|
|
1167
|
+
"children": [
|
|
1168
|
+
{
|
|
1169
|
+
"tagName": "span",
|
|
1170
|
+
"attributes": {
|
|
1171
|
+
"part": "field-label"
|
|
1172
|
+
},
|
|
1173
|
+
"textContent": "Contrast"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"tagName": "jx-number-field",
|
|
1177
|
+
"attributes": {
|
|
1178
|
+
"part": "contrast"
|
|
1179
|
+
},
|
|
1180
|
+
"$props": {
|
|
1181
|
+
"size": "sm",
|
|
1182
|
+
"label": "Contrast",
|
|
1183
|
+
"value": {
|
|
1184
|
+
"$ref": "#/state/contrast"
|
|
1185
|
+
},
|
|
1186
|
+
"stepper": true,
|
|
1187
|
+
"min": "0",
|
|
1188
|
+
"max": "200",
|
|
1189
|
+
"disabled": {
|
|
1190
|
+
"$ref": "#/state/undecoded"
|
|
1191
|
+
}
|
|
1192
|
+
},
|
|
1193
|
+
"onchange": {
|
|
1194
|
+
"$prototype": "Function",
|
|
1195
|
+
"body": [
|
|
1196
|
+
{
|
|
1197
|
+
"operator": "call",
|
|
1198
|
+
"target": {
|
|
1199
|
+
"$ref": "#/state/setValue"
|
|
1200
|
+
},
|
|
1201
|
+
"value": [
|
|
1202
|
+
"contrast",
|
|
1203
|
+
{
|
|
1204
|
+
"$ref": "event#/target/value"
|
|
1205
|
+
}
|
|
1206
|
+
]
|
|
1207
|
+
}
|
|
1208
|
+
]
|
|
1209
|
+
},
|
|
1210
|
+
"oninput": {
|
|
1211
|
+
"$prototype": "Function",
|
|
1212
|
+
"body": [
|
|
1213
|
+
{
|
|
1214
|
+
"operator": "call",
|
|
1215
|
+
"target": {
|
|
1216
|
+
"$ref": "#/state/fieldEdited"
|
|
1217
|
+
},
|
|
1218
|
+
"value": []
|
|
1219
|
+
}
|
|
1220
|
+
],
|
|
1221
|
+
"description": "Text not yet committed is unsaved work, so the Save chord is not refused over it."
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
]
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"tagName": "label",
|
|
1228
|
+
"attributes": {
|
|
1229
|
+
"part": "field-row"
|
|
1230
|
+
},
|
|
1231
|
+
"children": [
|
|
1232
|
+
{
|
|
1233
|
+
"tagName": "span",
|
|
1234
|
+
"attributes": {
|
|
1235
|
+
"part": "field-label"
|
|
1236
|
+
},
|
|
1237
|
+
"textContent": "Saturation"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"tagName": "jx-number-field",
|
|
1241
|
+
"attributes": {
|
|
1242
|
+
"part": "saturation"
|
|
1243
|
+
},
|
|
1244
|
+
"$props": {
|
|
1245
|
+
"size": "sm",
|
|
1246
|
+
"label": "Saturation",
|
|
1247
|
+
"value": {
|
|
1248
|
+
"$ref": "#/state/saturation"
|
|
1249
|
+
},
|
|
1250
|
+
"stepper": true,
|
|
1251
|
+
"min": "0",
|
|
1252
|
+
"max": "200",
|
|
1253
|
+
"disabled": {
|
|
1254
|
+
"$ref": "#/state/undecoded"
|
|
1255
|
+
}
|
|
1256
|
+
},
|
|
1257
|
+
"onchange": {
|
|
1258
|
+
"$prototype": "Function",
|
|
1259
|
+
"body": [
|
|
1260
|
+
{
|
|
1261
|
+
"operator": "call",
|
|
1262
|
+
"target": {
|
|
1263
|
+
"$ref": "#/state/setValue"
|
|
1264
|
+
},
|
|
1265
|
+
"value": [
|
|
1266
|
+
"saturation",
|
|
1267
|
+
{
|
|
1268
|
+
"$ref": "event#/target/value"
|
|
1269
|
+
}
|
|
1270
|
+
]
|
|
1271
|
+
}
|
|
1272
|
+
]
|
|
1273
|
+
},
|
|
1274
|
+
"oninput": {
|
|
1275
|
+
"$prototype": "Function",
|
|
1276
|
+
"body": [
|
|
1277
|
+
{
|
|
1278
|
+
"operator": "call",
|
|
1279
|
+
"target": {
|
|
1280
|
+
"$ref": "#/state/fieldEdited"
|
|
1281
|
+
},
|
|
1282
|
+
"value": []
|
|
1283
|
+
}
|
|
1284
|
+
],
|
|
1285
|
+
"description": "Text not yet committed is unsaved work, so the Save chord is not refused over it."
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
]
|
|
1289
|
+
}
|
|
1290
|
+
]
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"tagName": "div",
|
|
1294
|
+
"attributes": {
|
|
1295
|
+
"part": "footer"
|
|
1296
|
+
},
|
|
1297
|
+
"children": [
|
|
1298
|
+
{
|
|
1299
|
+
"tagName": "div",
|
|
1300
|
+
"attributes": {
|
|
1301
|
+
"part": "actions"
|
|
1302
|
+
},
|
|
1303
|
+
"children": [
|
|
1304
|
+
{
|
|
1305
|
+
"tagName": "jx-button",
|
|
1306
|
+
"attributes": {
|
|
1307
|
+
"part": "reset"
|
|
1308
|
+
},
|
|
1309
|
+
"$props": {
|
|
1310
|
+
"size": "sm",
|
|
1311
|
+
"variant": "secondary",
|
|
1312
|
+
"disabled": {
|
|
1313
|
+
"$ref": "#/state/clean"
|
|
1314
|
+
}
|
|
1315
|
+
},
|
|
1316
|
+
"onclick": {
|
|
1317
|
+
"$prototype": "Function",
|
|
1318
|
+
"body": [
|
|
1319
|
+
{
|
|
1320
|
+
"operator": "call",
|
|
1321
|
+
"target": {
|
|
1322
|
+
"$ref": "#/state/reset"
|
|
1323
|
+
},
|
|
1324
|
+
"value": []
|
|
1325
|
+
}
|
|
1326
|
+
]
|
|
1327
|
+
},
|
|
1328
|
+
"children": [
|
|
1329
|
+
{
|
|
1330
|
+
"tagName": "span",
|
|
1331
|
+
"textContent": "Reset"
|
|
1332
|
+
}
|
|
1333
|
+
]
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"tagName": "jx-button",
|
|
1337
|
+
"attributes": {
|
|
1338
|
+
"part": "save"
|
|
1339
|
+
},
|
|
1340
|
+
"$props": {
|
|
1341
|
+
"size": "sm",
|
|
1342
|
+
"variant": "accent",
|
|
1343
|
+
"disabled": {
|
|
1344
|
+
"$ref": "#/state/cannotSave"
|
|
1345
|
+
},
|
|
1346
|
+
"loading": {
|
|
1347
|
+
"$ref": "#/state/saving"
|
|
1348
|
+
}
|
|
1349
|
+
},
|
|
1350
|
+
"onclick": {
|
|
1351
|
+
"$prototype": "Function",
|
|
1352
|
+
"body": [
|
|
1353
|
+
{
|
|
1354
|
+
"operator": "call",
|
|
1355
|
+
"target": {
|
|
1356
|
+
"$ref": "#/state/save"
|
|
1357
|
+
},
|
|
1358
|
+
"value": []
|
|
1359
|
+
}
|
|
1360
|
+
]
|
|
1361
|
+
},
|
|
1362
|
+
"children": [
|
|
1363
|
+
{
|
|
1364
|
+
"tagName": "span",
|
|
1365
|
+
"textContent": "Save"
|
|
1366
|
+
}
|
|
1367
|
+
]
|
|
1368
|
+
}
|
|
1369
|
+
]
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"tagName": "p",
|
|
1373
|
+
"attributes": {
|
|
1374
|
+
"part": "warning"
|
|
1375
|
+
},
|
|
1376
|
+
"textContent": "${state.warning}"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"tagName": "p",
|
|
1380
|
+
"attributes": {
|
|
1381
|
+
"part": "discards"
|
|
1382
|
+
},
|
|
1383
|
+
"textContent": "Saving writes pixels only: a rotation tag is applied to them, and any color profile, high bit depth and other metadata are dropped."
|
|
1384
|
+
}
|
|
1385
|
+
]
|
|
1386
|
+
}
|
|
1387
|
+
]
|
|
1388
|
+
}
|
|
1389
|
+
]
|
|
1390
|
+
}
|