(pos)
| 2607 | } |
| 2608 | //calculate placeholder width to embed in pdf |
| 2609 | export const placeholderWidth = (pos) => { |
| 2610 | const defaultWidth = defaultWidthHeight(pos.type).width; |
| 2611 | const posWidth = pos.Width || defaultWidth; |
| 2612 | //condition to handle old data saved from mobile view to get widthh |
| 2613 | if (pos.isMobile && pos.scale) { |
| 2614 | return pos.IsResize ? posWidth : posWidth * pos.scale; |
| 2615 | } else { |
| 2616 | return posWidth; |
| 2617 | } |
| 2618 | }; |
| 2619 | |
| 2620 | //calculate placeholder height to embed in pdf |
| 2621 | export const placeholderHeight = (pos) => { |
no test coverage detected