Skip to content

Commit

Permalink
HTML2Canvas 불필요 코드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
go-dong committed Apr 10, 2020
1 parent b05afbb commit 851df06
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,7 @@ const renderElement = async (element: HTMLElement, opts: Partial<Options>): Prom
const tickElements = clonedElement.querySelectorAll('.recharts-cartesian-grid-horizontal');
const extractTickElements: (HTMLElement | null)[] = [];
const standardWidth = renderOptions.windowWidth;
const setElementWidth = clonedElement.querySelector('.LagTime__Graph')?.childNodes[1];

// Lag Time - Set Legend width
if (setElementWidth) {
setElementWidth.style.width = '180px';
}
if (options.fullScreen) {
tickContainer.forEach(item => {
const itemAttr = item.getAttribute('viewBox')!.split(' ');
Expand Down

0 comments on commit 851df06

Please sign in to comment.