Hufe921 / canvas-editor

rich text editor by canvas/svg
https://hufe.club/canvas-editor-docs
MIT License
3.47k stars 506 forks source link

希望添加背景图时能精准控制在哪一页 #729

Closed goodboy-yes closed 1 month ago

goodboy-yes commented 1 month ago

What problem does this feature solve?

希望添加背景图时能精准控制在哪一页,应用场景是添加封面,只在首页展示背景图

What does the proposed API look like?

interface IBackgroundOption { color?: string image?: string size?: BackgroundSize repeat?: BackgroundRepeat // 添加类似pageNo的传参 }

Hufe921 commented 1 month ago

增加配置

background?: IBackgroundOption // 背景配置。{applyPageNumbers?:number[]} // 适用页码从0开始