UNPKG

@progress/kendo-react-pdf

Version:

React PDF Processing enables you to export single- and multi-page content in PDF. KendoReact PDF Processing package

9 lines (8 loc) 1.07 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),c=require("./PDFMargin.js");function g(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const l=g(a),i=["bottom","left","right","top"];function u(t){const n=l.Children.toArray(t.children).find(e=>e&&e.type===c.PDFMargin);return n?s(n):t.margin}function s(t){const n={};for(let e=0;e<i.length;e++){const r=i[e],o=t.props[r];o!==void 0&&(n[r]=o)}return n}exports.getPageMargin=u;