mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Add dom depth information to render queue
This commit is contained in:
parent
4c75d819a4
commit
7cc7f80ee2
@ -1509,6 +1509,7 @@ _html2canvas.Parse = function (images, options, cb) {
|
||||
newContext.isFloated = isFloated;
|
||||
newContext.opacity = opacity;
|
||||
newContext.ownStacking = (zIndex !== 'auto' || opacity < 1);
|
||||
newContext.depth = parentStack ? (parentStack.zIndex.depth + 1) : 0;
|
||||
|
||||
if (parentStack) {
|
||||
parentStack.zIndex.children.push(stack);
|
||||
@ -1517,6 +1518,7 @@ _html2canvas.Parse = function (images, options, cb) {
|
||||
|
||||
function h2czContext(zindex) {
|
||||
return {
|
||||
depth: 0,
|
||||
zindex: zindex,
|
||||
children: []
|
||||
};
|
||||
|
4
build/html2canvas.min.js
vendored
4
build/html2canvas.min.js
vendored
File diff suppressed because one or more lines are too long
@ -478,6 +478,7 @@ _html2canvas.Parse = function (images, options, cb) {
|
||||
newContext.isFloated = isFloated;
|
||||
newContext.opacity = opacity;
|
||||
newContext.ownStacking = (zIndex !== 'auto' || opacity < 1);
|
||||
newContext.depth = parentStack ? (parentStack.zIndex.depth + 1) : 0;
|
||||
|
||||
if (parentStack) {
|
||||
parentStack.zIndex.children.push(stack);
|
||||
@ -486,6 +487,7 @@ _html2canvas.Parse = function (images, options, cb) {
|
||||
|
||||
function h2czContext(zindex) {
|
||||
return {
|
||||
depth: 0,
|
||||
zindex: zindex,
|
||||
children: []
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user