Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
148 views
in Technique[技术] by (71.8m points)

javascript - Drawerjs FixedBackgroundImage is not able to fit the image iside canvas

I am trying to create an editor for editing test sheets for teachers.

I am using DrawerJs to complete the task https://github.com/carstenschaefer/DrawerJs

The following is the code for setting the background image

'BackgroundImage': {
    fixedBackgroundUrl: '/images/about_banner.jpg',
    imagePosition: 'stretch',
    scaleDownLargeImage: true,
    dynamicRepositionImage: true
}

Image in Background after execution example


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...