polotno 2.4.1 → 2.4.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/canvas/hotkeys.js +1 -1
- package/package.json +1 -1
- package/polotno-app.d.ts +4 -2
- package/polotno-app.js +2 -2
- package/polotno.bundle.js +49 -49
- package/side-panel/elements-panel.js +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
.bp5-dark & img {
|
|
6
6
|
filter: invert(1);
|
|
7
7
|
}
|
|
8
|
-
`,limit=
|
|
8
|
+
`,limit=50,NounprojectPanel=({store:e,query:t})=>{const{data:r,isLoading:a,loadMore:i,setQuery:o}=(0,use_api_1.useInfiniteAPI)({defaultQuery:t,getAPI:({page:e,query:t})=>`${api_1.API}/get-nounproject?query=${t}&page=${e}&limit=50&KEY=${(0,validate_key_1.getKey)()}`,getSize:e=>e.pagesNumber});return react_1.default.useEffect((()=>{o(t)}),[t]),react_1.default.createElement(NounContainer,null,react_1.default.createElement(images_grid_1.ImagesGrid,{shadowEnabled:!1,images:null==r?void 0:r.map((e=>e.icons)).flat(),getPreview:e=>e.preview_url_84,isLoading:a,onSelect:async(t,r,a)=>{if(a&&"image"===a.type&&a.contentEditable){const e=await iconToSrc(t.id);return void a.set({clipSrc:e})}e.history.transaction((async()=>{var a;const i=((null==r?void 0:r.x)||e.width/2)-100,o=((null==r?void 0:r.y)||e.height/2)-100,s=null===(a=e.activePage)||void 0===a?void 0:a.addElement({type:"svg",width:200,height:200,x:i,y:o}),n=await iconToSrc(t.id);(0,mobx_state_tree_1.isAlive)(s)&&await s.set({src:n})}))},rowsNumber:4,loadMore:i}))};exports.NounprojectPanel=NounprojectPanel;const LINES=[{preview:svg_1.svgToURL`
|
|
9
9
|
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="16">
|
|
10
10
|
<path stroke="currentColor" strokeWidth="4" d="M 1 8 L 30 8"></path>
|
|
11
11
|
</svg>
|