html2canvasheight无效,javascript - html2canvas Limitations size/data/width/height - Stack Overflow

I am trying to build a canvas, specifically a family tree, that is very wide and may have many images. If I build the tree without images, the width can span out to 27,000 px and the file size hits 1.7mb. If I build the tree with images for every node the width can span out to 16,385px and the file size hits 2.7mb. I am creating a custom window size based on the canvas element to override the browsers limitations, as specified here: http://html2canvas.hertzen.com/faq . I have also set the scale to 1 (the default).

The issue is if I go over these widths some of the nodes may render blank on Chrome and Firefox, and on IE the canvas gets cut off.

The question comes down to is there some sort of limitation to the amount of data html2canvas can write? Is there a limitation to the width even after the browser limitations are overwritten?

Specifications:

html2canvas version tested with: html2canvas 1.0.0-alpha.12

Browser & version: Chrome Version 78.0.3904.70 (Official Build) (64-bit) , IE-11 Version: 11.805.17763.0, Firefox Quantum: Version 70.0.1 (64-bit)

Operating system: Windows 10

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值