@design-edito/tools 0.2.0 → 0.2.2
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/agnostic/arrays/index.js +12 -12
- package/agnostic/arrays/random-pick/index.js +6 -6
- package/agnostic/colors/index.js +11 -11
- package/agnostic/colors/lighten-color/index.js +2 -2
- package/agnostic/colors/saturate-color/index.js +2 -2
- package/agnostic/css/index.js +10 -10
- package/agnostic/css/styles-set/index.js +6 -6
- package/agnostic/errors/index.js +2 -2
- package/agnostic/html/hyper-json/cast/index.js +7 -7
- package/agnostic/html/hyper-json/index.js +8 -8
- package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +7 -7
- package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +7 -7
- package/agnostic/html/hyper-json/tree/index.js +7 -7
- package/agnostic/html/hyper-json/utils/index.js +7 -7
- package/agnostic/html/index.js +19 -19
- package/agnostic/html/sanitize/index.js +6 -6
- package/agnostic/html/selector-to-element/index.js +6 -6
- package/agnostic/html/string-to-nodes/index.js +7 -7
- package/agnostic/misc/assert/index.js +3 -3
- package/agnostic/misc/crossenv/index.js +2 -2
- package/agnostic/misc/index.js +21 -21
- package/agnostic/misc/lorem-ipsum/index.js +13 -13
- package/agnostic/numbers/index.js +3 -3
- package/agnostic/objects/index.js +14 -14
- package/agnostic/optim/index.js +3 -3
- package/agnostic/strings/index.js +9 -9
- package/agnostic/time/index.js +5 -5
- package/chunks/chunk-4UV3XIGE.js +18 -0
- package/chunks/chunk-5D472NLE.js +22 -0
- package/chunks/chunk-5EY3BYMT.js +32 -0
- package/chunks/chunk-5OZAL6GW.js +30 -0
- package/chunks/chunk-B6AUVPAA.js +181 -0
- package/chunks/chunk-BHEWHO2M.js +25 -0
- package/chunks/chunk-CLZY2DXU.js +27 -0
- package/chunks/chunk-DJJBT23A.js +24 -0
- package/chunks/chunk-DL5G2SYX.js +49 -0
- package/chunks/chunk-DOASQI7Y.js +24 -0
- package/chunks/chunk-GZDDL6RB.js +22 -0
- package/chunks/{chunk-O6TWC4IK.js → chunk-HN7XLETR.js} +21 -21
- package/chunks/chunk-IFH5LQHA.js +28 -0
- package/chunks/chunk-LIV7TJ46.js +24 -0
- package/chunks/chunk-NYVARFI7.js +20 -0
- package/chunks/chunk-OVLFK3C3.js +27 -0
- package/chunks/{chunk-C2MFLI7A.js → chunk-R765J7H2.js} +0 -27
- package/chunks/{chunk-Y6EREGHZ.js → chunk-TLX7ZDXI.js} +3 -3
- package/chunks/{chunk-KRICEY6O.js → chunk-TY6PMUBC.js} +3 -3
- package/chunks/{chunk-XOXH4XNN.js → chunk-VQUF2TSY.js} +1 -1
- package/chunks/chunk-WNDMYNDU.js +8 -0
- package/chunks/chunk-YA2YCZUF.js +8 -0
- package/node/@aws-s3/index.js +9 -9
- package/node/@aws-s3/storage/directory/index.js +4 -4
- package/node/@aws-s3/storage/file/index.js +10 -10
- package/node/@aws-s3/storage/index.js +11 -11
- package/node/@google-cloud/index.js +13 -13
- package/node/@google-cloud/storage/bucket/index.js +4 -4
- package/node/@google-cloud/storage/directory/index.js +4 -4
- package/node/@google-cloud/storage/file/index.js +13 -13
- package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +2 -2
- package/node/@google-cloud/storage/index.js +17 -17
- package/node/cloud-storage/index.js +45 -45
- package/node/cloud-storage/operations/copy-dir/index.js +3 -3
- package/node/cloud-storage/operations/copy-file/index.js +3 -3
- package/node/cloud-storage/operations/download-file/index.js +3 -3
- package/node/cloud-storage/operations/exists-file/index.js +3 -3
- package/node/cloud-storage/operations/index.js +57 -57
- package/node/cloud-storage/operations/list-dir/index.js +3 -3
- package/node/cloud-storage/operations/move-dir/index.js +3 -3
- package/node/cloud-storage/operations/move-file/index.js +3 -3
- package/node/cloud-storage/operations/remove-dir/index.js +3 -3
- package/node/cloud-storage/operations/remove-file/index.js +3 -3
- package/node/cloud-storage/operations/stat-file/index.js +3 -3
- package/node/cloud-storage/operations/upload-file/index.js +3 -3
- package/node/encryption/index.js +3 -3
- package/node/files/index.js +3 -3
- package/node/ftps/directory/index.js +4 -4
- package/node/ftps/file/index.js +10 -10
- package/node/ftps/index.js +10 -10
- package/node/images/format/index.d.ts +0 -7
- package/node/images/format/index.js +1 -3
- package/node/images/get-metadata/index.d.ts +4 -0
- package/node/images/get-metadata/index.js +7 -0
- package/node/images/index.d.ts +3 -3
- package/node/images/index.js +22 -48
- package/node/images/transform/index.d.ts +74 -22
- package/node/images/transform/index.js +20 -47
- package/node/images/transform/operations/blur/index.d.ts +7 -0
- package/node/images/transform/operations/blur/index.js +11 -0
- package/node/images/transform/operations/brighten/index.d.ts +7 -0
- package/node/images/transform/operations/brighten/index.js +11 -0
- package/node/images/transform/operations/extend/index.d.ts +12 -0
- package/node/images/transform/operations/extend/index.js +12 -0
- package/node/images/transform/operations/extract/index.d.ts +10 -0
- package/node/images/transform/operations/extract/index.js +11 -0
- package/node/images/transform/operations/flatten/index.d.ts +7 -0
- package/node/images/transform/operations/flatten/index.js +12 -0
- package/node/images/transform/operations/flip/index.d.ts +2 -0
- package/node/images/transform/operations/flip/index.js +7 -0
- package/node/images/transform/operations/flop/index.d.ts +2 -0
- package/node/images/transform/operations/flop/index.js +7 -0
- package/node/images/transform/operations/hue/index.d.ts +7 -0
- package/node/images/transform/operations/hue/index.js +11 -0
- package/node/images/transform/operations/level/index.d.ts +8 -0
- package/node/images/transform/operations/level/index.js +11 -0
- package/node/images/transform/operations/lighten/index.d.ts +7 -0
- package/node/images/transform/operations/lighten/index.js +11 -0
- package/node/images/transform/operations/normalize/index.d.ts +8 -0
- package/node/images/transform/operations/normalize/index.js +11 -0
- package/node/images/transform/operations/resize/index.d.ts +15 -0
- package/node/images/transform/operations/resize/index.js +12 -0
- package/node/images/transform/operations/rotate/index.d.ts +8 -0
- package/node/images/transform/operations/rotate/index.js +12 -0
- package/node/images/transform/operations/saturate/index.d.ts +7 -0
- package/node/images/transform/operations/saturate/index.js +11 -0
- package/node/images/transform/utils/index.d.ts +2 -0
- package/node/images/transform/utils/index.js +8 -0
- package/node/sftp/directory/index.js +4 -4
- package/node/sftp/file/index.js +10 -10
- package/node/sftp/index.js +10 -10
- package/package.json +1 -1
- package/chunks/chunk-24MJDYQE.js +0 -18
- package/chunks/chunk-24ZUWYIR.js +0 -42
- package/chunks/chunk-2V7TLVCV.js +0 -22
- package/chunks/chunk-2VJ4QISD.js +0 -28
- package/chunks/chunk-3BSVGWTK.js +0 -2456
- package/chunks/chunk-3XRPOHUB.js +0 -164
- package/chunks/chunk-4BPSIDYW.js +0 -60
- package/chunks/chunk-4EFX53Y4.js +0 -31
- package/chunks/chunk-4KNB7WYD.js +0 -19
- package/chunks/chunk-5BQFHNTR.js +0 -21
- package/chunks/chunk-5KVGIG6J.js +0 -31
- package/chunks/chunk-5PAFOSWF.js +0 -16
- package/chunks/chunk-5XBCPKNW.js +0 -18
- package/chunks/chunk-646R6BQZ.js +0 -42
- package/chunks/chunk-65YZMVWZ.js +0 -35
- package/chunks/chunk-6FMANHGH.js +0 -15
- package/chunks/chunk-6LDTWID7.js +0 -40
- package/chunks/chunk-6V6SYSHX.js +0 -31
- package/chunks/chunk-72NLUT3X.js +0 -29
- package/chunks/chunk-72U4TDEB.js +0 -127
- package/chunks/chunk-7CHYRYXJ.js +0 -177
- package/chunks/chunk-7GIJUKYP.js +0 -173
- package/chunks/chunk-ABQMMHCL.js +0 -16
- package/chunks/chunk-AKCO3SNC.js +0 -177
- package/chunks/chunk-AQBJ6HNB.js +0 -29
- package/chunks/chunk-AU6JLO5B.js +0 -151
- package/chunks/chunk-AW3I75FU.js +0 -79
- package/chunks/chunk-AWVQJNGX.js +0 -101
- package/chunks/chunk-AY7SJG3R.js +0 -40
- package/chunks/chunk-B5C6VXNI.js +0 -18
- package/chunks/chunk-BD56ZAYF.js +0 -28
- package/chunks/chunk-BN4MCFBZ.js +0 -35
- package/chunks/chunk-BP3KL5L2.js +0 -28
- package/chunks/chunk-BSLVDJVW.js +0 -32
- package/chunks/chunk-BVPHULMY.js +0 -21
- package/chunks/chunk-C4Q4PC53.js +0 -63
- package/chunks/chunk-CA3UPHYO.js +0 -42
- package/chunks/chunk-CAV4FNVR.js +0 -56
- package/chunks/chunk-CHKEZ72M.js +0 -191
- package/chunks/chunk-CKENYYWH.js +0 -28
- package/chunks/chunk-CP454IJD.js +0 -231
- package/chunks/chunk-CXUWFKJG.js +0 -21
- package/chunks/chunk-CYBPWE5F.js +0 -37
- package/chunks/chunk-D67AGMZF.js +0 -23
- package/chunks/chunk-D7PZ7633.js +0 -42
- package/chunks/chunk-DPQRXSZH.js +0 -42
- package/chunks/chunk-ELPQUBKJ.js +0 -30
- package/chunks/chunk-EWQDQMIO.js +0 -22
- package/chunks/chunk-EZ22Z22X.js +0 -28
- package/chunks/chunk-F4GFAM6X.js +0 -31
- package/chunks/chunk-FCB366FH.js +0 -40
- package/chunks/chunk-FI675VZO.js +0 -11609
- package/chunks/chunk-FRJBHV4A.js +0 -21
- package/chunks/chunk-FS6LRTDK.js +0 -42
- package/chunks/chunk-G4Y2EOVP.js +0 -18
- package/chunks/chunk-G5RRNREY.js +0 -37
- package/chunks/chunk-GE7DNPF6.js +0 -63
- package/chunks/chunk-GGT2PUZH.js +0 -21
- package/chunks/chunk-GGYWRA4A.js +0 -231
- package/chunks/chunk-GKCKBPY2.js +0 -16
- package/chunks/chunk-GZIEUPBF.js +0 -18
- package/chunks/chunk-H5O26IRG.js +0 -28
- package/chunks/chunk-HD7QU6D6.js +0 -40
- package/chunks/chunk-HRWQVASA.js +0 -40
- package/chunks/chunk-HY4V3SPP.js +0 -56
- package/chunks/chunk-IFZ4CMF4.js +0 -16
- package/chunks/chunk-JAENHN5Z.js +0 -42
- package/chunks/chunk-JQAOGZPV.js +0 -37
- package/chunks/chunk-JRYI4VBX.js +0 -22
- package/chunks/chunk-JV6I54AC.js +0 -16
- package/chunks/chunk-KIONYWA7.js +0 -168
- package/chunks/chunk-KOD5LUT3.js +0 -28
- package/chunks/chunk-KQCU3AXU.js +0 -24
- package/chunks/chunk-KUT7FQGS.js +0 -16
- package/chunks/chunk-LJO4SDD2.js +0 -79
- package/chunks/chunk-LNL6TUDC.js +0 -40
- package/chunks/chunk-LNSDOGTR.js +0 -63
- package/chunks/chunk-LQ2H2YVS.js +0 -60
- package/chunks/chunk-LQ3PCG4Z.js +0 -18
- package/chunks/chunk-LV4WOREW.js +0 -40
- package/chunks/chunk-LVCQ3CSC.js +0 -21
- package/chunks/chunk-M32C4GP2.js +0 -15
- package/chunks/chunk-MB7HWF22.js +0 -23
- package/chunks/chunk-MJFB3YE6.js +0 -20
- package/chunks/chunk-MJMBDBEH.js +0 -69
- package/chunks/chunk-MKHTR43Q.js +0 -231
- package/chunks/chunk-MOVLLUDL.js +0 -25
- package/chunks/chunk-NFSRT4ED.js +0 -18
- package/chunks/chunk-NHKKX4F7.js +0 -18
- package/chunks/chunk-NJVVOZVZ.js +0 -37
- package/chunks/chunk-NWGNIT4B.js +0 -151
- package/chunks/chunk-O3V5DTNL.js +0 -40
- package/chunks/chunk-OAGKCS7I.js +0 -24
- package/chunks/chunk-OCM3RLO6.js +0 -73
- package/chunks/chunk-OL4JB46K.js +0 -2456
- package/chunks/chunk-OMLGI3Y2.js +0 -16
- package/chunks/chunk-OVG5RGI3.js +0 -29
- package/chunks/chunk-PFYLNAAX.js +0 -24
- package/chunks/chunk-Q2SKOY7I.js +0 -37
- package/chunks/chunk-QTF7LWGT.js +0 -28
- package/chunks/chunk-QTPSR7ZJ.js +0 -65
- package/chunks/chunk-R4BWUNSM.js +0 -28
- package/chunks/chunk-REXT5ZMP.js +0 -32
- package/chunks/chunk-RNLVCCL2.js +0 -151
- package/chunks/chunk-SAFV7TBT.js +0 -31
- package/chunks/chunk-SEYXG56Q.js +0 -23
- package/chunks/chunk-SHXOKSK3.js +0 -164
- package/chunks/chunk-SJLH36CH.js +0 -26
- package/chunks/chunk-SKBOSWM2.js +0 -35
- package/chunks/chunk-SP7EOGMF.js +0 -30
- package/chunks/chunk-SX2M5777.js +0 -177
- package/chunks/chunk-SY65O2JU.js +0 -98
- package/chunks/chunk-TIER4TF4.js +0 -26
- package/chunks/chunk-TSAR3HF6.js +0 -35
- package/chunks/chunk-U2KKX7UV.js +0 -19
- package/chunks/chunk-U57Q62IN.js +0 -23
- package/chunks/chunk-UEAMPAHK.js +0 -28
- package/chunks/chunk-UJ5LGWZL.js +0 -191
- package/chunks/chunk-UK4HNSEJ.js +0 -42
- package/chunks/chunk-VEKKX6Z5.js +0 -173
- package/chunks/chunk-VISMB7RN.js +0 -60
- package/chunks/chunk-VJHE6WHS.js +0 -164
- package/chunks/chunk-VSM742EZ.js +0 -40
- package/chunks/chunk-W3G73JUU.js +0 -191
- package/chunks/chunk-WAMSK4A3.js +0 -67
- package/chunks/chunk-WG56WT6T.js +0 -20
- package/chunks/chunk-WH6BPDAC.js +0 -17
- package/chunks/chunk-WHLM3KTR.js +0 -20
- package/chunks/chunk-WJ3XV35I.js +0 -28
- package/chunks/chunk-WKGSTVTK.js +0 -28
- package/chunks/chunk-WMDZHUBQ.js +0 -56
- package/chunks/chunk-WP7L5ZFP.js +0 -173
- package/chunks/chunk-WS3JRFP7.js +0 -69
- package/chunks/chunk-X33GT7VY.js +0 -28
- package/chunks/chunk-XB3EGDBI.js +0 -127
- package/chunks/chunk-XNJYYULL.js +0 -177
- package/chunks/chunk-XNWEMAIP.js +0 -42
- package/chunks/chunk-XOUITWSM.js +0 -21
- package/chunks/chunk-XQ4V4LVP.js +0 -28
- package/chunks/chunk-XTOAQTLP.js +0 -98
- package/chunks/chunk-YB2KZLMN.js +0 -65
- package/chunks/chunk-YDIFL3IZ.js +0 -151
- package/chunks/chunk-YJE3G6BE.js +0 -16
- package/chunks/chunk-Z4B2Z7QO.js +0 -2456
- package/chunks/chunk-ZBBU2P4D.js +0 -28
- package/chunks/chunk-ZH3QMMVD.js +0 -28
- package/chunks/chunk-ZKAK6JOS.js +0 -98
- package/chunks/chunk-ZN6IQRZT.js +0 -141
- package/chunks/chunk-ZNPRJEP5.js +0 -28
- package/chunks/chunk-ZQY2MR66.js +0 -42
- package/chunks/chunk-ZRWVPWQC.js +0 -36
- package/chunks/chunk-ZUQEHFGL.js +0 -42
- package/node/images/prepare/index.d.ts +0 -24
- package/node/images/prepare/index.js +0 -59
- package/node/images/transform/_utils/color-schema/index.d.ts +0 -3
- package/node/images/transform/_utils/color-schema/index.js +0 -8
- package/node/images/transform/_utils/operation-names/index.d.ts +0 -20
- package/node/images/transform/_utils/operation-names/index.js +0 -7
- package/node/images/transform/_utils/positions/index.d.ts +0 -19
- package/node/images/transform/_utils/positions/index.js +0 -10
- package/node/images/transform/blur/index.d.ts +0 -10
- package/node/images/transform/blur/index.js +0 -9
- package/node/images/transform/brighten/index.d.ts +0 -8
- package/node/images/transform/brighten/index.js +0 -9
- package/node/images/transform/compose/index.d.ts +0 -38
- package/node/images/transform/compose/index.js +0 -11
- package/node/images/transform/extend/index.d.ts +0 -16
- package/node/images/transform/extend/index.js +0 -10
- package/node/images/transform/extract/index.d.ts +0 -13
- package/node/images/transform/extract/index.js +0 -9
- package/node/images/transform/flatten/index.d.ts +0 -11
- package/node/images/transform/flatten/index.js +0 -10
- package/node/images/transform/flip/index.d.ts +0 -10
- package/node/images/transform/flip/index.js +0 -9
- package/node/images/transform/flop/index.d.ts +0 -10
- package/node/images/transform/flop/index.js +0 -9
- package/node/images/transform/frame/backgrounds/create-line-background/index.d.ts +0 -62
- package/node/images/transform/frame/backgrounds/create-line-background/index.js +0 -10
- package/node/images/transform/frame/backgrounds/create-tile-background/index.d.ts +0 -105
- package/node/images/transform/frame/backgrounds/create-tile-background/index.js +0 -10
- package/node/images/transform/frame/index.d.ts +0 -44
- package/node/images/transform/frame/index.js +0 -13
- package/node/images/transform/hue-rotate/index.d.ts +0 -8
- package/node/images/transform/hue-rotate/index.js +0 -9
- package/node/images/transform/lighten/index.d.ts +0 -8
- package/node/images/transform/lighten/index.js +0 -9
- package/node/images/transform/lineate-levels/index.d.ts +0 -11
- package/node/images/transform/lineate-levels/index.js +0 -9
- package/node/images/transform/modulate/index.d.ts +0 -13
- package/node/images/transform/modulate/index.js +0 -9
- package/node/images/transform/normalize/index.d.ts +0 -11
- package/node/images/transform/normalize/index.js +0 -9
- package/node/images/transform/operations/_utils/compose/index.d.ts +0 -3
- package/node/images/transform/operations/_utils/compose/index.js +0 -8
- package/node/images/transform/operations/_utils/frame/backgrounds/create-line-background/index.d.ts +0 -6
- package/node/images/transform/operations/_utils/frame/backgrounds/create-line-background/index.js +0 -12
- package/node/images/transform/operations/_utils/frame/backgrounds/create-tile-background/index.d.ts +0 -14
- package/node/images/transform/operations/_utils/frame/backgrounds/create-tile-background/index.js +0 -14
- package/node/images/transform/operations/_utils/frame/create-color-palette/index.d.ts +0 -11
- package/node/images/transform/operations/_utils/frame/create-color-palette/index.js +0 -17
- package/node/images/transform/operations/_utils/frame/extract-colors-from-image/index.d.ts +0 -10
- package/node/images/transform/operations/_utils/frame/extract-colors-from-image/index.js +0 -11
- package/node/images/transform/operations/_utils/frame/index.d.ts +0 -7
- package/node/images/transform/operations/_utils/frame/index.js +0 -24
- package/node/images/transform/operations/_utils/positions/index.d.ts +0 -16
- package/node/images/transform/operations/_utils/positions/index.js +0 -11
- package/node/images/transform/operations/_utils/scale/index.d.ts +0 -3
- package/node/images/transform/operations/_utils/scale/index.js +0 -7
- package/node/images/transform/operations/index.d.ts +0 -0
- package/node/images/transform/operations/index.js +0 -0
- package/node/images/transform/resize/index.d.ts +0 -16
- package/node/images/transform/resize/index.js +0 -10
- package/node/images/transform/rotate/index.d.ts +0 -9
- package/node/images/transform/rotate/index.js +0 -9
- package/node/images/transform/saturate/index.d.ts +0 -8
- package/node/images/transform/saturate/index.js +0 -9
- package/node/images/transform/scale/index.d.ts +0 -13
- package/node/images/transform/scale/index.js +0 -10
- package/chunks/{chunk-NOLQR5RW.js → chunk-3T67XKWX.js} +5 -5
- package/chunks/{chunk-LRBVQNQI.js → chunk-64TRCQ5C.js} +9 -9
- package/chunks/{chunk-TQHR6A2P.js → chunk-ENCASRD5.js} +11 -11
- package/chunks/{chunk-7J2AUDU2.js → chunk-FEIU5EB2.js} +6 -6
- package/chunks/{chunk-6NLNUGBI.js → chunk-GJGGDURA.js} +5 -5
- package/chunks/{chunk-OA7Y2A5T.js → chunk-JVFAQFHD.js} +5 -5
- package/chunks/{chunk-3RLCDQOJ.js → chunk-KOHJNRP7.js} +8 -8
- package/chunks/{chunk-UX2O74SG.js → chunk-MJCOPMAD.js} +3 -3
- package/chunks/{chunk-HX5PHI2P.js → chunk-NAN5WRTL.js} +3 -3
- package/chunks/{chunk-7HSB4A2G.js → chunk-PENYZ6S7.js} +8 -8
- package/chunks/{chunk-JNQPNZTB.js → chunk-QT6N2QNW.js} +3 -3
- package/chunks/{chunk-H4LW6FP3.js → chunk-RCCKFZCR.js} +5 -5
- package/chunks/{chunk-CGITTQIW.js → chunk-UWHQFQI2.js} +3 -3
- package/chunks/{chunk-YVWQXQTE.js → chunk-VRFYLKZW.js} +3 -3
- package/chunks/{chunk-EOTOFHUR.js → chunk-VTZRFTRR.js} +5 -5
- package/chunks/{chunk-RXBMGIPJ.js → chunk-WWEDO42X.js} +3 -3
@@ -1,25 +1,25 @@
|
|
1
1
|
import {
|
2
2
|
LoremIpsum
|
3
|
-
} from "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-VQUF2TSY.js";
|
4
4
|
import "../../../chunks/chunk-S32K7POB.js";
|
5
5
|
import "../../../chunks/chunk-D3ERTRDW.js";
|
6
6
|
import "../../../chunks/chunk-75BICI4L.js";
|
7
7
|
import "../../../chunks/chunk-OGBUSUE6.js";
|
8
|
-
import "../../../chunks/chunk-
|
9
|
-
import "../../../chunks/chunk-
|
10
|
-
import "../../../chunks/chunk-
|
11
|
-
import "../../../chunks/chunk-GGT2PUZH.js";
|
12
|
-
import "../../../chunks/chunk-S2NMAH7K.js";
|
13
|
-
import "../../../chunks/chunk-RLJOYG64.js";
|
14
|
-
import "../../../chunks/chunk-LV2VMOWR.js";
|
15
|
-
import "../../../chunks/chunk-WH6BPDAC.js";
|
16
|
-
import "../../../chunks/chunk-QHLQVR3E.js";
|
17
|
-
import "../../../chunks/chunk-FENXVJYO.js";
|
8
|
+
import "../../../chunks/chunk-PENYZ6S7.js";
|
9
|
+
import "../../../chunks/chunk-VJJIYJMY.js";
|
10
|
+
import "../../../chunks/chunk-YS6WMSWC.js";
|
18
11
|
import "../../../chunks/chunk-6RGDWX4A.js";
|
19
12
|
import "../../../chunks/chunk-RCO57B6F.js";
|
20
|
-
import "../../../chunks/chunk-YS6WMSWC.js";
|
21
13
|
import "../../../chunks/chunk-RLAZR3NL.js";
|
22
|
-
import "../../../chunks/chunk-
|
14
|
+
import "../../../chunks/chunk-C7SRAQMW.js";
|
15
|
+
import "../../../chunks/chunk-P2H6PV4O.js";
|
16
|
+
import "../../../chunks/chunk-FR5H2OCV.js";
|
17
|
+
import "../../../chunks/chunk-S2NMAH7K.js";
|
18
|
+
import "../../../chunks/chunk-LV2VMOWR.js";
|
19
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
20
|
+
import "../../../chunks/chunk-2KT7AKRW.js";
|
21
|
+
import "../../../chunks/chunk-FENXVJYO.js";
|
22
|
+
import "../../../chunks/chunk-QHLQVR3E.js";
|
23
23
|
import "../../../chunks/chunk-WSFCRVEQ.js";
|
24
24
|
export {
|
25
25
|
LoremIpsum
|
@@ -4,13 +4,13 @@ import {
|
|
4
4
|
import {
|
5
5
|
clamp
|
6
6
|
} from "../../chunks/chunk-OSAXBA7G.js";
|
7
|
-
import {
|
8
|
-
interpolate
|
9
|
-
} from "../../chunks/chunk-BJAYUP7M.js";
|
10
7
|
import {
|
11
8
|
createScale,
|
12
9
|
getHarmonic
|
13
10
|
} from "../../chunks/chunk-UYTXXUU7.js";
|
11
|
+
import {
|
12
|
+
interpolate
|
13
|
+
} from "../../chunks/chunk-BJAYUP7M.js";
|
14
14
|
import {
|
15
15
|
round
|
16
16
|
} from "../../chunks/chunk-32IRF4OP.js";
|
@@ -1,30 +1,30 @@
|
|
1
|
-
import {
|
2
|
-
recordMap
|
3
|
-
} from "../../chunks/chunk-XNF5MLCQ.js";
|
4
|
-
import {
|
5
|
-
Validation
|
6
|
-
} from "../../chunks/chunk-FPEW3A27.js";
|
7
|
-
import {
|
8
|
-
Enums
|
9
|
-
} from "../../chunks/chunk-WOAYU6LB.js";
|
10
|
-
import "../../chunks/chunk-E6MSDKON.js";
|
11
1
|
import {
|
12
2
|
deepGetProperty
|
13
3
|
} from "../../chunks/chunk-SKMCIFS3.js";
|
14
|
-
import {
|
15
|
-
isRecord
|
16
|
-
} from "../../chunks/chunk-YDIBNEGA.js";
|
17
4
|
import {
|
18
5
|
flattenGetters
|
19
6
|
} from "../../chunks/chunk-VFJYLXCI.js";
|
7
|
+
import "../../chunks/chunk-SNJJII7A.js";
|
20
8
|
import {
|
21
9
|
isNonNullObject,
|
22
10
|
isObject
|
23
11
|
} from "../../chunks/chunk-HQLRJ7XW.js";
|
12
|
+
import {
|
13
|
+
isRecord
|
14
|
+
} from "../../chunks/chunk-YDIBNEGA.js";
|
24
15
|
import {
|
25
16
|
recordFormat
|
26
17
|
} from "../../chunks/chunk-YP64J65L.js";
|
27
|
-
import
|
18
|
+
import {
|
19
|
+
recordMap
|
20
|
+
} from "../../chunks/chunk-XNF5MLCQ.js";
|
21
|
+
import {
|
22
|
+
Validation
|
23
|
+
} from "../../chunks/chunk-FPEW3A27.js";
|
24
|
+
import {
|
25
|
+
Enums
|
26
|
+
} from "../../chunks/chunk-WOAYU6LB.js";
|
27
|
+
import "../../chunks/chunk-E6MSDKON.js";
|
28
28
|
import "../../chunks/chunk-QXAJXTXV.js";
|
29
29
|
import "../../chunks/chunk-HC6ZOHCS.js";
|
30
30
|
import "../../chunks/chunk-WSFCRVEQ.js";
|
package/agnostic/optim/index.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import {
|
2
|
-
memoize
|
3
|
-
} from "../../chunks/chunk-JWBDZPQG.js";
|
4
1
|
import {
|
5
2
|
debounce,
|
6
3
|
throttle
|
7
4
|
} from "../../chunks/chunk-VZDUZTW6.js";
|
5
|
+
import {
|
6
|
+
memoize
|
7
|
+
} from "../../chunks/chunk-JWBDZPQG.js";
|
8
8
|
import "../../chunks/chunk-WSFCRVEQ.js";
|
9
9
|
|
10
10
|
// src/agnostic/optim/index.ts
|
@@ -5,20 +5,20 @@ import {
|
|
5
5
|
normalizeIndent
|
6
6
|
} from "../../chunks/chunk-JQXNEJAP.js";
|
7
7
|
import {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
replaceAll
|
9
|
+
} from "../../chunks/chunk-ZTDVUXPR.js";
|
10
|
+
import {
|
11
|
+
toAlphanum
|
12
|
+
} from "../../chunks/chunk-COVPTTAD.js";
|
12
13
|
import {
|
13
14
|
trimEnd,
|
14
15
|
trimStart
|
15
16
|
} from "../../chunks/chunk-6XL25OZX.js";
|
16
17
|
import {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
} from "../../chunks/chunk-ZTDVUXPR.js";
|
18
|
+
matches,
|
19
|
+
matchesEvery,
|
20
|
+
matchesSome
|
21
|
+
} from "../../chunks/chunk-LQFKUNVQ.js";
|
22
22
|
import "../../chunks/chunk-WSFCRVEQ.js";
|
23
23
|
|
24
24
|
// src/agnostic/strings/index.ts
|
package/agnostic/time/index.js
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
} from "../../chunks/chunk-
|
2
|
+
Duration
|
3
|
+
} from "../../chunks/chunk-6NYUQXJT.js";
|
4
4
|
import {
|
5
5
|
Dates
|
6
6
|
} from "../../chunks/chunk-FZOU4OAW.js";
|
7
7
|
import "../../chunks/chunk-YQWZ3EP2.js";
|
8
|
+
import {
|
9
|
+
Transitions
|
10
|
+
} from "../../chunks/chunk-ENMBK6H7.js";
|
8
11
|
import {
|
9
12
|
timeout
|
10
13
|
} from "../../chunks/chunk-Z7ZDDBV5.js";
|
11
|
-
import {
|
12
|
-
Duration
|
13
|
-
} from "../../chunks/chunk-6NYUQXJT.js";
|
14
14
|
import {
|
15
15
|
wait
|
16
16
|
} from "../../chunks/chunk-4CIS3R7T.js";
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import {
|
2
|
+
zod_default
|
3
|
+
} from "./chunk-OT4SVHDX.js";
|
4
|
+
|
5
|
+
// src/node/images/transform/utils/index.ts
|
6
|
+
function isSharpColor(obj) {
|
7
|
+
if (typeof obj === "string") return true;
|
8
|
+
return zod_default.object({
|
9
|
+
r: zod_default.number().optional(),
|
10
|
+
g: zod_default.number().optional(),
|
11
|
+
b: zod_default.number().optional(),
|
12
|
+
alpha: zod_default.number().optional()
|
13
|
+
}).safeParse(obj).success;
|
14
|
+
}
|
15
|
+
|
16
|
+
export {
|
17
|
+
isSharpColor
|
18
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import {
|
2
|
+
zod_default
|
3
|
+
} from "./chunk-OT4SVHDX.js";
|
4
|
+
import {
|
5
|
+
Outcome
|
6
|
+
} from "./chunk-JMU5PDBD.js";
|
7
|
+
|
8
|
+
// src/node/images/transform/operations/blur/index.ts
|
9
|
+
function isBlurOperationParams(obj) {
|
10
|
+
const schema = zod_default.object({ sigma: zod_default.number() });
|
11
|
+
const result = schema.safeParse(obj);
|
12
|
+
if (!result.success) return Outcome.makeFailure(result.error.message);
|
13
|
+
return Outcome.makeSuccess(result.data);
|
14
|
+
}
|
15
|
+
async function blur(sharpInstance, params) {
|
16
|
+
return sharpInstance.blur(params.sigma);
|
17
|
+
}
|
18
|
+
|
19
|
+
export {
|
20
|
+
isBlurOperationParams,
|
21
|
+
blur
|
22
|
+
};
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import {
|
2
|
+
isSharpColor
|
3
|
+
} from "./chunk-4UV3XIGE.js";
|
4
|
+
import {
|
5
|
+
zod_default
|
6
|
+
} from "./chunk-OT4SVHDX.js";
|
7
|
+
import {
|
8
|
+
Outcome
|
9
|
+
} from "./chunk-JMU5PDBD.js";
|
10
|
+
|
11
|
+
// src/node/images/transform/operations/extend/index.ts
|
12
|
+
function isExtendOperationParams(obj) {
|
13
|
+
const schema = zod_default.object({
|
14
|
+
left: zod_default.number().optional(),
|
15
|
+
right: zod_default.number().optional(),
|
16
|
+
top: zod_default.number().optional(),
|
17
|
+
bottom: zod_default.number().optional(),
|
18
|
+
extendWith: zod_default.optional(zod_default.enum(["background", "copy", "repeat", "mirror"])),
|
19
|
+
background: zod_default.custom((val) => isSharpColor(val)).optional()
|
20
|
+
});
|
21
|
+
const result = schema.safeParse(obj);
|
22
|
+
if (!result.success) return Outcome.makeFailure(result.error.message);
|
23
|
+
return Outcome.makeSuccess(result.data);
|
24
|
+
}
|
25
|
+
async function extend(sharpInstance, params) {
|
26
|
+
return sharpInstance.extend(params);
|
27
|
+
}
|
28
|
+
|
29
|
+
export {
|
30
|
+
isExtendOperationParams,
|
31
|
+
extend
|
32
|
+
};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import {
|
2
|
+
isSharpColor
|
3
|
+
} from "./chunk-4UV3XIGE.js";
|
4
|
+
import {
|
5
|
+
zod_default
|
6
|
+
} from "./chunk-OT4SVHDX.js";
|
7
|
+
import {
|
8
|
+
Outcome
|
9
|
+
} from "./chunk-JMU5PDBD.js";
|
10
|
+
|
11
|
+
// src/node/images/transform/operations/rotate/index.ts
|
12
|
+
function isRotateOperationParams(obj) {
|
13
|
+
const schema = zod_default.object({
|
14
|
+
angleDeg: zod_default.number().optional(),
|
15
|
+
background: zod_default.custom((val) => isSharpColor(val)).optional()
|
16
|
+
});
|
17
|
+
const result = schema.safeParse(obj);
|
18
|
+
if (!result.success) return Outcome.makeFailure(result.error.message);
|
19
|
+
return Outcome.makeSuccess(result.data);
|
20
|
+
}
|
21
|
+
async function rotate(sharpInstance, params) {
|
22
|
+
return sharpInstance.rotate(params.angleDeg, {
|
23
|
+
background: params.background
|
24
|
+
});
|
25
|
+
}
|
26
|
+
|
27
|
+
export {
|
28
|
+
isRotateOperationParams,
|
29
|
+
rotate
|
30
|
+
};
|
@@ -0,0 +1,181 @@
|
|
1
|
+
import {
|
2
|
+
hue,
|
3
|
+
isHueOperationParams
|
4
|
+
} from "./chunk-DJJBT23A.js";
|
5
|
+
import {
|
6
|
+
extract,
|
7
|
+
isExtractOperationParams
|
8
|
+
} from "./chunk-OVLFK3C3.js";
|
9
|
+
import {
|
10
|
+
isLightenOperationParams,
|
11
|
+
lighten
|
12
|
+
} from "./chunk-LIV7TJ46.js";
|
13
|
+
import {
|
14
|
+
isNormalizeOperationParams,
|
15
|
+
normalize
|
16
|
+
} from "./chunk-BHEWHO2M.js";
|
17
|
+
import {
|
18
|
+
isResizeOperationParams,
|
19
|
+
resize
|
20
|
+
} from "./chunk-DL5G2SYX.js";
|
21
|
+
import {
|
22
|
+
isRotateOperationParams,
|
23
|
+
rotate
|
24
|
+
} from "./chunk-5OZAL6GW.js";
|
25
|
+
import {
|
26
|
+
isSaturateOperationParams,
|
27
|
+
saturate
|
28
|
+
} from "./chunk-DOASQI7Y.js";
|
29
|
+
import {
|
30
|
+
brighten,
|
31
|
+
isBrightenOperationParams
|
32
|
+
} from "./chunk-GZDDL6RB.js";
|
33
|
+
import {
|
34
|
+
blur,
|
35
|
+
isBlurOperationParams
|
36
|
+
} from "./chunk-5D472NLE.js";
|
37
|
+
import {
|
38
|
+
extend,
|
39
|
+
isExtendOperationParams
|
40
|
+
} from "./chunk-5EY3BYMT.js";
|
41
|
+
import {
|
42
|
+
flatten,
|
43
|
+
isFlattenOperationParams
|
44
|
+
} from "./chunk-CLZY2DXU.js";
|
45
|
+
import {
|
46
|
+
flip
|
47
|
+
} from "./chunk-WNDMYNDU.js";
|
48
|
+
import {
|
49
|
+
flop
|
50
|
+
} from "./chunk-YA2YCZUF.js";
|
51
|
+
import {
|
52
|
+
isLevelOperationParams,
|
53
|
+
level
|
54
|
+
} from "./chunk-IFH5LQHA.js";
|
55
|
+
import {
|
56
|
+
Outcome
|
57
|
+
} from "./chunk-JMU5PDBD.js";
|
58
|
+
import {
|
59
|
+
__export
|
60
|
+
} from "./chunk-WSFCRVEQ.js";
|
61
|
+
|
62
|
+
// src/node/images/transform/index.ts
|
63
|
+
var transform_exports = {};
|
64
|
+
__export(transform_exports, {
|
65
|
+
OpName: () => OpName,
|
66
|
+
isOperationDescriptor: () => isOperationDescriptor,
|
67
|
+
transform: () => transform
|
68
|
+
});
|
69
|
+
import sharp from "sharp";
|
70
|
+
var OpName = /* @__PURE__ */ ((OpName2) => {
|
71
|
+
OpName2["BLUR"] = "blur";
|
72
|
+
OpName2["BRIGHTEN"] = "brighten";
|
73
|
+
OpName2["EXTEND"] = "extend";
|
74
|
+
OpName2["EXTRACT"] = "extract";
|
75
|
+
OpName2["FLATTEN"] = "flatten";
|
76
|
+
OpName2["FLIP"] = "flip";
|
77
|
+
OpName2["FLOP"] = "flop";
|
78
|
+
OpName2["HUE"] = "hue";
|
79
|
+
OpName2["LEVEL"] = "level";
|
80
|
+
OpName2["LIGHTEN"] = "lighten";
|
81
|
+
OpName2["NORMALIZE"] = "normalize";
|
82
|
+
OpName2["RESIZE"] = "resize";
|
83
|
+
OpName2["ROTATE"] = "rotate";
|
84
|
+
OpName2["SATURATE"] = "saturate";
|
85
|
+
return OpName2;
|
86
|
+
})(OpName || {});
|
87
|
+
function isOperationDescriptor(obj) {
|
88
|
+
if (typeof obj !== "object" || obj === null) return Outcome.makeFailure("Invalid operation descriptor");
|
89
|
+
if (!("name" in obj) || typeof obj.name !== "string") return Outcome.makeFailure("Field named 'name' in operation descriptor is required and must be a string");
|
90
|
+
const name = obj.name;
|
91
|
+
const validateOperation = (validatorFn) => {
|
92
|
+
const result = validatorFn(obj);
|
93
|
+
if (result.success) return Outcome.makeSuccess({ name: obj.name, ...result.payload });
|
94
|
+
return Outcome.makeFailure(result.error);
|
95
|
+
};
|
96
|
+
const validators = {
|
97
|
+
["blur" /* BLUR */]: isBlurOperationParams,
|
98
|
+
["brighten" /* BRIGHTEN */]: isBrightenOperationParams,
|
99
|
+
["extend" /* EXTEND */]: isExtendOperationParams,
|
100
|
+
["extract" /* EXTRACT */]: isExtractOperationParams,
|
101
|
+
["flatten" /* FLATTEN */]: isFlattenOperationParams,
|
102
|
+
["hue" /* HUE */]: isHueOperationParams,
|
103
|
+
["level" /* LEVEL */]: isLevelOperationParams,
|
104
|
+
["lighten" /* LIGHTEN */]: isLightenOperationParams,
|
105
|
+
["normalize" /* NORMALIZE */]: isNormalizeOperationParams,
|
106
|
+
["resize" /* RESIZE */]: isResizeOperationParams,
|
107
|
+
["rotate" /* ROTATE */]: isRotateOperationParams,
|
108
|
+
["saturate" /* SATURATE */]: isSaturateOperationParams
|
109
|
+
};
|
110
|
+
const simpleOperations = /* @__PURE__ */ new Set(["flip" /* FLIP */, "flop" /* FLOP */]);
|
111
|
+
if (simpleOperations.has(name)) return Outcome.makeSuccess({ name });
|
112
|
+
const validator = validators[name];
|
113
|
+
if (validator) return validateOperation(validator);
|
114
|
+
return Outcome.makeFailure("Invalid operation descriptor");
|
115
|
+
}
|
116
|
+
async function transform(input, operationsSequence) {
|
117
|
+
if (Buffer.isBuffer(input)) return transformBuffer(input, operationsSequence);
|
118
|
+
return transformSharpInstance(input, operationsSequence);
|
119
|
+
}
|
120
|
+
async function transformSharpInstance(sharpInstance, operationsSequence) {
|
121
|
+
for (const operation of operationsSequence) {
|
122
|
+
switch (operation.name) {
|
123
|
+
case "blur" /* BLUR */:
|
124
|
+
sharpInstance = await blur(sharpInstance, operation);
|
125
|
+
break;
|
126
|
+
case "brighten" /* BRIGHTEN */:
|
127
|
+
sharpInstance = await brighten(sharpInstance, operation);
|
128
|
+
break;
|
129
|
+
case "extend" /* EXTEND */:
|
130
|
+
sharpInstance = await extend(sharpInstance, operation);
|
131
|
+
break;
|
132
|
+
case "extract" /* EXTRACT */:
|
133
|
+
sharpInstance = await extract(sharpInstance, operation);
|
134
|
+
break;
|
135
|
+
case "flatten" /* FLATTEN */:
|
136
|
+
sharpInstance = await flatten(sharpInstance, operation);
|
137
|
+
break;
|
138
|
+
case "flip" /* FLIP */:
|
139
|
+
sharpInstance = await flip(sharpInstance);
|
140
|
+
break;
|
141
|
+
case "flop" /* FLOP */:
|
142
|
+
sharpInstance = await flop(sharpInstance);
|
143
|
+
break;
|
144
|
+
case "hue" /* HUE */:
|
145
|
+
sharpInstance = await hue(sharpInstance, operation);
|
146
|
+
break;
|
147
|
+
case "level" /* LEVEL */:
|
148
|
+
sharpInstance = await level(sharpInstance, operation);
|
149
|
+
break;
|
150
|
+
case "lighten" /* LIGHTEN */:
|
151
|
+
sharpInstance = await lighten(sharpInstance, operation);
|
152
|
+
break;
|
153
|
+
case "normalize" /* NORMALIZE */:
|
154
|
+
sharpInstance = await normalize(sharpInstance, operation);
|
155
|
+
break;
|
156
|
+
case "resize" /* RESIZE */:
|
157
|
+
sharpInstance = await resize(sharpInstance, operation);
|
158
|
+
break;
|
159
|
+
case "rotate" /* ROTATE */:
|
160
|
+
sharpInstance = await rotate(sharpInstance, operation);
|
161
|
+
break;
|
162
|
+
case "saturate" /* SATURATE */:
|
163
|
+
sharpInstance = await saturate(sharpInstance, operation);
|
164
|
+
break;
|
165
|
+
default:
|
166
|
+
sharpInstance = sharpInstance;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
return sharpInstance;
|
170
|
+
}
|
171
|
+
async function transformBuffer(fileBuffer, operationsSequence) {
|
172
|
+
const sharpInstance = sharp(fileBuffer);
|
173
|
+
return transformSharpInstance(sharpInstance, operationsSequence);
|
174
|
+
}
|
175
|
+
|
176
|
+
export {
|
177
|
+
OpName,
|
178
|
+
isOperationDescriptor,
|
179
|
+
transform,
|
180
|
+
transform_exports
|
181
|
+
};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import {
|
2
|
+
zod_default
|
3
|
+
} from "./chunk-OT4SVHDX.js";
|
4
|
+
import {
|
5
|
+
Outcome
|
6
|
+
} from "./chunk-JMU5PDBD.js";
|
7
|
+
|
8
|
+
// src/node/images/transform/operations/normalize/index.ts
|
9
|
+
function isNormalizeOperationParams(obj) {
|
10
|
+
const schema = zod_default.object({
|
11
|
+
lower: zod_default.number().optional(),
|
12
|
+
upper: zod_default.number().optional()
|
13
|
+
});
|
14
|
+
const result = schema.safeParse(obj);
|
15
|
+
if (!result.success) return Outcome.makeFailure(result.error.message);
|
16
|
+
return Outcome.makeSuccess(result.data);
|
17
|
+
}
|
18
|
+
async function normalize(sharpInstance, params) {
|
19
|
+
return sharpInstance.normalize(params);
|
20
|
+
}
|
21
|
+
|
22
|
+
export {
|
23
|
+
isNormalizeOperationParams,
|
24
|
+
normalize
|
25
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import {
|
2
|
+
isSharpColor
|
3
|
+
} from "./chunk-4UV3XIGE.js";
|
4
|
+
import {
|
5
|
+
zod_default
|
6
|
+
} from "./chunk-OT4SVHDX.js";
|
7
|
+
import {
|
8
|
+
Outcome
|
9
|
+
} from "./chunk-JMU5PDBD.js";
|
10
|
+
|
11
|
+
// src/node/images/transform/operations/flatten/index.ts
|
12
|
+
function isFlattenOperationParams(obj) {
|
13
|
+
const schema = zod_default.object({
|
14
|
+
background: zod_default.custom((val) => isSharpColor(val)).optional()
|
15
|
+
});
|
16
|
+
const result = schema.safeParse(obj);
|
17
|
+
if (!result.success) return Outcome.makeFailure(result.error.message);
|
18
|
+
return Outcome.makeSuccess(result.data);
|
19
|
+
}
|
20
|
+
async function flatten(sharpInstance, params) {
|
21
|
+
return sharpInstance.flatten(params);
|
22
|
+
}
|
23
|
+
|
24
|
+
export {
|
25
|
+
isFlattenOperationParams,
|
26
|
+
flatten
|
27
|
+
};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import {
|
2
|
+
zod_default
|
3
|
+
} from "./chunk-OT4SVHDX.js";
|
4
|
+
import {
|
5
|
+
Outcome
|
6
|
+
} from "./chunk-JMU5PDBD.js";
|
7
|
+
|
8
|
+
// src/node/images/transform/operations/hue/index.ts
|
9
|
+
function isHueOperationParams(obj) {
|
10
|
+
const schema = zod_default.object({
|
11
|
+
rotateDeg: zod_default.number().optional()
|
12
|
+
});
|
13
|
+
const result = schema.safeParse(obj);
|
14
|
+
if (!result.success) return Outcome.makeFailure(result.error.message);
|
15
|
+
return Outcome.makeSuccess(result.data);
|
16
|
+
}
|
17
|
+
async function hue(sharpInstance, params) {
|
18
|
+
return sharpInstance.modulate({ hue: params.rotateDeg });
|
19
|
+
}
|
20
|
+
|
21
|
+
export {
|
22
|
+
isHueOperationParams,
|
23
|
+
hue
|
24
|
+
};
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import {
|
2
|
+
isSharpColor
|
3
|
+
} from "./chunk-4UV3XIGE.js";
|
4
|
+
import {
|
5
|
+
zod_default
|
6
|
+
} from "./chunk-OT4SVHDX.js";
|
7
|
+
import {
|
8
|
+
Outcome
|
9
|
+
} from "./chunk-JMU5PDBD.js";
|
10
|
+
|
11
|
+
// src/node/images/transform/operations/resize/index.ts
|
12
|
+
function isResizeOperationParams(obj) {
|
13
|
+
const schema = zod_default.object({
|
14
|
+
width: zod_default.number().optional(),
|
15
|
+
height: zod_default.number().optional(),
|
16
|
+
fit: zod_default.enum([
|
17
|
+
"contain",
|
18
|
+
"cover",
|
19
|
+
"fill",
|
20
|
+
"inside",
|
21
|
+
"outside"
|
22
|
+
]).optional(),
|
23
|
+
position: zod_default.union([
|
24
|
+
zod_default.number(),
|
25
|
+
zod_default.string()
|
26
|
+
]).optional(),
|
27
|
+
background: zod_default.custom((val) => isSharpColor(val)).optional(),
|
28
|
+
kernel: zod_default.enum([
|
29
|
+
"nearest",
|
30
|
+
"cubic",
|
31
|
+
"mitchell",
|
32
|
+
"lanczos2",
|
33
|
+
"lanczos3",
|
34
|
+
"mks2013",
|
35
|
+
"mks2021"
|
36
|
+
]).optional()
|
37
|
+
});
|
38
|
+
const result = schema.safeParse(obj);
|
39
|
+
if (!result.success) return Outcome.makeFailure(result.error.message);
|
40
|
+
return Outcome.makeSuccess(result.data);
|
41
|
+
}
|
42
|
+
async function resize(sharpInstance, params) {
|
43
|
+
return sharpInstance.resize(params);
|
44
|
+
}
|
45
|
+
|
46
|
+
export {
|
47
|
+
isResizeOperationParams,
|
48
|
+
resize
|
49
|
+
};
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import {
|
2
|
+
zod_default
|
3
|
+
} from "./chunk-OT4SVHDX.js";
|
4
|
+
import {
|
5
|
+
Outcome
|
6
|
+
} from "./chunk-JMU5PDBD.js";
|
7
|
+
|
8
|
+
// src/node/images/transform/operations/saturate/index.ts
|
9
|
+
function isSaturateOperationParams(obj) {
|
10
|
+
const schema = zod_default.object({
|
11
|
+
saturation: zod_default.number().optional()
|
12
|
+
});
|
13
|
+
const result = schema.safeParse(obj);
|
14
|
+
if (!result.success) return Outcome.makeFailure(result.error.message);
|
15
|
+
return Outcome.makeSuccess(result.data);
|
16
|
+
}
|
17
|
+
async function saturate(sharpInstance, params) {
|
18
|
+
return sharpInstance.modulate({ saturation: params.saturation });
|
19
|
+
}
|
20
|
+
|
21
|
+
export {
|
22
|
+
isSaturateOperationParams,
|
23
|
+
saturate
|
24
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import {
|
2
|
+
zod_default
|
3
|
+
} from "./chunk-OT4SVHDX.js";
|
4
|
+
import {
|
5
|
+
Outcome
|
6
|
+
} from "./chunk-JMU5PDBD.js";
|
7
|
+
|
8
|
+
// src/node/images/transform/operations/brighten/index.ts
|
9
|
+
function isBrightenOperationParams(obj) {
|
10
|
+
const schema = zod_default.object({ factor: zod_default.number() });
|
11
|
+
const result = schema.safeParse(obj);
|
12
|
+
if (!result.success) return Outcome.makeFailure(result.error.message);
|
13
|
+
return Outcome.makeSuccess(result.data);
|
14
|
+
}
|
15
|
+
async function brighten(sharpInstance, params) {
|
16
|
+
return sharpInstance.modulate({ brightness: params.factor });
|
17
|
+
}
|
18
|
+
|
19
|
+
export {
|
20
|
+
isBrightenOperationParams,
|
21
|
+
brighten
|
22
|
+
};
|