@ydesign/react-editor 0.0.7 → 0.0.9
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/app.css +2 -2
- package/dist/app.d.ts +4 -4
- package/dist/app.js +1 -1
- package/dist/canvas/workspace-canvas.js +1 -1
- package/dist/canvas/workspace.js +1 -1
- package/dist/{chunk-TNBL7KOG.js → chunk-2A3HHQ7X.js} +1 -1
- package/dist/{chunk-OA7Z7HNL.js → chunk-2T3O5ZZ2.js} +1 -1
- package/dist/{chunk-QX7ZGRSR.js → chunk-5OA2JYPB.js} +1 -1
- package/dist/chunk-5X6VER6G.js +1 -0
- package/dist/{chunk-HD2T2D4D.js → chunk-62YF5KTO.js} +1 -1
- package/dist/{chunk-HQSM4X2M.js → chunk-7YLSIB43.js} +1 -1
- package/dist/{chunk-NSUBGMR5.js → chunk-A7SUGNOW.js} +1 -1
- package/dist/{chunk-4WITBL6X.js → chunk-AC6CCGZH.js} +1 -1
- package/dist/{chunk-OFA6JIQB.js → chunk-DGCF2GDA.js} +1 -1
- package/dist/{chunk-FGCLY24Q.js → chunk-HHYPIHAP.js} +1 -1
- package/dist/chunk-IV52R7D7.js +27 -0
- package/dist/{chunk-INRJE7VS.js → chunk-J6PYM4EV.js} +1 -1
- package/dist/{chunk-NQYSJ5MN.js → chunk-JPIYZYMQ.js} +1 -1
- package/dist/chunk-JUVJJS4T.js +54 -0
- package/dist/chunk-KKA7WASQ.js +16 -0
- package/dist/{chunk-4BG4CHIB.js → chunk-KVT25LDU.js} +1 -1
- package/dist/chunk-NDZKXZQ2.js +3 -0
- package/dist/chunk-O56ZNYGR.js +1 -0
- package/dist/{chunk-TWH7TO5J.js → chunk-O73AAP2K.js} +1 -1
- package/dist/{chunk-7NFXXGU2.js → chunk-OPXS6VQ6.js} +2 -2
- package/dist/{chunk-FOMWIGAQ.js → chunk-POCSL7OS.js} +1 -1
- package/dist/chunk-POWRXH5R.js +1 -0
- package/dist/{chunk-XXR5YN2B.js → chunk-PSO4W6J7.js} +1 -1
- package/dist/{chunk-IPOZDTK2.js → chunk-QWM7VMLQ.js} +1 -1
- package/dist/{chunk-2PAJLUQH.js → chunk-RSKWMPST.js} +1 -1
- package/dist/chunk-SGK2XN5D.js +1 -0
- package/dist/{chunk-KCNKLCD5.js → chunk-T3TEB73P.js} +1 -1
- package/dist/{chunk-R452ARGU.js → chunk-TS5CKDHH.js} +1 -1
- package/dist/chunk-TTHQXTIX.js +1 -0
- package/dist/{chunk-TYHXQPZQ.js → chunk-TTK5Z2Z6.js} +1 -1
- package/dist/{chunk-DCGJ6RKU.js → chunk-TZ6B7XDS.js} +1 -1
- package/dist/chunk-XA2G4P2Q.js +1 -0
- package/dist/{chunk-ARZMBVXU.js → chunk-YCFED7XQ.js} +1 -1
- package/dist/chunk-YCJBBRRT.js +1 -0
- package/dist/{chunk-YOQ663QO.js → chunk-YVBVDUVA.js} +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.js +1 -1
- package/dist/model/store.d.ts +27 -17
- package/dist/model/store.js +1 -1
- package/dist/project.d.ts +2 -0
- package/dist/project.js +1 -1
- package/dist/side-panel/background-panel.js +1 -1
- package/dist/side-panel/images-grid.js +1 -1
- package/dist/side-panel/index.js +1 -1
- package/dist/side-panel/layers-panel.js +1 -1
- package/dist/side-panel/photos-panel.js +1 -1
- package/dist/side-panel/shapes-panel.js +1 -1
- package/dist/side-panel/side-panel.js +1 -1
- package/dist/side-panel/size-panel.js +1 -1
- package/dist/side-panel/templates-panel.js +1 -1
- package/dist/side-panel/text-panel.js +1 -1
- package/dist/side-panel/upload-panel.js +1 -1
- package/dist/toolbar/default-toolbar.js +1 -1
- package/dist/toolbar/download-button.js +1 -1
- package/dist/toolbar/duplicate-button.js +1 -1
- package/dist/toolbar/figure-toolbar.js +1 -1
- package/dist/toolbar/filters-picker.js +1 -1
- package/dist/toolbar/flip-button.js +1 -1
- package/dist/toolbar/group-button.js +1 -1
- package/dist/toolbar/history-buttons.js +1 -1
- package/dist/toolbar/image-eraser-pen.js +1 -1
- package/dist/toolbar/image-remove-background.js +1 -1
- package/dist/toolbar/image-toolbar.js +1 -1
- package/dist/toolbar/lock-button.js +1 -1
- package/dist/toolbar/opacity-picker.js +1 -1
- package/dist/toolbar/position-picker.js +1 -1
- package/dist/toolbar/remove-button.js +1 -1
- package/dist/toolbar/text-ai-write.js +1 -1
- package/dist/toolbar/text-toolbar.js +1 -1
- package/dist/toolbar/toolbar.d.ts +2 -2
- package/dist/toolbar/toolbar.js +1 -1
- package/dist/topbar/create-design.js +1 -1
- package/dist/topbar/file-menu.js +1 -1
- package/dist/topbar/topbar.js +5 -5
- package/dist/utils/api.d.ts +14 -0
- package/dist/utils/api.js +1 -0
- package/dist/utils/l10n.d.ts +4 -0
- package/dist/utils/l10n.js +1 -1
- package/dist/utils/use-api.d.ts +2 -0
- package/dist/utils/use-api.js +0 -0
- package/dist/utils/use-axios.d.ts +5 -0
- package/dist/utils/use-axios.js +1 -0
- package/package.json +15 -9
- package/dist/chunk-E7TDNZPC.js +0 -16
- package/dist/chunk-ISNCNIFJ.js +0 -27
- package/dist/chunk-JHZNEX6C.js +0 -54
- package/dist/chunk-LFWKF4C4.js +0 -3
- package/dist/chunk-MJ4K2UVU.js +0 -1
- package/dist/chunk-N5KI6CPA.js +0 -1
- package/dist/chunk-OBJ5NZSC.js +0 -1
- package/dist/chunk-PBQY5UTI.js +0 -1
- package/dist/chunk-YLXPQ2GI.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as x}from"./chunk-WCHGSVUC.js";import{c as u}from"./chunk-
|
|
1
|
+
import{c as x}from"./chunk-WCHGSVUC.js";import{c as u}from"./chunk-YCFED7XQ.js";import a from"styled-components";import{useRef as I,useEffect as P}from"react";import{Spin as D}from"antd";import{observer as W}from"mobx-react-lite";import{jsx as o,jsxs as y}from"react/jsx-runtime";var j=a.div`
|
|
2
2
|
height: 100%;
|
|
3
3
|
overflow: auto;
|
|
4
4
|
`,z=a.div`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as u}from"./chunk-P5I43V7X.js";import{a as l,h as g,i as m,m as p}from"./chunk-WJT6VPDR.js";import{types as i,cast as b,flow as f,destroy as h,getSnapshot as E,onSnapshot as x}from"mobx-state-tree";import{observable as S,toJS as j}from"mobx";import{isEqual as F}from"es-toolkit/compat";var c=(e,t)=>{if(e?.objects)for(let r of e.objects){if(t(r)===!0)break;c(r,t)}},v=i.model("Font",{fontFamily:i.string,name:i.optional(i.string,""),url:i.optional(i.string,""),img:i.optional(i.string,""),styles:i.frozen()}).preProcessSnapshot(e=>Object.assign(Object.assign({},e),{fontFamily:e.fontFamily||e.name})),O=i.model("Store",{name:"yitu-design",token:"",width:1080,height:1080,scale:1,scaleToFit:1,unit:"px",dpi:72,bleed:0,bleedVisible:!1,rulesVisible:!1,openedSidePanel:"",selectedElementsIds:i.array(i.string),backgroundColor:i.optional(i.union(i.string,i.frozen()),"#fff"),fonts:i.array(v),editor:i.frozen(null),custom:i.frozen(),objects:i.array(i.frozen()),_key:"",_updateTrigger:0,_updateFontSize:0}).views(e=>({get selectedElements(){let t=e._updateTrigger;return console.log("_trigger\u90FD\u53D8\u5316\u662F\u89E6\u53D1\u805A\u7126\u5143\u7D20\u7684\u5237\u65B0 ---> ",t),e.selectedElementsIds.map(r=>e.editor?.objectsHandler.findOneById(r))}})).views(e=>({get selectedShapes(){let t=[];return c({objects:e.selectedElements},r=>{r?.type!=="group"&&t.push(r)}),t},find(t){let r,a=e.editor?.customCanvas.canvas.getObjects();if(a)return c({objects:a},o=>{if(!r&&t(o))return r=o,!0}),r},getElementById(t){return e.editor?.objectsHandler.findOneById(t)}})).actions(e=>({_setEditor(t){e.editor=t},_triggerUpdate(){e._updateTrigger=e._updateTrigger+1},_fontSizeUpdate(){e._updateFontSize=e._updateFontSize+1},_syncBackgroundColor(t){e.backgroundColor=t}})).actions(e=>({setBackgroundColor(t){e.backgroundColor=t,e.editor?.workareaHandler.setWorkareaBgColor(t)},set(t,r){e.editor?.objectsHandler.update(t,r?.id)},setUnit({unit:t,dpi:r}){e.unit=t||e.unit,e.dpi=r||e.dpi},setObjects(t){e.objects=t},selectElements(t){e.selectedElementsIds=b(t)},openSidePanel(t){e.openedSidePanel!==t&&(e.openedSidePanel=t)},deleteElements(t){t.forEach(r=>{e.editor?.objectsHandler.remove(r)})},setScale(t){e.scale=t},clone(){e.editor?.objectsHandler.clone()},addElement(t){console.log("\u6DFB\u52A0json\u6570\u636E",t),e.editor?.objectsHandler.addJson(t)},setSize({width:t,height:r}){e.width=t,e.height=r,e.editor?.workareaHandler.setSize({width:t,height:r})},setupEditorListeners(){e.editor&&(e.editor.on("object:modified",()=>{e._triggerUpdate()}),e.editor.on("textbox:modified",()=>{e._fontSizeUpdate()}),e.editor.on("history:changed",t=>{t?.backgroundColor!==void 0&&e._syncBackgroundColor(t.backgroundColor)}))}})).actions(e=>({_forEachElementUp(t,r){if(!e.editor)return;let a=e.editor.layerHandler.getEffectiveLayers(),o=t.map(n=>({id:n,index:a.findIndex(d=>d.id===n)}));o.sort((n,d)=>d.index-n.index);for(let{index:n}of o){if(n==-1)continue;let d=n<a.length-1&&a[n+1],s=t.indexOf(d?.id)>=0;n===a.length-1||s||r(n)}},_forEachElementDown(t,r){if(!e.editor)return;let a=e.editor.layerHandler.getEffectiveLayers(),o=t.map(n=>({id:n,index:a.findIndex(d=>d.id===n)}));o.sort((n,d)=>d.index-n.index);for(let{index:n}of o){if(n==-1)continue;let d=n>0&&a[n-1],s=t.indexOf(d?.id)>=0;n===0||s||r(n)}return!1}})).actions(e=>({canMoveElementsUp(t){let r=!1;return e._forEachElementUp(t,()=>{r=!0}),r},moveElementsUp(t){if(!e.editor)return;let r=e.editor.layerHandler.getEffectiveLayers();[...t].map(o=>({id:o,index:r.findIndex(n=>n.id===o)})).filter(o=>o.index!==-1).sort((o,n)=>n.index-o.index).map(o=>o.id).forEach(o=>{e.editor?.layerHandler.bringForward(o)}),e._triggerUpdate()},canMoveElementsTop(t){return this.canMoveElementsUp(t)},moveElementsTop(t){e.editor&&(t.forEach(r=>{e.editor?.layerHandler.bringToFront(r)}),e._triggerUpdate())},canMoveElementsDown(t){let r=!1;return e._forEachElementDown(t,()=>{r=!0}),r},moveElementsDown(t){if(!e.editor)return;let r=e.editor.layerHandler.getEffectiveLayers();[...t].map(o=>({id:o,index:r.findIndex(n=>n.id===o)})).filter(o=>o.index!==-1).sort((o,n)=>o.index-n.index).map(o=>o.id).forEach(o=>{e.editor?.layerHandler.sendBackwards(o)}),e._triggerUpdate()},canMoveElementsBottom(t){return this.canMoveElementsDown(t)},moveElementsBottom(t){e.editor&&(t.forEach(r=>{e.editor?.layerHandler.sendToBack(r)}),e._triggerUpdate())},setElementZIndex(){}})).actions(e=>({async toDataURL(t){return e.editor?.rendererHandler.toDataURL(t)},async toBlob(t){return e.editor?.rendererHandler.toBlob(t)},async saveAsImage(t){if(!e.editor)return;let{fileName:r,...a}=t||{multiplier:1},o=await e.editor.rendererHandler.toBlob(a);o&&u(o,r||"yitu."+a.format)},toJSON(){return e.editor?.rendererHandler.toJSON()},toObject(){return e.editor?.rendererHandler.toObject()},loadJSON:f(function*(t){if(!e.editor)return;let r=yield e.editor.sceneHandler.importFromJSON(t);r&&(e.width=r.width,e.height=r.height,e.backgroundColor=r.fill)}),clear(){}})).actions(e=>({removeFont(t){e.fonts.filter(r=>r.fontFamily===t).forEach(r=>{h(r)})},addFont(t){this.removeFont(t.fontFamily),e.fonts.push(t),this.loadFont(t.fontFamily)},async loadFont(t){let r=e.fonts.find(n=>n.fontFamily===t)||l.find(n=>n.fontFamily===t),o=[{fontStyle:"normal",fontWeight:"normal"},{fontStyle:"normal",fontWeight:"bold"}];return r?(r.styles&&(o=r.styles.map(n=>({fontStyle:n.fontStyle||"normal",fontWeight:n.fontWeight||"normal"}))),m(r)):p(t),Promise.all(o.map(n=>g(t,n.fontStyle,n.fontWeight)))}})).actions(e=>({on(t,r){if(t==="change"){let a=E(e.objects);return x(e.objects,o=>{let n=o;F(a,n)||(a=n,r(n))})}}})),y=S({value:""}),C=()=>j(y);function _({key:e,token:t}){return y={value:t??""},O.create({_key:e,token:t??""})}var T=_;export{c as a,v as b,O as c,C as d,_ as e,T as f};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
1
|
+
import{a as s}from"./chunk-O56ZNYGR.js";import{a as w}from"./chunk-POCSL7OS.js";import{c as x}from"./chunk-YCFED7XQ.js";import{observable as f}from"mobx";import{observer as l}from"mobx-react-lite";import M from"styled-components";import{Input as n}from"antd";import{jsx as o,jsxs as r}from"react/jsx-runtime";var{Search:e}=n,m=["https://images.unsplash.com/photo-1579546929518-9e396f3cc809?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxfHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1635776062360-af423602aff3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwyfHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1604079628040-94301bb21b91?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwzfHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1604076913837-52ab5629fba9?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHw0fHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1579547621706-1a9c79d5c9f1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHw1fHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1635776062127-d379bfcba9f8?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHw2fHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1508614999368-9260051292e5?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHw3fHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1620641788421-7a1c342ea42e?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHw4fHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1579546928937-641f7ac9bced?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHw5fHxncmFkaWVudHxlbnwwfHx8fDE3NjAwMzAwMjJ8MA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1604076850742-4c7221f3101b?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxMHx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1618397746666-63405ce5d015?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxMXx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1557683316-973673baf926?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxMnx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1554034483-04fda0d3507b?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxM3x8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1579548122080-c35fd6820ecb?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxNHx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1523821741446-edb2b68bb7a0?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxNXx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1644426358812-879f02d1d867?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxNnx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1550859492-d5da9d8e45f3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxN3x8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1579546929662-711aa81148cf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxOHx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1589810264340-0ce27bfbf751?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwxOXx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400","https://images.unsplash.com/photo-1569982175971-d92b01cf8694?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfHNlYXJjaHwyMHx8Z3JhZGllbnR8ZW58MHx8fHwxNzYwMDMwMDIyfDA&ixlib=rb-4.1.0&q=80&w=400"],p=f(["white","rgb(82, 113, 255)","rgb(255, 145, 77)","rgb(126, 217, 87)","rgb(255, 222, 89)","rgb(203, 108, 230)","rgba(0, 0, 0, 0)"]),c=M.div`
|
|
2
2
|
display: inline-block;
|
|
3
3
|
width: 30px;
|
|
4
4
|
height: 30px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as T,b,c as u}from"./chunk-5C2MNUBC.js";import{c as l}from"./chunk-
|
|
1
|
+
import{a as T,b,c as u}from"./chunk-5C2MNUBC.js";import{c as l}from"./chunk-YCFED7XQ.js";import{useState as x,useEffect as S,useRef as R}from"react";import{observer as A}from"mobx-react-lite";import{Button as z,Switch as L,Tooltip as M,InputNumber as E,Select as U}from"antd";import{Info as W,Instagram as v,Linkedin as g,Twitter as h,Video as r,Printer as a}from"lucide-react";import{jsx as i,jsxs as n}from"react/jsx-runtime";var $=[{name:"Instagram",icon:i(v,{size:16}),sizes:[["Post",1080,1080,"px",i(v,{})],["Story",1080,1920,"px",i(v,{})],["Ad",1080,1080,"px",i(v,{})]]},{name:"LinkedIn",icon:i(g,{size:16}),sizes:[["Post",1200,627,"px",i(g,{})],["Banner",1584,396,"px",i(g,{})],["Square",1080,1080,"px",i(g,{})]]},{name:"Twitter",icon:i(h,{size:16}),sizes:[["Post",1600,900,"px",i(h,{})],["Header",1500,500,"px",i(h,{})],["Square",1080,1080,"px",i(h,{})]]},{name:"Video",icon:i(r,{size:16}),sizes:[["Full HD",1920,1080,"px",i(r,{})],["4K UHD",3840,2160,"px",i(r,{})],["Vertical HD",1080,1920,"px",i(r,{})],["Square HD",1080,1080,"px",i(r,{})]]},{name:"Print",icon:i(a,{size:16}),sizes:[["Invitation",14,14,"cm",i(a,{})],["A4 Portrait",21,29.7,"cm",i(a,{})],["A4 Landscape",29.7,21,"cm",i(a,{})],["A3",29.7,42,"cm",i(a,{})],["Letter Portrait",8.5,11,"in",i(a,{})],["Letter Landscape",11,8.5,"in",i(a,{})],["Business card",3.5,2,"in",i(a,{})],["Poster",18,24,"in",i(a,{})]]}],D=t=>{let{value:d,onChange:f}=t,[o,c]=x(d),p=R(d);p.current=o;let m=()=>{f(Math.max(t.min||0,parseFloat(p.current)))};return S(()=>{c(d)},[d]),i(E,{...t,value:o,onChange:s=>{Number.isNaN(s)||c(s)},onBlur:m,onKeyDown:s=>{s.key==="Enter"&&m()}})},Z=A(({store:t})=>{let[d,f]=x(!0),[o,c]=x(t.width),[p,m]=x(t.height),s=T({px:10,unit:t.unit,dpi:t.dpi}),k=t.width,P=t.height;return S(()=>{c(b({px:k,unit:t.unit,dpi:t.dpi,precious:0}))},[k,t.unit,t.dpi]),S(()=>{m(b({px:P,unit:t.unit,dpi:t.dpi,precious:0}))},[P,t.unit,t.dpi]),n("div",{className:"no-scrollbar",style:{height:"100%",overflow:"auto",paddingRight:"3px"},children:[i("style",{children:`
|
|
2
2
|
.no-scrollbar::-webkit-scrollbar {
|
|
3
3
|
display: none;
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e}from"./chunk-
|
|
1
|
+
import{c as e}from"./chunk-YCFED7XQ.js";import{a as r}from"./chunk-75WC3GVB.js";import{LockKeyholeOpen as m,LockKeyhole as k}from"lucide-react";import{Tooltip as d,Button as a}from"antd";import{observer as f}from"mobx-react-lite";import{jsx as t}from"react/jsx-runtime";var x=f(({store:l})=>{let{disabled:i,locked:o,lock:p,unlock:c}=r({store:l}),n=o?k:m,s=e(o?"toolbar.lockedDescription":"toolbar.unlockedDescription");return t(d,{title:s,placement:"bottom",children:t(a,{type:"text",styles:{root:{padding:"0 7px"}},disabled:i,onClick:()=>{o?c():p()},children:t(n,{size:16})})})});export{x as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as a}from"./chunk-WJT6VPDR.js";import{a as e}from"./chunk-O2XFH626.js";import*as n from"mobx";import{createContext as i,useContext as l}from"react";var c=s=>{try{return localStorage.getItem(s)}catch{return null}},u=(s,t)=>{try{localStorage.setItem(s,t)}catch{}},r=class{constructor({store:t}){e(this,"saveTimeout",null);e(this,"isOne",!1);e(this,"store");e(this,"id","");e(this,"name","");e(this,"user",{});e(this,"skipSaving",!1);e(this,"cloudEnabled",!1);e(this,"status","loading");e(this,"language",c("ydesign-language")||navigator.language||"en");e(this,"designsLength",0);e(this,"urls",{editorUrl:"/design"});n.makeAutoObservable(this),this.store=t,t.on("change",()=>{if(!this.isOne){this.isOne=!0;return}this.requestSave()})}setLanguage(t){this.language=t,u("ydesign-language",t)}requestSave(){this.status="has-changes",console.log("---> ",this.status),!this.saveTimeout&&(this.saveTimeout=setTimeout(()=>{this.saveTimeout=null,this.save()},5e3))}async firstLoad(t){this.store.loadJSON(t)}async loadById(t){console.log("loadById",t)}updateUrlWithProjectId(){if(!this.id||this.id==="local"){window.history.replaceState({},"","/");return}let t=new URL(window.location.href);new URLSearchParams(t.search).set("id",this.id),window.history.replaceState({},"",`/design/${this.id}`)}async save(){this.status="saving",console.log("---> ",this.status);let t=this.store.toJSON();console.log("storeJSON",t);try{await new Promise(o=>setTimeout(o,2e3))}catch(o){console.error("save error",o)}this.status="saved",console.log("---> ",this.status)}async getGlobalFont(t){return t?.length?(a(t),t):[]}},g=i(null),m=()=>{let s=l(g);if(!s)throw new Error("useProject must be used within a ProjectProvider");return s},h=s=>new r(s),y=h;export{g as a,m as b,h as c,y as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e}from"./chunk-
|
|
1
|
+
import{c as e}from"./chunk-YCFED7XQ.js";import{Button as o}from"antd";import{observer as l}from"mobx-react-lite";import{Fragment as u,jsx as r,jsxs as s}from"react/jsx-runtime";var d=l(({store:t})=>{let n=t.selectedElements.length>1,p=t.selectedElements.length===1&&t.selectedElements[0]?.type==="group";return s(u,{children:[n&&r(o,{type:"text",onClick:()=>{t.editor?.objectsHandler.group()},children:e("toolbar.groupElements")}),p&&r(o,{type:"text",onClick:()=>{t.editor?.objectsHandler.ungroup()},children:e("toolbar.ungroupElements")})]})});export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-FOMWIGAQ.js";import{c as o}from"./chunk-ARZMBVXU.js";import{Input as a}from"antd";import{observer as p}from"mobx-react-lite";import{jsx as x,jsxs as l}from"react/jsx-runtime";var{Search:f}=a,w=[{urls:{raw:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1756142752432-a8f0c44be6f4"},links:{self:"https://api.unsplash.com/photos/man-crouching-with-mountains-in-background-gxOKFEIGjbk",html:"https://unsplash.com/photos/man-crouching-with-mountains-in-background-gxOKFEIGjbk",download:"https://unsplash.com/photos/gxOKFEIGjbk/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/gxOKFEIGjbk/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA"},width:8192,height:5464},{urls:{raw:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762930163317-01b67347b1bf"},links:{self:"https://api.unsplash.com/photos/abstract-pattern-of-ice-with-bubbles-t-tT-HdUYGg",html:"https://unsplash.com/photos/abstract-pattern-of-ice-with-bubbles-t-tT-HdUYGg",download:"https://unsplash.com/photos/t-tT-HdUYGg/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/t-tT-HdUYGg/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA"},width:6720,height:4480},{urls:{raw:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762544968153-b9b47435fefd"},links:{self:"https://api.unsplash.com/photos/modern-living-room-with-tan-leather-chairs-and-fireplace-CCQi3pV95k0",html:"https://unsplash.com/photos/modern-living-room-with-tan-leather-chairs-and-fireplace-CCQi3pV95k0",download:"https://unsplash.com/photos/CCQi3pV95k0/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/CCQi3pV95k0/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA"},width:3400,height:2267},{urls:{raw:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762926949860-32a256c3bfe1"},links:{self:"https://api.unsplash.com/photos/cowgirl-rides-horse-with-american-flag-on-beach-YWm271YMI_I",html:"https://unsplash.com/photos/cowgirl-rides-horse-with-american-flag-on-beach-YWm271YMI_I",download:"https://unsplash.com/photos/YWm271YMI_I/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/YWm271YMI_I/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:3661,height:5490},{urls:{raw:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762803733564-fecc7669a91a"},links:{self:"https://api.unsplash.com/photos/modern-bedroom-with-a-unique-brown-bed-and-chair-0pgXqbEDyuY",html:"https://unsplash.com/photos/modern-bedroom-with-a-unique-brown-bed-and-chair-0pgXqbEDyuY",download:"https://unsplash.com/photos/0pgXqbEDyuY/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/0pgXqbEDyuY/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:8320,height:12480},{urls:{raw:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1711322352942-cda9aeed0641"},links:{self:"https://api.unsplash.com/photos/a-large-building-with-two-towers-lit-up-at-night-dZi1XjHlC9w",html:"https://unsplash.com/photos/a-large-building-with-two-towers-lit-up-at-night-dZi1XjHlC9w",download:"https://unsplash.com/photos/dZi1XjHlC9w/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/dZi1XjHlC9w/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:2642,height:3301},{urls:{raw:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762877211579-928eb9e9bb70"},links:{self:"https://api.unsplash.com/photos/yellow-ginkgo-leaves-against-a-blue-sky-djPI6C0i7ag",html:"https://unsplash.com/photos/yellow-ginkgo-leaves-against-a-blue-sky-djPI6C0i7ag",download:"https://unsplash.com/photos/djPI6C0i7ag/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/djPI6C0i7ag/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:4e3,height:6e3},{urls:{raw:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1761839257287-3030c9300ece"},links:{self:"https://api.unsplash.com/photos/man-petting-a-dog-with-boxes-in-background-TXdLi87NmJQ",html:"https://unsplash.com/photos/man-petting-a-dog-with-boxes-in-background-TXdLi87NmJQ",download:"https://unsplash.com/photos/TXdLi87NmJQ/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/TXdLi87NmJQ/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:5472,height:3648},{urls:{raw:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762877211603-0e764c23cf92"},links:{self:"https://api.unsplash.com/photos/tall-tree-with-yellow-leaves-and-sunburst-V-5rjLD3LEc",html:"https://unsplash.com/photos/tall-tree-with-yellow-leaves-and-sunburst-V-5rjLD3LEc",download:"https://unsplash.com/photos/V-5rjLD3LEc/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/V-5rjLD3LEc/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:4e3,height:6e3},{urls:{raw:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762545112336-646c69e4888b"},links:{self:"https://api.unsplash.com/photos/modern-living-room-with-fireplace-and-forest-view-WZqmoZrQ1vU",html:"https://unsplash.com/photos/modern-living-room-with-fireplace-and-forest-view-WZqmoZrQ1vU",download:"https://unsplash.com/photos/WZqmoZrQ1vU/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/WZqmoZrQ1vU/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:3400,height:2267},{urls:{raw:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762862064886-72a3dcc25230"},links:{self:"https://api.unsplash.com/photos/bright-orange-moon-rising-over-silhouetted-trees-at-night-SY1yaSaTIQ8",html:"https://unsplash.com/photos/bright-orange-moon-rising-over-silhouetted-trees-at-night-SY1yaSaTIQ8",download:"https://unsplash.com/photos/SY1yaSaTIQ8/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/SY1yaSaTIQ8/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:6195,height:3485},{urls:{raw:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710994140598-a35ce9ed17be"},links:{self:"https://api.unsplash.com/photos/a-black-and-white-photo-of-a-tall-building-9w9MX3VNwGc",html:"https://unsplash.com/photos/a-black-and-white-photo-of-a-tall-building-9w9MX3VNwGc",download:"https://unsplash.com/photos/9w9MX3VNwGc/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/9w9MX3VNwGc/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:4672,height:7008},{urls:{raw:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762795116942-1faf2ae6cf84"},links:{self:"https://api.unsplash.com/photos/a-young-woman-looks-up-thoughtfully-against-dark-background-QVdYS6SGmFQ",html:"https://unsplash.com/photos/a-young-woman-looks-up-thoughtfully-against-dark-background-QVdYS6SGmFQ",download:"https://unsplash.com/photos/QVdYS6SGmFQ/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/QVdYS6SGmFQ/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw"},width:5304,height:7952},{urls:{raw:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762794320130-675e00cd989a"},links:{self:"https://api.unsplash.com/photos/abstract-pattern-of-many-small-and-large-spheres-ErvMRa30SCk",html:"https://unsplash.com/photos/abstract-pattern-of-many-small-and-large-spheres-ErvMRa30SCk",download:"https://unsplash.com/photos/ErvMRa30SCk/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/ErvMRa30SCk/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:3500,height:2500},{urls:{raw:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1761864294727-3c9f6b3e7425"},links:{self:"https://api.unsplash.com/photos/teal-pendant-light-hangs-above-modern-dining-set-rlofFP9uhi0",html:"https://unsplash.com/photos/teal-pendant-light-hangs-above-modern-dining-set-rlofFP9uhi0",download:"https://unsplash.com/photos/rlofFP9uhi0/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/rlofFP9uhi0/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:4096,height:4096},{urls:{raw:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762789291015-51c5a710c73c"},links:{self:"https://api.unsplash.com/photos/a-dense-star-cluster-in-the-night-sky-DgflnSWtono",html:"https://unsplash.com/photos/a-dense-star-cluster-in-the-night-sky-DgflnSWtono",download:"https://unsplash.com/photos/DgflnSWtono/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/DgflnSWtono/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:3e3,height:2e3},{urls:{raw:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762792049412-7bf096c0f016"},links:{self:"https://api.unsplash.com/photos/modern-office-buildings-in-a-bustling-city-square-Js1SSug0Dpg",html:"https://unsplash.com/photos/modern-office-buildings-in-a-bustling-city-square-Js1SSug0Dpg",download:"https://unsplash.com/photos/Js1SSug0Dpg/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/Js1SSug0Dpg/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw"},width:5084,height:3813},{urls:{raw:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762763954800-c77f92354aff"},links:{self:"https://api.unsplash.com/photos/hexagonal-basalt-columns-with-water-pools-IuXpGuPErns",html:"https://unsplash.com/photos/hexagonal-basalt-columns-with-water-pools-IuXpGuPErns",download:"https://unsplash.com/photos/IuXpGuPErns/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/IuXpGuPErns/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:6336,height:9520},{urls:{raw:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762710940358-e3351cc9ff34"},links:{self:"https://api.unsplash.com/photos/full-moon-rising-over-a-dark-silhouetted-mountain-ridge-4CFLle2o910",html:"https://unsplash.com/photos/full-moon-rising-over-a-dark-silhouetted-mountain-ridge-4CFLle2o910",download:"https://unsplash.com/photos/4CFLle2o910/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/4CFLle2o910/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:4e3,height:6e3},{urls:{raw:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762709781475-14fb1c385eac"},links:{self:"https://api.unsplash.com/photos/runners-embrace-after-a-race-possibly-cold-competition-eA9lsojLOog",html:"https://unsplash.com/photos/runners-embrace-after-a-race-possibly-cold-competition-eA9lsojLOog",download:"https://unsplash.com/photos/eA9lsojLOog/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/eA9lsojLOog/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:4672,height:7008}],n=p(({store:i})=>l("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x("div",{style:{padding:"0 4px",marginBottom:10},children:x(f,{placeholder:o("sidePanel.searchPlaceholder")})}),x(t,{shadowEnabled:!1,images:w,getPreview:s=>s.urls.regular,isLoading:!1,error:!1,onSelect:s=>{console.log("args ---> ",i,s)}})]}));export{n as a};
|
|
1
|
+
import{a as t}from"./chunk-POCSL7OS.js";import{c as o}from"./chunk-YCFED7XQ.js";import{Input as a}from"antd";import{observer as p}from"mobx-react-lite";import{jsx as x,jsxs as l}from"react/jsx-runtime";var{Search:f}=a,w=[{urls:{raw:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1756142752432-a8f0c44be6f4?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1756142752432-a8f0c44be6f4"},links:{self:"https://api.unsplash.com/photos/man-crouching-with-mountains-in-background-gxOKFEIGjbk",html:"https://unsplash.com/photos/man-crouching-with-mountains-in-background-gxOKFEIGjbk",download:"https://unsplash.com/photos/gxOKFEIGjbk/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/gxOKFEIGjbk/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxfHx8fHx8fHwxNzYyOTUxNDE1fA"},width:8192,height:5464},{urls:{raw:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762930163317-01b67347b1bf?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762930163317-01b67347b1bf"},links:{self:"https://api.unsplash.com/photos/abstract-pattern-of-ice-with-bubbles-t-tT-HdUYGg",html:"https://unsplash.com/photos/abstract-pattern-of-ice-with-bubbles-t-tT-HdUYGg",download:"https://unsplash.com/photos/t-tT-HdUYGg/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/t-tT-HdUYGg/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyfHx8fHx8fHwxNzYyOTUxNDE1fA"},width:6720,height:4480},{urls:{raw:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762544968153-b9b47435fefd?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762544968153-b9b47435fefd"},links:{self:"https://api.unsplash.com/photos/modern-living-room-with-tan-leather-chairs-and-fireplace-CCQi3pV95k0",html:"https://unsplash.com/photos/modern-living-room-with-tan-leather-chairs-and-fireplace-CCQi3pV95k0",download:"https://unsplash.com/photos/CCQi3pV95k0/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/CCQi3pV95k0/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwzfHx8fHx8fHwxNzYyOTUxNDE1fA"},width:3400,height:2267},{urls:{raw:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762926949860-32a256c3bfe1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762926949860-32a256c3bfe1"},links:{self:"https://api.unsplash.com/photos/cowgirl-rides-horse-with-american-flag-on-beach-YWm271YMI_I",html:"https://unsplash.com/photos/cowgirl-rides-horse-with-american-flag-on-beach-YWm271YMI_I",download:"https://unsplash.com/photos/YWm271YMI_I/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/YWm271YMI_I/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw0fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:3661,height:5490},{urls:{raw:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762803733564-fecc7669a91a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762803733564-fecc7669a91a"},links:{self:"https://api.unsplash.com/photos/modern-bedroom-with-a-unique-brown-bed-and-chair-0pgXqbEDyuY",html:"https://unsplash.com/photos/modern-bedroom-with-a-unique-brown-bed-and-chair-0pgXqbEDyuY",download:"https://unsplash.com/photos/0pgXqbEDyuY/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/0pgXqbEDyuY/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw1fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:8320,height:12480},{urls:{raw:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1711322352942-cda9aeed0641?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1711322352942-cda9aeed0641"},links:{self:"https://api.unsplash.com/photos/a-large-building-with-two-towers-lit-up-at-night-dZi1XjHlC9w",html:"https://unsplash.com/photos/a-large-building-with-two-towers-lit-up-at-night-dZi1XjHlC9w",download:"https://unsplash.com/photos/dZi1XjHlC9w/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/dZi1XjHlC9w/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw2fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:2642,height:3301},{urls:{raw:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762877211579-928eb9e9bb70?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762877211579-928eb9e9bb70"},links:{self:"https://api.unsplash.com/photos/yellow-ginkgo-leaves-against-a-blue-sky-djPI6C0i7ag",html:"https://unsplash.com/photos/yellow-ginkgo-leaves-against-a-blue-sky-djPI6C0i7ag",download:"https://unsplash.com/photos/djPI6C0i7ag/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/djPI6C0i7ag/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw3fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:4e3,height:6e3},{urls:{raw:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1761839257287-3030c9300ece?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1761839257287-3030c9300ece"},links:{self:"https://api.unsplash.com/photos/man-petting-a-dog-with-boxes-in-background-TXdLi87NmJQ",html:"https://unsplash.com/photos/man-petting-a-dog-with-boxes-in-background-TXdLi87NmJQ",download:"https://unsplash.com/photos/TXdLi87NmJQ/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/TXdLi87NmJQ/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHw4fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:5472,height:3648},{urls:{raw:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762877211603-0e764c23cf92?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762877211603-0e764c23cf92"},links:{self:"https://api.unsplash.com/photos/tall-tree-with-yellow-leaves-and-sunburst-V-5rjLD3LEc",html:"https://unsplash.com/photos/tall-tree-with-yellow-leaves-and-sunburst-V-5rjLD3LEc",download:"https://unsplash.com/photos/V-5rjLD3LEc/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA",download_location:"https://api.unsplash.com/photos/V-5rjLD3LEc/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHw5fHx8fHx8fHwxNzYyOTUxNDE1fA"},width:4e3,height:6e3},{urls:{raw:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762545112336-646c69e4888b?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762545112336-646c69e4888b"},links:{self:"https://api.unsplash.com/photos/modern-living-room-with-fireplace-and-forest-view-WZqmoZrQ1vU",html:"https://unsplash.com/photos/modern-living-room-with-fireplace-and-forest-view-WZqmoZrQ1vU",download:"https://unsplash.com/photos/WZqmoZrQ1vU/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/WZqmoZrQ1vU/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMHx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:3400,height:2267},{urls:{raw:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762862064886-72a3dcc25230?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762862064886-72a3dcc25230"},links:{self:"https://api.unsplash.com/photos/bright-orange-moon-rising-over-silhouetted-trees-at-night-SY1yaSaTIQ8",html:"https://unsplash.com/photos/bright-orange-moon-rising-over-silhouetted-trees-at-night-SY1yaSaTIQ8",download:"https://unsplash.com/photos/SY1yaSaTIQ8/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/SY1yaSaTIQ8/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMXx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:6195,height:3485},{urls:{raw:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1710994140598-a35ce9ed17be?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710994140598-a35ce9ed17be"},links:{self:"https://api.unsplash.com/photos/a-black-and-white-photo-of-a-tall-building-9w9MX3VNwGc",html:"https://unsplash.com/photos/a-black-and-white-photo-of-a-tall-building-9w9MX3VNwGc",download:"https://unsplash.com/photos/9w9MX3VNwGc/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/9w9MX3VNwGc/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxMnx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:4672,height:7008},{urls:{raw:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762795116942-1faf2ae6cf84?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762795116942-1faf2ae6cf84"},links:{self:"https://api.unsplash.com/photos/a-young-woman-looks-up-thoughtfully-against-dark-background-QVdYS6SGmFQ",html:"https://unsplash.com/photos/a-young-woman-looks-up-thoughtfully-against-dark-background-QVdYS6SGmFQ",download:"https://unsplash.com/photos/QVdYS6SGmFQ/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/QVdYS6SGmFQ/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxM3x8fHx8fHx8MTc2Mjk1MTQxNXw"},width:5304,height:7952},{urls:{raw:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762794320130-675e00cd989a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762794320130-675e00cd989a"},links:{self:"https://api.unsplash.com/photos/abstract-pattern-of-many-small-and-large-spheres-ErvMRa30SCk",html:"https://unsplash.com/photos/abstract-pattern-of-many-small-and-large-spheres-ErvMRa30SCk",download:"https://unsplash.com/photos/ErvMRa30SCk/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/ErvMRa30SCk/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNHx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:3500,height:2500},{urls:{raw:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1761864294727-3c9f6b3e7425?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1761864294727-3c9f6b3e7425"},links:{self:"https://api.unsplash.com/photos/teal-pendant-light-hangs-above-modern-dining-set-rlofFP9uhi0",html:"https://unsplash.com/photos/teal-pendant-light-hangs-above-modern-dining-set-rlofFP9uhi0",download:"https://unsplash.com/photos/rlofFP9uhi0/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/rlofFP9uhi0/download?ixid=M3wxMTY5OTZ8MXwxfGFsbHwxNXx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:4096,height:4096},{urls:{raw:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762789291015-51c5a710c73c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762789291015-51c5a710c73c"},links:{self:"https://api.unsplash.com/photos/a-dense-star-cluster-in-the-night-sky-DgflnSWtono",html:"https://unsplash.com/photos/a-dense-star-cluster-in-the-night-sky-DgflnSWtono",download:"https://unsplash.com/photos/DgflnSWtono/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/DgflnSWtono/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxNnx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:3e3,height:2e3},{urls:{raw:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762792049412-7bf096c0f016?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762792049412-7bf096c0f016"},links:{self:"https://api.unsplash.com/photos/modern-office-buildings-in-a-bustling-city-square-Js1SSug0Dpg",html:"https://unsplash.com/photos/modern-office-buildings-in-a-bustling-city-square-Js1SSug0Dpg",download:"https://unsplash.com/photos/Js1SSug0Dpg/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/Js1SSug0Dpg/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxN3x8fHx8fHx8MTc2Mjk1MTQxNXw"},width:5084,height:3813},{urls:{raw:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762763954800-c77f92354aff?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762763954800-c77f92354aff"},links:{self:"https://api.unsplash.com/photos/hexagonal-basalt-columns-with-water-pools-IuXpGuPErns",html:"https://unsplash.com/photos/hexagonal-basalt-columns-with-water-pools-IuXpGuPErns",download:"https://unsplash.com/photos/IuXpGuPErns/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/IuXpGuPErns/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOHx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:6336,height:9520},{urls:{raw:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762710940358-e3351cc9ff34?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762710940358-e3351cc9ff34"},links:{self:"https://api.unsplash.com/photos/full-moon-rising-over-a-dark-silhouetted-mountain-ridge-4CFLle2o910",html:"https://unsplash.com/photos/full-moon-rising-over-a-dark-silhouetted-mountain-ridge-4CFLle2o910",download:"https://unsplash.com/photos/4CFLle2o910/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/4CFLle2o910/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwxOXx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:4e3,height:6e3},{urls:{raw:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0",full:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=85",regular:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=1080",small:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=400",thumb:"https://images.unsplash.com/photo-1762709781475-14fb1c385eac?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw&ixlib=rb-4.1.0&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1762709781475-14fb1c385eac"},links:{self:"https://api.unsplash.com/photos/runners-embrace-after-a-race-possibly-cold-competition-eA9lsojLOog",html:"https://unsplash.com/photos/runners-embrace-after-a-race-possibly-cold-competition-eA9lsojLOog",download:"https://unsplash.com/photos/eA9lsojLOog/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw",download_location:"https://api.unsplash.com/photos/eA9lsojLOog/download?ixid=M3wxMTY5OTZ8MHwxfGFsbHwyMHx8fHx8fHx8MTc2Mjk1MTQxNXw"},width:4672,height:7008}],n=p(({store:i})=>l("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:[x("div",{style:{padding:"0 4px",marginBottom:10},children:x(f,{placeholder:o("sidePanel.searchPlaceholder")})}),x(t,{shadowEnabled:!1,images:w,getPreview:s=>s.urls.regular,isLoading:!1,error:!1,onSelect:s=>{console.log("args ---> ",i,s)}})]}));export{n as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o="https://api.yitupic.com",p=`${o}/api`,s=()=>o+"/api",e={fontList:()=>`${s()}/fonts`,templateList:()=>`${s()}/templates/list`,templateDetail:t=>`${s()}/templates/detail/${t}`,uploadImage:()=>`${s()}/images/upload`},i=()=>e.fontList(),n=()=>e.templateList(),r=t=>e.templateDetail(t),l=()=>e.uploadImage(),g=(t,a)=>{e[t]=a};export{o as a,p as b,s as c,e as d,i as e,n as f,r as g,l as h,g as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e}from"./chunk-
|
|
1
|
+
import{c as e}from"./chunk-YCFED7XQ.js";import{Popover as c,Button as p}from"antd";import{Rotate3d as n,FlipHorizontal as y,FlipVertical as d}from"lucide-react";import{useState as b,useEffect as m,useCallback as f}from"react";import{observer as u}from"mobx-react-lite";import{jsx as i,jsxs as x}from"react/jsx-runtime";var F=u(({element:o,store:l})=>{let[t,r]=b({flipX:!1,flipY:!1}),a=f(()=>{l.editor?.objectsHandler.update({flipX:!t.flipX}),r({...t,flipX:!t.flipX})},[l.editor,t]),s=f(()=>{l.editor?.objectsHandler.update({flipY:!t.flipY}),r({...t,flipY:!t.flipY})},[l.editor,t]);return m(()=>{o&&r({flipX:o.flipX,flipY:o.flipY})},[o]),i(c,{trigger:"click",content:x("div",{style:{width:165},children:[i(p,{type:"text",block:!0,style:{justifyContent:"start"},icon:i(y,{size:16,style:{display:"flex"}}),onClick:a,children:e("toolbar.flipHorizontally")}),i(p,{type:"text",block:!0,style:{justifyContent:"start"},icon:i(d,{size:16,style:{display:"flex"}}),onClick:s,children:e("toolbar.flipVertically")})]}),children:i(p,{type:"text",icon:i(n,{size:16,style:{display:"flex"}}),styles:{root:{padding:"0 7px"}},children:e("toolbar.flip")})})});export{F as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t,c as e,d as a,e as i,f as o,g as h,h as p,i as x,j as
|
|
1
|
+
import{b as t,c as e,d as a,e as i,f as o,g as h,h as p,i as x,j as r}from"./chunk-7NNOHYKX.js";var n=(L=>(L.ROUND_RECT="roundRect",L.ROUND_RECT_DIAGONAL="roundRectDiagonal",L.ROUND_RECT_SINGLE="roundRectSingle",L.ROUND_RECT_SAMESIDE="roundRectSameSide",L.CUT_RECT_DIAGONAL="cutRectDiagonal",L.CUT_RECT_SINGLE="cutRectSingle",L.CUT_RECT_SAMESIDE="cutRectSameSide",L.MESSAGE="message",L.ROUND_MESSAGE="roundMessage",L.L="L",L.RING_RECT="ringRect",L.PLUS="plus",L.TRIANGLE="triangle",L.PARALLELOGRAM_LEFT="parallelogramLeft",L.PARALLELOGRAM_RIGHT="parallelogramRight",L.TRAPEZOID="trapezoid",L.BULLET="bullet",L.INDICATOR="indicator",L))(n||{}),v=[{name:"\u57FA\u7840",children:[{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 200 L 0 200 Z",type:"rect"},{viewBox:[200,200],path:t({width:200,height:200}),type:"circle"},{viewBox:[200,200],path:"M 0,100 A 100,50 0 1 1 200,100 A 100,50 0 1 1 0,100 Z",type:"ellipse"},{viewBox:[200,200],path:"M 100,50 L 200,150 L 0,150 Z",type:"triangle"}]},{name:"\u77E9\u5F62",children:[{viewBox:[200,200],path:"M 50 0 L 150 0 Q 200 0 200 50 L 200 150 Q 200 200 150 200 L 50 200 Q 0 200 0 150 L 0 50 Q 0 0 50 0 Z"},{viewBox:[200,200],path:"M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 Z"},{viewBox:[200,200],path:"M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 Z"},{viewBox:[200,200],path:"M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 50 200 Q 0 200 0 150 L 0 0 Z"},{viewBox:[200,200],path:"M 0 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 Z"}]},{name:"\u5E38\u89C4\u5F62\u72B6",children:[{viewBox:[200,200],path:e({width:200,height:200})},{viewBox:[200,200],path:a({width:200,height:200})},{viewBox:[200,200],path:i({width:200,height:200})},{viewBox:[200,200],path:o({width:200,height:200})},{viewBox:[200,200],path:h({width:200,height:200})},{viewBox:[200,200],path:p({width:200,height:200})},{viewBox:[200,200],path:x({width:200,height:200})},{viewBox:[200,200],path:r({width:200,height:200})}]},{name:"\u5E38\u7528\u5F62\u72B6",children:[{viewBox:[200,200],path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 200 L 200 200 L 100 0 Z",pathFormula:"triangle"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 Z"},{viewBox:[200,200],path:"M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z",pathFormula:"parallelogramLeft"},{viewBox:[200,200],path:"M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z",pathFormula:"parallelogramRight"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z",pathFormula:"trapezoid"},{viewBox:[200,200],path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z",pathFormula:"bullet"},{viewBox:[200,200],path:"M 200 100 L 150 0 L 0 0 L 50 100 L 0 200 L 150 200 L 200 100 Z",pathFormula:"indicator"},{viewBox:[200,200],path:"M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z"},{viewBox:[200,200],path:"M 40 20 A 100 100 0 1 0 200 100 L 100 100 L 40 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z"},{viewBox:[200,200],path:"M 160 20 A 100 100 0 1 0 200 100 L 100 100 L 160 20 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 90 L 50 200 L 150 200 L 200 90 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 0 60 L 0 140 L 100 200 L 200 140 L 200 60 L 100 0 Z"},{viewBox:[200,200],path:"M 60 0 L 140 0 L 200 60 L 200 140 L 140 200 L 60 200 L 0 140 L 0 60 L 60 0 Z"},{viewBox:[200,200],path:"M 75 0 L 125 0 L 175 25 L 200 75 L 200 125 L 175 175 L 125 200 L 75 200 L 25 175 L 0 125 L 0 75 L 25 25 L 75 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 L 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 50 0 A 25 50 0 1 0 50 200 L 150 200 A 25 50 0 1 0 150 0 L 50 0 Z"},{viewBox:[200,200],path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 A 50 100 0 0 0 0 0 L 150 0 Z"},{viewBox:[200,200],path:"M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z"},{viewBox:[200,200],path:"M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 50 0 L 150 0 L 150 50 L 200 50 L 200 150 L 150 150 L 150 200 L 50 200 L 50 150 L 0 150 L 0 50 L 50 50 L 50 0 Z"},{viewBox:[200,200],path:"M 0 0 L 0 200 L 200 200 L 200 140 L 60 140 L 60 0 L 0 0 Z",pathFormula:"L"},{viewBox:[200,200],path:"M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z",pathFormula:"ringRect"},{viewBox:[200,200],path:"M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z"},{viewBox:[200,200],path:"M 70 0 L 70 70 L 0 70 L 0 130 L 70 130 L 70 200 L 130 200 L 130 130 L 200 130 L 200 70 L 130 70 L 130 0 L 70 0 Z",pathFormula:"plus"},{viewBox:[200,200],path:"M 40 0 L 0 40 L 60 100 L 0 160 L 40 200 L 100 140 L 160 200 L 200 160 L 140 100 L 200 40 L 160 0 L 100 60 L 40 0 Z"},{viewBox:[200,200],path:"M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 Z",pathFormula:"message"},{viewBox:[200,200],path:"M 0 40 Q 0 0 40 0 L 160 0 Q 200 0 200 40 L 200 120 Q 200 160 160 160 L 100 160 L 60 200 L 60 160 L 40 160 Q 0 160 0 120 L 0 40 Z",pathFormula:"roundMessage"},{viewBox:[200,200],path:"M 180 160 A 100 100 0 1 0 100 200 L 200 200 L 200 160 L 180 160 Z"},{viewBox:[200,200],path:"M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z"},{viewBox:[200,200],path:"M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z"},{viewBox:[200,200],path:"M 100 0 Q 0 50 0 175 Q 100 225 200 175 Q 200 50 100 0 Z"},{viewBox:[200,200],path:"M 0 100 A 50 50 0 1 1 200 100 L 100 200 L 0 100 Z"},{viewBox:[200,200],path:"M 100 0 L 60 60 L 0 100 L 60 140 L 100 200 L 140 140 L 200 100 L 140 60 L 100 0 Z"},{viewBox:[200,200],path:"M 100 0 L 80 40 L 20 20 L 40 80 L 0 100 L 40 120 L 20 180 L 80 160 L 100 200 L 120 160 L 180 180 L 160 120 L 200 100 L 160 80 L 180 20 L 120 40 L 100 0 Z"}]}],s=[{path:"M 0 0 L 20 20",style:"solid",points:["",""],data:[{x:0,y:0},{x:200,y:0}]}],Z=[{name:"\u76F4\u7EBF",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""],data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""],data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"],data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"],data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"],data:[{x:0,y:0},{x:200,y:0}]}]},{name:"\u6298\u7EBF\u3001\u66F2\u7EBF",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0,data:[{x:0,y:0},{x:0,y:100},{x:200,y:100}]},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0,data:[{x:0,y:0},{x:200,y:0}]},{path:"M 0 0 C 20 0 0 20 20 20",style:"solid",points:["","arrow"],isCubic:!0,data:[{x:0,y:0},{x:200,y:0}]}]}];export{n as a,v as b,s as c,Z as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import c,{useEffect as r}from"react";import{Editor as d}from"@ydesign/core";import{observer as l}from"mobx-react-lite";import{jsx as i,jsxs as v}from"react/jsx-runtime";var p=({store:e})=>{let o=c.useRef(null);return r(()=>{let s=o.current,{clientHeight:n,clientWidth:a}=s,t=new d({id:"canvas",config:{size:{width:a,height:n},workareaConfig:{width:e.width,height:e.height,background:"rgba(255,255,255,1)"}},container:s,state:{editor:e.editor,activeObject:e.selectedElements,objects:e.objects,zoomRatio:e.scale,setEditor:e._setEditor,setActiveObject:e.selectElements,setObjects:e.setObjects,setZoomRatio:e.setScale}});return e._setEditor(t),e.setupEditorListeners(),window._c=t,()=>{t.destroy()}},[]),v("div",{id:"canvas_container",ref:o,style:{flex:1,position:"relative",overflow:"hidden"},className:"bg-[#ecf0f1] dark:bg-[#92969d]",children:[i("div",{className:"inside-shadow w-full h-full shadow-inner",style:{position:"absolute",zIndex:2,pointerEvents:"none"}}),i("div",{style:{position:"absolute",height:"100%",width:"100%"},children:i("canvas",{id:"canvas"})})]})},b=l(p);export{p as a,b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{observable as u,action as p,toJS as m}from"mobx";var r=u({toolbar:{undo:"Undo",redo:"Redo",duration:"Duration",opacity:"Opacity",effects:"Effects",blur:"Blur",textBackground:"Background",backgroundCornerRadius:"Corner radius",backgroundOpacity:"Opacity",backgroundPadding:"Padding",backgroundColor:"Background color",brightness:"Brightness",filters:"Filters",sepia:"Sepia",grayscale:"Grayscale",contrast:"Contrast",saturation:"Saturation",vibrance:"Vibrance",hueRotation:"Hue Rotation",noise:"Noise",pixelate:"Pixelate",textStroke:"Text Stroke",shadow:"Shadow",border:"Border",cornerRadius:"Corner Radius",textleft:"Text align left",textcenter:"Text align center",textright:"Text align right",textjustify:"Text align justify",textBold:"Bold",textItalic:"Italic",textUnderline:"Underline",textStrikethrough:"Strikethrough",splitByGrapheme:"Split by grapheme",position:"Position",layering:"Layering",toForward:"To Front",up:"Forward",down:"Backward",toBottom:"To back",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",alignTop:"Align top",alignMiddle:"Align middle",alignBottom:"Align bottom",flip:"Flip",flipHorizontally:"Flip horizontally",flipVertically:"Flip vertically",fitToBackground:"Fit to page",removeBackground:"Remove background",removeBackgroundTitle:"Remove background from image",cancelRemoveBackground:"Cancel",confirmRemoveBackground:"Confirm",eraserPen:"Eraser pen",eraserPenTitle:"Remove with an eraser tool",cancelEraserPen:"Cancel",confirmEraserPen:"Confirm",crop:"Crop",cropDone:"Done",cropCancel:"Cancel",clip:"Apply mask",removeClip:"Remove mask",removeMask:"Remove mask",transparency:"Transparency",lockedDescription:"Object is locked.",unlockedDescription:"Object is unlocked.",removeElements:"Remove elements",duplicateElements:"Duplicate elements",download:"Download",saveAsImage:"Save as image",saveAsPDF:"Save as PDF",lineHeight:"Line height",letterSpacing:"Letter spacing",offsetX:"Offset X",offsetY:"Offset Y",color:"Color",selectable:"Selectable",draggable:"Draggable",removable:"Removable",resizable:"Resizable",contentEditable:"Can change content",styleEditable:"Can change style",alwaysOnTop:"Always on top",showInExport:"Show in export",ungroupElements:"Ungroup",groupElements:"Group",lineSize:"Line size",fade:"Fade",move:"Move",zoom:"Zoom",rotate:"Rotate",none:"None",bounce:"Bounce",blink:"Blink",strength:"Strength",spaceEvenly:"Space evenly",horizontalDistribution:"Horizontally",verticalDistribution:"Vertically",strokeWidth:"Stroke Width",strokeSettings:"Stroke Settings",colorPicker:{solid:"Solid",linear:"Linear",angle:"Angle"},aiText:{aiWrite:"AI write",rewrite:"Rewrite",shorten:"Shorten",continue:"Continue writing",proofread:"Proofread",tones:"Tones",friendly:"Friendly",professional:"Professional",humorous:"Humorous",formal:"Formal",customPrompt:"Custom prompt",generatedResult:"Generated result",cancel:"Cancel",generate:"Generate",back:"Back",tryAgain:"Try Again",insert:"Insert",promptPlaceholder:"Describe what you want to generate"},addImage:"Add image",addText:"Add text",fileType:"File type",quality:"Quality",multiplier:"Multiplier",size:"Size"},workspace:{noPages:"There are no pages yet...",addPage:"Add page",removePage:"Remove page",duplicatePage:"Duplicate page",moveUp:"Move up",moveDown:"Move down"},scale:{reset:"Reset"},error:{removeBackground:"Ops! Something went wrong. Background can not be removed."},sidePanel:{templates:"Templates",searchTemplatesWithSameSize:"Show templates with the same size",searchPlaceholder:"Search...",otherFormats:"Other formats",noResults:"No results",error:"Loading is failed...",text:"Text",uploadFont:"Upload font",myFonts:"My fonts",photos:"Photos",videos:"Videos",animations:"Animations",effects:"Effects",elements:"Elements",shapes:"Shapes",lines:"Lines",upload:"Upload",uploadImage:"Add file",uploadTip:"Upload your assets",background:"Background",resize:"Resize",layers:"Layers",layerTypes:{image:"Image",text:"Text",svg:"SVG",line:"Line",figure:"Figure",group:"Group"},layersTip:"Elements on your active page:",noLayers:"No elements on the page...",namePlaceholder:"Type element name...",useMagicResize:"Use magic resize",clipImage:"Mask image",width:"Width",height:"Height",magicResizeDescription:"Magic resize will automatically resize and move all elements on the canvas",headerText:"Header",createHeader:"Create header",subHeaderText:"Sub Header",createSubHeader:"Create sub header",bodyText:"Body text",createBody:"Create body text",units:"Units"},topbar:{newDesign:"Create new design",language:"Language",editableTextPlaceholder:"Design name"}});function i(e){return e&&typeof e=="object"}function d(e,n){Object.keys(n).forEach(o=>{let t=e[o],a=n[o];i(a)&&i(t)?d(t,a):a!==void 0&&(e[o]=a)})}function g(e,n,o=""){Object.keys(n).forEach(t=>{let a=n[t],s=o?`${o}.${t}`:t;if(i(a)){let l=e[t];i(l)?g(l,a,s):console.warn(`Missing nested translation object at '${s}'`)}else e[t]===void 0&&console.warn(`Missing translation '${s}'`)})}var b=p((e,{validate:n=!1}={})=>{n&&g(e,r),d(r,e)}),y=()=>m(r),c={};function f(e,n){let o=n.split("."),t=e;for(let a of o){if(t==null||typeof t!="object")return;t=t[a]}return t}var k=e=>{let n=f(r,e);if(n!==void 0)return n;c[e]||(c[e]=!0,console.warn(`Missing translation '${e}'`));let o=e.split("."),t=o[o.length-1]||" ";return t.charAt(0).toUpperCase()+t.slice(1)};export{b as a,y as b,k as c};
|
|
1
|
+
import{observable as u,action as p,toJS as m}from"mobx";var r=u({toolbar:{undo:"Undo",redo:"Redo",duration:"Duration",opacity:"Opacity",effects:"Effects",blur:"Blur",textBackground:"Background",backgroundCornerRadius:"Corner radius",backgroundOpacity:"Opacity",backgroundPadding:"Padding",backgroundColor:"Background color",brightness:"Brightness",filters:"Filters",sepia:"Sepia",grayscale:"Grayscale",contrast:"Contrast",saturation:"Saturation",vibrance:"Vibrance",hueRotation:"Hue Rotation",noise:"Noise",pixelate:"Pixelate",textStroke:"Text Stroke",shadow:"Shadow",border:"Border",cornerRadius:"Corner Radius",textleft:"Text align left",textcenter:"Text align center",textright:"Text align right",textjustify:"Text align justify",textBold:"Bold",textItalic:"Italic",textUnderline:"Underline",textStrikethrough:"Strikethrough",splitByGrapheme:"Split by grapheme",position:"Position",layering:"Layering",toForward:"To Front",up:"Forward",down:"Backward",toBottom:"To back",alignLeft:"Align left",alignCenter:"Align center",alignRight:"Align right",alignTop:"Align top",alignMiddle:"Align middle",alignBottom:"Align bottom",flip:"Flip",flipHorizontally:"Flip horizontally",flipVertically:"Flip vertically",fitToBackground:"Fit to page",removeBackground:"Remove background",removeBackgroundTitle:"Remove background from image",cancelRemoveBackground:"Cancel",confirmRemoveBackground:"Confirm",eraserPen:"Eraser pen",eraserPenTitle:"Remove with an eraser tool",cancelEraserPen:"Cancel",confirmEraserPen:"Confirm",crop:"Crop",cropDone:"Done",cropCancel:"Cancel",clip:"Apply mask",removeClip:"Remove mask",removeMask:"Remove mask",transparency:"Transparency",lockedDescription:"Object is locked.",unlockedDescription:"Object is unlocked.",removeElements:"Remove elements",duplicateElements:"Duplicate elements",download:"Download",saveAsImage:"Save as image",saveAsPDF:"Save as PDF",lineHeight:"Line height",letterSpacing:"Letter spacing",offsetX:"Offset X",offsetY:"Offset Y",color:"Color",selectable:"Selectable",draggable:"Draggable",removable:"Removable",resizable:"Resizable",contentEditable:"Can change content",styleEditable:"Can change style",alwaysOnTop:"Always on top",showInExport:"Show in export",ungroupElements:"Ungroup",groupElements:"Group",lineSize:"Line size",fade:"Fade",move:"Move",zoom:"Zoom",rotate:"Rotate",none:"None",bounce:"Bounce",blink:"Blink",strength:"Strength",spaceEvenly:"Space evenly",horizontalDistribution:"Horizontally",verticalDistribution:"Vertically",strokeWidth:"Stroke Width",strokeSettings:"Stroke Settings",colorPicker:{solid:"Solid",linear:"Linear",angle:"Angle"},aiText:{aiWrite:"AI write",rewrite:"Rewrite",shorten:"Shorten",continue:"Continue writing",proofread:"Proofread",tones:"Tones",friendly:"Friendly",professional:"Professional",humorous:"Humorous",formal:"Formal",customPrompt:"Custom prompt",generatedResult:"Generated result",cancel:"Cancel",generate:"Generate",back:"Back",tryAgain:"Try Again",insert:"Insert",promptPlaceholder:"Describe what you want to generate"},addImage:"Add image",addText:"Add text",fileType:"File type",quality:"Quality",multiplier:"Multiplier",size:"Size"},workspace:{noPages:"There are no pages yet...",addPage:"Add page",removePage:"Remove page",duplicatePage:"Duplicate page",moveUp:"Move up",moveDown:"Move down"},scale:{reset:"Reset"},error:{removeBackground:"Ops! Something went wrong. Background can not be removed."},sidePanel:{templates:"Templates",searchTemplatesWithSameSize:"Show templates with the same size",searchPlaceholder:"Search...",otherFormats:"Other formats",noResults:"No results",error:"Loading is failed...",text:"Text",uploadFont:"Upload font",myFonts:"My fonts",photos:"Photos",videos:"Videos",animations:"Animations",effects:"Effects",elements:"Elements",shapes:"Shapes",lines:"Lines",upload:"Upload",uploadImage:"Add file",uploadTip:"Upload your assets",background:"Background",resize:"Resize",layers:"Layers",layerTypes:{image:"Image",text:"Text",svg:"SVG",line:"Line",figure:"Figure",group:"Group"},layersTip:"Elements on your active page:",noLayers:"No elements on the page...",namePlaceholder:"Type element name...",useMagicResize:"Use magic resize",clipImage:"Mask image",width:"Width",height:"Height",magicResizeDescription:"Magic resize will automatically resize and move all elements on the canvas",headerText:"Header",createHeader:"Create header",subHeaderText:"Sub Header",createSubHeader:"Create sub header",bodyText:"Body text",createBody:"Create body text",units:"Units"},topbar:{newDesign:"Create new design",language:"Language",editableTextPlaceholder:"Design name",statusLoading:"Save",statusSaved:"Saved",statusHasChanges:"Unsaved changes",statusSaving:"Saving..."}});function i(e){return e&&typeof e=="object"}function d(e,n){Object.keys(n).forEach(o=>{let t=e[o],a=n[o];i(a)&&i(t)?d(t,a):a!==void 0&&(e[o]=a)})}function g(e,n,o=""){Object.keys(n).forEach(t=>{let a=n[t],s=o?`${o}.${t}`:t;if(i(a)){let l=e[t];i(l)?g(l,a,s):console.warn(`Missing nested translation object at '${s}'`)}else e[t]===void 0&&console.warn(`Missing translation '${s}'`)})}var b=p((e,{validate:n=!1}={})=>{n&&g(e,r),d(r,e)}),y=()=>m(r),c={};function f(e,n){let o=n.split("."),t=e;for(let a of o){if(t==null||typeof t!="object")return;t=t[a]}return t}var k=e=>{let n=f(r,e);if(n!==void 0)return n;c[e]||(c[e]=!0,console.warn(`Missing translation '${e}'`));let o=e.split("."),t=o[o.length-1]||" ";return t.charAt(0).toUpperCase()+t.slice(1)};export{b as a,y as b,k as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as r}from"./chunk-YCFED7XQ.js";import{Blend as d}from"lucide-react";import{Popover as c,Tooltip as y,Button as u,InputNumber as h,Slider as v}from"antd";import{observer as g}from"mobx-react-lite";import{useState as f,useEffect as b}from"react";import{jsx as t,jsxs as s}from"react/jsx-runtime";var M=g(({store:o})=>{let m=o.selectedShapes.length>0,e=o.selectedShapes[0],[n,i]=f(()=>Math.round(100*(e?.opacity??1)));b(()=>{e&&i(Math.round(100*(e.opacity??1)))},[e,e?.opacity]);let a=l=>{let p=Math.max(0,Math.min(l,100));i(p),o.set({opacity:p/100})};return t(y,{title:r("toolbar.transparency"),placement:"bottom",children:t(c,{content:s("div",{children:[t("div",{style:{textAlign:"center",marginBottom:10},children:r("toolbar.transparency")}),s("div",{style:{display:"flex"},children:[t("div",{style:{width:170,paddingRight:20},children:t(v,{min:0,max:100,onChange:a,value:n})}),t(h,{min:0,max:100,value:n,onChange:a,size:"small",styles:{root:{width:65}}})]})]}),trigger:"click",children:t(u,{type:"text",disabled:!m,styles:{root:{padding:"0 7px"}},children:t(d,{size:16})})})})});export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l}from"./chunk-
|
|
1
|
+
import{c as l}from"./chunk-YCFED7XQ.js";import{Popover as ve,Button as Fe,Switch as T,Slider as k,InputNumber as v,ColorPicker as Z}from"antd";import{observer as pe}from"mobx-react-lite";import{Sparkles as ye}from"lucide-react";import{useEffect as xe,useState as i}from"react";import{Fragment as W,jsx as a,jsxs as s}from"react/jsx-runtime";var F=(h,g,f)=>Math.max(g,Math.min(f,h)),$={display:"inline-flex",justifyContent:"space-between",width:"100%",padding:6},E={display:"flex",alignItems:"center",justifyContent:"space-between",padding:6},u=({label:h,enabled:g,visible:f=!0,onEnabledChange:O,numberValue:n,min:t,max:p,onNumberValueChange:o,step:m})=>f?s(W,{children:[s("div",{style:{display:"inline-flex",justifyContent:"space-between",width:"100%",padding:"6px"},children:[a("span",{children:h}),a(T,{checked:g,onChange:d=>{O(d)}})]}),g?s("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",marginTop:10,marginBottom:10},children:[a("div",{style:{flex:1},children:a(k,{value:n,onChange:d=>{o(d)},min:t,max:p,step:m})}),a(v,{size:"small",style:{width:60,marginLeft:10},value:n,step:m,onChange:d=>{o(F(d,t,p))}})]}):null]}):null,ke=pe(({element:h,store:g,elements:f})=>{let n=(f||[h])[0],t=g.editor,p=n?.type==="textbox",o=n?.type==="image",m=t?.imageFiltersHandler.getFilter("blur"),d=t?.imageFiltersHandler.getFilter("brightness"),y=t?.imageFiltersHandler.getFilter("contrast"),x=t?.imageFiltersHandler.getFilter("saturation"),C=t?.imageFiltersHandler.getFilter("vibrance"),H=t?.imageFiltersHandler.getFilter("hueRotation"),w=t?.imageFiltersHandler.getFilter("noise"),V=t?.imageFiltersHandler.getFilter("pixelate"),[ee,_]=i(!!m),[te,M]=i(m?.blur||.5),[ae,S]=i(!!d),[ne,L]=i(d?.brightness||.05),[re,I]=i(!!y),[ie,q]=i(y?.contrast||.25),[le,N]=i(!!x),[se,D]=i(x?.saturation||1),[oe,R]=i(!!C),[be,G]=i(C?.vibrance||1),[de,j]=i(!!H),[ce,J]=i(H?.rotation||-.5),[ue,A]=i(!!w),[me,K]=i(w?.noise||30),[ge,X]=i(!!V),[he,Q]=i(V?.blocksize||30),[fe,Y]=i(n?.stroke),[P,z]=i(n?.strokeWidth),[b,U]=i({enabled:!!n?.shadow,offsetX:n?.shadow?.offsetX||15,offsetY:n?.shadow?.offsetY||15,blur:n?.shadow?.blur||25,color:n?.shadow?.color||"rgba(0,0,0,0.45)",affectStroke:!1,nonScaling:!1,type:"shadow"});xe(()=>{Y(n?.stroke),z(n?.strokeWidth),U({enabled:!!n?.shadow,offsetX:n?.shadow?.offsetX||15,offsetY:n?.shadow?.offsetY||15,blur:n?.shadow?.blur||25,color:n?.shadow?.color||"rgba(0,0,0,0.45)",affectStroke:!1,nonScaling:!1,type:"shadow"}),_(!!m),M(m?.blur||.5),S(!!d),L(d?.brightness||.05),I(!!y),q(y?.contrast||.25),N(!!x),D(x?.saturation||1),R(!!C),G(C?.vibrance||1),j(!!H),J(H?.rotation||-.5),A(!!w),K(w?.noise||30),X(!!V),Q(V?.blocksize||30)},[n]);let B=e=>{t?.objectsHandler.setTextStyle(e)},c=(e,r)=>{U({...b,[e]:r}),t&&t.objectsHandler.setShadow({...b,[e]:r})};return a(ve,{trigger:"click",content:s("div",{style:{width:"280px",maxHeight:"calc(100vh - 150px)",overflow:"auto"},children:[a(u,{label:l("toolbar.blur"),visible:o,enabled:ee,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"blur",{blur:.5}),_(!0)):(t?.imageFiltersHandler._removeFilter(r,"blur"),_(!1))},min:0,max:1,step:.1,numberValue:te,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("blur","blur",e),M(e)}}),a(u,{label:l("toolbar.brightness"),visible:o,enabled:ae,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"brightness",{brightness:.05}),S(!0)):(t?.imageFiltersHandler._removeFilter(r,"brightness"),S(!1))},min:-1,max:1,step:.01,numberValue:ne,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("brightness","brightness",e),L(e)}}),a(u,{label:l("toolbar.contrast"),visible:o,enabled:re,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"contrast",{contrast:.25}),I(!0)):(t?.imageFiltersHandler._removeFilter(r,"contrast"),I(!1))},min:-1,max:1,step:.01,numberValue:ie,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("contrast","contrast",e),q(e)}}),a(u,{label:l("toolbar.saturation"),visible:o,enabled:le,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"saturation",{saturation:1}),N(!0)):(t?.imageFiltersHandler._removeFilter(r,"saturation"),N(!1))},min:-1,max:1,step:.01,numberValue:se,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("saturation","saturation",e),D(e)}}),a(u,{label:l("toolbar.vibrance"),visible:o,enabled:oe,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"vibrance",{vibrance:1}),R(!0)):(t?.imageFiltersHandler._removeFilter(r,"vibrance"),R(!1))},min:-1,max:1,step:.01,numberValue:be,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("vibrance","vibrance",e),G(e)}}),a(u,{label:l("toolbar.hueRotation"),visible:o,enabled:de,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"hueRotation",{rotation:-.5}),j(!0)):(t?.imageFiltersHandler._removeFilter(r,"hueRotation"),j(!1))},min:-1,max:1,step:.01,numberValue:ce,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("hueRotation","rotation",e),J(e)}}),a(u,{label:l("toolbar.noise"),visible:o,enabled:ue,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"noise",{noise:30}),A(!0)):(t?.imageFiltersHandler._removeFilter(r,"noise"),A(!1))},min:0,max:1e3,step:1,numberValue:me,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("noise","noise",e),K(e)}}),a(u,{label:l("toolbar.pixelate"),visible:o,enabled:ge,onEnabledChange:e=>{let r=n;e?(t?.imageFiltersHandler._createFilter(r,"pixelate",{blocksize:10}),X(!0)):(t?.imageFiltersHandler._removeFilter(r,"pixelate"),X(!1))},min:.01,max:100,step:.01,numberValue:he,onNumberValueChange:e=>{t?.imageFiltersHandler._changeAttr("pixelate","blocksize",e),Q(e)}}),p&&s(W,{children:[s("div",{style:$,children:[a("span",{children:l("toolbar.textStroke")}),a(T,{checked:!!P,onChange:e=>{B({strokeWidth:e?10:0,stroke:e?"red":null}),z(e?10:0),Y(e?"red":null)}})]}),!!P&&s("div",{style:{display:"flex",justifyContent:"space-between",padding:"6px"},children:[a(Z,{value:fe,onChange:e=>{let r=e.toCssString();B({stroke:r}),Y(r)}}),a(v,{value:P,onChange:e=>{B({strokeWidth:F(e,1,30)}),z(F(e,1,30))},style:{width:60},min:1,max:Math.round(n.fontSize/2)})]})]}),s("div",{style:$,children:[a("span",{children:l("toolbar.shadow")}),a(T,{checked:!!b.enabled,onChange:e=>{c("enabled",e)}})]}),b.enabled&&s(W,{children:[s("div",{style:E,children:[a("div",{children:l("toolbar.blur")}),a("div",{children:a(v,{value:b.blur,style:{width:60},min:0,max:50,onChange:e=>{c("blur",e)}})})]}),a(k,{value:b.blur,onChange:e=>c("blur",e),min:0,max:50}),s("div",{style:E,children:[a("div",{children:l("toolbar.offsetX")}),a("div",{children:a(v,{value:b.offsetX,style:{width:60},min:-50,max:50,onChange:e=>{c("offsetX",F(e,-50,50))}})})]}),a(k,{value:b.offsetX,onChange:e=>c("offsetX",e),min:-50,max:50}),s("div",{style:E,children:[a("div",{children:l("toolbar.offsetY")}),a("div",{children:a(v,{value:b.offsetY,style:{width:60},min:-50,max:50,onChange:e=>{c("offsetY",F(e,-50,50))}})})]}),a(k,{value:b.offsetY,onChange:e=>c("offsetY",e),min:-50,max:50}),s("div",{style:E,children:[a("div",{children:l("toolbar.color")}),a(Z,{defaultFormat:"rgb",value:b.color,onChange:e=>{c("color",e.toRgbString())}})]})]})]}),children:a(Fe,{type:"text",icon:a(ye,{size:16,style:{display:"flex"}}),styles:{root:{padding:"0 7px"}},children:l("toolbar.effects")})})});export{ke as a};
|
package/dist/config.d.ts
CHANGED
package/dist/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as d,b as e,c as f,d as g}from"./chunk-TZ6B7XDS.js";import"./chunk-7NNOHYKX.js";import{i as c}from"./chunk-TTHQXTIX.js";import{a,b}from"./chunk-YCFED7XQ.js";import"./chunk-O2XFH626.js";export{f as LinePoolItems,g as PathLineLibs,e as PathShapeLibs,d as ShapePathFormulasKeys,b as getTranslations,c as setAPI,a as setTranslations};
|
package/dist/model/store.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ declare const Font: mobx_state_tree.IModelType<{
|
|
|
40
40
|
*/
|
|
41
41
|
declare const Store: mobx_state_tree.IModelType<{
|
|
42
42
|
name: mobx_state_tree.IType<string | undefined, string, string>;
|
|
43
|
+
token: mobx_state_tree.IType<string | undefined, string, string>;
|
|
43
44
|
width: mobx_state_tree.IType<number | undefined, number, number>;
|
|
44
45
|
height: mobx_state_tree.IType<number | undefined, number, number>;
|
|
45
46
|
scale: mobx_state_tree.IType<number | undefined, number, number>;
|
|
@@ -67,25 +68,24 @@ declare const Store: mobx_state_tree.IModelType<{
|
|
|
67
68
|
}>, mobx_state_tree._NotCustomized>>;
|
|
68
69
|
editor: mobx_state_tree.IType<Editor | null | undefined, Editor | null, Editor | null>;
|
|
69
70
|
custom: mobx_state_tree.IType<any, any, any>;
|
|
70
|
-
objects: mobx_state_tree.IType<any
|
|
71
|
+
objects: mobx_state_tree.IArrayType<mobx_state_tree.IType<any, any, any>>;
|
|
71
72
|
_key: mobx_state_tree.IType<string | undefined, string, string>;
|
|
72
73
|
_updateTrigger: mobx_state_tree.IType<number | undefined, number, number>;
|
|
73
|
-
_updateHistory: mobx_state_tree.IType<number | undefined, number, number>;
|
|
74
74
|
_updateFontSize: mobx_state_tree.IType<number | undefined, number, number>;
|
|
75
75
|
}, {
|
|
76
76
|
readonly selectedElements: FabricObject[];
|
|
77
77
|
} & {
|
|
78
78
|
readonly selectedShapes: FabricObject<Partial<fabric.FabricObjectProps>, fabric.SerializedObjectProps, fabric.ObjectEvents>[];
|
|
79
79
|
find(callback: (e: any) => boolean): any;
|
|
80
|
-
getElementById():
|
|
80
|
+
getElementById(id: string): any;
|
|
81
81
|
} & {
|
|
82
82
|
_setEditor(editor: Editor): void;
|
|
83
83
|
_triggerUpdate(): void;
|
|
84
|
-
_historyUpdate(): void;
|
|
85
84
|
_fontSizeUpdate(): void;
|
|
85
|
+
_syncBackgroundColor(color: any): void;
|
|
86
86
|
} & {
|
|
87
87
|
setBackgroundColor(color: string | Record<string, any>): void;
|
|
88
|
-
set(
|
|
88
|
+
set(options: any, element?: FabricObject): void;
|
|
89
89
|
setUnit({ unit, dpi }: {
|
|
90
90
|
unit: any;
|
|
91
91
|
dpi?: any;
|
|
@@ -134,13 +134,20 @@ declare const Store: mobx_state_tree.IModelType<{
|
|
|
134
134
|
* @param fontFamily - 字体名称
|
|
135
135
|
*/
|
|
136
136
|
loadFont(fontFamily: string): Promise<void[]>;
|
|
137
|
+
} & {
|
|
138
|
+
on(eventName: any, callback: any): mobx_state_tree.IDisposer | undefined;
|
|
137
139
|
}, mobx_state_tree._NotCustomized, mobx_state_tree._NotCustomized>;
|
|
138
140
|
type StoreType = Instance<typeof Store>;
|
|
139
141
|
interface StoreProps {
|
|
140
142
|
key: string;
|
|
143
|
+
token?: string;
|
|
141
144
|
}
|
|
142
|
-
declare
|
|
145
|
+
declare const getToken: () => {
|
|
146
|
+
value: string;
|
|
147
|
+
};
|
|
148
|
+
declare function createStore({ key, token }: StoreProps): mobx_state_tree.ModelInstanceTypeProps<{
|
|
143
149
|
name: mobx_state_tree.IType<string | undefined, string, string>;
|
|
150
|
+
token: mobx_state_tree.IType<string | undefined, string, string>;
|
|
144
151
|
width: mobx_state_tree.IType<number | undefined, number, number>;
|
|
145
152
|
height: mobx_state_tree.IType<number | undefined, number, number>;
|
|
146
153
|
scale: mobx_state_tree.IType<number | undefined, number, number>;
|
|
@@ -168,25 +175,24 @@ declare function createStore({ key }: StoreProps): mobx_state_tree.ModelInstance
|
|
|
168
175
|
}>, mobx_state_tree._NotCustomized>>;
|
|
169
176
|
editor: mobx_state_tree.IType<Editor | null | undefined, Editor | null, Editor | null>;
|
|
170
177
|
custom: mobx_state_tree.IType<any, any, any>;
|
|
171
|
-
objects: mobx_state_tree.IType<any
|
|
178
|
+
objects: mobx_state_tree.IArrayType<mobx_state_tree.IType<any, any, any>>;
|
|
172
179
|
_key: mobx_state_tree.IType<string | undefined, string, string>;
|
|
173
180
|
_updateTrigger: mobx_state_tree.IType<number | undefined, number, number>;
|
|
174
|
-
_updateHistory: mobx_state_tree.IType<number | undefined, number, number>;
|
|
175
181
|
_updateFontSize: mobx_state_tree.IType<number | undefined, number, number>;
|
|
176
182
|
}> & {
|
|
177
183
|
readonly selectedElements: FabricObject[];
|
|
178
184
|
} & {
|
|
179
185
|
readonly selectedShapes: FabricObject<Partial<fabric.FabricObjectProps>, fabric.SerializedObjectProps, fabric.ObjectEvents>[];
|
|
180
186
|
find(callback: (e: any) => boolean): any;
|
|
181
|
-
getElementById():
|
|
187
|
+
getElementById(id: string): any;
|
|
182
188
|
} & {
|
|
183
189
|
_setEditor(editor: Editor): void;
|
|
184
190
|
_triggerUpdate(): void;
|
|
185
|
-
_historyUpdate(): void;
|
|
186
191
|
_fontSizeUpdate(): void;
|
|
192
|
+
_syncBackgroundColor(color: any): void;
|
|
187
193
|
} & {
|
|
188
194
|
setBackgroundColor(color: string | Record<string, any>): void;
|
|
189
|
-
set(
|
|
195
|
+
set(options: any, element?: FabricObject): void;
|
|
190
196
|
setUnit({ unit, dpi }: {
|
|
191
197
|
unit: any;
|
|
192
198
|
dpi?: any;
|
|
@@ -235,8 +241,11 @@ declare function createStore({ key }: StoreProps): mobx_state_tree.ModelInstance
|
|
|
235
241
|
* @param fontFamily - 字体名称
|
|
236
242
|
*/
|
|
237
243
|
loadFont(fontFamily: string): Promise<void[]>;
|
|
244
|
+
} & {
|
|
245
|
+
on(eventName: any, callback: any): mobx_state_tree.IDisposer | undefined;
|
|
238
246
|
} & mobx_state_tree.IStateTreeNode<mobx_state_tree.IModelType<{
|
|
239
247
|
name: mobx_state_tree.IType<string | undefined, string, string>;
|
|
248
|
+
token: mobx_state_tree.IType<string | undefined, string, string>;
|
|
240
249
|
width: mobx_state_tree.IType<number | undefined, number, number>;
|
|
241
250
|
height: mobx_state_tree.IType<number | undefined, number, number>;
|
|
242
251
|
scale: mobx_state_tree.IType<number | undefined, number, number>;
|
|
@@ -264,25 +273,24 @@ declare function createStore({ key }: StoreProps): mobx_state_tree.ModelInstance
|
|
|
264
273
|
}>, mobx_state_tree._NotCustomized>>;
|
|
265
274
|
editor: mobx_state_tree.IType<Editor | null | undefined, Editor | null, Editor | null>;
|
|
266
275
|
custom: mobx_state_tree.IType<any, any, any>;
|
|
267
|
-
objects: mobx_state_tree.IType<any
|
|
276
|
+
objects: mobx_state_tree.IArrayType<mobx_state_tree.IType<any, any, any>>;
|
|
268
277
|
_key: mobx_state_tree.IType<string | undefined, string, string>;
|
|
269
278
|
_updateTrigger: mobx_state_tree.IType<number | undefined, number, number>;
|
|
270
|
-
_updateHistory: mobx_state_tree.IType<number | undefined, number, number>;
|
|
271
279
|
_updateFontSize: mobx_state_tree.IType<number | undefined, number, number>;
|
|
272
280
|
}, {
|
|
273
281
|
readonly selectedElements: FabricObject[];
|
|
274
282
|
} & {
|
|
275
283
|
readonly selectedShapes: FabricObject<Partial<fabric.FabricObjectProps>, fabric.SerializedObjectProps, fabric.ObjectEvents>[];
|
|
276
284
|
find(callback: (e: any) => boolean): any;
|
|
277
|
-
getElementById():
|
|
285
|
+
getElementById(id: string): any;
|
|
278
286
|
} & {
|
|
279
287
|
_setEditor(editor: Editor): void;
|
|
280
288
|
_triggerUpdate(): void;
|
|
281
|
-
_historyUpdate(): void;
|
|
282
289
|
_fontSizeUpdate(): void;
|
|
290
|
+
_syncBackgroundColor(color: any): void;
|
|
283
291
|
} & {
|
|
284
292
|
setBackgroundColor(color: string | Record<string, any>): void;
|
|
285
|
-
set(
|
|
293
|
+
set(options: any, element?: FabricObject): void;
|
|
286
294
|
setUnit({ unit, dpi }: {
|
|
287
295
|
unit: any;
|
|
288
296
|
dpi?: any;
|
|
@@ -331,6 +339,8 @@ declare function createStore({ key }: StoreProps): mobx_state_tree.ModelInstance
|
|
|
331
339
|
* @param fontFamily - 字体名称
|
|
332
340
|
*/
|
|
333
341
|
loadFont(fontFamily: string): Promise<void[]>;
|
|
342
|
+
} & {
|
|
343
|
+
on(eventName: any, callback: any): mobx_state_tree.IDisposer | undefined;
|
|
334
344
|
}, mobx_state_tree._NotCustomized, mobx_state_tree._NotCustomized>>;
|
|
335
345
|
|
|
336
|
-
export { type ExportOptions, Font, Store, type StoreProps, type StoreType, createStore, createStore as default, forEveryChild };
|
|
346
|
+
export { type ExportOptions, Font, Store, type StoreProps, type StoreType, createStore, createStore as default, forEveryChild, getToken };
|
package/dist/model/store.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a
|
|
1
|
+
import{a,b,c,d,e,f}from"../chunk-POWRXH5R.js";import"../chunk-P5I43V7X.js";import"../chunk-WJT6VPDR.js";import"../chunk-O2XFH626.js";export{b as Font,c as Store,e as createStore,f as default,a as forEveryChild,d as getToken};
|