tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.34k stars 1.68k forks source link

Generating different images #342

Open RodrigoVellozo opened 4 years ago

RodrigoVellozo commented 4 years ago

Use case: description, code

I want to download a graphic that is on my page, but the images are not identical.

jsfiddle

Expected behavior

Image on html page original

Actual behavior (stack traces, console logs etc)

image after download dom-to-image

gauge code: <div class="gradientgaugechart" fxLayout="row"

    <div
        class="gauge__pointer"
        [style.transform]=" gaugeRotate$ | async"
    >
        <div class="gauge__line"></div>
    </div>
    <div class="gauge__label"> {{ formattedValue$ | async }} </div>
</div>

Library version

2.6.0

Browsers

Abdulazeezvp commented 3 years ago

facing similar issue when using function as async, not rendering correct image. expected image output