@ydesign/react-editor 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.css +1 -1
- package/dist/app.js +1 -1
- package/dist/canvas/workspace.d.ts +6 -4
- package/dist/canvas/workspace.js +1 -1
- package/dist/chunk-2AZQIJ4K.js +1 -0
- package/dist/chunk-45NWLCOP.js +15 -0
- package/dist/chunk-63A6RW6Y.js +21 -0
- package/dist/chunk-6XGFXDKJ.js +151 -0
- package/dist/chunk-EUTDQZKU.js +1 -0
- package/dist/chunk-KERQXVBL.js +1 -0
- package/dist/chunk-QALZ5CAJ.js +214 -0
- package/dist/{chunk-7YLSIB43.js → chunk-RBRSKAZL.js} +1 -1
- package/dist/chunk-YBC2DYJX.js +9 -0
- package/dist/config.d.ts +228 -3
- package/dist/config.js +1 -1
- package/dist/model/store.d.ts +5 -364
- package/dist/model/store.js +1 -1
- package/dist/project.d.ts +12 -4
- package/dist/project.js +1 -1
- package/dist/side-panel/index.d.ts +2 -5
- package/dist/side-panel/index.js +1 -1
- package/dist/side-panel/side-panel.d.ts +12 -6
- package/dist/side-panel/side-panel.js +1 -1
- package/dist/store-DfmY1m2j.d.ts +379 -0
- package/dist/toolbar/download-button.d.ts +1 -3
- package/dist/toolbar/download-button.js +1 -1
- package/dist/toolbar/toolbar.d.ts +1 -3
- package/dist/toolbar/toolbar.js +18 -1
- package/dist/toolbar/zoom-buttons.d.ts +1 -3
- package/dist/topbar/create-design.d.ts +1 -3
- package/dist/topbar/create-design.js +1 -1
- package/dist/topbar/topbar.d.ts +1 -3
- package/dist/topbar/topbar.js +5 -5
- package/package.json +2 -2
- package/dist/assets/logo.d.ts +0 -7
- package/dist/assets/logo.js +0 -1
- package/dist/canvas/context-menu/context-menu.d.ts +0 -2
- package/dist/canvas/context-menu/context-menu.js +0 -0
- package/dist/canvas/hotkeys.d.ts +0 -3
- package/dist/canvas/hotkeys.js +0 -1
- package/dist/canvas/workspace-canvas.d.ts +0 -19
- package/dist/canvas/workspace-canvas.js +0 -1
- package/dist/chunk-2A3HHQ7X.js +0 -1
- package/dist/chunk-2T3O5ZZ2.js +0 -1
- package/dist/chunk-3TO57JPN.js +0 -1
- package/dist/chunk-4LUZF4CB.js +0 -2
- package/dist/chunk-5CKXOQAT.js +0 -1
- package/dist/chunk-5OA2JYPB.js +0 -1
- package/dist/chunk-5X6VER6G.js +0 -1
- package/dist/chunk-62YF5KTO.js +0 -1
- package/dist/chunk-75WC3GVB.js +0 -1
- package/dist/chunk-7NNOHYKX.js +0 -15
- package/dist/chunk-AC6CCGZH.js +0 -1
- package/dist/chunk-BE3YOONJ.js +0 -1
- package/dist/chunk-BWST6EER.js +0 -1
- package/dist/chunk-CB23VFSC.js +0 -1
- package/dist/chunk-DGCF2GDA.js +0 -9
- package/dist/chunk-ESNVOB52.js +0 -17
- package/dist/chunk-HHYPIHAP.js +0 -45
- package/dist/chunk-HOAYYKAZ.js +0 -3
- package/dist/chunk-IUFYYEGO.js +0 -1
- package/dist/chunk-IV52R7D7.js +0 -27
- package/dist/chunk-J6PYM4EV.js +0 -1
- package/dist/chunk-JHNSYFB2.js +0 -151
- package/dist/chunk-JMIN2XMC.js +0 -1
- package/dist/chunk-JPIYZYMQ.js +0 -1
- package/dist/chunk-KVT25LDU.js +0 -1
- package/dist/chunk-MGTFIE3C.js +0 -1
- package/dist/chunk-NLABIDJ5.js +0 -1
- package/dist/chunk-O56ZNYGR.js +0 -1
- package/dist/chunk-O73AAP2K.js +0 -1
- package/dist/chunk-OQ6HU62L.js +0 -1
- package/dist/chunk-P5I43V7X.js +0 -1
- package/dist/chunk-POCSL7OS.js +0 -50
- package/dist/chunk-PSO4W6J7.js +0 -9
- package/dist/chunk-QVSJHU2S.js +0 -1
- package/dist/chunk-QWM7VMLQ.js +0 -9
- package/dist/chunk-SGK2XN5D.js +0 -1
- package/dist/chunk-T3TEB73P.js +0 -1
- package/dist/chunk-TS5CKDHH.js +0 -1
- package/dist/chunk-TTK5Z2Z6.js +0 -1
- package/dist/chunk-TZ6B7XDS.js +0 -1
- package/dist/chunk-U7TPE4R3.js +0 -54
- package/dist/chunk-UCJMXWVT.js +0 -16
- package/dist/chunk-WCHGSVUC.js +0 -8
- package/dist/chunk-WJT6VPDR.js +0 -9
- package/dist/chunk-XA2G4P2Q.js +0 -1
- package/dist/chunk-XRRO2RT7.js +0 -1
- package/dist/chunk-YCJBBRRT.js +0 -1
- package/dist/chunk-YRJUN267.js +0 -14
- package/dist/chunk-YVBVDUVA.js +0 -1
- package/dist/chunk-Z4QXUZAS.js +0 -1
- package/dist/hooks/use-duplicate-element.d.ts +0 -16
- package/dist/hooks/use-duplicate-element.js +0 -1
- package/dist/hooks/use-lock.d.ts +0 -18
- package/dist/hooks/use-lock.js +0 -1
- package/dist/hooks/use-remove-element.d.ts +0 -16
- package/dist/hooks/use-remove-element.js +0 -1
- package/dist/lib/utils.d.ts +0 -5
- package/dist/lib/utils.js +0 -1
- package/dist/side-panel/background-panel.d.ts +0 -17
- package/dist/side-panel/background-panel.js +0 -1
- package/dist/side-panel/images-grid.d.ts +0 -27
- package/dist/side-panel/images-grid.js +0 -1
- package/dist/side-panel/layers-panel.d.ts +0 -16
- package/dist/side-panel/layers-panel.js +0 -1
- package/dist/side-panel/photos-panel.d.ts +0 -16
- package/dist/side-panel/photos-panel.js +0 -1
- package/dist/side-panel/shapes-panel.d.ts +0 -16
- package/dist/side-panel/shapes-panel.js +0 -1
- package/dist/side-panel/size-panel.d.ts +0 -16
- package/dist/side-panel/size-panel.js +0 -1
- package/dist/side-panel/tab-button.d.ts +0 -12
- package/dist/side-panel/tab-button.js +0 -1
- package/dist/side-panel/templates-panel.d.ts +0 -16
- package/dist/side-panel/templates-panel.js +0 -1
- package/dist/side-panel/text-panel.d.ts +0 -16
- package/dist/side-panel/text-panel.js +0 -1
- package/dist/side-panel/upload-panel.d.ts +0 -17
- package/dist/side-panel/upload-panel.js +0 -1
- package/dist/toolbar/default-toolbar.d.ts +0 -21
- package/dist/toolbar/default-toolbar.js +0 -1
- package/dist/toolbar/duplicate-button.d.ts +0 -16
- package/dist/toolbar/duplicate-button.js +0 -1
- package/dist/toolbar/element-container.d.ts +0 -13
- package/dist/toolbar/element-container.js +0 -1
- package/dist/toolbar/figure-toolbar.d.ts +0 -33
- package/dist/toolbar/figure-toolbar.js +0 -1
- package/dist/toolbar/filters-picker.d.ts +0 -18
- package/dist/toolbar/filters-picker.js +0 -1
- package/dist/toolbar/flip-button.d.ts +0 -18
- package/dist/toolbar/flip-button.js +0 -1
- package/dist/toolbar/group-button.d.ts +0 -16
- package/dist/toolbar/group-button.js +0 -1
- package/dist/toolbar/history-buttons.d.ts +0 -16
- package/dist/toolbar/history-buttons.js +0 -1
- package/dist/toolbar/image-eraser-pen.d.ts +0 -10
- package/dist/toolbar/image-eraser-pen.js +0 -1
- package/dist/toolbar/image-remove-background.d.ts +0 -10
- package/dist/toolbar/image-remove-background.js +0 -1
- package/dist/toolbar/image-toolbar.d.ts +0 -36
- package/dist/toolbar/image-toolbar.js +0 -1
- package/dist/toolbar/lock-button.d.ts +0 -16
- package/dist/toolbar/lock-button.js +0 -1
- package/dist/toolbar/many-toolbar.d.ts +0 -5
- package/dist/toolbar/many-toolbar.js +0 -1
- package/dist/toolbar/opacity-picker.d.ts +0 -16
- package/dist/toolbar/opacity-picker.js +0 -1
- package/dist/toolbar/position-picker.d.ts +0 -16
- package/dist/toolbar/position-picker.js +0 -1
- package/dist/toolbar/remove-button.d.ts +0 -16
- package/dist/toolbar/remove-button.js +0 -1
- package/dist/toolbar/text-ai-write.d.ts +0 -7
- package/dist/toolbar/text-ai-write.js +0 -1
- package/dist/toolbar/text-toolbar.d.ts +0 -19
- package/dist/toolbar/text-toolbar.js +0 -1
- package/dist/topbar/file-menu.d.ts +0 -19
- package/dist/topbar/file-menu.js +0 -1
- package/dist/topbar/psd-parser.d.ts +0 -9
- package/dist/topbar/psd-parser.js +0 -1
- package/dist/utils/api.d.ts +0 -15
- package/dist/utils/api.js +0 -1
- package/dist/utils/blob.d.ts +0 -5
- package/dist/utils/blob.js +0 -1
- package/dist/utils/download.d.ts +0 -3
- package/dist/utils/download.js +0 -1
- package/dist/utils/figure-to-svg.d.ts +0 -36
- package/dist/utils/figure-to-svg.js +0 -1
- package/dist/utils/file.d.ts +0 -3
- package/dist/utils/file.js +0 -1
- package/dist/utils/filters.d.ts +0 -2
- package/dist/utils/filters.js +0 -0
- package/dist/utils/fonts.d.ts +0 -68
- package/dist/utils/fonts.js +0 -1
- package/dist/utils/image.d.ts +0 -19
- package/dist/utils/image.js +0 -1
- package/dist/utils/l10n.d.ts +0 -227
- package/dist/utils/l10n.js +0 -1
- package/dist/utils/loader.d.ts +0 -6
- package/dist/utils/loader.js +0 -1
- package/dist/utils/screen.d.ts +0 -6
- package/dist/utils/screen.js +0 -1
- package/dist/utils/svg.d.ts +0 -3
- package/dist/utils/svg.js +0 -1
- package/dist/utils/text.d.ts +0 -3
- package/dist/utils/text.js +0 -1
- package/dist/utils/use-api.d.ts +0 -2
- package/dist/utils/use-api.js +0 -0
- package/dist/utils/use-axios.d.ts +0 -25
- package/dist/utils/use-axios.js +0 -1
- /package/dist/{chunk-MXZ6RXT3.js → chunk-EWOU5F3O.js} +0 -0
- /package/dist/{chunk-YCFED7XQ.js → chunk-WFMCGQ5V.js} +0 -0
package/dist/chunk-YRJUN267.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{c as u}from"./chunk-WCHGSVUC.js";import{useState as m,useRef as d,useLayoutEffect as p}from"react";import b from"styled-components";import{OverflowList as v}from"react-overflow-list";import{Ellipsis as h}from"lucide-react";import{Popover as w,Button as y}from"antd";import{jsx as s}from"react/jsx-runtime";var g=b.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
height: 50px;
|
|
4
|
-
align-items: center;
|
|
5
|
-
float: left;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
max-width: 100%;
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
user-select: auto;
|
|
10
|
-
|
|
11
|
-
${u(`
|
|
12
|
-
width: auto !important;
|
|
13
|
-
`)}
|
|
14
|
-
`,W=({type:a,usedItems:l,components:i})=>{let c=[];return Object.keys(i).forEach(e=>{e.toLowerCase().indexOf(a)===0&&e.toLowerCase()!==a&&(i[e]?l.includes(e)||c.push(e):console.error(`error: Toolbar has invalid React component "${e}"`))}),l.filter(e=>!!e).concat(c)},z=({items:a,itemRender:l})=>{let[i,c]=m(null),e=d(null),f=()=>{if(e.current===null)return;let t=e.current.parentElement;if(!t)return;let r=0;Array.from(t?.children||[]).forEach(o=>{o!==e.current&&(r+=o.offsetWidth)});let n=Math.max(20,t.offsetWidth-r-10);c(o=>o!==n?n:o)};return p(()=>{f();let t=e.current?.parentElement,r=t?.parentElement;if(window.ResizeObserver){let n=new ResizeObserver(f);t&&n.observe(t),r&&n.observe(r);let o=new MutationObserver(f);return t&&o.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),()=>{n.disconnect(),o.disconnect()}}else{let n=setInterval(f,100);return()=>clearInterval(n)}},[]),s(g,{ref:e,style:{width:i??"auto"},className:"bp5-navbar-group bp5-align-left overflow-hidden flex-shrink-0",children:i!==null&&s(v,{className:"gap-2 items-center w-full",collapseFrom:"end",items:a,minVisibleItems:0,itemRenderer:l,overflowRenderer:t=>s(w,{content:s("div",{style:{display:"flex",gap:6},children:t.map(r=>l(r))}),trigger:"click",placement:"bottom",children:s(y,{type:"text",size:"small",onMouseDownCapture:r=>{r.preventDefault()},children:s(h,{})})})},i)})};export{W as a,z as b};
|
package/dist/chunk-YVBVDUVA.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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/chunk-Z4QXUZAS.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./chunk-75WC3GVB.js";import{c as e}from"./chunk-YCFED7XQ.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};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { StoreType } from '../model/store.js';
|
|
2
|
-
import 'fabric';
|
|
3
|
-
import 'mobx-state-tree/dist/internal';
|
|
4
|
-
import 'mobx-state-tree';
|
|
5
|
-
import '@ydesign/core';
|
|
6
|
-
import '../utils/fonts.js';
|
|
7
|
-
import 'mobx';
|
|
8
|
-
|
|
9
|
-
declare const useDuplicateElement: ({ store }: {
|
|
10
|
-
store: StoreType;
|
|
11
|
-
}) => {
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
duplicate: () => void;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { useDuplicateElement };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-JMIN2XMC.js";import"../chunk-O2XFH626.js";export{a as useDuplicateElement};
|
package/dist/hooks/use-lock.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { StoreType } from '../model/store.js';
|
|
2
|
-
import 'fabric';
|
|
3
|
-
import 'mobx-state-tree/dist/internal';
|
|
4
|
-
import 'mobx-state-tree';
|
|
5
|
-
import '@ydesign/core';
|
|
6
|
-
import '../utils/fonts.js';
|
|
7
|
-
import 'mobx';
|
|
8
|
-
|
|
9
|
-
declare const useLock: ({ store }: {
|
|
10
|
-
store: StoreType;
|
|
11
|
-
}) => {
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
lock: () => void;
|
|
14
|
-
unlock: () => void;
|
|
15
|
-
locked: boolean | undefined;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { useLock };
|
package/dist/hooks/use-lock.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-75WC3GVB.js";import"../chunk-O2XFH626.js";export{a as useLock};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { StoreType } from '../model/store.js';
|
|
2
|
-
import 'fabric';
|
|
3
|
-
import 'mobx-state-tree/dist/internal';
|
|
4
|
-
import 'mobx-state-tree';
|
|
5
|
-
import '@ydesign/core';
|
|
6
|
-
import '../utils/fonts.js';
|
|
7
|
-
import 'mobx';
|
|
8
|
-
|
|
9
|
-
declare const useRemoveElement: ({ store }: {
|
|
10
|
-
store: StoreType;
|
|
11
|
-
}) => {
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
remove: () => void;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { useRemoveElement };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-IUFYYEGO.js";import"../chunk-O2XFH626.js";export{a as useRemoveElement};
|
package/dist/lib/utils.d.ts
DELETED
package/dist/lib/utils.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-MXZ6RXT3.js";import"../chunk-O2XFH626.js";export{a as cn};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import 'fabric';
|
|
4
|
-
import 'mobx-state-tree/dist/internal';
|
|
5
|
-
import 'mobx-state-tree';
|
|
6
|
-
import '@ydesign/core';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare const setBackgroundColorsPreset: (newColors: string[]) => void;
|
|
11
|
-
declare const BackgroundPanel: (({ store }: {
|
|
12
|
-
store: StoreType;
|
|
13
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
14
|
-
displayName: string;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export { BackgroundPanel, setBackgroundColorsPreset };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../chunk-PSO4W6J7.js";import"../chunk-O56ZNYGR.js";import"../chunk-RVXI723F.js";import"../chunk-YRJUN267.js";import"../chunk-OQ6HU62L.js";import"../chunk-POCSL7OS.js";import"../chunk-WCHGSVUC.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{b as BackgroundPanel,a as setBackgroundColorsPreset};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { FabricObject } from '@ydesign/core';
|
|
3
|
-
|
|
4
|
-
type Props<ImageType> = {
|
|
5
|
-
images: ImageType[] | undefined;
|
|
6
|
-
onSelect: (image: ImageType, pos?: {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
}, element?: FabricObject | undefined, event?: any) => void;
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
getPreview: (image: ImageType) => string;
|
|
12
|
-
loadMore?: false | undefined | null | (() => void);
|
|
13
|
-
getCredit?: (image: ImageType) => any;
|
|
14
|
-
getImageClassName?: (image: ImageType) => string;
|
|
15
|
-
rowsNumber?: number;
|
|
16
|
-
crossOrigin?: string;
|
|
17
|
-
shadowEnabled?: boolean;
|
|
18
|
-
itemHeight?: number;
|
|
19
|
-
spacing?: number;
|
|
20
|
-
error?: any;
|
|
21
|
-
hideNoResults?: boolean;
|
|
22
|
-
};
|
|
23
|
-
declare const ImagesGrid: (<ImageType>({ images, rowsNumber, isLoading, getPreview, getCredit, getImageClassName, onSelect, crossOrigin, shadowEnabled, itemHeight, error, hideNoResults, spacing, }: Props<ImageType>) => react_jsx_runtime.JSX.Element) & {
|
|
24
|
-
displayName: string;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export { ImagesGrid };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-POCSL7OS.js";import"../chunk-WCHGSVUC.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{a as ImagesGrid};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import 'fabric';
|
|
4
|
-
import 'mobx-state-tree/dist/internal';
|
|
5
|
-
import 'mobx-state-tree';
|
|
6
|
-
import '@ydesign/core';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare const LayersPanel: (({ store }: {
|
|
11
|
-
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { LayersPanel };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-5X6VER6G.js";import"../chunk-4LUZF4CB.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{a as LayersPanel};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import 'fabric';
|
|
4
|
-
import 'mobx-state-tree/dist/internal';
|
|
5
|
-
import 'mobx-state-tree';
|
|
6
|
-
import '@ydesign/core';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare const PhotosPanel: (({ store }: {
|
|
11
|
-
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { PhotosPanel };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-TS5CKDHH.js";import"../chunk-POCSL7OS.js";import"../chunk-WCHGSVUC.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{a as PhotosPanel};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import 'fabric';
|
|
4
|
-
import 'mobx-state-tree/dist/internal';
|
|
5
|
-
import 'mobx-state-tree';
|
|
6
|
-
import '@ydesign/core';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare const ShapesPanel: (({ store }: {
|
|
11
|
-
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { ShapesPanel };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-DGCF2GDA.js";import"../chunk-MXZ6RXT3.js";import"../chunk-TZ6B7XDS.js";import"../chunk-7NNOHYKX.js";import"../chunk-BE3YOONJ.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{a as ShapesPanel};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import 'fabric';
|
|
4
|
-
import 'mobx-state-tree/dist/internal';
|
|
5
|
-
import 'mobx-state-tree';
|
|
6
|
-
import '@ydesign/core';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare const SizePanel: (({ store }: {
|
|
11
|
-
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { SizePanel };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-QWM7VMLQ.js";import"../chunk-5C2MNUBC.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{a as SizePanel};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
interface SectionTabProps {
|
|
4
|
-
children: any;
|
|
5
|
-
name: string;
|
|
6
|
-
onClick: any;
|
|
7
|
-
active: boolean;
|
|
8
|
-
iconSize?: number;
|
|
9
|
-
}
|
|
10
|
-
declare const SectionTab: ({ children, name, iconSize, onClick, active }: SectionTabProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
-
|
|
12
|
-
export { SectionTab };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-ESNVOB52.js";import"../chunk-O2XFH626.js";export{a as SectionTab};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import 'fabric';
|
|
4
|
-
import 'mobx-state-tree/dist/internal';
|
|
5
|
-
import 'mobx-state-tree';
|
|
6
|
-
import '@ydesign/core';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare const TemplatesPanel: (({ store }: {
|
|
11
|
-
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { TemplatesPanel };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-HHYPIHAP.js";import"../chunk-POCSL7OS.js";import"../chunk-WCHGSVUC.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{a as TemplatesPanel};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import 'fabric';
|
|
4
|
-
import 'mobx-state-tree/dist/internal';
|
|
5
|
-
import 'mobx-state-tree';
|
|
6
|
-
import '@ydesign/core';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare const TextPanel: (({ store }: {
|
|
11
|
-
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { TextPanel };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-IV52R7D7.js";import"../chunk-POCSL7OS.js";import"../chunk-WCHGSVUC.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{a as TextPanel};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import 'fabric';
|
|
4
|
-
import 'mobx-state-tree/dist/internal';
|
|
5
|
-
import 'mobx-state-tree';
|
|
6
|
-
import '@ydesign/core';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare function setUploadFunc(func: any): void;
|
|
11
|
-
declare const UploadPanel: (({ store }: {
|
|
12
|
-
store: StoreType;
|
|
13
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
14
|
-
displayName: string;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export { UploadPanel, UploadPanel as default, setUploadFunc };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-JPIYZYMQ.js";import"../chunk-OQ6HU62L.js";import"../chunk-POCSL7OS.js";import"../chunk-WCHGSVUC.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{b as UploadPanel,c as default,a as setUploadFunc};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import 'fabric';
|
|
4
|
-
import 'mobx-state-tree/dist/internal';
|
|
5
|
-
import 'mobx-state-tree';
|
|
6
|
-
import '@ydesign/core';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare const BackgroundPicker: (({ store }: {
|
|
11
|
-
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
type PageProps = {
|
|
16
|
-
store: StoreType;
|
|
17
|
-
components?: any;
|
|
18
|
-
};
|
|
19
|
-
declare const DefaultToolbar: ({ store, components }: PageProps) => react_jsx_runtime.JSX.Element;
|
|
20
|
-
|
|
21
|
-
export { BackgroundPicker, DefaultToolbar, DefaultToolbar as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-O56ZNYGR.js";import"../chunk-RVXI723F.js";import"../chunk-YRJUN267.js";import"../chunk-OQ6HU62L.js";import"../chunk-WCHGSVUC.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{a as BackgroundPicker,b as DefaultToolbar,c as default};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import 'fabric';
|
|
4
|
-
import 'mobx-state-tree/dist/internal';
|
|
5
|
-
import 'mobx-state-tree';
|
|
6
|
-
import '@ydesign/core';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare const DuplicateButton: (({ store }: {
|
|
11
|
-
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { DuplicateButton };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-J6PYM4EV.js";import"../chunk-YCFED7XQ.js";import"../chunk-JMIN2XMC.js";import"../chunk-O2XFH626.js";export{a as DuplicateButton};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
declare const extendToolbar: ({ type, usedItems, components }: {
|
|
4
|
-
type: string;
|
|
5
|
-
usedItems: Array<string | undefined>;
|
|
6
|
-
components: any;
|
|
7
|
-
}) => (string | undefined)[];
|
|
8
|
-
declare const ElementContainer: ({ items, itemRender }: {
|
|
9
|
-
items: any;
|
|
10
|
-
itemRender: any;
|
|
11
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
12
|
-
|
|
13
|
-
export { ElementContainer, extendToolbar };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"../chunk-YRJUN267.js";import"../chunk-WCHGSVUC.js";import"../chunk-O2XFH626.js";export{b as ElementContainer,a as extendToolbar};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import { FabricObject } from '@ydesign/core';
|
|
4
|
-
import 'fabric';
|
|
5
|
-
import 'mobx-state-tree/dist/internal';
|
|
6
|
-
import 'mobx-state-tree';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
store: StoreType;
|
|
12
|
-
components?: any;
|
|
13
|
-
};
|
|
14
|
-
type ButtonProps = {
|
|
15
|
-
element?: FabricObject;
|
|
16
|
-
store: StoreType;
|
|
17
|
-
elements: FabricObject[];
|
|
18
|
-
};
|
|
19
|
-
declare const getFillKey: (fill: any) => string;
|
|
20
|
-
declare const FigureFill: (({ store, elements }: ButtonProps) => react_jsx_runtime.JSX.Element) & {
|
|
21
|
-
displayName: string;
|
|
22
|
-
};
|
|
23
|
-
declare const FigureSettings: (({ store, element }: ButtonProps) => react_jsx_runtime.JSX.Element) & {
|
|
24
|
-
displayName: string;
|
|
25
|
-
};
|
|
26
|
-
declare const FigureStroke: (({ store, elements }: ButtonProps) => react_jsx_runtime.JSX.Element | null) & {
|
|
27
|
-
displayName: string;
|
|
28
|
-
};
|
|
29
|
-
declare const FigureToolbar: (({ store, components }: Props) => react_jsx_runtime.JSX.Element) & {
|
|
30
|
-
displayName: string;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export { FigureFill, FigureSettings, FigureStroke, FigureToolbar, getFillKey };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-62YF5KTO.js";import"../chunk-YVBVDUVA.js";import"../chunk-RVXI723F.js";import"../chunk-YRJUN267.js";import"../chunk-WCHGSVUC.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{b as FigureFill,c as FigureSettings,d as FigureStroke,e as FigureToolbar,a as getFillKey};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import { FabricObject } from '@ydesign/core';
|
|
4
|
-
import 'fabric';
|
|
5
|
-
import 'mobx-state-tree/dist/internal';
|
|
6
|
-
import 'mobx-state-tree';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare const FiltersPicker: (({ element, store, elements }: {
|
|
11
|
-
elements?: Array<FabricObject>;
|
|
12
|
-
element?: FabricObject;
|
|
13
|
-
store: StoreType;
|
|
14
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
15
|
-
displayName: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { FiltersPicker };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-YVBVDUVA.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{a as FiltersPicker};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { FabricObject } from '@ydesign/core';
|
|
3
|
-
import { StoreType } from '../model/store.js';
|
|
4
|
-
import 'fabric';
|
|
5
|
-
import 'mobx-state-tree/dist/internal';
|
|
6
|
-
import 'mobx-state-tree';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare const FlipButton: (({ element, store }: {
|
|
11
|
-
elements?: Array<FabricObject>;
|
|
12
|
-
element?: FabricObject;
|
|
13
|
-
store: StoreType;
|
|
14
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
15
|
-
displayName: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export { FlipButton };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-TTK5Z2Z6.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{a as FlipButton};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import 'fabric';
|
|
4
|
-
import 'mobx-state-tree/dist/internal';
|
|
5
|
-
import 'mobx-state-tree';
|
|
6
|
-
import '@ydesign/core';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare const GroupButton: (({ store }: {
|
|
11
|
-
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { GroupButton };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-T3TEB73P.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{a as GroupButton};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import 'fabric';
|
|
4
|
-
import 'mobx-state-tree/dist/internal';
|
|
5
|
-
import 'mobx-state-tree';
|
|
6
|
-
import '@ydesign/core';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare const HistoryButtons: (({ store }: {
|
|
11
|
-
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { HistoryButtons };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as a}from"../chunk-UCJMXWVT.js";import"../chunk-2A3HHQ7X.js";import"../chunk-KVT25LDU.js";import"../chunk-2T3O5ZZ2.js";import"../chunk-HOAYYKAZ.js";import"../chunk-3TO57JPN.js";import"../chunk-CB23VFSC.js";import"../chunk-O73AAP2K.js";import"../chunk-AC6CCGZH.js";import"../chunk-Z4QXUZAS.js";import"../chunk-XRRO2RT7.js";import"../chunk-YCJBBRRT.js";import"../chunk-5OA2JYPB.js";import"../chunk-7YLSIB43.js";import"../chunk-J6PYM4EV.js";import"../chunk-62YF5KTO.js";import"../chunk-YVBVDUVA.js";import"../chunk-TTK5Z2Z6.js";import"../chunk-T3TEB73P.js";import"../chunk-75WC3GVB.js";import"../chunk-IUFYYEGO.js";import"../chunk-MXZ6RXT3.js";import"../chunk-O56ZNYGR.js";import"../chunk-RVXI723F.js";import"../chunk-YRJUN267.js";import"../chunk-OQ6HU62L.js";import"../chunk-WCHGSVUC.js";import"../chunk-TZ6B7XDS.js";import"../chunk-7NNOHYKX.js";import"../chunk-BE3YOONJ.js";import"../chunk-YCFED7XQ.js";import"../chunk-WJT6VPDR.js";import"../chunk-JMIN2XMC.js";import"../chunk-O2XFH626.js";export{a as HistoryButtons};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { FabricImage } from '@ydesign/core';
|
|
3
|
-
|
|
4
|
-
declare const ImageEraserPen: (({ element }: {
|
|
5
|
-
element: FabricImage;
|
|
6
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { ImageEraserPen };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-O73AAP2K.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{a as ImageEraserPen};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { FabricImage } from '@ydesign/core';
|
|
3
|
-
|
|
4
|
-
declare const ImageRemoveBackground: (({ element }: {
|
|
5
|
-
element: FabricImage;
|
|
6
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { ImageRemoveBackground };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-AC6CCGZH.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{a as ImageRemoveBackground};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { FabricImage } from '@ydesign/core';
|
|
3
|
-
import { StoreType } from '../model/store.js';
|
|
4
|
-
import 'fabric';
|
|
5
|
-
import 'mobx-state-tree/dist/internal';
|
|
6
|
-
import 'mobx-state-tree';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
type Props = {
|
|
11
|
-
store: StoreType;
|
|
12
|
-
components?: any;
|
|
13
|
-
};
|
|
14
|
-
declare const ImageFitToBackground: (({ element, store }: {
|
|
15
|
-
element: FabricImage;
|
|
16
|
-
store: StoreType;
|
|
17
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
18
|
-
displayName: string;
|
|
19
|
-
};
|
|
20
|
-
declare const ImageCrop: (({ element, store }: {
|
|
21
|
-
element: FabricImage;
|
|
22
|
-
store: StoreType;
|
|
23
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
24
|
-
displayName: string;
|
|
25
|
-
};
|
|
26
|
-
declare const ImageClip: (({ element, store }: {
|
|
27
|
-
element: FabricImage;
|
|
28
|
-
store: StoreType;
|
|
29
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
30
|
-
displayName: string;
|
|
31
|
-
};
|
|
32
|
-
declare const ImageToolbar: (({ store, components }: Props) => react_jsx_runtime.JSX.Element) & {
|
|
33
|
-
displayName: string;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export { ImageClip, ImageCrop, ImageFitToBackground, ImageToolbar, ImageToolbar as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-HOAYYKAZ.js";import"../chunk-3TO57JPN.js";import"../chunk-CB23VFSC.js";import"../chunk-O73AAP2K.js";import"../chunk-AC6CCGZH.js";import"../chunk-YVBVDUVA.js";import"../chunk-TTK5Z2Z6.js";import"../chunk-MXZ6RXT3.js";import"../chunk-YRJUN267.js";import"../chunk-WCHGSVUC.js";import"../chunk-TZ6B7XDS.js";import"../chunk-7NNOHYKX.js";import"../chunk-BE3YOONJ.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{c as ImageClip,b as ImageCrop,a as ImageFitToBackground,d as ImageToolbar,e as default};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { StoreType } from '../model/store.js';
|
|
3
|
-
import 'fabric';
|
|
4
|
-
import 'mobx-state-tree/dist/internal';
|
|
5
|
-
import 'mobx-state-tree';
|
|
6
|
-
import '@ydesign/core';
|
|
7
|
-
import '../utils/fonts.js';
|
|
8
|
-
import 'mobx';
|
|
9
|
-
|
|
10
|
-
declare const LockButton: (({ store }: {
|
|
11
|
-
store: StoreType;
|
|
12
|
-
}) => react_jsx_runtime.JSX.Element) & {
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { LockButton };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"../chunk-Z4QXUZAS.js";import"../chunk-75WC3GVB.js";import"../chunk-YCFED7XQ.js";import"../chunk-O2XFH626.js";export{a as LockButton};
|