MCPcopy Index your code
hub / github.com/OpenSignLabs/OpenSign / placeholderHeight

Function placeholderHeight

apps/OpenSign/src/constant/Utils.js:2621–2632  ·  view source on GitHub ↗
(pos)

Source from the content-addressed store, hash-verified

2619
2620//calculate placeholder height to embed in pdf
2621export const placeholderHeight = (pos) => {
2622 const posHeight = pos.Height;
2623 const defaultHeight = defaultWidthHeight(pos.type).height;
2624 const posUpdateHeight = posHeight || defaultHeight;
2625
2626 //condition to handle old data saved from mobile view to get height
2627 if (pos.isMobile && pos.scale) {
2628 return pos.IsResize ? posUpdateHeight : posUpdateHeight * pos.scale;
2629 } else {
2630 return posUpdateHeight;
2631 }
2632};
2633
2634//function for getting contracts_contactbook details
2635export const contactBook = async (objectId) => {

Callers 1

embedWidgetsToDocFunction · 0.85

Calls 1

defaultWidthHeightFunction · 0.85

Tested by

no test coverage detected