carstenschaefer / DrawerJs

A customizable WYSIWYG HTML canvas editor.
https://www.drawerjs.com
MIT License
556 stars 113 forks source link

How we can provide GridLine in Drawer JS library! #57

Open sachinpawar13 opened 3 years ago

sachinpawar13 commented 3 years ago

How we can provide GridLine over in Drawer JS library!

I am trying to provide the GridLine (vertical & horizontal lines) feature over canvas while initializing the Drawer JS, but not found any solution.

Can someone please suggest is there have any functionality to provide the GridLines using Drawer JS ?

xwwxyd commented 3 years ago

Hi,did you find a solution yet? I'm also want to provide the GridLine

LDSmj commented 7 months ago

just download a gridline image then just add it on the fixedbackgroundUrl like this

pluginsConfig: { BackgroundImage: { scaleDownLargeImage: true, maxImageSizeKb: 1024, //1MB fixedBackgroundUrl: '../../assets/media/icons/assets/iso.png', imagePosition: 'stretch', // one of 'center', 'stretch', 'top-left', 'top-right', 'bottom-left', 'bottom-right' acceptedMIMETypes: ['image/jpeg', 'image/png', 'image/gif'] , dynamicRepositionImage: true, dynamicRepositionImageThrottle: 100 } }