From 7e31b5c3f7fc065f6f1fd0a0f0addf7b097ec174 Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 13 Jun 2024 23:11:32 +0100 Subject: [PATCH] docs: gen new docs. --- docs/assets/highlight.css | 32 +- docs/assets/main.js | 7 +- docs/assets/navigation.js | 1 - docs/assets/search.js | 2 +- docs/assets/style.css | 875 +++++++++------------- docs/classes/DrawTableError.html | 211 +++++- docs/enums/ErrorCode.html | 123 +++ docs/functions/calcTableHeight.html | 159 +++- docs/functions/drawTable.html | 140 +++- docs/functions/generateColumnWidths.html | 89 ++- docs/index.html | 110 ++- docs/interfaces/BorderOptions.html | 78 +- docs/interfaces/ContentMarginOptions.html | 78 +- docs/interfaces/CustomStyledText.html | 110 ++- docs/interfaces/DrawTableOptions.html | 174 ++++- docs/interfaces/HeaderOptions.html | 110 ++- docs/interfaces/ImageBase.html | 118 ++- docs/interfaces/LinkBase.html | 126 +++- docs/interfaces/PageMarginOptions.html | 78 +- docs/interfaces/RowOptions.html | 78 +- docs/interfaces/TableDimensions.html | 94 ++- docs/interfaces/TableObject.html | 78 +- docs/interfaces/TitleOptions.html | 102 ++- docs/modules.html | 130 +++- docs/types/Alignment.html | 71 +- docs/types/CellContent.html | 71 +- docs/types/CellElement.html | 71 +- docs/types/ColumnOptions.html | 78 +- docs/types/GenColumnWidthOptions.html | 96 ++- docs/types/Image.html | 71 +- docs/types/Link.html | 71 +- tests/basicDrawTable.test.ts | 8 +- 32 files changed, 2944 insertions(+), 696 deletions(-) delete mode 100644 docs/assets/navigation.js create mode 100644 docs/enums/ErrorCode.html diff --git a/docs/assets/highlight.css b/docs/assets/highlight.css index c794a8f..c67f12d 100644 --- a/docs/assets/highlight.css +++ b/docs/assets/highlight.css @@ -1,20 +1,20 @@ :root { - --light-hl-0: #795E26; - --dark-hl-0: #DCDCAA; - --light-hl-1: #000000; - --dark-hl-1: #D4D4D4; - --light-hl-2: #A31515; - --dark-hl-2: #CE9178; - --light-hl-3: #AF00DB; - --dark-hl-3: #C586C0; - --light-hl-4: #001080; - --dark-hl-4: #9CDCFE; - --light-hl-5: #0000FF; - --dark-hl-5: #569CD6; - --light-hl-6: #008000; - --dark-hl-6: #6A9955; - --light-hl-7: #0070C1; - --dark-hl-7: #4FC1FF; + --light-hl-0: #000000; + --dark-hl-0: #D4D4D4; + --light-hl-1: #A31515; + --dark-hl-1: #CE9178; + --light-hl-2: #AF00DB; + --dark-hl-2: #C586C0; + --light-hl-3: #001080; + --dark-hl-3: #9CDCFE; + --light-hl-4: #0000FF; + --dark-hl-4: #569CD6; + --light-hl-5: #008000; + --dark-hl-5: #6A9955; + --light-hl-6: #0070C1; + --dark-hl-6: #4FC1FF; + --light-hl-7: #795E26; + --dark-hl-7: #DCDCAA; --light-hl-8: #098658; --dark-hl-8: #B5CEA8; --light-code-background: #FFFFFF; diff --git a/docs/assets/main.js b/docs/assets/main.js index 7270cff..f7c8366 100644 --- a/docs/assets/main.js +++ b/docs/assets/main.js @@ -1,8 +1,7 @@ "use strict"; -"use strict";(()=>{var Pe=Object.create;var ne=Object.defineProperty;var Ie=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Ie(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Pe(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var ae=Me((se,oe)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),v=s.str.charAt(1),f;v in s.node.edges?f=s.node.edges[v]:(f=new t.TokenSet,s.node.edges[v]=f),s.str.length==1&&(f.final=!0),i.push({node:f,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof se=="object"?oe.exports=n():e.lunr=n()}(this,function(){return t})})()});var re=[];function G(t,e){re.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureActivePageVisible(),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible())}createComponents(e){re.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var de=De(ae());async function le(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=de.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function he(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{le(e,t)}),le(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");let s=!1;i.addEventListener("mousedown",()=>s=!0),i.addEventListener("mouseup",()=>{s=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{s||(s=!1,t.classList.remove("has-focus"))}),Ae(t,i,r,e)}function Ae(t,e,n,r){n.addEventListener("input",ie(()=>{Ne(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ce(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` - ${ce(l.parent,i)}.${d}`);let v=document.createElement("li");v.classList.value=l.classes??"";let f=document.createElement("a");f.href=r.base+l.url,f.innerHTML=u+d,v.append(f),e.appendChild(v)}}function ue(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function ce(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(K(t.substring(s))),i.join("")}var Be={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>Be[e])}var C=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",pe="mousemove",B="mouseup",J={x:0,y:0},fe=!1,ee=!1,He=!1,D=!1,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(me?"is-mobile":"not-mobile");me&&"ontouchstart"in document.documentElement&&(He=!0,F="touchstart",pe="touchmove",B="touchend");document.addEventListener(F,t=>{ee=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(pe,t=>{if(ee&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(B,()=>{ee=!1});document.addEventListener("click",t=>{fe&&(t.preventDefault(),t.stopImmediatePropagation(),fe=!1)});var X=class extends C{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(B,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(B,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ve=document.head.appendChild(document.createElement("style"));ve.dataset.for="filters";var Y=class extends C{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ve.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`,this.handleValueChange()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),document.querySelectorAll(".tsd-index-section").forEach(e=>{e.style.display="block";let n=Array.from(e.querySelectorAll(".tsd-index-link")).every(r=>r.offsetParent==null);e.style.display=n?"none":"block"})}};var Z=class extends C{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ye(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ye(t.value)})}function ye(t){document.documentElement.dataset.theme=t}var Le;function be(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",xe),xe())}async function xe(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();Le=t.dataset.base+"/",t.innerHTML="";for(let s of i)we(s,t,[]);window.app.createComponents(t),window.app.ensureActivePageVisible()}function we(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-index-accordion`:"tsd-index-accordion",s.dataset.key=i.join("$");let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.innerHTML='',Ee(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)we(u,l,i)}else Ee(t,r,t.class)}function Ee(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=Le+t.path,n&&(r.className=n),location.href===r.href&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("tsd-theme");Se&&ge(Se);var je=new U;Object.defineProperty(window,"app",{value:je});he();be();})(); +"use strict";(()=>{var Qe=Object.create;var ae=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Oe=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var _e=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Me=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ce(e))!Re.call(t,i)&&i!==n&&ae(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Qe(Oe(t)):{},Me(e||!t||!t.__esModule?ae(n,"default",{value:t,enumerable:!0}):n,t));var de=_e((ce,he)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var h=t.utils.clone(n)||{};h.position=[a,l],h.index=s.length,s.push(new t.Token(r.slice(a,o),h))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ou?h+=2:a==u&&(n+=r[l+1]*i[h+1],l+=2,h+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}if(s.str.length==0&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}s.str.length==1&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var h=s.str.charAt(0),m=s.str.charAt(1),v;m in s.node.edges?v=s.node.edges[m]:(v=new t.TokenSet,s.node.edges[m]=v),s.str.length==1&&(v.final=!0),i.push({node:v,editsRemaining:s.editsRemaining-1,str:h+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),u=0;u1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ce=="object"?he.exports=n():e.lunr=n()}(this,function(){return t})})()});var le=[];function B(t,e){le.push({selector:e,constructor:t})}var Y=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible())}createComponents(e){le.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}ensureFocusedElementVisible(){this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null);let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}};var I=class{constructor(e){this.el=e.el,this.app=e.app}};var J=class{constructor(){this.listeners={}}addEventListener(e,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(n)}removeEventListener(e,n){if(!(e in this.listeners))return;let r=this.listeners[e];for(let i=0,s=r.length;i{let n=Date.now();return(...r)=>{n+e-Date.now()<0&&(t(...r),n=Date.now())}};var re=class extends J{constructor(){super();this.scrollTop=0;this.lastY=0;this.width=0;this.height=0;this.showToolbar=!0;this.toolbar=document.querySelector(".tsd-page-toolbar"),this.navigation=document.querySelector(".col-menu"),window.addEventListener("scroll",ne(()=>this.onScroll(),10)),window.addEventListener("resize",ne(()=>this.onResize(),10)),this.searchInput=document.querySelector("#tsd-search input"),this.searchInput&&this.searchInput.addEventListener("focus",()=>{this.hideShowToolbar()}),this.onResize(),this.onScroll()}triggerResize(){let n=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(n)}onResize(){this.width=window.innerWidth||0,this.height=window.innerHeight||0;let n=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(n)}onScroll(){this.scrollTop=window.scrollY||0;let n=new CustomEvent("scroll",{detail:{scrollTop:this.scrollTop}});this.dispatchEvent(n),this.hideShowToolbar()}hideShowToolbar(){let n=this.showToolbar;this.showToolbar=this.lastY>=this.scrollTop||this.scrollTop<=0||!!this.searchInput&&this.searchInput===document.activeElement,n!==this.showToolbar&&(this.toolbar.classList.toggle("tsd-page-toolbar--hide"),this.navigation?.classList.toggle("col-menu--hide")),this.lastY=this.scrollTop}},R=re;R.instance=new re;var X=class extends I{constructor(n){super(n);this.anchors=[];this.index=-1;R.instance.addEventListener("resize",()=>this.onResize()),R.instance.addEventListener("scroll",r=>this.onScroll(r)),this.createAnchors()}createAnchors(){let n=window.location.href;n.indexOf("#")!=-1&&(n=n.substring(0,n.indexOf("#"))),this.el.querySelectorAll("a").forEach(r=>{let i=r.href;if(i.indexOf("#")==-1||i.substring(0,n.length)!=n)return;let s=i.substring(i.indexOf("#")+1),o=document.querySelector("a.tsd-anchor[name="+s+"]"),a=r.parentNode;!o||!a||this.anchors.push({link:a,anchor:o,position:0})}),this.onResize()}onResize(){let n;for(let i=0,s=this.anchors.length;ii.position-s.position);let r=new CustomEvent("scroll",{detail:{scrollTop:R.instance.scrollTop}});this.onScroll(r)}onScroll(n){let r=n.detail.scrollTop+5,i=this.anchors,s=i.length-1,o=this.index;for(;o>-1&&i[o].position>r;)o-=1;for(;o-1&&this.anchors[this.index].link.classList.remove("focus"),this.index=o,this.index>-1&&this.anchors[this.index].link.classList.add("focus"))}};var ue=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var me=De(de());function ve(){let t=document.getElementById("tsd-search");if(!t)return;let e=document.getElementById("search-script");t.classList.add("loading"),e&&(e.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),e.addEventListener("load",()=>{t.classList.remove("loading"),t.classList.add("ready")}),window.searchData&&t.classList.remove("loading"));let n=document.querySelector("#tsd-search input"),r=document.querySelector("#tsd-search .results");if(!n||!r)throw new Error("The input field or the result list wrapper was not found");let i=!1;r.addEventListener("mousedown",()=>i=!0),r.addEventListener("mouseup",()=>{i=!1,t.classList.remove("has-focus")}),n.addEventListener("focus",()=>t.classList.add("has-focus")),n.addEventListener("blur",()=>{i||(i=!1,t.classList.remove("has-focus"))});let s={base:t.dataset.base+"/"};Fe(t,r,n,s)}function Fe(t,e,n,r){n.addEventListener("input",ue(()=>{He(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?pe(e,-1):s.key==="ArrowDown"?pe(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ae(t,e){t.index||window.searchData&&(e.classList.remove("loading"),e.classList.add("ready"),t.data=window.searchData,t.index=me.Index.load(window.searchData.index))}function He(t,e,n,r){if(Ae(r,t),!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s=i?r.index.search(`*${i}*`):[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o${fe(u.parent,i)}.${l}`);let h=document.createElement("li");h.classList.value=u.classes??"";let m=document.createElement("a");m.href=r.base+u.url,m.innerHTML=l,h.append(m),e.appendChild(h)}}function pe(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function fe(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ie(t.substring(s,o)),`${ie(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ie(t.substring(s))),i.join("")}var Ne={"&":"&","<":"<",">":">","'":"'",'"':"""};function ie(t){return t.replace(/[&<>"'"]/g,e=>Ne[e])}var F="mousedown",ye="mousemove",j="mouseup",Z={x:0,y:0},ge=!1,se=!1,Be=!1,A=!1,xe=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(xe?"is-mobile":"not-mobile");xe&&"ontouchstart"in document.documentElement&&(Be=!0,F="touchstart",ye="touchmove",j="touchend");document.addEventListener(F,t=>{se=!0,A=!1;let e=F=="touchstart"?t.targetTouches[0]:t;Z.y=e.pageY||0,Z.x=e.pageX||0});document.addEventListener(ye,t=>{if(se&&!A){let e=F=="touchstart"?t.targetTouches[0]:t,n=Z.x-(e.pageX||0),r=Z.y-(e.pageY||0);A=Math.sqrt(n*n+r*r)>10}});document.addEventListener(j,()=>{se=!1});document.addEventListener("click",t=>{ge&&(t.preventDefault(),t.stopImmediatePropagation(),ge=!1)});var K=class extends I{constructor(n){super(n);this.className=this.el.dataset.toggle||"",this.el.addEventListener(j,r=>this.onPointerUp(r)),this.el.addEventListener("click",r=>r.preventDefault()),document.addEventListener(F,r=>this.onDocumentPointerDown(r)),document.addEventListener(j,r=>this.onDocumentPointerUp(r))}setActive(n){if(this.active==n)return;this.active=n,document.documentElement.classList.toggle("has-"+this.className,n),this.el.classList.toggle("active",n);let r=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(r),setTimeout(()=>document.documentElement.classList.remove(r),500)}onPointerUp(n){A||(this.setActive(!0),n.preventDefault())}onDocumentPointerDown(n){if(this.active){if(n.target.closest(".col-menu, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(n){if(!A&&this.active&&n.target.closest(".col-menu")){let r=n.target.closest("a");if(r){let i=window.location.href;i.indexOf("#")!=-1&&(i=i.substring(0,i.indexOf("#"))),r.href.substring(0,i.length)==i&&setTimeout(()=>this.setActive(!1),250)}}}};var oe;try{oe=localStorage}catch{oe={getItem(){return null},setItem(){}}}var Q=oe;var Le=document.head.appendChild(document.createElement("style"));Le.dataset.for="filters";var ee=class extends I{constructor(n){super(n);this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),Le.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.checked}setLocalStorage(n){Q.setItem(this.key,n.toString()),this.value=n,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),document.querySelectorAll(".tsd-index-section").forEach(n=>{n.style.display="block";let r=Array.from(n.querySelectorAll(".tsd-index-link")).every(i=>i.offsetParent==null);n.style.display=r?"none":"block"})}};var te=class extends I{constructor(n){super(n);this.calculateHeights(),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.textContent.replace(/\s+/g,"-").toLowerCase()}`,this.setLocalStorage(this.fromLocalStorage(),!0),this.summary.addEventListener("click",r=>this.toggleVisibility(r)),this.icon.style.transform=this.getIconRotation()}getIconRotation(n=this.el.open){return`rotate(${n?0:-90}deg)`}calculateHeights(){let n=this.el.open,{position:r,left:i}=this.el.style;this.el.style.position="fixed",this.el.style.left="-9999px",this.el.open=!0,this.expandedHeight=this.el.offsetHeight+"px",this.el.open=!1,this.collapsedHeight=this.el.offsetHeight+"px",this.el.open=n,this.el.style.height=n?this.expandedHeight:this.collapsedHeight,this.el.style.position=r,this.el.style.left=i}toggleVisibility(n){n.preventDefault(),this.el.style.overflow="hidden",this.el.open?this.collapse():this.expand()}expand(n=!0){this.el.open=!0,this.animate(this.collapsedHeight,this.expandedHeight,{opening:!0,duration:n?300:0})}collapse(n=!0){this.animate(this.expandedHeight,this.collapsedHeight,{opening:!1,duration:n?300:0})}animate(n,r,{opening:i,duration:s=300}){if(this.animation)return;let o={duration:s,easing:"ease"};this.animation=this.el.animate({height:[n,r]},o),this.icon.animate({transform:[this.icon.style.transform||this.getIconRotation(!i),this.getIconRotation(i)]},o).addEventListener("finish",()=>{this.icon.style.transform=this.getIconRotation(i)}),this.animation.addEventListener("finish",()=>this.animationEnd(i))}animationEnd(n){this.el.open=n,this.animation=void 0,this.el.style.height="auto",this.el.style.overflow="visible",this.setLocalStorage(n)}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.open}setLocalStorage(n,r=!1){this.fromLocalStorage()===n&&!r||(Q.setItem(this.key,n.toString()),this.el.open=n,this.handleValueChange(r))}handleValueChange(n=!1){this.fromLocalStorage()===this.el.open&&!n||(this.fromLocalStorage()?this.expand(!1):this.collapse(!1))}};function be(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,Ee(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),Ee(t.value)})}function Ee(t){document.documentElement.dataset.theme=t}ve();B(X,".menu-highlight");B(K,"a[data-toggle]");B(te,".tsd-index-accordion");B(ee,".tsd-filter-item input[type=checkbox]");var we=document.getElementById("theme");we&&be(we);var je=new Y;Object.defineProperty(window,"app",{value:je});})(); /*! Bundled license information: lunr/lunr.js: diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js deleted file mode 100644 index 29c824b..0000000 --- a/docs/assets/navigation.js +++ /dev/null @@ -1 +0,0 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE43U0U7CMBQG4HfZNREhgsqdCBETDUZJvDBelO2wVbqWtIcgMb67ZcroSjn1tv9/Ppqu5e0rQfjEZJCMNNvM2FzAWGulk1ayYljY9VQwY8C0m/lZgaWwpSWXWTLodK++W7U0VDoDPV0hV9IcIC4R9IKl1mo0mlS313eoW2WHJD4ynXNJiaEiCa8NqvIFtwKy2W4piHolCqyPh9qlX6LACbDIKTYaFHVfshyGzECQqVOKeOByeVLYhxTwZH8k/hmPWhT5rDaUdYgppPocI16CNCclrxPlpvMPSMNXyslJhiN9k9wCBd0Inku7cWc3uF1ZoA686fPry06v674UEOLvdfmGE/1HGQsI7cSJoooS6/L4Av05bhiT7kD+9l95hsUJMViKydVz8qVqMTa5e0b+4G4tNpcykVb3agI8L5zzXaxlWu257VWaYv/CwbL9X1SIqUMCyEGCZgjOyZmQFeodse8/1FvUsqAGAAA=" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index a3dc65b..1f61fd0 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE7VcbW/bRhL+L9JXQdG+k/nWJr1LgSt6aHt3LQwjoCXG1kWWDEmukxr577e7pMQZcmZJWr4vCSTtzDM7z8zO7C7p58l+93SYvL16nnxeb1eTt1bPJtvivpy8naz2xdNvxc2mnMwmj/uN/+bT43Z5XO+2hzfn3+Z3x/uNH7DcFIdD6TVNJt9mhLLbclvui2P5brd5vN/+Z7063h0IvdSwoRDLYrOMNn0o17d3R0J7a0RSsVzkThh51v73cguM+vkhajxjHL8+lIc35Ji0+cYoe8b4+DHoGax0eh4PdM8mD8W+3B5ZkxtwsZDAe83In3ar0UbMu/IjjJrXM2FsK/4s1pvAW5QZbVpH/PUsOwa174tjMdooKPl69nzabY+jTamFXs+Ku7JYlfu/vcQWJPraFv1Wfjn+uv5rfHB3xF8xgl5q0/H/Yc3Nbu8n+rI0w7KvyN1uv/7LB0Sx+anY366349nrKnjtyPpwsY2cmle0tDh8iCjjjQOSF9nTLqrvys3mnZ9v2VkpwC/pMm2a8vn+1JS0q/Pa69l/KpZeb3tMUnk6Ufu0TnsztGNwAtq7d7cfh30SuQx8WbHw3WZ9u72HRPXaQEheZgqqbr3wybI2FHKz3n4e6XoocjF4u5kdgt7IXMp8yOgxfNfjL4P1O5LhmNXgywDv8KrYi3mXXgsHZ/X6uBmzmtTDLwOtivRw1PP4y2AfituyVRl7oZHMq6xhYy1oi124eq03m39tV+WnUNuGF6dpR260GbBIVoU8USHRgOHl8dwj/EKnb1fttCVCTwvbO7IwEKDJqjAILNUIEIC9XcBgULYOMajpIjQI9qZYfr7d7x63qzHgXakLTBjSfxA2DG4+OCNg0sS8er/2eg5c2rSGDE+ccrv6fajCaT2YnknbSh7wjzGAf1wK+IS2k32IT8kN5EDIO7ZrIjHv0g0TD9oJkp9v/lsueeDq5+HBEU9nByib1gMT9teWJXu9YVjN2DFw7b1fN6Grnd/5+1HHs6E2/rApCX3gl1Ea/+Hb+Jaq8NUoHT/e+x6mpSR+N3hP++7xcNzd/3r8uilX4fyJIqg9ZsSeFh4392mcJg+bO4YmCtkIyGr0ZZBFqnTQuEVv2RgKzrUmNG6yOxnjYq5B4d2c7FHGQLOdAo+dbhMS4DBVvo9blURniwYMT5IlN5+uvukyORFs4dhqScClayUH11k743pOX2mh3y69yuoq67vCwqalPEZcWrFw86feayosmz5Y3f1Z7vfrVdm61ewzoiP2IktQsYD71UQiUONG7PTOh9SjdE+RHDdXYgKMGd57x/VyrBFA6kUmQHf/83xAkfB1Z9BwR9/sjn7dG650ehagp9a1l+s6ueaZwd0nu+cULHTnL7unhB+bX0c4EO9Dh+ht7135vATm9qwL1XHsIPSuyAhwtBkJp4UJd8Lfx92BDNKWbtyQcS9oYmi4ZAMzBJJr1bpwyTZt6OzYPomeXrpHGgKa7IO7oP09MAMK4zDudr4vDiSP5x8v37FgVemtSmMTA3LYLwdgVKNeCLGCz4zwGKvUAyK9IGwr2UJJt5G9MPxhSwun55ilFygZwC2s/ujtnxd3qZ+Y4dALfAoc5k04auDS5vTb5VmDNKWT5mwQAxF09yJUg14G8ACPUliEetTLILjy1nJTqrT1QSRDGOP0R3AfGFfQME6ymA1xGVemu25LlughUGzN7GKl6yUFJrPuoyQ/7PcAsNb1Bv+czEMjmo320tfJ4/5xeRymcorH91z7VZayZxhgd5yGTGyKh2GtuvckKUQ0/BLc/e6p3WmncNHwYbjXMx9yq/LL5O1z2H4Go/0oOVfz3It9WpebVXiWujLIK93dx/S9rn/7dxmYDCOqIW8Wk9nVYqblXObq+np2dZKIP8Qv4jDhPwlqmEDDpP8kqWESDVP+k6KGKTRM+096ptxcZBoN02iY8Z8Mpc2gYdZ/stQwi4Y5/8lRwxwalvlP2Uy6uZU5GpahYZ6Uq5zSlmP3Bm8LkgfRIiIyIShkgbkQweeCZENgOkRwu1CUpwVmRATPC03qxKSI4HxB0iIwLyL4X5DMCEyNCBQIkhyB2REZ7yVMkAhECM9kPm9pxAzJyFBO+UhihqTgQkO2kiVmC0m6xATJwIIk809igmRgQdIpiAmSgQVJZqHEBMnAgiRJl5ggGViQJOkSEyQDC5IkXWKCZOBBkqRLTJEKPPgCSq0rmCIViJBkXirMkQpEKJIj1VrT4qJGcqQwR0pzAaIwRcqwUawwRcoyUawwQSqwoMjwUJgglbHxrjBBKrCg6OUcE6QDC4oMJI0J0oEFRQaSxgTpSJCdKTXPJB6I+dGRH0eWk1bZCSwoMo40JkgHFhQZRxoTpAMPmowjjSnSgQctulRqTJAOLGiSSo0J0oEFTRKkMUEmsKBJggwmyAQWNF11MUEm0KApggwmyAQWtKMGYn6MZjxkWn2B4fLMYHKMZfPMYHKMY/LMYHJMJIcMIYPJMZEcMoQMJscuuEi3mBsbCDBkrFnMjZVch2UxNzYwYMjFzWJybODAkGFpMT029m1kWNpW5xZIMGRYWsyPDTQYMiwtZsgGGgzdD2KGbKDBkAXIYoZc4MGQrDtMkYsUkaw7TJELRFiSTIc5coEIS3LkMEcuEGFJjhzmyBkuJx2myPEp5Fr9teOy0mGGXMbkmsP8uJxZDhxmJwsUWDLeMsxOJrglK8PkZJEcMjAzTE4WySEDM8PkZJpL8wxzkxm2oGWYnMwyHsowNVlc3ch9QNba/QQKLJk9GWYny1lfYnrySA+ZZjmmJw8kWDLNcsxPLrnwzTE9uWI8lGNycrZ1yzE5Od+65ZicnGvdckxOHhiw9F4Sk5MHBhy5ZOSt3WmgwJFLRt7eoAYOHL2bXLS2qIvAgiMzrfrt+joeY4SL8HL1Y3WccXV1fmDjefKxPuM4n6w8T7T/59ts4guT//9bc7IRPgUEcFQJ5AVQ4CoNptbkl4f4v0+C+L+nmtF8ene3vqNo1NtGu2WEm7vc+rmcRlrJRly5YfIHBL9oFDjOL6e3JxoxCcz2m62U2O50ewtcmjXSJi3d8ZcAMxa8wdUTBI2YL76Nn3NGLLxYH19oPt3wgAmD+XLS5WazPL0FCAwGrhIcxUG2PD33CRwFYDXnqOqssxFyIGBzdqrtSPL9Y8NJQiq+GgX8Ah2jk2JEIBgQfb6vTEnjAAJymvVplIsBdN9ykQFzZaXBoTVwLkDOeUZiFJDLiQB+lotq2VA9iu7rSzjgdpBBajFEmvK+At5n/RCfWjzEpxarKyNAA/QjR1919wtWHCCUceslPE0Hzoe5v+CmHf6ox7H6gx+NKKCtV66sLkuAyYCznFtlz+KEpwVYfQSnoNyuvqC1HVYuzmgv9BUJAe9qjpLwKtZjeBVrWb2KBeIKzFSx4jsc0iAWsyqgpagDu66TxtT1sq6fObdS3JZbkLaEJ0HIcrFz+uMrQBEmA3DBqLgrDqe3I4EccK3g0uUsGd/oBHYDVMVZ3sWUIAYkt9BVYm1WYMwmBZvL/u46IwC+4Eir1FBkgaxTXNmspMPScojXqgB8AdOdFW+XagWSTau6QWP5Ak9zgpURTNuybk/5DcSpONnAJf66er0CrKsA3nATj1I38dkKsFIB3IyTDO9WEx0OiFDJRegmvk0CLAV4mguzINQxFHRFGVf+gmCnUZEgKiQXVKcHEO9OV6MAGczTcfM8yXdXDwNqkOUy4qFFqAVLZM4tOkGIqPQgmiXn4UaUKvNwi8G5et8OBwNMdlwktRY5CaJBchnnZQhWHEyYBeciL0tNECx1LiGK1yYgpDlb47NxgEaQlxkXerEHaDc9gERuFajkyL5HwarHxUDVe9Tv7QFZwKPm4rXT2AF7Tb18ubqG5+zEvZJOtgoAL+rdsqp3y6buBlzdNeTcSksWB1jG63ZD1IpUbaqpgdxpe87xXP9RAhDJoNZLlrEgRcSjBUuEY13ePqYAWWpkXTHqeWUc5/FBNAAMaMu5nG1eHQAZBKZruel2tuIKmKxrk229pcm4edP7MUCmJdfk69nkYf1QhtI1eXt1/e3b/wAhD6iN808AAA=="; \ No newline at end of file +window.searchData = JSON.parse("{\"kinds\":{\"8\":\"Enumeration\",\"16\":\"Enumeration Member\",\"64\":\"Function\",\"128\":\"Class\",\"256\":\"Interface\",\"512\":\"Constructor\",\"1024\":\"Property\",\"65536\":\"Type literal\",\"4194304\":\"Type alias\"},\"rows\":[{\"kind\":64,\"name\":\"drawTable\",\"url\":\"functions/drawTable.html\",\"classes\":\"tsd-kind-function\"},{\"kind\":64,\"name\":\"generateColumnWidths\",\"url\":\"functions/generateColumnWidths.html\",\"classes\":\"tsd-kind-function\"},{\"kind\":64,\"name\":\"calcTableHeight\",\"url\":\"functions/calcTableHeight.html\",\"classes\":\"tsd-kind-function\"},{\"kind\":4194304,\"name\":\"GenColumnWidthOptions\",\"url\":\"types/GenColumnWidthOptions.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/GenColumnWidthOptions.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"GenColumnWidthOptions\"},{\"kind\":1024,\"name\":\"columnWidthMode\",\"url\":\"types/GenColumnWidthOptions.html#__type.columnWidthMode\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"GenColumnWidthOptions.__type\"},{\"kind\":1024,\"name\":\"availableWidth\",\"url\":\"types/GenColumnWidthOptions.html#__type.availableWidth\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"GenColumnWidthOptions.__type\"},{\"kind\":1024,\"name\":\"tableData\",\"url\":\"types/GenColumnWidthOptions.html#__type.tableData\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"GenColumnWidthOptions.__type\"},{\"kind\":1024,\"name\":\"font\",\"url\":\"types/GenColumnWidthOptions.html#__type.font\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"GenColumnWidthOptions.__type\"},{\"kind\":1024,\"name\":\"headerFont\",\"url\":\"types/GenColumnWidthOptions.html#__type.headerFont\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"GenColumnWidthOptions.__type\"},{\"kind\":1024,\"name\":\"headerTextSize\",\"url\":\"types/GenColumnWidthOptions.html#__type.headerTextSize\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"GenColumnWidthOptions.__type\"},{\"kind\":1024,\"name\":\"textSize\",\"url\":\"types/GenColumnWidthOptions.html#__type.textSize\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"GenColumnWidthOptions.__type\"},{\"kind\":1024,\"name\":\"borderWidth\",\"url\":\"types/GenColumnWidthOptions.html#__type.borderWidth\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"GenColumnWidthOptions.__type\"},{\"kind\":1024,\"name\":\"horizontalMargin\",\"url\":\"types/GenColumnWidthOptions.html#__type.horizontalMargin\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"GenColumnWidthOptions.__type\"},{\"kind\":1024,\"name\":\"headerHorizontalMargin\",\"url\":\"types/GenColumnWidthOptions.html#__type.headerHorizontalMargin\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"GenColumnWidthOptions.__type\"},{\"kind\":1024,\"name\":\"hasHeader\",\"url\":\"types/GenColumnWidthOptions.html#__type.hasHeader\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"GenColumnWidthOptions.__type\"},{\"kind\":4194304,\"name\":\"CellContent\",\"url\":\"types/CellContent.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":256,\"name\":\"DrawTableOptions\",\"url\":\"interfaces/DrawTableOptions.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"textSize\",\"url\":\"interfaces/DrawTableOptions.html#textSize\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DrawTableOptions\"},{\"kind\":1024,\"name\":\"textColor\",\"url\":\"interfaces/DrawTableOptions.html#textColor\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DrawTableOptions\"},{\"kind\":1024,\"name\":\"contentAlignment\",\"url\":\"interfaces/DrawTableOptions.html#contentAlignment\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DrawTableOptions\"},{\"kind\":1024,\"name\":\"font\",\"url\":\"interfaces/DrawTableOptions.html#font\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DrawTableOptions\"},{\"kind\":1024,\"name\":\"linkColor\",\"url\":\"interfaces/DrawTableOptions.html#linkColor\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DrawTableOptions\"},{\"kind\":1024,\"name\":\"lineHeight\",\"url\":\"interfaces/DrawTableOptions.html#lineHeight\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DrawTableOptions\"},{\"kind\":1024,\"name\":\"column\",\"url\":\"interfaces/DrawTableOptions.html#column\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DrawTableOptions\"},{\"kind\":1024,\"name\":\"row\",\"url\":\"interfaces/DrawTableOptions.html#row\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DrawTableOptions\"},{\"kind\":1024,\"name\":\"header\",\"url\":\"interfaces/DrawTableOptions.html#header\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DrawTableOptions\"},{\"kind\":1024,\"name\":\"title\",\"url\":\"interfaces/DrawTableOptions.html#title\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DrawTableOptions\"},{\"kind\":1024,\"name\":\"border\",\"url\":\"interfaces/DrawTableOptions.html#border\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DrawTableOptions\"},{\"kind\":1024,\"name\":\"pageMargin\",\"url\":\"interfaces/DrawTableOptions.html#pageMargin\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DrawTableOptions\"},{\"kind\":1024,\"name\":\"contentMargin\",\"url\":\"interfaces/DrawTableOptions.html#contentMargin\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DrawTableOptions\"},{\"kind\":1024,\"name\":\"fillUndefCells\",\"url\":\"interfaces/DrawTableOptions.html#fillUndefCells\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"DrawTableOptions\"},{\"kind\":256,\"name\":\"HeaderOptions\",\"url\":\"interfaces/HeaderOptions.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"hasHeaderRow\",\"url\":\"interfaces/HeaderOptions.html#hasHeaderRow\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"HeaderOptions\"},{\"kind\":1024,\"name\":\"font\",\"url\":\"interfaces/HeaderOptions.html#font\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"HeaderOptions\"},{\"kind\":1024,\"name\":\"textSize\",\"url\":\"interfaces/HeaderOptions.html#textSize\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"HeaderOptions\"},{\"kind\":1024,\"name\":\"textColor\",\"url\":\"interfaces/HeaderOptions.html#textColor\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"HeaderOptions\"},{\"kind\":1024,\"name\":\"backgroundColor\",\"url\":\"interfaces/HeaderOptions.html#backgroundColor\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"HeaderOptions\"},{\"kind\":1024,\"name\":\"contentAlignment\",\"url\":\"interfaces/HeaderOptions.html#contentAlignment\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"HeaderOptions\"},{\"kind\":256,\"name\":\"TableDimensions\",\"url\":\"interfaces/TableDimensions.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"endX\",\"url\":\"interfaces/TableDimensions.html#endX\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"TableDimensions\"},{\"kind\":1024,\"name\":\"endY\",\"url\":\"interfaces/TableDimensions.html#endY\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"TableDimensions\"},{\"kind\":1024,\"name\":\"width\",\"url\":\"interfaces/TableDimensions.html#width\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"TableDimensions\"},{\"kind\":1024,\"name\":\"height\",\"url\":\"interfaces/TableDimensions.html#height\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"TableDimensions\"},{\"kind\":256,\"name\":\"TableObject\",\"url\":\"interfaces/TableObject.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"rows\",\"url\":\"interfaces/TableObject.html#rows\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"TableObject\"},{\"kind\":1024,\"name\":\"columns\",\"url\":\"interfaces/TableObject.html#columns\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"TableObject\"},{\"kind\":4194304,\"name\":\"Alignment\",\"url\":\"types/Alignment.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":4194304,\"name\":\"CellElement\",\"url\":\"types/CellElement.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":4194304,\"name\":\"Link\",\"url\":\"types/Link.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":4194304,\"name\":\"Image\",\"url\":\"types/Image.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":256,\"name\":\"CustomStyledText\",\"url\":\"interfaces/CustomStyledText.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"interfaces/CustomStyledText.html#type\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"CustomStyledText\"},{\"kind\":1024,\"name\":\"text\",\"url\":\"interfaces/CustomStyledText.html#text\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"CustomStyledText\"},{\"kind\":1024,\"name\":\"alignment\",\"url\":\"interfaces/CustomStyledText.html#alignment\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"CustomStyledText\"},{\"kind\":1024,\"name\":\"font\",\"url\":\"interfaces/CustomStyledText.html#font\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"CustomStyledText\"},{\"kind\":1024,\"name\":\"textSize\",\"url\":\"interfaces/CustomStyledText.html#textSize\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"CustomStyledText\"},{\"kind\":1024,\"name\":\"textColor\",\"url\":\"interfaces/CustomStyledText.html#textColor\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"CustomStyledText\"},{\"kind\":256,\"name\":\"BorderOptions\",\"url\":\"interfaces/BorderOptions.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"color\",\"url\":\"interfaces/BorderOptions.html#color\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"BorderOptions\"},{\"kind\":1024,\"name\":\"width\",\"url\":\"interfaces/BorderOptions.html#width\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"BorderOptions\"},{\"kind\":4194304,\"name\":\"ColumnOptions\",\"url\":\"types/ColumnOptions.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/ColumnOptions.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ColumnOptions\"},{\"kind\":1024,\"name\":\"widthMode\",\"url\":\"types/ColumnOptions.html#__type.widthMode\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ColumnOptions.__type\"},{\"kind\":1024,\"name\":\"overrideWidths\",\"url\":\"types/ColumnOptions.html#__type.overrideWidths\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"ColumnOptions.__type\"},{\"kind\":256,\"name\":\"ContentMarginOptions\",\"url\":\"interfaces/ContentMarginOptions.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"horizontal\",\"url\":\"interfaces/ContentMarginOptions.html#horizontal\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"ContentMarginOptions\"},{\"kind\":1024,\"name\":\"vertical\",\"url\":\"interfaces/ContentMarginOptions.html#vertical\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"ContentMarginOptions\"},{\"kind\":256,\"name\":\"PageMarginOptions\",\"url\":\"interfaces/PageMarginOptions.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"bottom\",\"url\":\"interfaces/PageMarginOptions.html#bottom\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"PageMarginOptions\"},{\"kind\":1024,\"name\":\"right\",\"url\":\"interfaces/PageMarginOptions.html#right\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"PageMarginOptions\"},{\"kind\":256,\"name\":\"RowOptions\",\"url\":\"interfaces/RowOptions.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"backgroundColors\",\"url\":\"interfaces/RowOptions.html#backgroundColors\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"RowOptions\"},{\"kind\":1024,\"name\":\"overrideHeights\",\"url\":\"interfaces/RowOptions.html#overrideHeights\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"RowOptions\"},{\"kind\":256,\"name\":\"TitleOptions\",\"url\":\"interfaces/TitleOptions.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"text\",\"url\":\"interfaces/TitleOptions.html#text\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"TitleOptions\"},{\"kind\":1024,\"name\":\"textSize\",\"url\":\"interfaces/TitleOptions.html#textSize\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"TitleOptions\"},{\"kind\":1024,\"name\":\"font\",\"url\":\"interfaces/TitleOptions.html#font\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"TitleOptions\"},{\"kind\":1024,\"name\":\"textColor\",\"url\":\"interfaces/TitleOptions.html#textColor\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"TitleOptions\"},{\"kind\":1024,\"name\":\"alignment\",\"url\":\"interfaces/TitleOptions.html#alignment\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"TitleOptions\"},{\"kind\":256,\"name\":\"ImageBase\",\"url\":\"interfaces/ImageBase.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"interfaces/ImageBase.html#type\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"ImageBase\"},{\"kind\":1024,\"name\":\"src\",\"url\":\"interfaces/ImageBase.html#src\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"ImageBase\"},{\"kind\":1024,\"name\":\"data\",\"url\":\"interfaces/ImageBase.html#data\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"ImageBase\"},{\"kind\":1024,\"name\":\"width\",\"url\":\"interfaces/ImageBase.html#width\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"ImageBase\"},{\"kind\":1024,\"name\":\"height\",\"url\":\"interfaces/ImageBase.html#height\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"ImageBase\"},{\"kind\":1024,\"name\":\"alignment\",\"url\":\"interfaces/ImageBase.html#alignment\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"ImageBase\"},{\"kind\":1024,\"name\":\"horizontalMargin\",\"url\":\"interfaces/ImageBase.html#horizontalMargin\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"ImageBase\"},{\"kind\":256,\"name\":\"LinkBase\",\"url\":\"interfaces/LinkBase.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"interfaces/LinkBase.html#type\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"LinkBase\"},{\"kind\":1024,\"name\":\"url\",\"url\":\"interfaces/LinkBase.html#url\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"LinkBase\"},{\"kind\":1024,\"name\":\"page\",\"url\":\"interfaces/LinkBase.html#page\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"LinkBase\"},{\"kind\":1024,\"name\":\"text\",\"url\":\"interfaces/LinkBase.html#text\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"LinkBase\"},{\"kind\":1024,\"name\":\"alignment\",\"url\":\"interfaces/LinkBase.html#alignment\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"LinkBase\"},{\"kind\":1024,\"name\":\"font\",\"url\":\"interfaces/LinkBase.html#font\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"LinkBase\"},{\"kind\":1024,\"name\":\"textSize\",\"url\":\"interfaces/LinkBase.html#textSize\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"LinkBase\"},{\"kind\":1024,\"name\":\"textColor\",\"url\":\"interfaces/LinkBase.html#textColor\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"LinkBase\"},{\"kind\":128,\"name\":\"DrawTableError\",\"url\":\"classes/DrawTableError.html\",\"classes\":\"tsd-kind-class\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/DrawTableError.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"DrawTableError\"},{\"kind\":1024,\"name\":\"code\",\"url\":\"classes/DrawTableError.html#code\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"DrawTableError\"},{\"kind\":1024,\"name\":\"dimensions\",\"url\":\"classes/DrawTableError.html#dimensions\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"DrawTableError\"},{\"kind\":1024,\"name\":\"rowHeights\",\"url\":\"classes/DrawTableError.html#rowHeights\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"DrawTableError\"},{\"kind\":8,\"name\":\"ErrorCode\",\"url\":\"enums/ErrorCode.html\",\"classes\":\"tsd-kind-enum\"},{\"kind\":16,\"name\":\"ERR_CONVERT_VALIDATE\",\"url\":\"enums/ErrorCode.html#ERR_CONVERT_VALIDATE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"ErrorCode\"},{\"kind\":16,\"name\":\"ERR_COLUMN_COUNT_MISMATCH\",\"url\":\"enums/ErrorCode.html#ERR_COLUMN_COUNT_MISMATCH\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"ErrorCode\"},{\"kind\":16,\"name\":\"ERR_ROW_COUNT_MISMATCH\",\"url\":\"enums/ErrorCode.html#ERR_ROW_COUNT_MISMATCH\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"ErrorCode\"},{\"kind\":16,\"name\":\"ERR_TABLE_WIDTH_OVERFLOW\",\"url\":\"enums/ErrorCode.html#ERR_TABLE_WIDTH_OVERFLOW\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"ErrorCode\"},{\"kind\":16,\"name\":\"ERR_TABLE_HEIGHT_OVERFLOW\",\"url\":\"enums/ErrorCode.html#ERR_TABLE_HEIGHT_OVERFLOW\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"ErrorCode\"},{\"kind\":16,\"name\":\"DRAW_ROW_ERROR\",\"url\":\"enums/ErrorCode.html#DRAW_ROW_ERROR\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"ErrorCode\"},{\"kind\":16,\"name\":\"ERR_WRAP_HEADER_INVALID\",\"url\":\"enums/ErrorCode.html#ERR_WRAP_HEADER_INVALID\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"ErrorCode\"},{\"kind\":16,\"name\":\"ERR_NO_SPACE_FOR_HEADERS\",\"url\":\"enums/ErrorCode.html#ERR_NO_SPACE_FOR_HEADERS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"ErrorCode\"},{\"kind\":16,\"name\":\"ERR_INVALID_DISTRIBUTE_MODE\",\"url\":\"enums/ErrorCode.html#ERR_INVALID_DISTRIBUTE_MODE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"ErrorCode\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,43.219]],[\"comment/0\",[]],[\"name/1\",[1,43.219]],[\"comment/1\",[]],[\"name/2\",[2,43.219]],[\"comment/2\",[]],[\"name/3\",[3,43.219]],[\"comment/3\",[]],[\"name/4\",[4,38.111]],[\"comment/4\",[]],[\"name/5\",[5,43.219]],[\"comment/5\",[]],[\"name/6\",[6,43.219]],[\"comment/6\",[]],[\"name/7\",[7,43.219]],[\"comment/7\",[]],[\"name/8\",[8,28.556]],[\"comment/8\",[]],[\"name/9\",[9,43.219]],[\"comment/9\",[]],[\"name/10\",[10,43.219]],[\"comment/10\",[]],[\"name/11\",[11,28.556]],[\"comment/11\",[]],[\"name/12\",[12,43.219]],[\"comment/12\",[]],[\"name/13\",[13,38.111]],[\"comment/13\",[]],[\"name/14\",[14,43.219]],[\"comment/14\",[]],[\"name/15\",[15,43.219]],[\"comment/15\",[]],[\"name/16\",[16,43.219]],[\"comment/16\",[]],[\"name/17\",[17,43.219]],[\"comment/17\",[]],[\"name/18\",[11,28.556]],[\"comment/18\",[]],[\"name/19\",[18,30.226]],[\"comment/19\",[]],[\"name/20\",[19,38.111]],[\"comment/20\",[]],[\"name/21\",[8,28.556]],[\"comment/21\",[]],[\"name/22\",[20,43.219]],[\"comment/22\",[]],[\"name/23\",[21,43.219]],[\"comment/23\",[]],[\"name/24\",[22,43.219]],[\"comment/24\",[]],[\"name/25\",[23,43.219]],[\"comment/25\",[]],[\"name/26\",[24,43.219]],[\"comment/26\",[]],[\"name/27\",[25,43.219]],[\"comment/27\",[]],[\"name/28\",[26,43.219]],[\"comment/28\",[]],[\"name/29\",[27,43.219]],[\"comment/29\",[]],[\"name/30\",[28,43.219]],[\"comment/30\",[]],[\"name/31\",[29,43.219]],[\"comment/31\",[]],[\"name/32\",[30,43.219]],[\"comment/32\",[]],[\"name/33\",[31,43.219]],[\"comment/33\",[]],[\"name/34\",[8,28.556]],[\"comment/34\",[]],[\"name/35\",[11,28.556]],[\"comment/35\",[]],[\"name/36\",[18,30.226]],[\"comment/36\",[]],[\"name/37\",[32,43.219]],[\"comment/37\",[]],[\"name/38\",[19,38.111]],[\"comment/38\",[]],[\"name/39\",[33,43.219]],[\"comment/39\",[]],[\"name/40\",[34,43.219]],[\"comment/40\",[]],[\"name/41\",[35,43.219]],[\"comment/41\",[]],[\"name/42\",[36,34.746]],[\"comment/42\",[]],[\"name/43\",[37,38.111]],[\"comment/43\",[]],[\"name/44\",[38,43.219]],[\"comment/44\",[]],[\"name/45\",[39,43.219]],[\"comment/45\",[]],[\"name/46\",[40,43.219]],[\"comment/46\",[]],[\"name/47\",[41,30.226]],[\"comment/47\",[]],[\"name/48\",[42,43.219]],[\"comment/48\",[]],[\"name/49\",[43,43.219]],[\"comment/49\",[]],[\"name/50\",[44,43.219]],[\"comment/50\",[]],[\"name/51\",[45,43.219]],[\"comment/51\",[]],[\"name/52\",[46,34.746]],[\"comment/52\",[]],[\"name/53\",[47,34.746]],[\"comment/53\",[]],[\"name/54\",[41,30.226]],[\"comment/54\",[]],[\"name/55\",[8,28.556]],[\"comment/55\",[]],[\"name/56\",[11,28.556]],[\"comment/56\",[]],[\"name/57\",[18,30.226]],[\"comment/57\",[]],[\"name/58\",[48,43.219]],[\"comment/58\",[]],[\"name/59\",[49,43.219]],[\"comment/59\",[]],[\"name/60\",[36,34.746]],[\"comment/60\",[]],[\"name/61\",[50,43.219]],[\"comment/61\",[]],[\"name/62\",[4,38.111]],[\"comment/62\",[]],[\"name/63\",[51,43.219]],[\"comment/63\",[]],[\"name/64\",[52,43.219]],[\"comment/64\",[]],[\"name/65\",[53,43.219]],[\"comment/65\",[]],[\"name/66\",[54,43.219]],[\"comment/66\",[]],[\"name/67\",[55,43.219]],[\"comment/67\",[]],[\"name/68\",[56,43.219]],[\"comment/68\",[]],[\"name/69\",[57,43.219]],[\"comment/69\",[]],[\"name/70\",[58,43.219]],[\"comment/70\",[]],[\"name/71\",[59,43.219]],[\"comment/71\",[]],[\"name/72\",[60,43.219]],[\"comment/72\",[]],[\"name/73\",[61,43.219]],[\"comment/73\",[]],[\"name/74\",[62,43.219]],[\"comment/74\",[]],[\"name/75\",[47,34.746]],[\"comment/75\",[]],[\"name/76\",[11,28.556]],[\"comment/76\",[]],[\"name/77\",[8,28.556]],[\"comment/77\",[]],[\"name/78\",[18,30.226]],[\"comment/78\",[]],[\"name/79\",[41,30.226]],[\"comment/79\",[]],[\"name/80\",[63,43.219]],[\"comment/80\",[]],[\"name/81\",[46,34.746]],[\"comment/81\",[]],[\"name/82\",[64,43.219]],[\"comment/82\",[]],[\"name/83\",[65,43.219]],[\"comment/83\",[]],[\"name/84\",[36,34.746]],[\"comment/84\",[]],[\"name/85\",[37,38.111]],[\"comment/85\",[]],[\"name/86\",[41,30.226]],[\"comment/86\",[]],[\"name/87\",[13,38.111]],[\"comment/87\",[]],[\"name/88\",[66,43.219]],[\"comment/88\",[]],[\"name/89\",[46,34.746]],[\"comment/89\",[]],[\"name/90\",[67,43.219]],[\"comment/90\",[]],[\"name/91\",[68,43.219]],[\"comment/91\",[]],[\"name/92\",[47,34.746]],[\"comment/92\",[]],[\"name/93\",[41,30.226]],[\"comment/93\",[]],[\"name/94\",[8,28.556]],[\"comment/94\",[]],[\"name/95\",[11,28.556]],[\"comment/95\",[]],[\"name/96\",[18,30.226]],[\"comment/96\",[]],[\"name/97\",[69,43.219]],[\"comment/97\",[]],[\"name/98\",[70,43.219]],[\"comment/98\",[]],[\"name/99\",[71,43.219]],[\"comment/99\",[]],[\"name/100\",[72,43.219]],[\"comment/100\",[]],[\"name/101\",[73,43.219]],[\"comment/101\",[]],[\"name/102\",[74,43.219]],[\"comment/102\",[]],[\"name/103\",[75,43.219]],[\"comment/103\",[]],[\"name/104\",[76,43.219]],[\"comment/104\",[]],[\"name/105\",[77,43.219]],[\"comment/105\",[]],[\"name/106\",[78,43.219]],[\"comment/106\",[]],[\"name/107\",[79,43.219]],[\"comment/107\",[]],[\"name/108\",[80,43.219]],[\"comment/108\",[]],[\"name/109\",[81,43.219]],[\"comment/109\",[]],[\"name/110\",[82,43.219]],[\"comment/110\",[]],[\"name/111\",[83,43.219]],[\"comment/111\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":4,\"name\":{\"4\":{},\"62\":{}},\"comment\":{}}],[\"alignment\",{\"_index\":41,\"name\":{\"47\":{},\"54\":{},\"79\":{},\"86\":{},\"93\":{}},\"comment\":{}}],[\"availablewidth\",{\"_index\":6,\"name\":{\"6\":{}},\"comment\":{}}],[\"backgroundcolor\",{\"_index\":32,\"name\":{\"37\":{}},\"comment\":{}}],[\"backgroundcolors\",{\"_index\":60,\"name\":{\"72\":{}},\"comment\":{}}],[\"border\",{\"_index\":26,\"name\":{\"28\":{}},\"comment\":{}}],[\"borderoptions\",{\"_index\":48,\"name\":{\"58\":{}},\"comment\":{}}],[\"borderwidth\",{\"_index\":12,\"name\":{\"12\":{}},\"comment\":{}}],[\"bottom\",{\"_index\":57,\"name\":{\"69\":{}},\"comment\":{}}],[\"calctableheight\",{\"_index\":2,\"name\":{\"2\":{}},\"comment\":{}}],[\"cellcontent\",{\"_index\":16,\"name\":{\"16\":{}},\"comment\":{}}],[\"cellelement\",{\"_index\":42,\"name\":{\"48\":{}},\"comment\":{}}],[\"code\",{\"_index\":71,\"name\":{\"99\":{}},\"comment\":{}}],[\"color\",{\"_index\":49,\"name\":{\"59\":{}},\"comment\":{}}],[\"column\",{\"_index\":22,\"name\":{\"24\":{}},\"comment\":{}}],[\"columnoptions\",{\"_index\":50,\"name\":{\"61\":{}},\"comment\":{}}],[\"columns\",{\"_index\":40,\"name\":{\"46\":{}},\"comment\":{}}],[\"columnwidthmode\",{\"_index\":5,\"name\":{\"5\":{}},\"comment\":{}}],[\"constructor\",{\"_index\":70,\"name\":{\"98\":{}},\"comment\":{}}],[\"contentalignment\",{\"_index\":19,\"name\":{\"20\":{},\"38\":{}},\"comment\":{}}],[\"contentmargin\",{\"_index\":28,\"name\":{\"30\":{}},\"comment\":{}}],[\"contentmarginoptions\",{\"_index\":53,\"name\":{\"65\":{}},\"comment\":{}}],[\"customstyledtext\",{\"_index\":45,\"name\":{\"51\":{}},\"comment\":{}}],[\"data\",{\"_index\":65,\"name\":{\"83\":{}},\"comment\":{}}],[\"dimensions\",{\"_index\":72,\"name\":{\"100\":{}},\"comment\":{}}],[\"draw_row_error\",{\"_index\":80,\"name\":{\"108\":{}},\"comment\":{}}],[\"drawtable\",{\"_index\":0,\"name\":{\"0\":{}},\"comment\":{}}],[\"drawtableerror\",{\"_index\":69,\"name\":{\"97\":{}},\"comment\":{}}],[\"drawtableoptions\",{\"_index\":17,\"name\":{\"17\":{}},\"comment\":{}}],[\"endx\",{\"_index\":34,\"name\":{\"40\":{}},\"comment\":{}}],[\"endy\",{\"_index\":35,\"name\":{\"41\":{}},\"comment\":{}}],[\"err_column_count_mismatch\",{\"_index\":76,\"name\":{\"104\":{}},\"comment\":{}}],[\"err_convert_validate\",{\"_index\":75,\"name\":{\"103\":{}},\"comment\":{}}],[\"err_invalid_distribute_mode\",{\"_index\":83,\"name\":{\"111\":{}},\"comment\":{}}],[\"err_no_space_for_headers\",{\"_index\":82,\"name\":{\"110\":{}},\"comment\":{}}],[\"err_row_count_mismatch\",{\"_index\":77,\"name\":{\"105\":{}},\"comment\":{}}],[\"err_table_height_overflow\",{\"_index\":79,\"name\":{\"107\":{}},\"comment\":{}}],[\"err_table_width_overflow\",{\"_index\":78,\"name\":{\"106\":{}},\"comment\":{}}],[\"err_wrap_header_invalid\",{\"_index\":81,\"name\":{\"109\":{}},\"comment\":{}}],[\"errorcode\",{\"_index\":74,\"name\":{\"102\":{}},\"comment\":{}}],[\"fillundefcells\",{\"_index\":29,\"name\":{\"31\":{}},\"comment\":{}}],[\"font\",{\"_index\":8,\"name\":{\"8\":{},\"21\":{},\"34\":{},\"55\":{},\"77\":{},\"94\":{}},\"comment\":{}}],[\"gencolumnwidthoptions\",{\"_index\":3,\"name\":{\"3\":{}},\"comment\":{}}],[\"generatecolumnwidths\",{\"_index\":1,\"name\":{\"1\":{}},\"comment\":{}}],[\"hasheader\",{\"_index\":15,\"name\":{\"15\":{}},\"comment\":{}}],[\"hasheaderrow\",{\"_index\":31,\"name\":{\"33\":{}},\"comment\":{}}],[\"header\",{\"_index\":24,\"name\":{\"26\":{}},\"comment\":{}}],[\"headerfont\",{\"_index\":9,\"name\":{\"9\":{}},\"comment\":{}}],[\"headerhorizontalmargin\",{\"_index\":14,\"name\":{\"14\":{}},\"comment\":{}}],[\"headeroptions\",{\"_index\":30,\"name\":{\"32\":{}},\"comment\":{}}],[\"headertextsize\",{\"_index\":10,\"name\":{\"10\":{}},\"comment\":{}}],[\"height\",{\"_index\":37,\"name\":{\"43\":{},\"85\":{}},\"comment\":{}}],[\"horizontal\",{\"_index\":54,\"name\":{\"66\":{}},\"comment\":{}}],[\"horizontalmargin\",{\"_index\":13,\"name\":{\"13\":{},\"87\":{}},\"comment\":{}}],[\"image\",{\"_index\":44,\"name\":{\"50\":{}},\"comment\":{}}],[\"imagebase\",{\"_index\":63,\"name\":{\"80\":{}},\"comment\":{}}],[\"lineheight\",{\"_index\":21,\"name\":{\"23\":{}},\"comment\":{}}],[\"link\",{\"_index\":43,\"name\":{\"49\":{}},\"comment\":{}}],[\"linkbase\",{\"_index\":66,\"name\":{\"88\":{}},\"comment\":{}}],[\"linkcolor\",{\"_index\":20,\"name\":{\"22\":{}},\"comment\":{}}],[\"overrideheights\",{\"_index\":61,\"name\":{\"73\":{}},\"comment\":{}}],[\"overridewidths\",{\"_index\":52,\"name\":{\"64\":{}},\"comment\":{}}],[\"page\",{\"_index\":68,\"name\":{\"91\":{}},\"comment\":{}}],[\"pagemargin\",{\"_index\":27,\"name\":{\"29\":{}},\"comment\":{}}],[\"pagemarginoptions\",{\"_index\":56,\"name\":{\"68\":{}},\"comment\":{}}],[\"right\",{\"_index\":58,\"name\":{\"70\":{}},\"comment\":{}}],[\"row\",{\"_index\":23,\"name\":{\"25\":{}},\"comment\":{}}],[\"rowheights\",{\"_index\":73,\"name\":{\"101\":{}},\"comment\":{}}],[\"rowoptions\",{\"_index\":59,\"name\":{\"71\":{}},\"comment\":{}}],[\"rows\",{\"_index\":39,\"name\":{\"45\":{}},\"comment\":{}}],[\"src\",{\"_index\":64,\"name\":{\"82\":{}},\"comment\":{}}],[\"tabledata\",{\"_index\":7,\"name\":{\"7\":{}},\"comment\":{}}],[\"tabledimensions\",{\"_index\":33,\"name\":{\"39\":{}},\"comment\":{}}],[\"tableobject\",{\"_index\":38,\"name\":{\"44\":{}},\"comment\":{}}],[\"text\",{\"_index\":47,\"name\":{\"53\":{},\"75\":{},\"92\":{}},\"comment\":{}}],[\"textcolor\",{\"_index\":18,\"name\":{\"19\":{},\"36\":{},\"57\":{},\"78\":{},\"96\":{}},\"comment\":{}}],[\"textsize\",{\"_index\":11,\"name\":{\"11\":{},\"18\":{},\"35\":{},\"56\":{},\"76\":{},\"95\":{}},\"comment\":{}}],[\"title\",{\"_index\":25,\"name\":{\"27\":{}},\"comment\":{}}],[\"titleoptions\",{\"_index\":62,\"name\":{\"74\":{}},\"comment\":{}}],[\"type\",{\"_index\":46,\"name\":{\"52\":{},\"81\":{},\"89\":{}},\"comment\":{}}],[\"url\",{\"_index\":67,\"name\":{\"90\":{}},\"comment\":{}}],[\"vertical\",{\"_index\":55,\"name\":{\"67\":{}},\"comment\":{}}],[\"width\",{\"_index\":36,\"name\":{\"42\":{},\"60\":{},\"84\":{}},\"comment\":{}}],[\"widthmode\",{\"_index\":51,\"name\":{\"63\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file diff --git a/docs/assets/style.css b/docs/assets/style.css index 98a4377..496e66f 100644 --- a/docs/assets/style.css +++ b/docs/assets/style.css @@ -6,36 +6,17 @@ --light-color-background-warning: #e6e600; --light-color-icon-background: var(--light-color-background); --light-color-accent: #c5c7c9; - --light-color-active-menu-item: var(--light-color-accent); --light-color-text: #222; - --light-color-text-aside: #6e6e6e; - --light-color-link: #1f70c2; - - --light-color-ts-keyword: #056bd6; - --light-color-ts-project: #b111c9; - --light-color-ts-module: var(--light-color-ts-project); - --light-color-ts-namespace: var(--light-color-ts-project); - --light-color-ts-enum: #7e6f15; - --light-color-ts-enum-member: var(--light-color-ts-enum); - --light-color-ts-variable: #4760ec; + --light-color-text-aside: #707070; + --light-color-link: #4da6ff; + --light-color-ts: #db1373; + --light-color-ts-interface: #139d2c; + --light-color-ts-enum: #9c891a; + --light-color-ts-class: #2484e5; --light-color-ts-function: #572be7; - --light-color-ts-class: #1f70c2; - --light-color-ts-interface: #108024; - --light-color-ts-constructor: var(--light-color-ts-class); - --light-color-ts-property: var(--light-color-ts-variable); - --light-color-ts-method: var(--light-color-ts-function); - --light-color-ts-call-signature: var(--light-color-ts-method); - --light-color-ts-index-signature: var(--light-color-ts-property); - --light-color-ts-constructor-signature: var(--light-color-ts-constructor); - --light-color-ts-parameter: var(--light-color-ts-variable); - /* type literal not included as links will never be generated to it */ - --light-color-ts-type-parameter: #a55c0e; - --light-color-ts-accessor: var(--light-color-ts-property); - --light-color-ts-get-signature: var(--light-color-ts-accessor); - --light-color-ts-set-signature: var(--light-color-ts-accessor); - --light-color-ts-type-alias: #d51270; - /* reference not included as links will be colored with the kind that it points to */ - + --light-color-ts-namespace: #b111c9; + --light-color-ts-private: #707070; + --light-color-ts-variable: #4d68ff; --light-external-icon: url("data:image/svg+xml;utf8,"); --light-color-scheme: light; @@ -46,36 +27,17 @@ --dark-color-warning-text: #222; --dark-color-icon-background: var(--dark-color-background-secondary); --dark-color-accent: #9096a2; - --dark-color-active-menu-item: #5d5d6a; --dark-color-text: #f5f5f5; --dark-color-text-aside: #dddddd; --dark-color-link: #00aff4; - - --dark-color-ts-keyword: #3399ff; - --dark-color-ts-project: #e358ff; - --dark-color-ts-module: var(--dark-color-ts-project); - --dark-color-ts-namespace: var(--dark-color-ts-project); - --dark-color-ts-enum: #f4d93e; - --dark-color-ts-enum-member: var(--dark-color-ts-enum); - --dark-color-ts-variable: #798dff; - --dark-color-ts-function: #a280ff; - --dark-color-ts-class: #8ac4ff; + --dark-color-ts: #ff6492; --dark-color-ts-interface: #6cff87; - --dark-color-ts-constructor: var(--dark-color-ts-class); - --dark-color-ts-property: var(--dark-color-ts-variable); - --dark-color-ts-method: var(--dark-color-ts-function); - --dark-color-ts-call-signature: var(--dark-color-ts-method); - --dark-color-ts-index-signature: var(--dark-color-ts-property); - --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); - --dark-color-ts-parameter: var(--dark-color-ts-variable); - /* type literal not included as links will never be generated to it */ - --dark-color-ts-type-parameter: #e07d13; - --dark-color-ts-accessor: var(--dark-color-ts-property); - --dark-color-ts-get-signature: var(--dark-color-ts-accessor); - --dark-color-ts-set-signature: var(--dark-color-ts-accessor); - --dark-color-ts-type-alias: #ff6492; - /* reference not included as links will be colored with the kind that it points to */ - + --dark-color-ts-enum: #f4d93e; + --dark-color-ts-class: #61b0ff; + --dark-color-ts-function: #9772ff; + --dark-color-ts-namespace: #e14dff; + --dark-color-ts-private: #e2e2e2; + --dark-color-ts-variable: #4d68ff; --dark-external-icon: url("data:image/svg+xml;utf8,"); --dark-color-scheme: dark; } @@ -88,35 +50,17 @@ --color-warning-text: var(--light-color-warning-text); --color-icon-background: var(--light-color-icon-background); --color-accent: var(--light-color-accent); - --color-active-menu-item: var(--light-color-active-menu-item); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); - - --color-ts-keyword: var(--light-color-ts-keyword); - --color-ts-module: var(--light-color-ts-module); - --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts: var(--light-color-ts); + --color-ts-interface: var(--light-color-ts-interface); --color-ts-enum: var(--light-color-ts-enum); - --color-ts-enum-member: var(--light-color-ts-enum-member); - --color-ts-variable: var(--light-color-ts-variable); - --color-ts-function: var(--light-color-ts-function); --color-ts-class: var(--light-color-ts-class); - --color-ts-interface: var(--light-color-ts-interface); - --color-ts-constructor: var(--light-color-ts-constructor); - --color-ts-property: var(--light-color-ts-property); - --color-ts-method: var(--light-color-ts-method); - --color-ts-call-signature: var(--light-color-ts-call-signature); - --color-ts-index-signature: var(--light-color-ts-index-signature); - --color-ts-constructor-signature: var( - --light-color-ts-constructor-signature - ); - --color-ts-parameter: var(--light-color-ts-parameter); - --color-ts-type-parameter: var(--light-color-ts-type-parameter); - --color-ts-accessor: var(--light-color-ts-accessor); - --color-ts-get-signature: var(--light-color-ts-get-signature); - --color-ts-set-signature: var(--light-color-ts-set-signature); - --color-ts-type-alias: var(--light-color-ts-type-alias); - + --color-ts-function: var(--light-color-ts-function); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-private: var(--light-color-ts-private); + --color-ts-variable: var(--light-color-ts-variable); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); } @@ -130,35 +74,17 @@ --color-warning-text: var(--dark-color-warning-text); --color-icon-background: var(--dark-color-icon-background); --color-accent: var(--dark-color-accent); - --color-active-menu-item: var(--dark-color-active-menu-item); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); - - --color-ts-keyword: var(--dark-color-ts-keyword); - --color-ts-module: var(--dark-color-ts-module); - --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts: var(--dark-color-ts); + --color-ts-interface: var(--dark-color-ts-interface); --color-ts-enum: var(--dark-color-ts-enum); - --color-ts-enum-member: var(--dark-color-ts-enum-member); - --color-ts-variable: var(--dark-color-ts-variable); - --color-ts-function: var(--dark-color-ts-function); --color-ts-class: var(--dark-color-ts-class); - --color-ts-interface: var(--dark-color-ts-interface); - --color-ts-constructor: var(--dark-color-ts-constructor); - --color-ts-property: var(--dark-color-ts-property); - --color-ts-method: var(--dark-color-ts-method); - --color-ts-call-signature: var(--dark-color-ts-call-signature); - --color-ts-index-signature: var(--dark-color-ts-index-signature); - --color-ts-constructor-signature: var( - --dark-color-ts-constructor-signature - ); - --color-ts-parameter: var(--dark-color-ts-parameter); - --color-ts-type-parameter: var(--dark-color-ts-type-parameter); - --color-ts-accessor: var(--dark-color-ts-accessor); - --color-ts-get-signature: var(--dark-color-ts-get-signature); - --color-ts-set-signature: var(--dark-color-ts-set-signature); - --color-ts-type-alias: var(--dark-color-ts-type-alias); - + --color-ts-function: var(--dark-color-ts-function); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-private: var(--dark-color-ts-private); + --color-ts-variable: var(--dark-color-ts-variable); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); } @@ -179,35 +105,17 @@ body { --color-warning-text: var(--light-color-warning-text); --color-icon-background: var(--light-color-icon-background); --color-accent: var(--light-color-accent); - --color-active-menu-item: var(--light-color-active-menu-item); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); - - --color-ts-keyword: var(--light-color-ts-keyword); - --color-ts-module: var(--light-color-ts-module); - --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts: var(--light-color-ts); + --color-ts-interface: var(--light-color-ts-interface); --color-ts-enum: var(--light-color-ts-enum); - --color-ts-enum-member: var(--light-color-ts-enum-member); - --color-ts-variable: var(--light-color-ts-variable); - --color-ts-function: var(--light-color-ts-function); --color-ts-class: var(--light-color-ts-class); - --color-ts-interface: var(--light-color-ts-interface); - --color-ts-constructor: var(--light-color-ts-constructor); - --color-ts-property: var(--light-color-ts-property); - --color-ts-method: var(--light-color-ts-method); - --color-ts-call-signature: var(--light-color-ts-call-signature); - --color-ts-index-signature: var(--light-color-ts-index-signature); - --color-ts-constructor-signature: var( - --light-color-ts-constructor-signature - ); - --color-ts-parameter: var(--light-color-ts-parameter); - --color-ts-type-parameter: var(--light-color-ts-type-parameter); - --color-ts-accessor: var(--light-color-ts-accessor); - --color-ts-get-signature: var(--light-color-ts-get-signature); - --color-ts-set-signature: var(--light-color-ts-set-signature); - --color-ts-type-alias: var(--light-color-ts-type-alias); - + --color-ts-function: var(--light-color-ts-function); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-private: var(--light-color-ts-private); + --color-ts-variable: var(--light-color-ts-variable); --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); } @@ -219,35 +127,17 @@ body { --color-warning-text: var(--dark-color-warning-text); --color-icon-background: var(--dark-color-icon-background); --color-accent: var(--dark-color-accent); - --color-active-menu-item: var(--dark-color-active-menu-item); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); - - --color-ts-keyword: var(--dark-color-ts-keyword); - --color-ts-module: var(--dark-color-ts-module); - --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts: var(--dark-color-ts); + --color-ts-interface: var(--dark-color-ts-interface); --color-ts-enum: var(--dark-color-ts-enum); - --color-ts-enum-member: var(--dark-color-ts-enum-member); - --color-ts-variable: var(--dark-color-ts-variable); - --color-ts-function: var(--dark-color-ts-function); --color-ts-class: var(--dark-color-ts-class); - --color-ts-interface: var(--dark-color-ts-interface); - --color-ts-constructor: var(--dark-color-ts-constructor); - --color-ts-property: var(--dark-color-ts-property); - --color-ts-method: var(--dark-color-ts-method); - --color-ts-call-signature: var(--dark-color-ts-call-signature); - --color-ts-index-signature: var(--dark-color-ts-index-signature); - --color-ts-constructor-signature: var( - --dark-color-ts-constructor-signature - ); - --color-ts-parameter: var(--dark-color-ts-parameter); - --color-ts-type-parameter: var(--dark-color-ts-type-parameter); - --color-ts-accessor: var(--dark-color-ts-accessor); - --color-ts-get-signature: var(--dark-color-ts-get-signature); - --color-ts-set-signature: var(--dark-color-ts-set-signature); - --color-ts-type-alias: var(--dark-color-ts-type-alias); - + --color-ts-function: var(--dark-color-ts-function); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-private: var(--dark-color-ts-private); + --color-ts-variable: var(--dark-color-ts-variable); --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); } @@ -266,16 +156,6 @@ h6 { line-height: 1.2; } -h1 > a:not(.link), -h2 > a:not(.link), -h3 > a:not(.link), -h4 > a:not(.link), -h5 > a:not(.link), -h6 > a:not(.link) { - text-decoration: none; - color: var(--color-text); -} - h1 { font-size: 1.875rem; margin: 0.67rem 0; @@ -310,6 +190,12 @@ h6 { text-transform: uppercase; } +pre { + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; +} + dl, menu, ol, @@ -322,10 +208,26 @@ dd { } .container { - max-width: 1700px; + max-width: 1600px; padding: 0 2rem; } +@media (min-width: 640px) { + .container { + padding: 0 4rem; + } +} +@media (min-width: 1200px) { + .container { + padding: 0 8rem; + } +} +@media (min-width: 1600px) { + .container { + padding: 0 12rem; + } +} + /* Footer */ .tsd-generator { border-top: 1px solid var(--color-accent); @@ -341,9 +243,26 @@ dd { } .container-main { + display: flex; + justify-content: space-between; + position: relative; margin: 0 auto; - /* toolbar, footer, margin */ - min-height: calc(100vh - 41px - 56px - 4rem); +} + +.col-4, +.col-8 { + box-sizing: border-box; + float: left; + padding: 2rem 1rem; +} + +.col-4 { + flex: 0 0 25%; +} +.col-8 { + flex: 1 0; + flex-wrap: wrap; + padding-left: 0; } @keyframes fade-in { @@ -386,6 +305,22 @@ dd { opacity: 0; } } +@keyframes shift-to-left { + from { + transform: translate(0, 0); + } + to { + transform: translate(-25%, 0); + } +} +@keyframes unshift-to-left { + from { + transform: translate(-25%, 0); + } + to { + transform: translate(0, 0); + } +} @keyframes pop-in-from-right { from { transform: translate(100%, 0); @@ -434,29 +369,13 @@ pre { } pre { - position: relative; - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; padding: 10px; - border: 1px solid var(--color-accent); + border: 0.1em solid var(--color-accent); } pre code { padding: 0; font-size: 100%; } -pre > button { - position: absolute; - top: 10px; - right: 10px; - opacity: 0; - transition: opacity 0.1s; - box-sizing: border-box; -} -pre:hover > button, -pre > button.visible { - opacity: 1; -} blockquote { margin: 1em 0; @@ -472,12 +391,13 @@ blockquote { padding: 0 0 0 20px; margin: 0; } +.tsd-typography h4, .tsd-typography .tsd-index-panel h3, .tsd-index-panel .tsd-typography h3, -.tsd-typography h4, .tsd-typography h5, .tsd-typography h6 { font-size: 1em; + margin: 0; } .tsd-typography h5, .tsd-typography h6 { @@ -488,18 +408,90 @@ blockquote { .tsd-typography ol { margin: 1em 0; } -.tsd-typography table { - border-collapse: collapse; - border: none; -} -.tsd-typography td, -.tsd-typography th { - padding: 6px 13px; - border: 1px solid var(--color-accent); -} -.tsd-typography thead, -.tsd-typography tr:nth-child(even) { - background-color: var(--color-background-secondary); + +@media (max-width: 1024px) { + html .col-content { + float: none; + max-width: 100%; + width: 100%; + padding-top: 3rem; + } + html .col-menu { + position: fixed !important; + overflow-y: auto; + -webkit-overflow-scrolling: touch; + z-index: 1024; + top: 0 !important; + bottom: 0 !important; + left: auto !important; + right: 0 !important; + padding: 1.5rem 1.5rem 0 0; + max-width: 25rem; + visibility: hidden; + background-color: var(--color-background); + transform: translate(100%, 0); + } + html .col-menu > *:last-child { + padding-bottom: 20px; + } + html .overlay { + content: ""; + display: block; + position: fixed; + z-index: 1023; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.75); + visibility: hidden; + } + + .to-has-menu .overlay { + animation: fade-in 0.4s; + } + + .to-has-menu :is(header, footer, .col-content) { + animation: shift-to-left 0.4s; + } + + .to-has-menu .col-menu { + animation: pop-in-from-right 0.4s; + } + + .from-has-menu .overlay { + animation: fade-out 0.4s; + } + + .from-has-menu :is(header, footer, .col-content) { + animation: unshift-to-left 0.4s; + } + + .from-has-menu .col-menu { + animation: pop-out-to-right 0.4s; + } + + .has-menu body { + overflow: hidden; + } + .has-menu .overlay { + visibility: visible; + } + .has-menu :is(header, footer, .col-content) { + transform: translate(-25%, 0); + } + .has-menu .col-menu { + visibility: visible; + transform: translate(0, 0); + display: flex; + flex-direction: column; + gap: 1.5rem; + max-height: 100vh; + padding: 1rem 2rem; + } + .has-menu .tsd-navigation { + max-height: 100%; + } } .tsd-breadcrumb { @@ -649,28 +641,6 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { font-weight: bold; } -.tsd-full-hierarchy:not(:last-child) { - margin-bottom: 1em; - padding-bottom: 1em; - border-bottom: 1px solid var(--color-accent); -} -.tsd-full-hierarchy, -.tsd-full-hierarchy ul { - list-style: none; - margin: 0; - padding: 0; -} -.tsd-full-hierarchy ul { - padding-left: 1.5rem; -} -.tsd-full-hierarchy a { - padding: 0.25rem 0 !important; - font-size: 1rem; - display: inline-flex; - align-items: center; - color: var(--color-text); -} - .tsd-panel-group.tsd-index-group { margin-bottom: 0; } @@ -702,6 +672,43 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { -o-page-break-inside: avoid; page-break-inside: avoid; } +.tsd-index-panel a, +.tsd-index-panel a.tsd-parent-kind-module { + color: var(--color-ts); +} +.tsd-index-panel a.tsd-parent-kind-interface { + color: var(--color-ts-interface); +} +.tsd-index-panel a.tsd-parent-kind-enum { + color: var(--color-ts-enum); +} +.tsd-index-panel a.tsd-parent-kind-class { + color: var(--color-ts-class); +} +.tsd-index-panel a.tsd-kind-module { + color: var(--color-ts-namespace); +} +.tsd-index-panel a.tsd-kind-interface { + color: var(--color-ts-interface); +} +.tsd-index-panel a.tsd-kind-enum { + color: var(--color-ts-enum); +} +.tsd-index-panel a.tsd-kind-class { + color: var(--color-ts-class); +} +.tsd-index-panel a.tsd-kind-function { + color: var(--color-ts-function); +} +.tsd-index-panel a.tsd-kind-namespace { + color: var(--color-ts-namespace); +} +.tsd-index-panel a.tsd-kind-variable { + color: var(--color-ts-variable); +} +.tsd-index-panel a.tsd-is-private { + color: var(--color-ts-private); +} .tsd-flag { display: inline-block; @@ -716,7 +723,7 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { } .tsd-anchor { - position: relative; + position: absolute; top: -100px; } @@ -730,62 +737,108 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { margin-bottom: 0; border-bottom: none; } - -.tsd-navigation.settings { - margin: 1rem 0; +.tsd-member [data-tsd-kind] { + color: var(--color-ts); } -.tsd-navigation > a, -.tsd-navigation .tsd-accordion-summary { - width: calc(100% - 0.25rem); - display: flex; - align-items: center; +.tsd-member [data-tsd-kind="Interface"] { + color: var(--color-ts-interface); } -.tsd-navigation a, -.tsd-navigation summary > span, -.tsd-page-navigation a { - display: flex; - width: calc(100% - 0.25rem); - align-items: center; - padding: 0.25rem; +.tsd-member [data-tsd-kind="Enum"] { + color: var(--color-ts-enum); +} +.tsd-member [data-tsd-kind="Class"] { + color: var(--color-ts-class); +} +.tsd-member [data-tsd-kind="Private"] { + color: var(--color-ts-private); +} + +.tsd-navigation a { + display: block; + margin: 0.4rem 0; + border-left: 2px solid transparent; color: var(--color-text); text-decoration: none; - box-sizing: border-box; -} -.tsd-navigation a.current, -.tsd-page-navigation a.current { - background: var(--color-active-menu-item); + transition: border-left-color 0.1s; } -.tsd-navigation a:hover, -.tsd-page-navigation a:hover { +.tsd-navigation a:hover { text-decoration: underline; } -.tsd-navigation ul, -.tsd-page-navigation ul { - margin-top: 0; - margin-bottom: 0; +.tsd-navigation ul { + margin: 0; padding: 0; list-style: none; } -.tsd-navigation li, -.tsd-page-navigation li { +.tsd-navigation li { padding: 0; - max-width: 100%; } -.tsd-nested-navigation { - margin-left: 3rem; + +.tsd-navigation.primary .tsd-accordion-details > ul { + margin-top: 0.75rem; } -.tsd-nested-navigation > li > details { - margin-left: -1.5rem; +.tsd-navigation.primary a { + padding: 0.75rem 0.5rem; + margin: 0; } -.tsd-small-nested-navigation { +.tsd-navigation.primary ul li a { + margin-left: 0.5rem; +} +.tsd-navigation.primary ul li li a { margin-left: 1.5rem; } -.tsd-small-nested-navigation > li > details { - margin-left: -1.5rem; +.tsd-navigation.primary ul li li li a { + margin-left: 2.5rem; +} +.tsd-navigation.primary ul li li li li a { + margin-left: 3.5rem; +} +.tsd-navigation.primary ul li li li li li a { + margin-left: 4.5rem; +} +.tsd-navigation.primary ul li li li li li li a { + margin-left: 5.5rem; +} +.tsd-navigation.primary li.current > a { + border-left: 0.15rem var(--color-text) solid; +} +.tsd-navigation.primary li.selected > a { + font-weight: bold; + border-left: 0.2rem var(--color-text) solid; +} +.tsd-navigation.primary ul li a:hover { + border-left: 0.2rem var(--color-text-aside) solid; +} +.tsd-navigation.primary li.globals + li > span, +.tsd-navigation.primary li.globals + li > a { + padding-top: 20px; } -.tsd-page-navigation ul { - padding-left: 1.75rem; +.tsd-navigation.secondary.tsd-navigation--toolbar-hide { + max-height: calc(100vh - 1rem); + top: 0.5rem; +} +.tsd-navigation.secondary > ul { + display: inline; + padding-right: 0.5rem; + transition: opacity 0.2s; +} +.tsd-navigation.secondary ul li a { + padding-left: 0; +} +.tsd-navigation.secondary ul li li a { + padding-left: 1.1rem; +} +.tsd-navigation.secondary ul li li li a { + padding-left: 2.2rem; +} +.tsd-navigation.secondary ul li li li li a { + padding-left: 3.3rem; +} +.tsd-navigation.secondary ul li li li li li a { + padding-left: 4.4rem; +} +.tsd-navigation.secondary ul li li li li li li a { + padding-left: 5.5rem; } #tsd-sidebar-links a { @@ -798,31 +851,29 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { } a.tsd-index-link { - padding: 0.25rem 0 !important; + margin: 0.25rem 0; font-size: 1rem; line-height: 1.25rem; display: inline-flex; align-items: center; - color: var(--color-text); } -.tsd-accordion-summary { - list-style-type: none; /* hide marker on non-safari */ - outline: none; /* broken on safari, so just hide it */ -} -.tsd-accordion-summary::-webkit-details-marker { - display: none; /* hide marker on safari */ -} -.tsd-accordion-summary, -.tsd-accordion-summary a { +.tsd-accordion-summary > h1, +.tsd-accordion-summary > h2, +.tsd-accordion-summary > h3, +.tsd-accordion-summary > h4, +.tsd-accordion-summary > h5 { + display: inline-flex; + align-items: center; + vertical-align: middle; + margin-bottom: 0; user-select: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; - - cursor: pointer; } -.tsd-accordion-summary a { - width: calc(100% - 1.5rem); +.tsd-accordion-summary { + display: block; + cursor: pointer; } .tsd-accordion-summary > * { margin-top: 0; @@ -830,8 +881,11 @@ a.tsd-index-link { padding-top: 0; padding-bottom: 0; } -.tsd-index-accordion .tsd-accordion-summary > svg { - margin-left: 0.25rem; +.tsd-accordion-summary::-webkit-details-marker { + display: none; +} +.tsd-index-accordion .tsd-accordion-summary svg { + margin-right: 0.25rem; } .tsd-index-content > :not(:first-child) { margin-top: 0.75rem; @@ -856,6 +910,34 @@ a.tsd-index-link { margin-right: 0.8rem; } +@media (min-width: 1025px) { + .col-content { + margin: 2rem auto; + } + + .menu-sticky-wrap { + position: sticky; + height: calc(100vh - 2rem); + top: 4rem; + right: 0; + padding: 0 1.5rem; + padding-top: 1rem; + margin-top: 3rem; + transition: 0.3s ease-in-out; + transition-property: top, padding-top, padding, height; + overflow-y: auto; + } + .col-menu { + border-left: 1px solid var(--color-accent); + } + .col-menu--hide { + top: 1rem; + } + .col-menu .tsd-navigation:not(:last-child) { + padding-bottom: 1.75rem; + } +} + .tsd-panel { margin-bottom: 2.5rem; } @@ -936,9 +1018,8 @@ a.tsd-index-link { box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); } #tsd-search .results li { + padding: 0 10px; background-color: var(--color-background); - line-height: initial; - padding: 4px; } #tsd-search .results li:nth-child(even) { background-color: var(--color-background-secondary); @@ -946,15 +1027,12 @@ a.tsd-index-link { #tsd-search .results li.state { display: none; } -#tsd-search .results li.current:not(.no-results), -#tsd-search .results li:hover:not(.no-results) { +#tsd-search .results li.current, +#tsd-search .results li:hover { background-color: var(--color-accent); } #tsd-search .results a { - display: flex; - align-items: center; - padding: 0.25rem; - box-sizing: border-box; + display: block; } #tsd-search .results a:before { top: 10px; @@ -1010,11 +1088,6 @@ a.tsd-index-link { overflow-x: auto; } -.tsd-signature-keyword { - color: var(--color-ts-keyword); - font-weight: normal; -} - .tsd-signature-symbol { color: var(--color-text-aside); font-weight: normal; @@ -1070,7 +1143,7 @@ ul.tsd-type-parameter-list h5 { } .tsd-page-toolbar { - position: sticky; + position: fixed; z-index: 1; top: 0; left: 0; @@ -1110,14 +1183,16 @@ ul.tsd-type-parameter-list h5 { padding: 12px 0; } +.tsd-page-toolbar--hide { + transform: translateY(-100%); +} + .tsd-widget { display: inline-block; overflow: hidden; opacity: 0.8; height: 40px; - transition: - opacity 0.1s, - background-color 0.2s; + transition: opacity 0.1s, background-color 0.2s; vertical-align: bottom; cursor: pointer; } @@ -1139,6 +1214,12 @@ ul.tsd-type-parameter-list h5 { .tsd-widget.menu { display: none; } +@media (max-width: 1024px) { + .tsd-widget.options, + .tsd-widget.menu { + display: inline-block; + } +} input[type="checkbox"] + .tsd-widget:before { background-position: -120px 0; } @@ -1169,7 +1250,7 @@ img { } .deprecated { - text-decoration: line-through !important; + text-decoration: line-through; } .warning { @@ -1178,78 +1259,6 @@ img { background: var(--color-background-warning); } -.tsd-kind-project { - color: var(--color-ts-project); -} -.tsd-kind-module { - color: var(--color-ts-module); -} -.tsd-kind-namespace { - color: var(--color-ts-namespace); -} -.tsd-kind-enum { - color: var(--color-ts-enum); -} -.tsd-kind-enum-member { - color: var(--color-ts-enum-member); -} -.tsd-kind-variable { - color: var(--color-ts-variable); -} -.tsd-kind-function { - color: var(--color-ts-function); -} -.tsd-kind-class { - color: var(--color-ts-class); -} -.tsd-kind-interface { - color: var(--color-ts-interface); -} -.tsd-kind-constructor { - color: var(--color-ts-constructor); -} -.tsd-kind-property { - color: var(--color-ts-property); -} -.tsd-kind-method { - color: var(--color-ts-method); -} -.tsd-kind-call-signature { - color: var(--color-ts-call-signature); -} -.tsd-kind-index-signature { - color: var(--color-ts-index-signature); -} -.tsd-kind-constructor-signature { - color: var(--color-ts-constructor-signature); -} -.tsd-kind-parameter { - color: var(--color-ts-parameter); -} -.tsd-kind-type-literal { - color: var(--color-ts-type-literal); -} -.tsd-kind-type-parameter { - color: var(--color-ts-type-parameter); -} -.tsd-kind-accessor { - color: var(--color-ts-accessor); -} -.tsd-kind-get-signature { - color: var(--color-ts-get-signature); -} -.tsd-kind-set-signature { - color: var(--color-ts-set-signature); -} -.tsd-kind-type-alias { - color: var(--color-ts-type-alias); -} - -/* if we have a kind icon, don't color the text by kind */ -.tsd-kind-icon ~ span { - color: var(--color-text); -} - * { scrollbar-width: thin; scrollbar-color: var(--color-accent) var(--color-icon-background); @@ -1268,147 +1277,3 @@ img { border-radius: 999rem; border: 0.25rem solid var(--color-icon-background); } - -/* mobile */ -@media (max-width: 769px) { - .tsd-widget.options, - .tsd-widget.menu { - display: inline-block; - } - - .container-main { - display: flex; - } - html .col-content { - float: none; - max-width: 100%; - width: 100%; - } - html .col-sidebar { - position: fixed !important; - overflow-y: auto; - -webkit-overflow-scrolling: touch; - z-index: 1024; - top: 0 !important; - bottom: 0 !important; - left: auto !important; - right: 0 !important; - padding: 1.5rem 1.5rem 0 0; - width: 75vw; - visibility: hidden; - background-color: var(--color-background); - transform: translate(100%, 0); - } - html .col-sidebar > *:last-child { - padding-bottom: 20px; - } - html .overlay { - content: ""; - display: block; - position: fixed; - z-index: 1023; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: rgba(0, 0, 0, 0.75); - visibility: hidden; - } - - .to-has-menu .overlay { - animation: fade-in 0.4s; - } - - .to-has-menu .col-sidebar { - animation: pop-in-from-right 0.4s; - } - - .from-has-menu .overlay { - animation: fade-out 0.4s; - } - - .from-has-menu .col-sidebar { - animation: pop-out-to-right 0.4s; - } - - .has-menu body { - overflow: hidden; - } - .has-menu .overlay { - visibility: visible; - } - .has-menu .col-sidebar { - visibility: visible; - transform: translate(0, 0); - display: flex; - flex-direction: column; - gap: 1.5rem; - max-height: 100vh; - padding: 1rem 2rem; - } - .has-menu .tsd-navigation { - max-height: 100%; - } -} - -/* one sidebar */ -@media (min-width: 770px) { - .container-main { - display: grid; - grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); - grid-template-areas: "sidebar content"; - margin: 2rem auto; - } - - .col-sidebar { - grid-area: sidebar; - } - .col-content { - grid-area: content; - padding: 0 1rem; - } -} -@media (min-width: 770px) and (max-width: 1399px) { - .col-sidebar { - max-height: calc(100vh - 2rem - 42px); - overflow: auto; - position: sticky; - top: 42px; - padding-top: 1rem; - } - .site-menu { - margin-top: 1rem; - } -} - -/* two sidebars */ -@media (min-width: 1200px) { - .container-main { - grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 20rem); - grid-template-areas: "sidebar content toc"; - } - - .col-sidebar { - display: contents; - } - - .page-menu { - grid-area: toc; - padding-left: 1rem; - } - .site-menu { - grid-area: sidebar; - } - - .site-menu { - margin-top: 1rem 0; - } - - .page-menu, - .site-menu { - max-height: calc(100vh - 2rem - 42px); - overflow: auto; - position: sticky; - top: 42px; - } -} diff --git a/docs/classes/DrawTableError.html b/docs/classes/DrawTableError.html index c469557..bc5ff93 100644 --- a/docs/classes/DrawTableError.html +++ b/docs/classes/DrawTableError.html @@ -1,16 +1,195 @@ -DrawTableError | pdf-lib-draw-table-beta

Hierarchy

  • Error
    • DrawTableError

Constructors

Properties

code: string
dimensions?: Partial<TableDimensions>
message: string
name: string
rowHeights?: number[]
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

-

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    -

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc

\ No newline at end of file +DrawTableError | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Class DrawTableError

+
+

Hierarchy

+
    +
  • Error +
      +
    • DrawTableError
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
code: ErrorCode
+
+ +
dimensions?: Partial<TableDimensions>
+
+ +
message: string
+
+ +
name: string
+
+ +
rowHeights?: number[]
+
+ +
stack?: string
+
+ +
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)
+
+

Type declaration

+
+
+ +
stackTraceLimit: number
+
+

Methods

+
+ +
    + +
  • +

    Create .stack property on a target object

    +
    +
    +

    Parameters

    +
      +
    • +
      targetObject: object
    • +
    • +
      Optional constructorOpt: Function
    +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/enums/ErrorCode.html b/docs/enums/ErrorCode.html new file mode 100644 index 0000000..8e9746d --- /dev/null +++ b/docs/enums/ErrorCode.html @@ -0,0 +1,123 @@ + + + +ErrorCode | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Enumeration ErrorCode

+
+
+
+ +
+
+

Enumeration Members

+
+ +
DRAW_ROW_ERROR: 5
+
+ +
ERR_COLUMN_COUNT_MISMATCH: 1
+
+ +
ERR_CONVERT_VALIDATE: 0
+
+ +
ERR_INVALID_DISTRIBUTE_MODE: 8
+
+ +
ERR_NO_SPACE_FOR_HEADERS: 7
+
+ +
ERR_ROW_COUNT_MISMATCH: 2
+
+ +
ERR_TABLE_HEIGHT_OVERFLOW: 4
+
+ +
ERR_TABLE_WIDTH_OVERFLOW: 3
+
+ +
ERR_WRAP_HEADER_INVALID: 6
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/functions/calcTableHeight.html b/docs/functions/calcTableHeight.html index 86e4c2b..1442f25 100644 --- a/docs/functions/calcTableHeight.html +++ b/docs/functions/calcTableHeight.html @@ -1,19 +1,142 @@ -calcTableHeight | pdf-lib-draw-table-beta
  • Calculates the total height of a table and the height of each row. +calcTableHeight | pdf-lib-draw-table-beta

    +
    + +
    +
    +
    +
    + +

    Function calcTableHeight

    +
    +
      + +
    • +

      Calculates the total height of a table and the height of each row. If overrideHeights are provided, it uses them to calculate the total height instead.

      -

      Parameters

      • table: CellContent[][]

        The table data as a 2D array of cell contents.

        -
      • columnWidths: number[]

        The widths of each column in the table.

        -
      • font: default

        The default font for table content.

        -
      • textSize: number

        The default font size for table content.

        -
      • lineHeight: number

        The default line height for table content.

        -
      • hasHeader: boolean

        Indicates whether the table has a header row.

        -
      • headerFont: default

        The font for the header row.

        -
      • headerTextSize: number

        The font size for the header row.

        -
      • headerLineHeight: number

        The line height for the header row.

        -
      • horizontalWrapMargin: number

        The horizontal margin for wrapping text in cells.

        -
      • verticalMargin: number

        The vertical margin for cells.

        -
      • borderMargin: number

        The margin for the border of the table.

        -
      • Optional tableTitle: string

        The optional title of the table.

        -
      • Optional tableTitleTextSize: number

        The optional font size for the table title.

        -
      • Optional overrideHeights: number[]

        Optional array of heights to override the calculated row heights.

        -

      Returns Promise<{
          rowHeights: number[];
          totalHeight: number;
      }>

      An object containing the total height of the table and an array of heights for each row.

      -

    Generated using TypeDoc

    \ No newline at end of file + +

    Returns

    An object containing the total height of the table and an array of heights for each row.

    +
    +
    +

    Parameters

    +
      +
    • +
      table: CellContent[][]
      +

      The table data as a 2D array of cell contents.

      +
    • +
    • +
      columnWidths: number[]
      +

      The widths of each column in the table.

      +
    • +
    • +
      font: default
      +

      The default font for table content.

      +
    • +
    • +
      textSize: number
      +

      The default font size for table content.

      +
    • +
    • +
      lineHeight: number
      +

      The default line height for table content.

      +
    • +
    • +
      hasHeader: boolean
      +

      Indicates whether the table has a header row.

      +
    • +
    • +
      headerFont: default
      +

      The font for the header row.

      +
    • +
    • +
      headerTextSize: number
      +

      The font size for the header row.

      +
    • +
    • +
      headerLineHeight: number
      +

      The line height for the header row.

      +
    • +
    • +
      horizontalWrapMargin: number
      +

      The horizontal margin for wrapping text in cells.

      +
    • +
    • +
      verticalMargin: number
      +

      The vertical margin for cells.

      +
    • +
    • +
      borderMargin: number
      +

      The margin for the border of the table.

      +
    • +
    • +
      Optional tableTitle: string
      +

      The optional title of the table.

      +
    • +
    • +
      Optional tableTitleTextSize: number
      +

      The optional font size for the table title.

      +
    • +
    • +
      Optional overrideHeights: number[]
      +

      Optional array of heights to override the calculated row heights.

      +
    +

    Returns Promise<{
        rowHeights: number[];
        totalHeight: number;
    }>

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/functions/drawTable.html b/docs/functions/drawTable.html index 649c6db..8b27882 100644 --- a/docs/functions/drawTable.html +++ b/docs/functions/drawTable.html @@ -1,11 +1,133 @@ -drawTable | pdf-lib-draw-table-beta
+
+

Parameters

+
    +
  • +
    doc: default
    +

    PDF document to draw in

    +
  • +
  • +
    page: default
    +

    Page to draw table on

    +
  • +
  • +
    table: CellContent[][] | TableObject
    +

    2D array of string data representing the table

    +
  • +
  • +
    startX: number
    +

    Starting X coordinate for the table

    +
  • +
  • +
    startY: number
    +

    Starting Y coordinate for the table

    +
  • +
  • +
    Optional options: TableOptionsDeepPartial<DrawTableOptions>
    +

    Drawing options for the table, including:

    +
+

Returns Promise<TableDimensions>

+ +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/functions/generateColumnWidths.html b/docs/functions/generateColumnWidths.html index 6622f55..8cbc077 100644 --- a/docs/functions/generateColumnWidths.html +++ b/docs/functions/generateColumnWidths.html @@ -1,6 +1,87 @@ -generateColumnWidths | pdf-lib-draw-table-beta

Function generateColumnWidths

+
+

Parameters

+
+

Returns number[]

+ +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 1348117..e830e9a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,29 +1,109 @@ -pdf-lib-draw-table-beta

pdf-lib-draw-table-beta

Beta - pdf-lib-draw-table

codecovTests +pdf-lib-draw-table-beta

+
+ +
+
+
+
+

pdf-lib-draw-table-beta

+
+ +

Beta - pdf-lib-draw-table

+
+

codecovTests TypeScript MIT License

-

A library for drawing tables in PDFs using pdf-lib.

Table of Contents

+ + +

A library for drawing tables in PDFs using pdf-lib.

+
+

Table of Contents

-

Installation

npm install pdf-lib-draw-table-beta
-
+ + +

Installation

+
+
npm install pdf-lib-draw-table-beta
+

If you don't already have pdf-lib then

-
npm install pdf-lib pdf-lib-draw-table
-
-

Example

This is a very simple example (server side as we are using fs). Exactly the same code (minus fs!) will also work client side for example in a react component. The options are fairly extensive for formatting and styling, we just show a couple here. You can also pass us a JSON table if you prefer, either that or array as below is fine. Either can contain any of the following within each cell: +

npm install pdf-lib pdf-lib-draw-table
+
+ + +

Example

+
+

This is a very simple example (server side as we are using fs). Exactly the same code (minus fs!) will also work client side for example in a react component. The options are fairly extensive for formatting and styling, we just show a couple here. You can also pass us a JSON table if you prefer, either that or array as below is fine. Either can contain any of the following within each cell: string - As in the example below. This is drawn as wrapped text, no word splitting. Image, Link, CustomSyledText OR AN ARRAY OF ANY COMBO OF THE ABOVE If you provide an array we automatically put each item on its own line, as such if you need to manually new line text, this is a way of doing that.

-
import { PDFDocument } from 'pdf-lib';
import { drawTable } from 'pdf-lib-draw-table';
import fs from 'fs';

(async () => {
// Create a new PDFDocument
const pdfDoc = await PDFDocument.create();

// Add a new page
const page = pdfDoc.addPage([600, 800]);

// Define the table data
const tableData = [
['Name', 'Age', 'City'],
['Alice', '24', 'New York'],
['Bob', '30', 'San Francisco'],
['Charlie', '22', 'Los Angeles'],
];

// Set the starting X and Y coordinates for the table
const startX = 50;
const startY = 750;

// Set the table options
const options = {
header: {
hasHeaderRow: true,
backgroundColor: rgb(0.9, 0.9, 0.9),
},
};

try {
// Draw the table
const tableDimensions = await drawTable(pdfDoc, page, tableData, startX, startY, options);

console.log('Table dimensions:', tableDimensions);

// Serialize the PDF to bytes and write to a file
const pdfBytes = await pdfDoc.save();
fs.writeFileSync('table-example.pdf', pdfBytes);
} catch (error) {
console.error('Error drawing table:', error);
}
})(); -
+
import { PDFDocument } from 'pdf-lib';
import { drawTable } from 'pdf-lib-draw-table';
import fs from 'fs';

(async () => {
// Create a new PDFDocument
const pdfDoc = await PDFDocument.create();

// Add a new page
const page = pdfDoc.addPage([600, 800]);

// Define the table data
const tableData = [
['Name', 'Age', 'City'],
['Alice', '24', 'New York'],
['Bob', '30', 'San Francisco'],
['Charlie', '22', 'Los Angeles'],
];

// Set the starting X and Y coordinates for the table
const startX = 50;
const startY = 750;

// Set the table options
const options = {
header: {
hasHeaderRow: true,
backgroundColor: rgb(0.9, 0.9, 0.9),
},
};

try {
// Draw the table
const tableDimensions = await drawTable(pdfDoc, page, tableData, startX, startY, options);

console.log('Table dimensions:', tableDimensions);

// Serialize the PDF to bytes and write to a file
const pdfBytes = await pdfDoc.save();
fs.writeFileSync('table-example.pdf', pdfBytes);
} catch (error) {
console.error('Error drawing table:', error);
}
})(); +

Massive thanks to PDF lib for creating a powerful PDF manipulation library.

Also, big thanks to Typedoc for providing the amazing documentation generator tool that makes /docs: https://github.com/TypeStrong/typedoc

-

Generated using TypeDoc

\ No newline at end of file +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/BorderOptions.html b/docs/interfaces/BorderOptions.html index 9706c00..1771e41 100644 --- a/docs/interfaces/BorderOptions.html +++ b/docs/interfaces/BorderOptions.html @@ -1,3 +1,75 @@ -BorderOptions | pdf-lib-draw-table-beta

Generated using TypeDoc

\ No newline at end of file +BorderOptions | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Interface BorderOptions

+
+

Hierarchy

+
    +
  • BorderOptions
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
color: Color
+
+ +
width: number
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/ContentMarginOptions.html b/docs/interfaces/ContentMarginOptions.html index 7a6aa93..c809598 100644 --- a/docs/interfaces/ContentMarginOptions.html +++ b/docs/interfaces/ContentMarginOptions.html @@ -1,3 +1,75 @@ -ContentMarginOptions | pdf-lib-draw-table-beta

Generated using TypeDoc

\ No newline at end of file +ContentMarginOptions | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Interface ContentMarginOptions

+
+

Hierarchy

+
    +
  • ContentMarginOptions
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
horizontal: number
+
+ +
vertical: number
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/CustomStyledText.html b/docs/interfaces/CustomStyledText.html index 73aafd5..462fa03 100644 --- a/docs/interfaces/CustomStyledText.html +++ b/docs/interfaces/CustomStyledText.html @@ -1,7 +1,103 @@ -CustomStyledText | pdf-lib-draw-table-beta

Interface CustomStyledText

interface CustomStyledText {
    alignment?: "left" | "center" | "right";
    font?: default;
    text: string;
    textColor?: Grayscale | RGB | CMYK;
    textSize?: number;
    type: "text";
}

Properties

alignment?: "left" | "center" | "right"
font?: default
text: string
textColor?: Grayscale | RGB | CMYK
textSize?: number
type: "text"

Generated using TypeDoc

\ No newline at end of file +CustomStyledText | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Interface CustomStyledText

+
+

Hierarchy

+
    +
  • CustomStyledText
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
alignment?: Alignment
+
+ +
font?: default
+
+ +
text: string
+
+ +
textColor?: Color
+
+ +
textSize?: number
+
+ +
type: "text"
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/DrawTableOptions.html b/docs/interfaces/DrawTableOptions.html index 742da60..b5c27ed 100644 --- a/docs/interfaces/DrawTableOptions.html +++ b/docs/interfaces/DrawTableOptions.html @@ -1,15 +1,159 @@ -DrawTableOptions | pdf-lib-draw-table-beta

Interface DrawTableOptions

interface DrawTableOptions {
    border: BorderOptions;
    column: ColumnOptions;
    contentAlignment: Alignment;
    contentMargin: ContentMarginOptions;
    fillUndefCells: boolean;
    font: default;
    header: HeaderOptions;
    lineHeight: number;
    linkColor: Color;
    pageMargin: PageMarginOptions;
    row: RowOptions;
    textColor: Color;
    textSize: number;
    title: TitleOptions;
}

Properties

contentAlignment: Alignment
contentMargin: ContentMarginOptions
fillUndefCells: boolean
font: default
lineHeight: number
linkColor: Color
pageMargin: PageMarginOptions
textColor: Color
textSize: number

Generated using TypeDoc

\ No newline at end of file +DrawTableOptions | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Interface DrawTableOptions

+
+

Hierarchy

+
    +
  • DrawTableOptions
+
+
+
+ +
+
+

Properties

+
+ +
+
+ +
+
+ +
contentAlignment: Alignment
+
+ +
contentMargin: ContentMarginOptions
+
+ +
fillUndefCells: boolean
+
+ +
font: default
+
+ +
+
+ +
lineHeight: number
+
+ +
linkColor: Color
+
+ +
pageMargin: PageMarginOptions
+
+ +
+
+ +
textColor: Color
+
+ +
textSize: number
+
+ +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/HeaderOptions.html b/docs/interfaces/HeaderOptions.html index 9f37275..8273018 100644 --- a/docs/interfaces/HeaderOptions.html +++ b/docs/interfaces/HeaderOptions.html @@ -1,7 +1,103 @@ -HeaderOptions | pdf-lib-draw-table-beta
interface HeaderOptions {
    backgroundColor: Color;
    contentAlignment: Alignment;
    font: default;
    hasHeaderRow: boolean;
    textColor: Color;
    textSize: number;
}

Properties

backgroundColor: Color
contentAlignment: Alignment
font: default
hasHeaderRow: boolean
textColor: Color
textSize: number

Generated using TypeDoc

\ No newline at end of file +HeaderOptions | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Interface HeaderOptions

+
+

Hierarchy

+
    +
  • HeaderOptions
+
+
+
+ +
+
+

Properties

+
+ +
backgroundColor: Color
+
+ +
contentAlignment: Alignment
+
+ +
font: default
+
+ +
hasHeaderRow: boolean
+
+ +
textColor: Color
+
+ +
textSize: number
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/ImageBase.html b/docs/interfaces/ImageBase.html index 2b35168..5852240 100644 --- a/docs/interfaces/ImageBase.html +++ b/docs/interfaces/ImageBase.html @@ -1,8 +1,110 @@ -ImageBase | pdf-lib-draw-table-beta
interface ImageBase {
    alignment?: "left" | "center" | "right";
    data?: Uint8Array;
    height: number;
    horizontalMargin?: number;
    src?: string;
    type: "image";
    width: number;
}

Properties

alignment?: "left" | "center" | "right"
data?: Uint8Array
height: number
horizontalMargin?: number
src?: string
type: "image"
width: number

Generated using TypeDoc

\ No newline at end of file +ImageBase | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Interface ImageBase

+
+

Hierarchy

+
    +
  • ImageBase
+
+
+
+ +
+
+

Properties

+
+ +
alignment?: Alignment
+
+ +
data?: Uint8Array
+
+ +
height: number
+
+ +
horizontalMargin?: number
+
+ +
src?: string
+
+ +
type: "image"
+
+ +
width: number
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/LinkBase.html b/docs/interfaces/LinkBase.html index 84770d4..1f8a527 100644 --- a/docs/interfaces/LinkBase.html +++ b/docs/interfaces/LinkBase.html @@ -1,9 +1,117 @@ -LinkBase | pdf-lib-draw-table-beta
interface LinkBase {
    alignment?: "left" | "center" | "right";
    font?: default;
    page?: number;
    text: string;
    textColor?: Grayscale | RGB | CMYK;
    textSize?: number;
    type: "link";
    url?: string;
}

Properties

alignment?: "left" | "center" | "right"
font?: default
page?: number
text: string
textColor?: Grayscale | RGB | CMYK
textSize?: number
type: "link"
url?: string

Generated using TypeDoc

\ No newline at end of file +LinkBase | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Interface LinkBase

+
+

Hierarchy

+
    +
  • LinkBase
+
+
+
+ +
+
+

Properties

+
+ +
alignment?: Alignment
+
+ +
font?: default
+
+ +
page?: number
+
+ +
text: string
+
+ +
textColor?: Color
+
+ +
textSize?: number
+
+ +
type: "link"
+
+ +
url?: string
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/PageMarginOptions.html b/docs/interfaces/PageMarginOptions.html index 6283cf1..1e0d586 100644 --- a/docs/interfaces/PageMarginOptions.html +++ b/docs/interfaces/PageMarginOptions.html @@ -1,3 +1,75 @@ -PageMarginOptions | pdf-lib-draw-table-beta

Generated using TypeDoc

\ No newline at end of file +PageMarginOptions | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Interface PageMarginOptions

+
+

Hierarchy

+
    +
  • PageMarginOptions
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
bottom: number
+
+ +
right: number
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/RowOptions.html b/docs/interfaces/RowOptions.html index fde8555..963c0eb 100644 --- a/docs/interfaces/RowOptions.html +++ b/docs/interfaces/RowOptions.html @@ -1,3 +1,75 @@ -RowOptions | pdf-lib-draw-table-beta
interface RowOptions {
    backgroundColors: (undefined | Grayscale | RGB | CMYK)[];
    overrideHeights: number[];
}

Properties

backgroundColors: (undefined | Grayscale | RGB | CMYK)[]
overrideHeights: number[]

Generated using TypeDoc

\ No newline at end of file +RowOptions | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Interface RowOptions

+
+

Hierarchy

+
    +
  • RowOptions
+
+
+
+ +
+
+

Properties

+
+ +
backgroundColors: (undefined | Color)[]
+
+ +
overrideHeights: number[]
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/TableDimensions.html b/docs/interfaces/TableDimensions.html index 79d7a1f..c8fccab 100644 --- a/docs/interfaces/TableDimensions.html +++ b/docs/interfaces/TableDimensions.html @@ -1,5 +1,89 @@ -TableDimensions | pdf-lib-draw-table-beta
interface TableDimensions {
    endX: number;
    endY: number;
    height: number;
    width: number;
}

Properties

Properties

endX: number
endY: number
height: number
width: number

Generated using TypeDoc

\ No newline at end of file +TableDimensions | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Interface TableDimensions

+
+

Hierarchy

+
    +
  • TableDimensions
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
endX: number
+
+ +
endY: number
+
+ +
height: number
+
+ +
width: number
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/TableObject.html b/docs/interfaces/TableObject.html index 05cf629..3ca5afb 100644 --- a/docs/interfaces/TableObject.html +++ b/docs/interfaces/TableObject.html @@ -1,3 +1,75 @@ -TableObject | pdf-lib-draw-table-beta
interface TableObject {
    columns: {
        key: string;
        title: string;
    }[];
    rows: {
        [key: string]: CellElement[] | undefined;
    }[];
}

Properties

Properties

columns: {
    key: string;
    title: string;
}[]

Type declaration

  • key: string
  • title: string
rows: {
    [key: string]: CellElement[] | undefined;
}[]

Type declaration

Generated using TypeDoc

\ No newline at end of file +TableObject | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Interface TableObject

+
+

Hierarchy

+
    +
  • TableObject
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
columns: {
    key: string;
    title: string;
}[]
+
+ +
rows: {
    [key: string]: CellElement[] | undefined;
}[]
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/TitleOptions.html b/docs/interfaces/TitleOptions.html index 64c9745..72e1ed1 100644 --- a/docs/interfaces/TitleOptions.html +++ b/docs/interfaces/TitleOptions.html @@ -1,6 +1,96 @@ -TitleOptions | pdf-lib-draw-table-beta

Generated using TypeDoc

\ No newline at end of file +TitleOptions | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Interface TitleOptions

+
+

Hierarchy

+
    +
  • TitleOptions
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
alignment: Alignment
+
+ +
font: default
+
+ +
text: string
+
+ +
textColor: Color
+
+ +
textSize: number
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/modules.html b/docs/modules.html index 40a530e..a2ded78 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -1,24 +1,106 @@ -pdf-lib-draw-table-beta

Generated using TypeDoc

\ No newline at end of file +pdf-lib-draw-table-beta
+
+ +
+ +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/types/Alignment.html b/docs/types/Alignment.html index e8f3f4b..ca176dd 100644 --- a/docs/types/Alignment.html +++ b/docs/types/Alignment.html @@ -1 +1,70 @@ -Alignment | pdf-lib-draw-table-beta

Generated using TypeDoc

\ No newline at end of file +Alignment | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Type alias Alignment

+
Alignment: "left" | "center" | "right"
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/types/CellContent.html b/docs/types/CellContent.html index de30840..1f17b5e 100644 --- a/docs/types/CellContent.html +++ b/docs/types/CellContent.html @@ -1 +1,70 @@ -CellContent | pdf-lib-draw-table-beta

Generated using TypeDoc

\ No newline at end of file +CellContent | pdf-lib-draw-table-beta
+
+ +
+ +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/types/CellElement.html b/docs/types/CellElement.html index 6613550..d067f02 100644 --- a/docs/types/CellElement.html +++ b/docs/types/CellElement.html @@ -1 +1,70 @@ -CellElement | pdf-lib-draw-table-beta

Generated using TypeDoc

\ No newline at end of file +CellElement | pdf-lib-draw-table-beta
+
+ +
+ +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/types/ColumnOptions.html b/docs/types/ColumnOptions.html index e7b4e99..b277556 100644 --- a/docs/types/ColumnOptions.html +++ b/docs/types/ColumnOptions.html @@ -1 +1,77 @@ -ColumnOptions | pdf-lib-draw-table-beta

Type alias ColumnOptions

ColumnOptions: {
    overrideWidths: number[];
    widthMode: "equal" | "auto" | "wrapHeader";
}

Type declaration

  • overrideWidths: number[]
  • widthMode: "equal" | "auto" | "wrapHeader"

Generated using TypeDoc

\ No newline at end of file +ColumnOptions | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Type alias ColumnOptions

+
ColumnOptions: {
    overrideWidths: number[];
    widthMode: "equal" | "auto" | "wrapHeader";
}
+
+

Type declaration

+
    +
  • +
    overrideWidths: number[]
  • +
  • +
    widthMode: "equal" | "auto" | "wrapHeader"
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/types/GenColumnWidthOptions.html b/docs/types/GenColumnWidthOptions.html index 70ca56b..b2acd28 100644 --- a/docs/types/GenColumnWidthOptions.html +++ b/docs/types/GenColumnWidthOptions.html @@ -1 +1,95 @@ -GenColumnWidthOptions | pdf-lib-draw-table-beta

Type alias GenColumnWidthOptions

GenColumnWidthOptions: {
    availableWidth: number;
    borderWidth: number;
    columnWidthMode: "equal" | "auto" | "wrapHeader";
    font: PDFFont;
    hasHeader: boolean;
    headerFont?: PDFFont;
    headerHorizontalMargin: number;
    headerTextSize?: number;
    horizontalMargin: number;
    tableData: CellContent[][];
    textSize: number;
}

Type declaration

  • availableWidth: number
  • borderWidth: number
  • columnWidthMode: "equal" | "auto" | "wrapHeader"
  • font: PDFFont
  • hasHeader: boolean
  • Optional headerFont?: PDFFont
  • headerHorizontalMargin: number
  • Optional headerTextSize?: number
  • horizontalMargin: number
  • tableData: CellContent[][]
  • textSize: number

Generated using TypeDoc

\ No newline at end of file +GenColumnWidthOptions | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Type alias GenColumnWidthOptions

+
GenColumnWidthOptions: {
    availableWidth: number;
    borderWidth: number;
    columnWidthMode: "equal" | "auto" | "wrapHeader";
    font: PDFFont;
    hasHeader: boolean;
    headerFont?: PDFFont;
    headerHorizontalMargin: number;
    headerTextSize?: number;
    horizontalMargin: number;
    tableData: CellContent[][];
    textSize: number;
}
+
+

Type declaration

+
    +
  • +
    availableWidth: number
  • +
  • +
    borderWidth: number
  • +
  • +
    columnWidthMode: "equal" | "auto" | "wrapHeader"
  • +
  • +
    font: PDFFont
  • +
  • +
    hasHeader: boolean
  • +
  • +
    Optional headerFont?: PDFFont
  • +
  • +
    headerHorizontalMargin: number
  • +
  • +
    Optional headerTextSize?: number
  • +
  • +
    horizontalMargin: number
  • +
  • +
    tableData: CellContent[][]
  • +
  • +
    textSize: number
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/types/Image.html b/docs/types/Image.html index 246b9e7..8436580 100644 --- a/docs/types/Image.html +++ b/docs/types/Image.html @@ -1 +1,70 @@ -Image | pdf-lib-draw-table-beta

Generated using TypeDoc

\ No newline at end of file +Image | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Type alias Image

+
Image: ImageBase & ({
    src: string;
} | {
    data: Uint8Array;
})
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/types/Link.html b/docs/types/Link.html index d669c6b..59c57c9 100644 --- a/docs/types/Link.html +++ b/docs/types/Link.html @@ -1 +1,70 @@ -Link | pdf-lib-draw-table-beta

Generated using TypeDoc

\ No newline at end of file +Link | pdf-lib-draw-table-beta
+
+ +
+
+
+
+ +

Type alias Link

+
Link: LinkBase & ({
    url: string;
} | {
    page: number;
})
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/tests/basicDrawTable.test.ts b/tests/basicDrawTable.test.ts index b673918..0e6ba87 100644 --- a/tests/basicDrawTable.test.ts +++ b/tests/basicDrawTable.test.ts @@ -1,5 +1,5 @@ import { PDFDocument, PDFPage, rgb } from "pdf-lib"; -import { drawTable, DrawTableError } from "../src/drawPDFTable"; +import { drawTable } from "../src/drawPDFTable"; describe("drawTable", () => { let doc: PDFDocument; @@ -31,7 +31,7 @@ describe("drawTable", () => { } catch (err: any) { expect(err).toBeInstanceOf(Error); expect(err.message).toBe( - "Table width exceeds the available space on the page." + "Table width exceeds the available space on the page.", ); } }); @@ -59,7 +59,7 @@ describe("drawTable", () => { } catch (err: any) { expect(err).toBeInstanceOf(Error); expect(err.message).toBe( - "Table height exceeds the available space on the page." + "Table height exceeds the available space on the page.", ); } }); @@ -89,7 +89,7 @@ describe("drawTable", () => { tableData, 50, 700, - options + options, ); expect(tableDimensions).toBeDefined();