Deploy dolanmiu/docx to github.com/dolanmiu/docx.git:gh-pages
This commit is contained in:
@ -1,3 +1,25 @@
|
||||
:root {
|
||||
--color-background: #fdfdfd;
|
||||
--color-text: #222;
|
||||
--color-text-aside: #707070;
|
||||
--color-link: #4da6ff;
|
||||
--color-menu-divider: #eee;
|
||||
--color-menu-divider-focus: #000;
|
||||
--color-menu-label: #707070;
|
||||
--color-panel: #fff;
|
||||
--color-panel-divider: #eee;
|
||||
--color-comment-tag: #707070;
|
||||
--color-comment-tag-text: #fff;
|
||||
--color-code-background: rgba(#000, 0.04);
|
||||
--color-ts: #9600ff;
|
||||
--color-ts-interface: #647f1b;
|
||||
--color-ts-enum: #937210;
|
||||
--color-ts-class: #0672de;
|
||||
--color-ts-private: #707070;
|
||||
--color-toolbar: #fff;
|
||||
--color-toolbar-text: #333;
|
||||
}
|
||||
|
||||
/*! normalize.css v1.1.3 | MIT License | git.io/normalize */
|
||||
/* ==========================================================================
|
||||
* * HTML5 display definitions
|
||||
@ -1585,14 +1607,14 @@ ul.tsd-descriptions > li > :last-child > :last-child > :last-child,
|
||||
}
|
||||
}
|
||||
body {
|
||||
background: #fdfdfd;
|
||||
background: var(--color-background);
|
||||
font-family: "Segoe UI", sans-serif;
|
||||
font-size: 16px;
|
||||
color: #222;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
a {
|
||||
color: #4da6ff;
|
||||
color: var(--color-link);
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
@ -1604,7 +1626,7 @@ code, pre {
|
||||
padding: 0.2em;
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
background-color: rgba(0, 0, 0, 0.04);
|
||||
background-color: var(--color-code-background);
|
||||
}
|
||||
|
||||
pre {
|
||||
@ -1670,7 +1692,7 @@ blockquote {
|
||||
padding: 20px 20px 0 0;
|
||||
max-width: 450px;
|
||||
visibility: hidden;
|
||||
background-color: #fff;
|
||||
background-color: var(--color-panel);
|
||||
transform: translate(100%, 0);
|
||||
}
|
||||
html.default .col-menu > *:last-child {
|
||||
@ -1730,7 +1752,7 @@ html.default.has-menu .col-content {
|
||||
.tsd-page-title {
|
||||
padding: 70px 0 20px 0;
|
||||
margin: 0 0 40px 0;
|
||||
background: #fff;
|
||||
background: var(--color-panel);
|
||||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
.tsd-page-title h1 {
|
||||
@ -1740,10 +1762,10 @@ html.default.has-menu .col-content {
|
||||
.tsd-breadcrumb {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
color: #707070;
|
||||
color: var(--color-text-aside);
|
||||
}
|
||||
.tsd-breadcrumb a {
|
||||
color: #707070;
|
||||
color: var(--color-text-aside);
|
||||
text-decoration: none;
|
||||
}
|
||||
.tsd-breadcrumb a:hover {
|
||||
@ -1816,8 +1838,8 @@ dl.tsd-comment-tags dt {
|
||||
padding: 1px 5px;
|
||||
margin: 0 10px 0 0;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #707070;
|
||||
color: #707070;
|
||||
border: 1px solid var(--color-comment-tag);
|
||||
color: var(--color-comment-tag);
|
||||
font-size: 0.8em;
|
||||
font-weight: normal;
|
||||
}
|
||||
@ -1887,7 +1909,7 @@ dl.tsd-comment-tags p {
|
||||
top: 40px;
|
||||
right: 20px;
|
||||
height: auto;
|
||||
background-color: #fff;
|
||||
background-color: var(--color-panel);
|
||||
visibility: hidden;
|
||||
transform: translate(50%, 0);
|
||||
box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
|
||||
@ -1909,11 +1931,11 @@ dl.tsd-comment-tags p {
|
||||
}
|
||||
|
||||
footer {
|
||||
border-top: 1px solid #eee;
|
||||
background-color: #fff;
|
||||
border-top: 1px solid var(--color-panel-divider);
|
||||
background-color: var(--color-panel);
|
||||
}
|
||||
footer.with-border-bottom {
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid var(--color-panel-divider);
|
||||
}
|
||||
footer .tsd-legend-group {
|
||||
font-size: 0;
|
||||
@ -1951,7 +1973,7 @@ footer .tsd-legend {
|
||||
.tsd-index-panel h3 {
|
||||
margin: 0 -20px 10px -20px;
|
||||
padding: 0 20px 10px 20px;
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid var(--color-panel-divider);
|
||||
}
|
||||
.tsd-index-panel ul.tsd-index-list {
|
||||
-webkit-column-count: 3;
|
||||
@ -1995,39 +2017,39 @@ footer .tsd-legend {
|
||||
}
|
||||
.tsd-index-panel a,
|
||||
.tsd-index-panel .tsd-parent-kind-module a {
|
||||
color: #9600ff;
|
||||
color: var(--color-ts);
|
||||
}
|
||||
.tsd-index-panel .tsd-parent-kind-interface a {
|
||||
color: #647F1B;
|
||||
color: var(--color-ts-interface);
|
||||
}
|
||||
.tsd-index-panel .tsd-parent-kind-enum a {
|
||||
color: #937210;
|
||||
color: var(--color-ts-enum);
|
||||
}
|
||||
.tsd-index-panel .tsd-parent-kind-class a {
|
||||
color: #0672DE;
|
||||
color: var(--color-ts-class);
|
||||
}
|
||||
.tsd-index-panel .tsd-kind-module a {
|
||||
color: #9600ff;
|
||||
color: var(--color-ts);
|
||||
}
|
||||
.tsd-index-panel .tsd-kind-interface a {
|
||||
color: #647F1B;
|
||||
color: var(--color-ts-interface);
|
||||
}
|
||||
.tsd-index-panel .tsd-kind-enum a {
|
||||
color: #937210;
|
||||
color: var(--color-ts-enum);
|
||||
}
|
||||
.tsd-index-panel .tsd-kind-class a {
|
||||
color: #0672DE;
|
||||
color: var(--color-ts-class);
|
||||
}
|
||||
.tsd-index-panel .tsd-is-private a {
|
||||
color: #707070;
|
||||
color: var(--color-ts-private);
|
||||
}
|
||||
|
||||
.tsd-flag {
|
||||
display: inline-block;
|
||||
padding: 1px 5px;
|
||||
border-radius: 4px;
|
||||
color: #fff;
|
||||
background-color: #707070;
|
||||
color: var(--color-comment-tag-text);
|
||||
background-color: var(--color-comment-tag);
|
||||
text-indent: 0;
|
||||
font-size: 14px;
|
||||
font-weight: normal;
|
||||
@ -2047,19 +2069,19 @@ footer .tsd-legend {
|
||||
border-bottom: none;
|
||||
}
|
||||
.tsd-member a[data-tsd-kind] {
|
||||
color: #9600ff;
|
||||
color: var(--color-ts);
|
||||
}
|
||||
.tsd-member a[data-tsd-kind=Interface] {
|
||||
color: #647F1B;
|
||||
color: var(--color-ts-interface);
|
||||
}
|
||||
.tsd-member a[data-tsd-kind=Enum] {
|
||||
color: #937210;
|
||||
color: var(--color-ts-enum);
|
||||
}
|
||||
.tsd-member a[data-tsd-kind=Class] {
|
||||
color: #0672DE;
|
||||
color: var(--color-ts-class);
|
||||
}
|
||||
.tsd-member a[data-tsd-kind=Private] {
|
||||
color: #707070;
|
||||
color: var(--color-ts-private);
|
||||
}
|
||||
|
||||
.tsd-navigation {
|
||||
@ -2070,7 +2092,7 @@ footer .tsd-legend {
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
border-left: 2px solid transparent;
|
||||
color: #222;
|
||||
color: var(--color-text);
|
||||
text-decoration: none;
|
||||
transition: border-left-color 0.1s;
|
||||
}
|
||||
@ -2113,10 +2135,10 @@ footer .tsd-legend {
|
||||
padding-left: 105px;
|
||||
}
|
||||
.tsd-navigation.primary > ul {
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid var(--color-panel-divider);
|
||||
}
|
||||
.tsd-navigation.primary li {
|
||||
border-top: 1px solid #eee;
|
||||
border-top: 1px solid var(--color-panel-divider);
|
||||
}
|
||||
.tsd-navigation.primary li.current > a {
|
||||
font-weight: bold;
|
||||
@ -2124,7 +2146,7 @@ footer .tsd-legend {
|
||||
.tsd-navigation.primary li.label span {
|
||||
display: block;
|
||||
padding: 20px 0 6px 5px;
|
||||
color: #707070;
|
||||
color: var(--color-menu-label);
|
||||
}
|
||||
.tsd-navigation.primary li.globals + li > span, .tsd-navigation.primary li.globals + li > a {
|
||||
padding-top: 20px;
|
||||
@ -2164,16 +2186,16 @@ footer .tsd-legend {
|
||||
padding-left: 125px;
|
||||
}
|
||||
.tsd-navigation.secondary ul.current a {
|
||||
border-left-color: #eee;
|
||||
border-left-color: var(--color-panel-divider);
|
||||
}
|
||||
.tsd-navigation.secondary li.focus > a,
|
||||
.tsd-navigation.secondary ul.current li.focus > a {
|
||||
border-left-color: #000;
|
||||
border-left-color: var(--color-menu-divider-focus);
|
||||
}
|
||||
.tsd-navigation.secondary li.current {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
border-left-color: #eee;
|
||||
border-left-color: var(--color-panel-divider);
|
||||
}
|
||||
.tsd-navigation.secondary li.current > a {
|
||||
font-weight: bold;
|
||||
@ -2188,7 +2210,7 @@ footer .tsd-legend {
|
||||
.tsd-panel {
|
||||
margin: 20px 0;
|
||||
padding: 20px;
|
||||
background-color: #fff;
|
||||
background-color: var(--color-panel);
|
||||
box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
.tsd-panel:empty {
|
||||
@ -2197,7 +2219,7 @@ footer .tsd-legend {
|
||||
.tsd-panel > h1, .tsd-panel > h2, .tsd-panel > h3 {
|
||||
margin: 1.5em -20px 10px -20px;
|
||||
padding: 0 20px 10px 20px;
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid var(--color-panel-divider);
|
||||
}
|
||||
.tsd-panel > h1.tsd-before-signature, .tsd-panel > h2.tsd-before-signature, .tsd-panel > h3.tsd-before-signature {
|
||||
margin-bottom: 0;
|
||||
@ -2259,7 +2281,7 @@ footer .tsd-legend {
|
||||
outline: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #222;
|
||||
color: var(--color-text);
|
||||
}
|
||||
#tsd-search .field label {
|
||||
position: absolute;
|
||||
@ -2282,17 +2304,17 @@ footer .tsd-legend {
|
||||
}
|
||||
#tsd-search .results li {
|
||||
padding: 0 10px;
|
||||
background-color: #fdfdfd;
|
||||
background-color: var(--color-background);
|
||||
}
|
||||
#tsd-search .results li:nth-child(even) {
|
||||
background-color: #fff;
|
||||
background-color: var(--color-panel);
|
||||
}
|
||||
#tsd-search .results li.state {
|
||||
display: none;
|
||||
}
|
||||
#tsd-search .results li.current,
|
||||
#tsd-search .results li:hover {
|
||||
background-color: #eee;
|
||||
background-color: var(--color-panel-divider);
|
||||
}
|
||||
#tsd-search .results a {
|
||||
display: block;
|
||||
@ -2301,11 +2323,11 @@ footer .tsd-legend {
|
||||
top: 10px;
|
||||
}
|
||||
#tsd-search .results span.parent {
|
||||
color: #707070;
|
||||
color: var(--color-text-aside);
|
||||
font-weight: normal;
|
||||
}
|
||||
#tsd-search.has-focus {
|
||||
background-color: #eee;
|
||||
background-color: var(--color-panel-divider);
|
||||
}
|
||||
#tsd-search.has-focus .field input {
|
||||
top: 0;
|
||||
@ -2328,7 +2350,7 @@ footer .tsd-legend {
|
||||
.tsd-signature {
|
||||
margin: 0 0 1em 0;
|
||||
padding: 10px;
|
||||
border: 1px solid #eee;
|
||||
border: 1px solid var(--color-panel-divider);
|
||||
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
|
||||
font-size: 14px;
|
||||
overflow-x: auto;
|
||||
@ -2353,7 +2375,7 @@ footer .tsd-legend {
|
||||
}
|
||||
|
||||
.tsd-signature-symbol {
|
||||
color: #707070;
|
||||
color: var(--color-text-aside);
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
@ -2365,7 +2387,7 @@ footer .tsd-legend {
|
||||
.tsd-signatures {
|
||||
padding: 0;
|
||||
margin: 0 0 1em 0;
|
||||
border: 1px solid #eee;
|
||||
border: 1px solid var(--color-panel-divider);
|
||||
}
|
||||
.tsd-signatures .tsd-signature {
|
||||
margin: 0;
|
||||
@ -2376,7 +2398,7 @@ footer .tsd-legend {
|
||||
border-top-width: 0;
|
||||
}
|
||||
.tsd-signatures .tsd-signature.current {
|
||||
background-color: #eee;
|
||||
background-color: var(--color-panel-divider);
|
||||
}
|
||||
.tsd-signatures.active > .tsd-signature {
|
||||
cursor: pointer;
|
||||
@ -2450,11 +2472,11 @@ ul.tsd-type-parameters .tsd-comment {
|
||||
|
||||
.tsd-sources {
|
||||
font-size: 14px;
|
||||
color: #707070;
|
||||
color: var(--color-text-aside);
|
||||
margin: 0 0 1em 0;
|
||||
}
|
||||
.tsd-sources a {
|
||||
color: #707070;
|
||||
color: var(--color-text-aside);
|
||||
text-decoration: underline;
|
||||
}
|
||||
.tsd-sources ul, .tsd-sources p {
|
||||
@ -2472,13 +2494,13 @@ ul.tsd-type-parameters .tsd-comment {
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
color: #333;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #eee;
|
||||
color: var(--color-toolbar-text);
|
||||
background: var(--color-toolbar);
|
||||
border-bottom: 1px solid var(--color-panel-divider);
|
||||
transition: transform 0.3s linear;
|
||||
}
|
||||
.tsd-page-toolbar a {
|
||||
color: #333;
|
||||
color: var(--color-toolbar-text);
|
||||
text-decoration: none;
|
||||
}
|
||||
.tsd-page-toolbar a.title {
|
||||
@ -2538,7 +2560,7 @@ ul.tsd-type-parameters .tsd-comment {
|
||||
}
|
||||
.tsd-widget.active {
|
||||
opacity: 1;
|
||||
background-color: #eee;
|
||||
background-color: var(--color-panel-divider);
|
||||
}
|
||||
.tsd-widget.no-caption {
|
||||
width: 40px;
|
||||
@ -2607,16 +2629,16 @@ input[type=checkbox]:checked + .tsd-widget:before {
|
||||
}
|
||||
.tsd-select .tsd-select-list li {
|
||||
padding: 0 20px 0 0;
|
||||
background-color: #fdfdfd;
|
||||
background-color: var(--color-background);
|
||||
}
|
||||
.tsd-select .tsd-select-list li:before {
|
||||
background-position: 40px 0;
|
||||
}
|
||||
.tsd-select .tsd-select-list li:nth-child(even) {
|
||||
background-color: #fff;
|
||||
background-color: var(--color-panel);
|
||||
}
|
||||
.tsd-select .tsd-select-list li:hover {
|
||||
background-color: #eee;
|
||||
background-color: var(--color-panel-divider);
|
||||
}
|
||||
.tsd-select .tsd-select-list li.selected:before {
|
||||
background-position: -200px 0;
|
||||
|
@ -136,7 +136,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpac
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
"use strict";
|
||||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Viewport\": () => /* binding */ Viewport\n/* harmony export */ });\n/* harmony import */ var _EventTarget__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../EventTarget */ \"./default/assets/js/src/typedoc/EventTarget.ts\");\n/* harmony import */ var _utils_trottle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/trottle */ \"./default/assets/js/src/typedoc/utils/trottle.ts\");\nvar __extends = (undefined && undefined.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n\n\n/**\n * A global service that monitors the window size and scroll position.\n */\nvar Viewport = /** @class */ (function (_super) {\n __extends(Viewport, _super);\n /**\n * Create new Viewport instance.\n */\n function Viewport() {\n var _this = _super.call(this) || this;\n /**\n * The current scroll position.\n */\n _this.scrollTop = 0;\n /**\n * The previous scrollTop.\n */\n _this.lastY = 0;\n /**\n * The width of the window.\n */\n _this.width = 0;\n /**\n * The height of the window.\n */\n _this.height = 0;\n /**\n * Boolean indicating whether the toolbar is shown.\n */\n _this.showToolbar = true;\n _this.toolbar = (document.querySelector(\".tsd-page-toolbar\"));\n _this.secondaryNav = (document.querySelector(\".tsd-navigation.secondary\"));\n window.addEventListener(\"scroll\", (0,_utils_trottle__WEBPACK_IMPORTED_MODULE_1__.throttle)(function () { return _this.onScroll(); }, 10));\n window.addEventListener(\"resize\", (0,_utils_trottle__WEBPACK_IMPORTED_MODULE_1__.throttle)(function () { return _this.onResize(); }, 10));\n _this.onResize();\n _this.onScroll();\n return _this;\n }\n /**\n * Trigger a resize event.\n */\n Viewport.prototype.triggerResize = function () {\n var event = new CustomEvent(\"resize\", {\n detail: {\n width: this.width,\n height: this.height,\n },\n });\n this.dispatchEvent(event);\n };\n /**\n * Triggered when the size of the window has changed.\n */\n Viewport.prototype.onResize = function () {\n this.width = window.innerWidth || 0;\n this.height = window.innerHeight || 0;\n var event = new CustomEvent(\"resize\", {\n detail: {\n width: this.width,\n height: this.height,\n },\n });\n this.dispatchEvent(event);\n };\n /**\n * Triggered when the user scrolled the viewport.\n */\n Viewport.prototype.onScroll = function () {\n this.scrollTop = window.scrollY || 0;\n var event = new CustomEvent(\"scroll\", {\n detail: {\n scrollTop: this.scrollTop,\n },\n });\n this.dispatchEvent(event);\n this.hideShowToolbar();\n };\n /**\n * Handle hiding/showing of the toolbar.\n */\n Viewport.prototype.hideShowToolbar = function () {\n var isShown = this.showToolbar;\n this.showToolbar = this.lastY >= this.scrollTop || this.scrollTop === 0;\n if (isShown !== this.showToolbar) {\n this.toolbar.classList.toggle(\"tsd-page-toolbar--hide\");\n this.secondaryNav.classList.toggle(\"tsd-navigation--toolbar-hide\");\n }\n this.lastY = this.scrollTop;\n };\n Viewport.instance = new Viewport();\n return Viewport;\n}(_EventTarget__WEBPACK_IMPORTED_MODULE_0__.EventTarget));\n\n\n\n//# sourceURL=webpack:///./default/assets/js/src/typedoc/services/Viewport.ts?");
|
||||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Viewport\": () => /* binding */ Viewport\n/* harmony export */ });\n/* harmony import */ var _EventTarget__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../EventTarget */ \"./default/assets/js/src/typedoc/EventTarget.ts\");\n/* harmony import */ var _utils_trottle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/trottle */ \"./default/assets/js/src/typedoc/utils/trottle.ts\");\nvar __extends = (undefined && undefined.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n\n\n/**\n * A global service that monitors the window size and scroll position.\n */\nvar Viewport = /** @class */ (function (_super) {\n __extends(Viewport, _super);\n /**\n * Create new Viewport instance.\n */\n function Viewport() {\n var _this = _super.call(this) || this;\n /**\n * The current scroll position.\n */\n _this.scrollTop = 0;\n /**\n * The previous scrollTop.\n */\n _this.lastY = 0;\n /**\n * The width of the window.\n */\n _this.width = 0;\n /**\n * The height of the window.\n */\n _this.height = 0;\n /**\n * Boolean indicating whether the toolbar is shown.\n */\n _this.showToolbar = true;\n _this.toolbar = (document.querySelector(\".tsd-page-toolbar\"));\n _this.secondaryNav = (document.querySelector(\".tsd-navigation.secondary\"));\n window.addEventListener(\"scroll\", (0,_utils_trottle__WEBPACK_IMPORTED_MODULE_1__.throttle)(function () { return _this.onScroll(); }, 10));\n window.addEventListener(\"resize\", (0,_utils_trottle__WEBPACK_IMPORTED_MODULE_1__.throttle)(function () { return _this.onResize(); }, 10));\n _this.onResize();\n _this.onScroll();\n return _this;\n }\n /**\n * Trigger a resize event.\n */\n Viewport.prototype.triggerResize = function () {\n var event = new CustomEvent(\"resize\", {\n detail: {\n width: this.width,\n height: this.height,\n },\n });\n this.dispatchEvent(event);\n };\n /**\n * Triggered when the size of the window has changed.\n */\n Viewport.prototype.onResize = function () {\n this.width = window.innerWidth || 0;\n this.height = window.innerHeight || 0;\n var event = new CustomEvent(\"resize\", {\n detail: {\n width: this.width,\n height: this.height,\n },\n });\n this.dispatchEvent(event);\n };\n /**\n * Triggered when the user scrolled the viewport.\n */\n Viewport.prototype.onScroll = function () {\n this.scrollTop = window.scrollY || 0;\n var event = new CustomEvent(\"scroll\", {\n detail: {\n scrollTop: this.scrollTop,\n },\n });\n this.dispatchEvent(event);\n this.hideShowToolbar();\n };\n /**\n * Handle hiding/showing of the toolbar.\n */\n Viewport.prototype.hideShowToolbar = function () {\n var isShown = this.showToolbar;\n this.showToolbar = this.lastY >= this.scrollTop || this.scrollTop <= 0;\n if (isShown !== this.showToolbar) {\n this.toolbar.classList.toggle(\"tsd-page-toolbar--hide\");\n this.secondaryNav.classList.toggle(\"tsd-navigation--toolbar-hide\");\n }\n this.lastY = this.scrollTop;\n };\n Viewport.instance = new Viewport();\n return Viewport;\n}(_EventTarget__WEBPACK_IMPORTED_MODULE_0__.EventTarget));\n\n\n\n//# sourceURL=webpack:///./default/assets/js/src/typedoc/services/Viewport.ts?");
|
||||
|
||||
/***/ }),
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user