update to use .md's instead of static generated html
No files matched your search
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "../Documentation"
|
||||
},
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
"liveServer.settings.multiRootWorkspaceName": "Exporter"
|
||||
}
|
||||
}
|
||||
@@ -1,800 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Blueprint Penetration Trace Documentation</title>
|
||||
<base href="https://lit.ruv.wtf/docs/">
|
||||
<meta id="root-path" root-path="https://lit.ruv.wtf/docs/">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=1.0, maximum-scale=5.0">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="description" content="lit.ruv.wtf - Docs - Blueprint Penetration Trace Documentation">
|
||||
<meta property="og:title" content="Blueprint Penetration Trace Documentation">
|
||||
<meta property="og:description" content="lit.ruv.wtf - Docs - Blueprint Penetration Trace Documentation">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="https://lit.ruv.wtf/docs/blueprint-penetration-trace.html">
|
||||
<meta property="og:image" content="https://lit.ruv.wtf/docs/images/depthtracebychannel.png">
|
||||
<meta property="og:site_name" content="lit.ruv.wtf - Docs">
|
||||
<meta name="author" content="Litruv">
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="https://lit.ruv.wtf/docs/lib/rss.xml">
|
||||
<script async="" id="webpage-script" src="https://lit.ruv.wtf/docs/lib/scripts/webpage.js"
|
||||
onload='this.onload=null;this.setAttribute("loaded", "true")'></script>
|
||||
<script async="" id="minisearch-script" src="https://cdn.jsdelivr.net/npm/minisearch@6.3.0/dist/umd/index.min.js"
|
||||
onload="this.onload=null;this.setAttribute('loaded', 'true')"></script>
|
||||
<link rel="icon" href="https://lit.ruv.wtf/docs/lib/media/favicon.png">
|
||||
<style>
|
||||
body {
|
||||
--line-width: 40em;
|
||||
--line-width-adaptive: 40em;
|
||||
--file-line-width: 40em;
|
||||
--sidebar-width: min(20em, 80vw);
|
||||
--collapse-arrow-size: 11px;
|
||||
--tree-horizontal-spacing: 0.6em;
|
||||
--tree-vertical-spacing: 0.6em;
|
||||
--sidebar-margin: 12px
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
height: 100%;
|
||||
min-width: calc(var(--sidebar-width) + var(--divider-width-hover));
|
||||
max-width: calc(var(--sidebar-width) + var(--divider-width-hover));
|
||||
font-size: 14px;
|
||||
z-index: 10;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: min-width ease-in-out, max-width ease-in-out;
|
||||
transition-duration: .2s;
|
||||
contain: size
|
||||
}
|
||||
|
||||
.sidebar-left {
|
||||
left: 0
|
||||
}
|
||||
|
||||
.sidebar-right {
|
||||
right: 0
|
||||
}
|
||||
|
||||
.sidebar.is-collapsed {
|
||||
min-width: 0;
|
||||
max-width: 0
|
||||
}
|
||||
|
||||
body.floating-sidebars .sidebar {
|
||||
position: absolute
|
||||
}
|
||||
|
||||
.sidebar-content {
|
||||
height: 100%;
|
||||
min-width: calc(var(--sidebar-width) - var(--divider-width-hover));
|
||||
top: 0;
|
||||
padding: var(--sidebar-margin);
|
||||
padding-top: 4em;
|
||||
line-height: var(--line-height-tight);
|
||||
background-color: var(--background-secondary);
|
||||
transition: background-color, border-right, border-left, box-shadow;
|
||||
transition-duration: var(--color-fade-speed);
|
||||
transition-timing-function: ease-in-out;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
flex-direction: column
|
||||
}
|
||||
|
||||
.sidebar:not(.is-collapsed) .sidebar-content {
|
||||
min-width: calc(max(100%, var(--sidebar-width)) - 3px);
|
||||
max-width: calc(max(100%, var(--sidebar-width)) - 3px)
|
||||
}
|
||||
|
||||
.sidebar-left .sidebar-content {
|
||||
left: 0;
|
||||
border-top-right-radius: var(--radius-l);
|
||||
border-bottom-right-radius: var(--radius-l)
|
||||
}
|
||||
|
||||
.sidebar-right .sidebar-content {
|
||||
right: 0;
|
||||
border-top-left-radius: var(--radius-l);
|
||||
border-bottom-left-radius: var(--radius-l)
|
||||
}
|
||||
|
||||
.sidebar:has(.sidebar-content:empty):has(.topbar-content:empty) {
|
||||
display: none
|
||||
}
|
||||
|
||||
.sidebar-topbar {
|
||||
height: 2em;
|
||||
width: var(--sidebar-width);
|
||||
top: var(--sidebar-margin);
|
||||
padding-inline: var(--sidebar-margin);
|
||||
z-index: 1;
|
||||
position: fixed;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
transition: width ease-in-out;
|
||||
transition-duration: inherit
|
||||
}
|
||||
|
||||
.sidebar.is-collapsed .sidebar-topbar {
|
||||
width: calc(2.3em + var(--sidebar-margin) * 2)
|
||||
}
|
||||
|
||||
.sidebar .sidebar-topbar.is-collapsed {
|
||||
width: 0
|
||||
}
|
||||
|
||||
.sidebar-left .sidebar-topbar {
|
||||
left: 0
|
||||
}
|
||||
|
||||
.sidebar-right .sidebar-topbar {
|
||||
right: 0
|
||||
}
|
||||
|
||||
.topbar-content {
|
||||
overflow: hidden;
|
||||
overflow: clip;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
transition: inherit
|
||||
}
|
||||
|
||||
.sidebar.is-collapsed .topbar-content {
|
||||
width: 0;
|
||||
transition: inherit
|
||||
}
|
||||
|
||||
.clickable-icon.sidebar-collapse-icon {
|
||||
background-color: transparent;
|
||||
color: var(--icon-color-focused);
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
height: 100% !important;
|
||||
width: 2.3em !important;
|
||||
margin-inline: 0.14em !important;
|
||||
position: absolute
|
||||
}
|
||||
|
||||
.sidebar-left .clickable-icon.sidebar-collapse-icon {
|
||||
transform: rotateY(180deg);
|
||||
right: var(--sidebar-margin)
|
||||
}
|
||||
|
||||
.sidebar-right .clickable-icon.sidebar-collapse-icon {
|
||||
transform: rotateY(180deg);
|
||||
left: var(--sidebar-margin)
|
||||
}
|
||||
|
||||
.clickable-icon.sidebar-collapse-icon svg.svg-icon {
|
||||
width: 100%;
|
||||
height: 100%
|
||||
}
|
||||
|
||||
.sidebar-section-header {
|
||||
margin: 0 0 1em 0;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .06em;
|
||||
font-weight: 600
|
||||
}
|
||||
|
||||
body {
|
||||
transition: background-color var(--color-fade-speed) ease-in-out
|
||||
}
|
||||
|
||||
.webpage-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
align-items: stretch;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.document-container {
|
||||
opacity: 1;
|
||||
flex-basis: 100%;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
transition: opacity .2s ease-in-out;
|
||||
contain: inline-size
|
||||
}
|
||||
|
||||
.hide {
|
||||
opacity: 0;
|
||||
transition: opacity .2s ease-in-out
|
||||
}
|
||||
|
||||
.document-container>.markdown-preview-view {
|
||||
margin: var(--sidebar-margin);
|
||||
margin-bottom: 0;
|
||||
width: 100%;
|
||||
width: -webkit-fill-available;
|
||||
width: -moz-available;
|
||||
width: fill-available;
|
||||
background-color: var(--background-primary);
|
||||
transition: background-color var(--color-fade-speed) ease-in-out;
|
||||
border-top-right-radius: var(--window-radius, var(--radius-m));
|
||||
border-top-left-radius: var(--window-radius, var(--radius-m));
|
||||
overflow-x: hidden !important;
|
||||
overflow-y: auto !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
align-items: center !important;
|
||||
contain: inline-size
|
||||
}
|
||||
|
||||
.document-container>.markdown-preview-view>.markdown-preview-sizer {
|
||||
padding-bottom: 80vh !important;
|
||||
width: 100% !important;
|
||||
max-width: var(--line-width) !important;
|
||||
flex-basis: var(--line-width) !important;
|
||||
transition: background-color var(--color-fade-speed) ease-in-out;
|
||||
contain: inline-size
|
||||
}
|
||||
|
||||
.markdown-rendered img:not([width]),
|
||||
.view-content img:not([width]) {
|
||||
max-width: 100%;
|
||||
outline: 0
|
||||
}
|
||||
|
||||
.document-container>.view-content.embed {
|
||||
display: flex;
|
||||
padding: 1em;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.document-container>.view-content.embed>* {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain
|
||||
}
|
||||
|
||||
:has(> :is(.math, table)) {
|
||||
overflow-x: auto !important
|
||||
}
|
||||
|
||||
.document-container>.view-content {
|
||||
overflow-x: auto;
|
||||
contain: content;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
height: 100%
|
||||
}
|
||||
|
||||
.scroll-highlight {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 1000;
|
||||
background-color: hsla(var(--color-accent-hsl), .25);
|
||||
opacity: 0;
|
||||
padding: 1em;
|
||||
inset: 50%;
|
||||
translate: -50% -50%;
|
||||
border-radius: var(--radius-s)
|
||||
}
|
||||
</style>
|
||||
<script
|
||||
defer="">async function loadIncludes() { if ("file:" != location.protocol) { let e = document.querySelectorAll("include"); for (let t = 0; t < e.length; t++) { let o = e[t], l = o.getAttribute("src"); try { const e = await fetch(l); if (!e.ok) { console.log("Could not include file: " + l), o?.remove(); continue } let t = await e.text(), n = document.createRange().createContextualFragment(t), i = Array.from(n.children); for (let e of i) e.classList.add("hide"), e.style.transition = "opacity 0.5s ease-in-out", setTimeout((() => { e.classList.remove("hide") }), 10); o.before(n), o.remove(), console.log("Included file: " + l) } catch (e) { o?.remove(), console.log("Could not include file: " + l, e); continue } } } else { if (document.querySelectorAll("include").length > 0) { var e = document.createElement("div"); e.id = "error", e.textContent = "Web server exports must be hosted on an http / web server to be viewed correctly.", e.style.position = "fixed", e.style.top = "50%", e.style.left = "50%", e.style.transform = "translate(-50%, -50%)", e.style.fontSize = "1.5em", e.style.fontWeight = "bold", e.style.textAlign = "center", document.body.appendChild(e), document.querySelector(".document-container")?.classList.remove("hide") } } } document.addEventListener("DOMContentLoaded", (() => { loadIncludes() })); let isFileProtocol = "file:" == location.protocol; function waitLoadScripts(e, t) { let o = e.map((e => document.getElementById(e + "-script"))), l = 0; !function e() { let n = o[l]; l++, n && "true" != n.getAttribute("loaded") || l < o.length && e(), l < o.length ? n.addEventListener("load", e) : t() }() }</script>
|
||||
<link rel="stylesheet" href="lib/styles/obsidian.css">
|
||||
<link rel="preload" href="lib/styles/global-variable-styles.css" as="style"
|
||||
onload="this.onload=null;this.rel='stylesheet'"><noscript>
|
||||
<link rel="stylesheet" href="lib/styles/global-variable-styles.css">
|
||||
</noscript>
|
||||
<link rel="preload" href="lib/styles/main-styles.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="lib/styles/main-styles.css">
|
||||
</noscript>
|
||||
<link rel="preload" href="lib/styles/snippets.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="lib/styles/snippets.css">
|
||||
</noscript>
|
||||
</head>
|
||||
|
||||
<body class="publish css-settings-manager theme-dark show-inline-title show-ribbon">
|
||||
<script
|
||||
defer="">let theme = localStorage.getItem("theme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"); "dark" == theme ? (document.body.classList.add("theme-dark"), document.body.classList.remove("theme-light")) : (document.body.classList.add("theme-light"), document.body.classList.remove("theme-dark")), window.innerWidth < 480 ? document.body.classList.add("is-phone") : window.innerWidth < 768 ? document.body.classList.add("is-tablet") : window.innerWidth < 1024 ? document.body.classList.add("is-small-screen") : document.body.classList.add("is-large-screen")</script>
|
||||
<div class="webpage-container workspace">
|
||||
<div class="sidebar-left sidebar">
|
||||
<div class="sidebar-topbar">
|
||||
<div class="topbar-content"></div>
|
||||
<div class="clickable-icon sidebar-collapse-icon"><svg xmlns="http://www.w3.org/2000/svg" width="100%"
|
||||
height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3"
|
||||
stroke-linecap="round" stroke-linejoin="round" class="svg-icon">
|
||||
<path
|
||||
d="M21 3H3C1.89543 3 1 3.89543 1 5V19C1 20.1046 1.89543 21 3 21H21C22.1046 21 23 20.1046 23 19V5C23 3.89543 22.1046 3 21 3Z">
|
||||
</path>
|
||||
<path d="M10 4V20"></path>
|
||||
<path d="M4 7H7"></path>
|
||||
<path d="M4 10H7"></path>
|
||||
<path d="M4 13H7"></path>
|
||||
</svg></div>
|
||||
</div>
|
||||
<div class="sidebar-content">
|
||||
<div class="search-input-container"><input enterkeyhint="search" type="search" spellcheck="false"
|
||||
placeholder="Search...">
|
||||
<div class="search-input-clear-button" aria-label="Clear search"></div>
|
||||
</div>
|
||||
<include src="lib/html/file-tree.html"></include>
|
||||
</div>
|
||||
<script
|
||||
defer="">let ls = document.querySelector(".sidebar-left"); ls.classList.add("is-collapsed"); if (window.innerWidth > 768) ls.classList.remove("is-collapsed"); ls.style.setProperty("--sidebar-width", localStorage.getItem("sidebar-left-width"));</script>
|
||||
</div>
|
||||
<div class="document-container markdown-reading-view hide">
|
||||
<div class="markdown-preview-view markdown-rendered is-readable-line-width">
|
||||
<style id="MJX-CHTML-styles"></style>
|
||||
<pre class="frontmatter language-yaml" tabindex="0"
|
||||
style="display: none;"><code class="language-yaml is-loaded"><span class="token key atrule">title</span><span class="token punctuation">:</span> Blueprint Penetration Trace Documentation</code><button class="copy-code-button"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon lucide-copy"><rect x="8" y="8" width="14" height="14" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg></button></pre>
|
||||
<div class="markdown-preview-sizer markdown-preview-section">
|
||||
<h1 class="page-title heading inline-title" id="Blueprint Penetration Trace Documentation">Blueprint
|
||||
Penetration Trace Documentation</h1>
|
||||
<div class="el-p">
|
||||
<p dir="auto">This is a <code>Blueprint Function Library</code> with a few functions that are
|
||||
callable in <code>AActors</code> to do depth trace results, for use in things like
|
||||
projectiles and tools.</p>
|
||||
</div>
|
||||
<div class="el-p">
|
||||
<p dir="auto"><span alt="TraceExample.mp4" src="TraceExample.mp4"
|
||||
class="internal-embed media-embed video-embed is-loaded"><video controls=""
|
||||
preload="metadata" src="images/traceexample.mp4" style=""></video></span></p>
|
||||
</div>
|
||||
<div class="el-h2 heading-wrapper">
|
||||
<h2 data-heading="Features" dir="auto" class="heading" id="Features">
|
||||
<div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg
|
||||
xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||||
stroke-linejoin="round" class="svg-icon right-triangle">
|
||||
<path d="M3 8L12 17L21 8"></path>
|
||||
</svg></div>Features
|
||||
</h2>
|
||||
<div class="heading-children">
|
||||
<div class="el-ul">
|
||||
<ul>
|
||||
<li data-line="0" dir="auto">Depth-based trace</li>
|
||||
<li data-line="1" dir="auto">Forward and backward trace results for bullet holes
|
||||
</li>
|
||||
<li data-line="2" dir="auto">Simple to implement into existing systems</li>
|
||||
<li data-line="3" dir="auto">Easy debug options</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="el-hr">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="el-h2 heading-wrapper">
|
||||
<h2 data-heading="How it works" dir="auto" class="heading" id="How_it_works">
|
||||
<div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg
|
||||
xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||||
stroke-linejoin="round" class="svg-icon right-triangle">
|
||||
<path d="M3 8L12 17L21 8"></path>
|
||||
</svg></div>How it works
|
||||
</h2>
|
||||
<div class="heading-children">
|
||||
<div class="el-p">
|
||||
<p dir="auto">This node works by simulating depth using two line traces—one forward and
|
||||
one backward from the point of impact. These traces scan for objects in their paths
|
||||
and gather information about the hit results. The distance travelled through each
|
||||
material is multiplied by its density (defined in the material's physical
|
||||
properties), which determines how much the projectile is slowed down or whether it
|
||||
stops entirely. Finally, the node returns a list of hit results, including the total
|
||||
depth.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="el-h2 heading-wrapper">
|
||||
<h2 data-heading="Variants" dir="auto" class="heading" id="Variants">
|
||||
<div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg
|
||||
xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||||
stroke-linejoin="round" class="svg-icon right-triangle">
|
||||
<path d="M3 8L12 17L21 8"></path>
|
||||
</svg></div>Variants
|
||||
</h2>
|
||||
<div class="heading-children">
|
||||
<div class="el-p">
|
||||
<p dir="auto">Depth Trace by Channel<br>
|
||||
<span alt="DepthTraceByChannel.png" src="DepthTraceByChannel.png"
|
||||
class="internal-embed media-embed image-embed is-loaded"><img
|
||||
alt="DepthTraceByChannel.png"
|
||||
src="images/depthtracebychannel.png"></span><br>
|
||||
Depth Trace for Objects<br>
|
||||
<span alt="DepthTraceForObjects.png" src="DepthTraceForObjects.png"
|
||||
class="internal-embed media-embed image-embed is-loaded"><img
|
||||
alt="DepthTraceForObjects.png"
|
||||
src="images/depthtraceforobjects.png"></span><br>
|
||||
Depth Trace by Profile<br>
|
||||
<span alt="DepthTraceByProfile.png" src="DepthTraceByProfile.png"
|
||||
class="internal-embed media-embed image-embed is-loaded"><img
|
||||
alt="DepthTraceByProfile.png" src="images/depthtracebyprofile.png"></span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="el-h3 heading-wrapper">
|
||||
<h3 data-heading="Input" dir="auto" class="heading" id="Input">
|
||||
<div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg
|
||||
xmlns="http://www.w3.org/2000/svg" width="24" height="24"
|
||||
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round" stroke-linejoin="round"
|
||||
class="svg-icon right-triangle">
|
||||
<path d="M3 8L12 17L21 8"></path>
|
||||
</svg></div>Input
|
||||
</h3>
|
||||
<div class="heading-children">
|
||||
<div class="el-table" dir="ltr" style="overflow-x: auto;">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th dir="ltr"><strong>Member</strong></th>
|
||||
<th dir="ltr"><strong>Definition</strong></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td dir="ltr"><strong>Start</strong></td>
|
||||
<td dir="ltr">Start of the Trace</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr"><strong>End</strong></td>
|
||||
<td dir="ltr">End of the Trace</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr"><strong>Trace Complex</strong></td>
|
||||
<td dir="ltr">If the trace will use <a data-tooltip-position="top"
|
||||
aria-label="https://dev.epicgames.com/documentation/en-us/unreal-engine/simple-versus-complex-collision-in-unreal-engine"
|
||||
rel="noopener nofollow" class="external-link"
|
||||
href="https://dev.epicgames.com/documentation/en-us/unreal-engine/simple-versus-complex-collision-in-unreal-engine"
|
||||
target="_blank">Complex Collision</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr"><strong>Actors To Ignore</strong></td>
|
||||
<td dir="ltr">Array of Actors, to ignore while tracing</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr"><strong>Draw Debug Type</strong></td>
|
||||
<td dir="ltr">Draw Debug Arrows over Time, or Persistently</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr"><strong>Ignore Self</strong></td>
|
||||
<td dir="ltr">If the traces should ignore the Current actor (Self)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr"><strong>Trace Color</strong></td>
|
||||
<td dir="ltr">The color of the trace, when it's not going through
|
||||
anything.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr"><strong>Trace Hit Color</strong></td>
|
||||
<td dir="ltr">The color of the trace, when it's going through
|
||||
something.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr"><strong>Draw Time</strong></td>
|
||||
<td dir="ltr">Amount of time to draw debug lines (if not persistent)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr"><strong>Max Depth</strong></td>
|
||||
<td dir="ltr">Maximum depth for the trace to go</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="el-h2 heading-wrapper">
|
||||
<h2 data-heading="Implementing into existing systems" dir="auto" class="heading"
|
||||
id="Implementing_into_existing_systems">
|
||||
<div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg
|
||||
xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||||
stroke-linejoin="round" class="svg-icon right-triangle">
|
||||
<path d="M3 8L12 17L21 8"></path>
|
||||
</svg></div>Implementing into existing systems
|
||||
</h2>
|
||||
<div class="heading-children">
|
||||
<div class="el-p">
|
||||
<p dir="auto">This can be seamlessly integrated with existing systems with minimal
|
||||
changes to your current blueprint setup.</p>
|
||||
</div>
|
||||
<div class="el-p">
|
||||
<p dir="auto">By simply replacing your current line trace nodes with the Depth Trace
|
||||
node, you’ll get the added benefit of depth effects.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="el-h2 heading-wrapper">
|
||||
<h2 data-heading="Adding Trace Collision Channel (optional)" dir="auto" class="heading"
|
||||
id="Adding_Trace_Collision_Channel_(optional)">
|
||||
<div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg
|
||||
xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||||
stroke-linejoin="round" class="svg-icon right-triangle">
|
||||
<path d="M3 8L12 17L21 8"></path>
|
||||
</svg></div>Adding Trace Collision Channel (optional)
|
||||
</h2>
|
||||
<div class="heading-children">
|
||||
<div class="el-p">
|
||||
<p dir="auto">While adding a custom collision channel is optional, it can be a bit more
|
||||
time-consuming and may cause other systems in your project to break if not set up
|
||||
correctly. By default, your existing channels might not be set to overlap, so
|
||||
setting up a new custom trace channel helps ensure compatibility.</p>
|
||||
</div>
|
||||
<div class="el-p">
|
||||
<p dir="auto">To set up a custom trace channel in Unreal Engine, follow these steps:</p>
|
||||
</div>
|
||||
<div class="el-ol">
|
||||
<ol>
|
||||
<li data-line="0" dir="auto">Go to <strong>Project Settings → Engine →
|
||||
Collision</strong>.</li>
|
||||
<li data-line="1" dir="auto">In the <strong>Collision Channels</strong> section,
|
||||
click <strong>Add New</strong>.</li>
|
||||
<li data-line="2" dir="auto">
|
||||
<div class="list-collapse-indicator collapse-indicator collapse-icon"><svg
|
||||
xmlns="http://www.w3.org/2000/svg" width="24" height="24"
|
||||
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round" stroke-linejoin="round"
|
||||
class="svg-icon right-triangle">
|
||||
<path d="M3 8L12 17L21 8"></path>
|
||||
</svg></div>Set the following properties for the new channel:
|
||||
<ul>
|
||||
<li data-line="3" dir="auto"><strong>Name</strong>: <code>Projectile</code>
|
||||
(or a name of your choice)</li>
|
||||
<li data-line="4" dir="auto"><strong>Default Response</strong>:
|
||||
<code>Overlap</code></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="el-p">
|
||||
<p dir="auto">For more detailed instructions on adding a custom object type to your
|
||||
project, you can refer to the <a data-tooltip-position="top"
|
||||
aria-label="https://dev.epicgames.com/documentation/en-us/unreal-engine/add-a-custom-object-type-to-your-project-in-unreal-engine"
|
||||
rel="noopener nofollow" class="external-link"
|
||||
href="https://dev.epicgames.com/documentation/en-us/unreal-engine/add-a-custom-object-type-to-your-project-in-unreal-engine"
|
||||
target="_blank">Unreal Engine Wiki on Custom Object Types</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="el-h2 heading-wrapper">
|
||||
<h2 data-heading="Physical materials (optional)" dir="auto" class="heading"
|
||||
id="Physical_materials_(optional)">
|
||||
<div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg
|
||||
xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||||
stroke-linejoin="round" class="svg-icon right-triangle">
|
||||
<path d="M3 8L12 17L21 8"></path>
|
||||
</svg></div>Physical materials (optional)
|
||||
</h2>
|
||||
<div class="heading-children">
|
||||
<div class="el-p">
|
||||
<p dir="auto">Default <a data-tooltip-position="top"
|
||||
aria-label="https://dev.epicgames.com/documentation/en-us/unreal-engine/physical-materials-user-guide-for-unreal-engine"
|
||||
rel="noopener nofollow" class="external-link"
|
||||
href="https://dev.epicgames.com/documentation/en-us/unreal-engine/physical-materials-user-guide-for-unreal-engine"
|
||||
target="_blank">Physical Material</a> properties are at <strong>1 g/cm</strong>,
|
||||
but adding more physical properties into your game can add extra depth. </p>
|
||||
</div>
|
||||
<div class="el-h3 heading-wrapper">
|
||||
<h3 data-heading="Example Material Densities" dir="auto" class="heading"
|
||||
id="Example_Material_Densities">
|
||||
<div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg
|
||||
xmlns="http://www.w3.org/2000/svg" width="24" height="24"
|
||||
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round" stroke-linejoin="round"
|
||||
class="svg-icon right-triangle">
|
||||
<path d="M3 8L12 17L21 8"></path>
|
||||
</svg></div>Example Material Densities
|
||||
</h3>
|
||||
<div class="heading-children">
|
||||
<div class="el-table" dir="ltr" style="overflow-x: auto;">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th dir="ltr">Material</th>
|
||||
<th dir="ltr">Density (g/cm³)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td dir="ltr">Styrofoam</td>
|
||||
<td dir="auto">0.1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr">Pine Wood</td>
|
||||
<td dir="auto">0.5</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr">Water</td>
|
||||
<td dir="auto">0.5</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr">Glass</td>
|
||||
<td dir="auto">1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr">Concrete</td>
|
||||
<td dir="auto">2.4</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr">Aluminum</td>
|
||||
<td dir="auto">2.7</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr">Iron/Steel</td>
|
||||
<td dir="auto">7.8</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr">Copper</td>
|
||||
<td dir="auto">8.9</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td dir="ltr">Lead</td>
|
||||
<td dir="auto">11.3</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="el-hr">
|
||||
<hr>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="el-h2 heading-wrapper">
|
||||
<h2 data-heading="Acknowledgements" dir="auto" class="heading" id="Acknowledgements">
|
||||
<div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg
|
||||
xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||||
stroke-linejoin="round" class="svg-icon right-triangle">
|
||||
<path d="M3 8L12 17L21 8"></path>
|
||||
</svg></div>Acknowledgements
|
||||
</h2>
|
||||
<div class="heading-children">
|
||||
<div class="el-ul">
|
||||
<ul>
|
||||
<li data-line="0" dir="auto"><a data-tooltip-position="top"
|
||||
aria-label="https://opengameart.org/users/loafbrr1" rel="noopener nofollow"
|
||||
class="external-link" href="https://opengameart.org/users/loafbrr1"
|
||||
target="_blank">loafbrr_1</a> for the pistol model</li>
|
||||
<li data-line="1" dir="auto"><a data-tooltip-position="top"
|
||||
aria-label="https://commons.wikimedia.org/wiki/File:B1_full_size_1500_target.jpg"
|
||||
rel="noopener nofollow" class="external-link"
|
||||
href="https://commons.wikimedia.org/wiki/File:B1_full_size_1500_target.jpg"
|
||||
target="_blank">Neil Francis</a> for the target image</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="mod-footer mod-ui"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sidebar-right sidebar">
|
||||
<div class="sidebar-topbar">
|
||||
<div class="topbar-content"></div>
|
||||
<div class="clickable-icon sidebar-collapse-icon"><svg xmlns="http://www.w3.org/2000/svg" width="100%"
|
||||
height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3"
|
||||
stroke-linecap="round" stroke-linejoin="round" class="svg-icon">
|
||||
<path
|
||||
d="M21 3H3C1.89543 3 1 3.89543 1 5V19C1 20.1046 1.89543 21 3 21H21C22.1046 21 23 20.1046 23 19V5C23 3.89543 22.1046 3 21 3Z">
|
||||
</path>
|
||||
<path d="M10 4V20"></path>
|
||||
<path d="M4 7H7"></path>
|
||||
<path d="M4 10H7"></path>
|
||||
<path d="M4 13H7"></path>
|
||||
</svg></div>
|
||||
</div>
|
||||
<div class="sidebar-content">
|
||||
<div class="tree-container mod-root nav-folder tree-item outline-tree" data-depth="0">
|
||||
<div class="tree-header"><span class="sidebar-section-header">Table Of Contents</span><button
|
||||
class="clickable-icon collapse-tree-button" aria-label="Collapse All"><svg
|
||||
xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||||
stroke-linejoin="round"></svg></button></div>
|
||||
<div class="tree-scroll-area tree-item-children nav-folder-children">
|
||||
<div class="tree-item mod-tree-folder nav-folder mod-collapsible is-collapsed"
|
||||
style="display: none;"></div>
|
||||
<div class="tree-item" data-depth="1"><a class="tree-link"
|
||||
href="blueprint-penetration-trace.html#Blueprint Penetration Trace Documentation">
|
||||
<div class="tree-item-contents heading-link"
|
||||
heading-name="Blueprint Penetration Trace Documentation"><span
|
||||
class="tree-item-title">Blueprint Penetration Trace Documentation</span></div>
|
||||
</a>
|
||||
<div class="tree-item-children nav-folder-children">
|
||||
<div class="tree-item" data-depth="2"><a class="tree-link"
|
||||
href="blueprint-penetration-trace.html#Features">
|
||||
<div class="tree-item-contents heading-link" heading-name="Features"><span
|
||||
class="tree-item-title">Features</span></div>
|
||||
</a>
|
||||
<div class="tree-item-children nav-folder-children"></div>
|
||||
</div>
|
||||
<div class="tree-item" data-depth="2"><a class="tree-link"
|
||||
href="blueprint-penetration-trace.html#How_it_works">
|
||||
<div class="tree-item-contents heading-link" heading-name="How it works"><span
|
||||
class="tree-item-title">How it works</span></div>
|
||||
</a>
|
||||
<div class="tree-item-children nav-folder-children"></div>
|
||||
</div>
|
||||
<div class="tree-item" data-depth="2"><a class="tree-link"
|
||||
href="blueprint-penetration-trace.html#Variants">
|
||||
<div class="tree-item-contents heading-link" heading-name="Variants"><span
|
||||
class="tree-item-title">Variants</span></div>
|
||||
</a>
|
||||
<div class="tree-item-children nav-folder-children">
|
||||
<div class="tree-item" data-depth="3"><a class="tree-link"
|
||||
href="blueprint-penetration-trace.html#Input">
|
||||
<div class="tree-item-contents heading-link" heading-name="Input"><span
|
||||
class="tree-item-title">Input</span></div>
|
||||
</a>
|
||||
<div class="tree-item-children nav-folder-children"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tree-item" data-depth="2"><a class="tree-link"
|
||||
href="blueprint-penetration-trace.html#Implementing_into_existing_systems">
|
||||
<div class="tree-item-contents heading-link"
|
||||
heading-name="Implementing into existing systems"><span
|
||||
class="tree-item-title">Implementing into existing systems</span></div>
|
||||
</a>
|
||||
<div class="tree-item-children nav-folder-children"></div>
|
||||
</div>
|
||||
<div class="tree-item" data-depth="2"><a class="tree-link"
|
||||
href="blueprint-penetration-trace.html#Adding_Trace_Collision_Channel_(optional)">
|
||||
<div class="tree-item-contents heading-link"
|
||||
heading-name="Adding Trace Collision Channel (optional)"><span
|
||||
class="tree-item-title">Adding Trace Collision Channel (optional)</span>
|
||||
</div>
|
||||
</a>
|
||||
<div class="tree-item-children nav-folder-children"></div>
|
||||
</div>
|
||||
<div class="tree-item" data-depth="2"><a class="tree-link"
|
||||
href="blueprint-penetration-trace.html#Physical_materials_(optional)">
|
||||
<div class="tree-item-contents heading-link"
|
||||
heading-name="Physical materials (optional)"><span
|
||||
class="tree-item-title">Physical materials (optional)</span></div>
|
||||
</a>
|
||||
<div class="tree-item-children nav-folder-children">
|
||||
<div class="tree-item" data-depth="3"><a class="tree-link"
|
||||
href="blueprint-penetration-trace.html#Example_Material_Densities">
|
||||
<div class="tree-item-contents heading-link"
|
||||
heading-name="Example Material Densities"><span
|
||||
class="tree-item-title">Example Material Densities</span></div>
|
||||
</a>
|
||||
<div class="tree-item-children nav-folder-children"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tree-item" data-depth="2"><a class="tree-link"
|
||||
href="blueprint-penetration-trace.html#Acknowledgements">
|
||||
<div class="tree-item-contents heading-link" heading-name="Acknowledgements">
|
||||
<span class="tree-item-title">Acknowledgements</span></div>
|
||||
</a>
|
||||
<div class="tree-item-children nav-folder-children"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script
|
||||
defer="">let rs = document.querySelector(".sidebar-right"); rs.classList.add("is-collapsed"); if (window.innerWidth > 768) rs.classList.remove("is-collapsed"); rs.style.setProperty("--sidebar-width", localStorage.getItem("sidebar-right-width"));</script>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,84 @@
|
||||
---
|
||||
title: Blueprint Depth Trace
|
||||
---
|
||||
This is a `Blueprint Function Library` with a few functions that are callable in `AActors` to do depth trace results, for use in things like projectiles and tools.
|
||||
|
||||
![[TraceExample.mp4]]
|
||||
## Features
|
||||
- Depth-based trace
|
||||
- Forward and backward trace results for bullet holes
|
||||
- Physics material based density calculations
|
||||
- Simple to implement into existing systems
|
||||
- Easy debug options
|
||||
|
||||
---
|
||||
|
||||
## How it works
|
||||
This node works by simulating depth using two line traces—one forward and one backward from the point of impact. These traces scan for objects in their paths and gather information about the hit results. The distance travelled through each material is multiplied by its density (defined in the material's physical properties), which determines how much the projectile is slowed down or whether it stops entirely. Finally, the node returns a list of hit results, including the total depth.
|
||||
|
||||
## Variants
|
||||
Depth Trace by Channel
|
||||
![[DepthTraceByChannel.png]]
|
||||
Depth Trace for Objects
|
||||
![[DepthTraceForObjects.png]]
|
||||
Depth Trace by Profile
|
||||
![[DepthTraceByProfile.png]]
|
||||
|
||||
### Input
|
||||
|
||||
| **Member** | **Definition** |
|
||||
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| **Start** | Start of the Trace |
|
||||
| **End** | End of the Trace |
|
||||
| **Trace Complex** | If the trace will use [Complex Collision](https://dev.epicgames.com/documentation/en-us/unreal-engine/simple-versus-complex-collision-in-unreal-engine) |
|
||||
| **Actors To Ignore** | Array of Actors, to ignore while tracing |
|
||||
| **Draw Debug Type** | Draw Debug Arrows over Time, or Persistently |
|
||||
| **Ignore Self** | If the traces should ignore the Current actor (Self) |
|
||||
| **Trace Color** | The color of the trace, when it's not going through anything. |
|
||||
| **Trace Hit Color** | The color of the trace, when it's going through something. |
|
||||
| **Draw Time** | Amount of time to draw debug lines (if not persistent) |
|
||||
| **Max Depth** | Maximum depth for the trace to go |
|
||||
|
||||
## Implementing into existing systems
|
||||
|
||||
This can be seamlessly integrated with existing systems with minimal changes to your current blueprint setup.
|
||||
|
||||
By simply replacing your current line trace nodes with the Depth Trace node, you’ll get the added benefit of depth effects.
|
||||
|
||||
## Adding Trace Collision Channel (optional)
|
||||
|
||||
While adding a custom collision channel is optional, it can be a bit more time-consuming and may cause other systems in your project to break if not set up correctly. By default, your existing channels might not be set to overlap, so setting up a new custom trace channel helps ensure compatibility.
|
||||
|
||||
To set up a custom trace channel in Unreal Engine, follow these steps:
|
||||
|
||||
1. Go to **Project Settings → Engine → Collision**.
|
||||
2. In the **Collision Channels** section, click **Add New**.
|
||||
3. Set the following properties for the new channel:
|
||||
- **Name**: `Projectile` (or a name of your choice)
|
||||
- **Default Response**: `Overlap`
|
||||
|
||||
For more detailed instructions on adding a custom object type to your project, you can refer to the [Unreal Engine Wiki on Custom Object Types](https://dev.epicgames.com/documentation/en-us/unreal-engine/add-a-custom-object-type-to-your-project-in-unreal-engine).
|
||||
|
||||
## Physical materials (optional)
|
||||
|
||||
Default [Physical Material](https://dev.epicgames.com/documentation/en-us/unreal-engine/physical-materials-user-guide-for-unreal-engine) properties are at **1 g/cm**, but adding more physical properties into your game can add extra depth.
|
||||
### Example Material Densities
|
||||
|
||||
| Material | Density (g/cm³) |
|
||||
| ---------- | --------------- |
|
||||
| Styrofoam | 0.1 |
|
||||
| Pine Wood | 0.5 |
|
||||
| Water | 0.5 |
|
||||
| Glass | 1 |
|
||||
| Concrete | 2.4 |
|
||||
| Aluminum | 2.7 |
|
||||
| Iron/Steel | 7.8 |
|
||||
| Copper | 8.9 |
|
||||
| Lead | 11.3 |
|
||||
|
||||
---
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
- [loafbrr_1](https://opengameart.org/users/loafbrr1) for the pistol model
|
||||
- [Neil Francis](https://commons.wikimedia.org/wiki/File:B1_full_size_1500_target.jpg) for the target image
|
||||
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 9.0 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 39 KiB |
@@ -1,430 +1,48 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Documentation Home</title>
|
||||
<base href="https://lit.ruv.wtf/docs/">
|
||||
<meta id="root-path" root-path="https://lit.ruv.wtf/docs/">
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=1.0, maximum-scale=5.0">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="description" content="lit.ruv.wtf - Docs - Documentation Home">
|
||||
<meta property="og:title" content="Documentation Home">
|
||||
<meta property="og:description" content="lit.ruv.wtf - Docs - Documentation Home">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="https://lit.ruv.wtf/docs/index.html">
|
||||
<meta property="og:image" content="undefined">
|
||||
<meta property="og:site_name" content="lit.ruv.wtf - Docs">
|
||||
<meta name="author" content="Litruv">
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="https://lit.ruv.wtf/docs/lib/rss.xml">
|
||||
<script async="" id="webpage-script" src="lib/scripts/webpage.js"
|
||||
onload="this.onload=null;this.setAttribute('loaded', 'true')"></script>
|
||||
<script async="" id="minisearch-script" src="https://cdn.jsdelivr.net/npm/minisearch@6.3.0/dist/umd/index.min.js"
|
||||
onload="this.onload=null;this.setAttribute('loaded', 'true')"></script>
|
||||
<link rel="icon" href="lib/media/favicon.png">
|
||||
<style>
|
||||
body {
|
||||
--line-width: 40em;
|
||||
--line-width-adaptive: 40em;
|
||||
--file-line-width: 40em;
|
||||
--sidebar-width: min(20em, 80vw);
|
||||
--collapse-arrow-size: 11px;
|
||||
--tree-horizontal-spacing: 0.6em;
|
||||
--tree-vertical-spacing: 0.6em;
|
||||
--sidebar-margin: 12px
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
height: 100%;
|
||||
min-width: calc(var(--sidebar-width) + var(--divider-width-hover));
|
||||
max-width: calc(var(--sidebar-width) + var(--divider-width-hover));
|
||||
font-size: 14px;
|
||||
z-index: 10;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: min-width ease-in-out, max-width ease-in-out;
|
||||
transition-duration: .2s;
|
||||
contain: size
|
||||
}
|
||||
|
||||
.sidebar-left {
|
||||
left: 0
|
||||
}
|
||||
|
||||
.sidebar-right {
|
||||
right: 0
|
||||
}
|
||||
|
||||
.sidebar.is-collapsed {
|
||||
min-width: 0;
|
||||
max-width: 0
|
||||
}
|
||||
|
||||
body.floating-sidebars .sidebar {
|
||||
position: absolute
|
||||
}
|
||||
|
||||
.sidebar-content {
|
||||
height: 100%;
|
||||
min-width: calc(var(--sidebar-width) - var(--divider-width-hover));
|
||||
top: 0;
|
||||
padding: var(--sidebar-margin);
|
||||
padding-top: 4em;
|
||||
line-height: var(--line-height-tight);
|
||||
background-color: var(--background-secondary);
|
||||
transition: background-color, border-right, border-left, box-shadow;
|
||||
transition-duration: var(--color-fade-speed);
|
||||
transition-timing-function: ease-in-out;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
flex-direction: column
|
||||
}
|
||||
|
||||
.sidebar:not(.is-collapsed) .sidebar-content {
|
||||
min-width: calc(max(100%, var(--sidebar-width)) - 3px);
|
||||
max-width: calc(max(100%, var(--sidebar-width)) - 3px)
|
||||
}
|
||||
|
||||
.sidebar-left .sidebar-content {
|
||||
left: 0;
|
||||
border-top-right-radius: var(--radius-l);
|
||||
border-bottom-right-radius: var(--radius-l)
|
||||
}
|
||||
|
||||
.sidebar-right .sidebar-content {
|
||||
right: 0;
|
||||
border-top-left-radius: var(--radius-l);
|
||||
border-bottom-left-radius: var(--radius-l)
|
||||
}
|
||||
|
||||
.sidebar:has(.sidebar-content:empty):has(.topbar-content:empty) {
|
||||
display: none
|
||||
}
|
||||
|
||||
.sidebar-topbar {
|
||||
height: 2em;
|
||||
width: var(--sidebar-width);
|
||||
top: var(--sidebar-margin);
|
||||
padding-inline: var(--sidebar-margin);
|
||||
z-index: 1;
|
||||
position: fixed;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
transition: width ease-in-out;
|
||||
transition-duration: inherit
|
||||
}
|
||||
|
||||
.sidebar.is-collapsed .sidebar-topbar {
|
||||
width: calc(2.3em + var(--sidebar-margin) * 2)
|
||||
}
|
||||
|
||||
.sidebar .sidebar-topbar.is-collapsed {
|
||||
width: 0
|
||||
}
|
||||
|
||||
.sidebar-left .sidebar-topbar {
|
||||
left: 0
|
||||
}
|
||||
|
||||
.sidebar-right .sidebar-topbar {
|
||||
right: 0
|
||||
}
|
||||
|
||||
.topbar-content {
|
||||
overflow: hidden;
|
||||
overflow: clip;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
transition: inherit
|
||||
}
|
||||
|
||||
.sidebar.is-collapsed .topbar-content {
|
||||
width: 0;
|
||||
transition: inherit
|
||||
}
|
||||
|
||||
.clickable-icon.sidebar-collapse-icon {
|
||||
background-color: transparent;
|
||||
color: var(--icon-color-focused);
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
height: 100% !important;
|
||||
width: 2.3em !important;
|
||||
margin-inline: 0.14em !important;
|
||||
position: absolute
|
||||
}
|
||||
|
||||
.sidebar-left .clickable-icon.sidebar-collapse-icon {
|
||||
transform: rotateY(180deg);
|
||||
right: var(--sidebar-margin)
|
||||
}
|
||||
|
||||
.sidebar-right .clickable-icon.sidebar-collapse-icon {
|
||||
transform: rotateY(180deg);
|
||||
left: var(--sidebar-margin)
|
||||
}
|
||||
|
||||
.clickable-icon.sidebar-collapse-icon svg.svg-icon {
|
||||
width: 100%;
|
||||
height: 100%
|
||||
}
|
||||
|
||||
.sidebar-section-header {
|
||||
margin: 0 0 1em 0;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .06em;
|
||||
font-weight: 600
|
||||
}
|
||||
|
||||
body {
|
||||
transition: background-color var(--color-fade-speed) ease-in-out
|
||||
}
|
||||
|
||||
.webpage-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
align-items: stretch;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.document-container {
|
||||
opacity: 1;
|
||||
flex-basis: 100%;
|
||||
max-width: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
transition: opacity .2s ease-in-out;
|
||||
contain: inline-size
|
||||
}
|
||||
|
||||
.hide {
|
||||
opacity: 0;
|
||||
transition: opacity .2s ease-in-out
|
||||
}
|
||||
|
||||
.document-container>.markdown-preview-view {
|
||||
margin: var(--sidebar-margin);
|
||||
margin-bottom: 0;
|
||||
width: 100%;
|
||||
width: -webkit-fill-available;
|
||||
width: -moz-available;
|
||||
width: fill-available;
|
||||
background-color: var(--background-primary);
|
||||
transition: background-color var(--color-fade-speed) ease-in-out;
|
||||
border-top-right-radius: var(--window-radius, var(--radius-m));
|
||||
border-top-left-radius: var(--window-radius, var(--radius-m));
|
||||
overflow-x: hidden !important;
|
||||
overflow-y: auto !important;
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
align-items: center !important;
|
||||
contain: inline-size
|
||||
}
|
||||
|
||||
.document-container>.markdown-preview-view>.markdown-preview-sizer {
|
||||
padding-bottom: 80vh !important;
|
||||
width: 100% !important;
|
||||
max-width: var(--line-width) !important;
|
||||
flex-basis: var(--line-width) !important;
|
||||
transition: background-color var(--color-fade-speed) ease-in-out;
|
||||
contain: inline-size
|
||||
}
|
||||
|
||||
.markdown-rendered img:not([width]),
|
||||
.view-content img:not([width]) {
|
||||
max-width: 100%;
|
||||
outline: 0
|
||||
}
|
||||
|
||||
.document-container>.view-content.embed {
|
||||
display: flex;
|
||||
padding: 1em;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
justify-content: center
|
||||
}
|
||||
|
||||
.document-container>.view-content.embed>* {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain
|
||||
}
|
||||
|
||||
:has(> :is(.math, table)) {
|
||||
overflow-x: auto !important
|
||||
}
|
||||
|
||||
.document-container>.view-content {
|
||||
overflow-x: auto;
|
||||
contain: content;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
height: 100%
|
||||
}
|
||||
|
||||
.scroll-highlight {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 1000;
|
||||
background-color: hsla(var(--color-accent-hsl), .25);
|
||||
opacity: 0;
|
||||
padding: 1em;
|
||||
inset: 50%;
|
||||
translate: -50% -50%;
|
||||
border-radius: var(--radius-s)
|
||||
}
|
||||
</style>
|
||||
<script
|
||||
defer="">async function loadIncludes() { if ("file:" != location.protocol) { let e = document.querySelectorAll("include"); for (let t = 0; t < e.length; t++) { let o = e[t], l = o.getAttribute("src"); try { const e = await fetch(l); if (!e.ok) { console.log("Could not include file: " + l), o?.remove(); continue } let t = await e.text(), n = document.createRange().createContextualFragment(t), i = Array.from(n.children); for (let e of i) e.classList.add("hide"), e.style.transition = "opacity 0.5s ease-in-out", setTimeout((() => { e.classList.remove("hide") }), 10); o.before(n), o.remove(), console.log("Included file: " + l) } catch (e) { o?.remove(), console.log("Could not include file: " + l, e); continue } } } else { if (document.querySelectorAll("include").length > 0) { var e = document.createElement("div"); e.id = "error", e.textContent = "Web server exports must be hosted on an http / web server to be viewed correctly.", e.style.position = "fixed", e.style.top = "50%", e.style.left = "50%", e.style.transform = "translate(-50%, -50%)", e.style.fontSize = "1.5em", e.style.fontWeight = "bold", e.style.textAlign = "center", document.body.appendChild(e), document.querySelector(".document-container")?.classList.remove("hide") } } } document.addEventListener("DOMContentLoaded", (() => { loadIncludes() })); let isFileProtocol = "file:" == location.protocol; function waitLoadScripts(e, t) { let o = e.map((e => document.getElementById(e + "-script"))), l = 0; !function e() { let n = o[l]; l++, n && "true" != n.getAttribute("loaded") || l < o.length && e(), l < o.length ? n.addEventListener("load", e) : t() }() }</script>
|
||||
<link rel="stylesheet" href="lib/styles/obsidian.css">
|
||||
<link rel="preload" href="lib/styles/global-variable-styles.css" as="style"
|
||||
onload="this.onload=null;this.rel='stylesheet'"><noscript>
|
||||
<link rel="stylesheet" href="lib/styles/global-variable-styles.css">
|
||||
</noscript>
|
||||
<link rel="preload" href="lib/styles/main-styles.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="lib/styles/main-styles.css">
|
||||
</noscript>
|
||||
<link rel="preload" href="lib/styles/snippets.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="lib/styles/snippets.css">
|
||||
</noscript>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Documentation Viewer</title>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/themes/prism-tomorrow.min.css">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
|
||||
<body class="publish css-settings-manager theme-dark show-inline-title show-ribbon">
|
||||
<script
|
||||
defer="">let theme = localStorage.getItem("theme") || (window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"); "dark" == theme ? (document.body.classList.add("theme-dark"), document.body.classList.remove("theme-light")) : (document.body.classList.add("theme-light"), document.body.classList.remove("theme-dark")), window.innerWidth < 480 ? document.body.classList.add("is-phone") : window.innerWidth < 768 ? document.body.classList.add("is-tablet") : window.innerWidth < 1024 ? document.body.classList.add("is-small-screen") : document.body.classList.add("is-large-screen")</script>
|
||||
<div class="webpage-container workspace">
|
||||
<div class="sidebar-left sidebar">
|
||||
<div class="sidebar-topbar">
|
||||
<div class="topbar-content"></div>
|
||||
<div class="clickable-icon sidebar-collapse-icon"><svg xmlns="http://www.w3.org/2000/svg" width="100%"
|
||||
height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3"
|
||||
stroke-linecap="round" stroke-linejoin="round" class="svg-icon">
|
||||
<path
|
||||
d="M21 3H3C1.89543 3 1 3.89543 1 5V19C1 20.1046 1.89543 21 3 21H21C22.1046 21 23 20.1046 23 19V5C23 3.89543 22.1046 3 21 3Z">
|
||||
</path>
|
||||
<path d="M10 4V20"></path>
|
||||
<path d="M4 7H7"></path>
|
||||
<path d="M4 10H7"></path>
|
||||
<path d="M4 13H7"></path>
|
||||
</svg></div>
|
||||
</div>
|
||||
<div class="sidebar-content">
|
||||
<div class="search-input-container"><input enterkeyhint="search" type="search" spellcheck="false"
|
||||
placeholder="Search...">
|
||||
<div class="search-input-clear-button" aria-label="Clear search"></div>
|
||||
</div>
|
||||
<include src="lib/html/file-tree.html"></include>
|
||||
</div>
|
||||
<script
|
||||
defer="">let ls = document.querySelector(".sidebar-left"); ls.classList.add("is-collapsed"); if (window.innerWidth > 768) ls.classList.remove("is-collapsed"); ls.style.setProperty("--sidebar-width", localStorage.getItem("sidebar-left-width"));</script>
|
||||
</div>
|
||||
<div class="document-container markdown-reading-view hide">
|
||||
<div class="markdown-preview-view markdown-rendered is-readable-line-width">
|
||||
<style id="MJX-CHTML-styles"></style>
|
||||
<pre class="frontmatter language-yaml" tabindex="0"
|
||||
style="display: none;"><code class="language-yaml is-loaded"><span class="token key atrule">title</span><span class="token punctuation">:</span> Documentation Home</code><button class="copy-code-button"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svg-icon lucide-copy"><rect x="8" y="8" width="14" height="14" rx="2" ry="2"></rect><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"></path></svg></button></pre>
|
||||
<div class="markdown-preview-sizer markdown-preview-section">
|
||||
<h1 class="page-title heading inline-title" id="Documentation Home">Documentation Home</h1>
|
||||
<div class="el-p">
|
||||
<p dir="auto">Welcome to the docs, I make blueprint plugins, many are in the works, but they'll
|
||||
come out here as I go</p>
|
||||
</div>
|
||||
<div class="el-h2 heading-wrapper">
|
||||
<h2 data-heading="[[Blueprint Penetration Trace]]" dir="auto" class="heading"
|
||||
id="[[Blueprint_Penetration_Trace]]">
|
||||
<div class="heading-collapse-indicator collapse-indicator collapse-icon"><svg
|
||||
xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||||
stroke-linejoin="round" class="svg-icon right-triangle">
|
||||
<path d="M3 8L12 17L21 8"></path>
|
||||
</svg></div><a data-href="Blueprint Penetration Trace"
|
||||
href="blueprint-penetration-trace.html" class="internal-link" target="_self"
|
||||
rel="noopener nofollow">Blueprint Penetration Trace</a>
|
||||
</h2>
|
||||
<div class="heading-children">
|
||||
<div class="el-p">
|
||||
<p dir="auto"><span alt="TraceExample.mp4" src="TraceExample.mp4"
|
||||
class="internal-embed media-embed video-embed is-loaded"><video controls=""
|
||||
preload="metadata" src="images/traceexample.mp4"></video></span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="el-p">
|
||||
<p dir="auto">If you require more support, come say hi on my <a
|
||||
data-tooltip-position="top" aria-label="https://discord.gg/b8ctQBaaax"
|
||||
rel="noopener nofollow" class="external-link"
|
||||
href="https://discord.gg/b8ctQBaaax" target="_blank">discord</a>. <a
|
||||
rel="noopener nofollow" class="external-link"
|
||||
href="https://discord.gg/b8ctQBaaax"
|
||||
target="_blank">https://discord.gg/b8ctQBaaax</a></p>
|
||||
</div>
|
||||
<div class="mod-footer mod-ui"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sidebar-right sidebar">
|
||||
<div class="sidebar-topbar">
|
||||
<div class="topbar-content"></div>
|
||||
<div class="clickable-icon sidebar-collapse-icon"><svg xmlns="http://www.w3.org/2000/svg" width="100%"
|
||||
height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3"
|
||||
stroke-linecap="round" stroke-linejoin="round" class="svg-icon">
|
||||
<path
|
||||
d="M21 3H3C1.89543 3 1 3.89543 1 5V19C1 20.1046 1.89543 21 3 21H21C22.1046 21 23 20.1046 23 19V5C23 3.89543 22.1046 3 21 3Z">
|
||||
</path>
|
||||
<path d="M10 4V20"></path>
|
||||
<path d="M4 7H7"></path>
|
||||
<path d="M4 10H7"></path>
|
||||
<path d="M4 13H7"></path>
|
||||
</svg></div>
|
||||
</div>
|
||||
<div class="sidebar-content">
|
||||
<div class="tree-container mod-root nav-folder tree-item outline-tree" data-depth="0">
|
||||
<div class="tree-header"><span class="sidebar-section-header">Table Of Contents</span><button
|
||||
class="clickable-icon collapse-tree-button" aria-label="Collapse All"><svg
|
||||
xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||||
stroke-linejoin="round"></svg></button></div>
|
||||
<div class="tree-scroll-area tree-item-children nav-folder-children">
|
||||
<div class="tree-item mod-tree-folder nav-folder mod-collapsible is-collapsed"
|
||||
style="display: none;"></div>
|
||||
<div class="tree-item" data-depth="1"><a class="tree-link" href="index.html#Documentation Home">
|
||||
<div class="tree-item-contents heading-link" heading-name="Documentation Home"><span
|
||||
class="tree-item-title">Documentation Home</span></div>
|
||||
</a>
|
||||
<div class="tree-item-children nav-folder-children">
|
||||
<div class="tree-item" data-depth="2"><a class="tree-link"
|
||||
href="index.html#[[Blueprint_Penetration_Trace]]">
|
||||
<div class="tree-item-contents heading-link"
|
||||
heading-name="[[Blueprint Penetration Trace]]"><span
|
||||
class="tree-item-title"><a data-href="Blueprint Penetration Trace"
|
||||
href="Blueprint Penetration Trace" class="internal-link"
|
||||
target="_blank" rel="noopener nofollow">Blueprint Penetration
|
||||
Trace</a></span></div>
|
||||
</a>
|
||||
<div class="tree-item-children nav-folder-children"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script
|
||||
defer="">let rs = document.querySelector(".sidebar-right"); rs.classList.add("is-collapsed"); if (window.innerWidth > 768) rs.classList.remove("is-collapsed"); rs.style.setProperty("--sidebar-width", localStorage.getItem("sidebar-right-width"));</script>
|
||||
</div>
|
||||
</div>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="title-bar">
|
||||
<button class="menu-button">☰</button>
|
||||
<div class="title-text">
|
||||
<span class="brand">Litruv</span>
|
||||
<span class="divider">/</span>
|
||||
<span class="page-title">Documentation</span>
|
||||
</div>
|
||||
<span style="width: 24px;"></span><!-- Spacer for alignment -->
|
||||
</div>
|
||||
<div class="content-container">
|
||||
<nav class="sidebar left-sidebar">
|
||||
<div id="file-index"></div>
|
||||
</nav>
|
||||
<main class="content">
|
||||
<div id="document-content"></div>
|
||||
</main>
|
||||
<nav class="sidebar right-sidebar">
|
||||
<div id="document-outline"></div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<script src="https://cdn.jsdelivr.net/npm/marked@4.3.0/marked.min.js"></script>
|
||||
<script>
|
||||
// Fallback in case CDN fails
|
||||
window.addEventListener('error', function(e) {
|
||||
if (e.target.src && e.target.src.includes('marked.min.js')) {
|
||||
const script = document.createElement('script');
|
||||
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/marked/4.3.0/marked.min.js';
|
||||
document.body.appendChild(script);
|
||||
}
|
||||
}, true);
|
||||
</script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/components/prism-core.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.24.1/plugins/autoloader/prism-autoloader.min.js"></script>
|
||||
<script src="index.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,264 @@
|
||||
// Initialize marked when it's available
|
||||
let markedPromise = new Promise((resolve) => {
|
||||
if (typeof marked !== 'undefined') {
|
||||
resolve(marked);
|
||||
} else {
|
||||
window.addEventListener('load', () => resolve(marked));
|
||||
}
|
||||
});
|
||||
|
||||
// Configure marked options
|
||||
async function initializeMarked() {
|
||||
const marked = await markedPromise;
|
||||
marked.setOptions({
|
||||
highlight: function(code, lang) {
|
||||
if (Prism.languages[lang]) {
|
||||
return Prism.highlight(code, Prism.languages[lang], lang);
|
||||
}
|
||||
return code;
|
||||
},
|
||||
breaks: true,
|
||||
gfm: true
|
||||
});
|
||||
return marked;
|
||||
}
|
||||
|
||||
async function loadIndex() {
|
||||
try {
|
||||
const response = await fetch('index.json');
|
||||
const data = await response.json();
|
||||
const fileIndex = document.getElementById('file-index');
|
||||
|
||||
// Build file index
|
||||
data.documents.forEach(doc => {
|
||||
const link = document.createElement('a');
|
||||
const fileName = doc.path.replace(/^docs\//, '')
|
||||
.replace(/\.md$/, '')
|
||||
.replace(/\s+/g, '-')
|
||||
.toLowerCase();
|
||||
|
||||
link.href = `?${fileName}`;
|
||||
link.textContent = doc.title;
|
||||
link.onclick = (e) => {
|
||||
e.preventDefault();
|
||||
loadDocument(doc.path);
|
||||
history.pushState(null, '', link.href);
|
||||
};
|
||||
fileIndex.appendChild(link);
|
||||
});
|
||||
|
||||
// Handle initial URL load
|
||||
const queryString = window.location.search;
|
||||
if (queryString) {
|
||||
const fileParam = queryString.substring(1); // Remove the leading '?'
|
||||
console.log('Loading document for:', fileParam); // Debug log
|
||||
|
||||
const matchingDoc = data.documents.find(doc => {
|
||||
const docFileName = doc.path.replace(/^docs\//, '')
|
||||
.replace(/\.md$/, '')
|
||||
.replace(/\s+/g, '-')
|
||||
.toLowerCase();
|
||||
return docFileName === fileParam;
|
||||
});
|
||||
|
||||
if (matchingDoc) {
|
||||
console.log('Found matching document:', matchingDoc); // Debug log
|
||||
await loadDocument(matchingDoc.path);
|
||||
} else {
|
||||
console.warn('No matching document found for:', fileParam); // Debug log
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Failed to load index:', error);
|
||||
document.getElementById('document-content').innerHTML =
|
||||
'<div class="error">Failed to load documentation index.</div>';
|
||||
}
|
||||
}
|
||||
|
||||
// Add popstate handler for browser back/forward buttons
|
||||
window.addEventListener('popstate', async () => {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const fileParam = urlParams.toString().replace(/^=/, '').replace(/^\?/, '');
|
||||
if (fileParam) {
|
||||
const response = await fetch('index.json');
|
||||
const data = await response.json();
|
||||
const matchingDoc = data.documents.find(doc => {
|
||||
const docFileName = doc.path.replace(/^docs\//, '')
|
||||
.replace(/\.md$/, '')
|
||||
.replace(/\s+/g, '-')
|
||||
.toLowerCase();
|
||||
return docFileName === fileParam;
|
||||
});
|
||||
|
||||
if (matchingDoc) {
|
||||
await loadDocument(matchingDoc.path);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
function extractMetadata(content) {
|
||||
const lines = content.split('\n');
|
||||
let metadata = {};
|
||||
let contentStart = 0;
|
||||
|
||||
// Check if the file starts with a metadata section
|
||||
if (lines[0] === '---') {
|
||||
let endMetadata = -1;
|
||||
|
||||
// Find the closing '---'
|
||||
for (let i = 1; i < lines.length; i++) {
|
||||
if (lines[i] === '---') {
|
||||
endMetadata = i;
|
||||
break;
|
||||
}
|
||||
// Parse key-value pairs
|
||||
const match = lines[i].match(/^([\w-]+):\s*(.*)$/);
|
||||
if (match) {
|
||||
metadata[match[1]] = match[2].trim();
|
||||
}
|
||||
}
|
||||
|
||||
if (endMetadata !== -1) {
|
||||
contentStart = endMetadata + 1;
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
metadata,
|
||||
content: lines.slice(contentStart).join('\n').trim()
|
||||
};
|
||||
}
|
||||
|
||||
async function loadDocument(path) {
|
||||
try {
|
||||
const [response, marked] = await Promise.all([
|
||||
fetch(path),
|
||||
initializeMarked()
|
||||
]);
|
||||
|
||||
let rawContent = await response.text();
|
||||
const { metadata, content } = extractMetadata(rawContent);
|
||||
|
||||
const basePath = path.substring(0, path.lastIndexOf('/'));
|
||||
const documentContent = document.getElementById('document-content');
|
||||
const documentOutline = document.getElementById('document-outline');
|
||||
|
||||
// Create title element
|
||||
const titleContent = metadata.title || path.split('/').pop().replace('.md', '');
|
||||
const processedContent = `# ${titleContent}\n\n${content}`;
|
||||
|
||||
// Convert Obsidian media links to HTML with proper spacing
|
||||
const finalContent = processedContent.replace(/!\[\[(.*?)\]\]/g, (match, filename) => {
|
||||
const mediaPath = `${basePath}/images/${filename}`;
|
||||
|
||||
// Check if it's a video file
|
||||
if (filename.toLowerCase().endsWith('.mp4')) {
|
||||
return `\n<video controls width="100%">
|
||||
<source src="${mediaPath}" type="video/mp4">
|
||||
Your browser does not support the video tag.
|
||||
</video>\n\n`;
|
||||
}
|
||||
|
||||
// Default to image handling with added newlines
|
||||
return `\n\n\n`;
|
||||
});
|
||||
|
||||
// Update page and title bar while preserving menu button and brand
|
||||
document.title = `Litruv / ${titleContent}`;
|
||||
document.querySelector('.title-text .page-title').textContent = titleContent;
|
||||
|
||||
// Parse markdown content
|
||||
documentContent.className = 'markdown-content';
|
||||
documentContent.innerHTML = marked.parse(finalContent);
|
||||
|
||||
// Generate outline
|
||||
documentOutline.innerHTML = '';
|
||||
const headings = documentContent.querySelectorAll('h1, h2, h3, h4, h5, h6');
|
||||
|
||||
headings.forEach(heading => {
|
||||
if (!heading.id) {
|
||||
heading.id = heading.textContent.toLowerCase()
|
||||
.replace(/[^\w\s-]/g, '')
|
||||
.replace(/\s+/g, '-');
|
||||
}
|
||||
|
||||
const link = document.createElement('a');
|
||||
link.href = `${window.location.pathname}${window.location.search}#${heading.id}`;
|
||||
link.textContent = heading.textContent;
|
||||
link.style.paddingLeft = (heading.tagName[1] - 1) * 15 + 'px';
|
||||
|
||||
link.onclick = (e) => {
|
||||
e.preventDefault();
|
||||
// Update URL without triggering navigation
|
||||
history.pushState(null, '', link.href);
|
||||
|
||||
// Remove existing highlights
|
||||
document.querySelectorAll('.highlight').forEach(el => {
|
||||
el.classList.remove('highlight');
|
||||
});
|
||||
|
||||
// Add highlight class to trigger animation
|
||||
heading.classList.add('highlight');
|
||||
|
||||
// Smooth scroll
|
||||
heading.scrollIntoView({ behavior: 'smooth' });
|
||||
};
|
||||
|
||||
documentOutline.appendChild(link);
|
||||
});
|
||||
|
||||
// Check for hash in URL and highlight on load
|
||||
if (window.location.hash) {
|
||||
const id = window.location.hash.substring(1);
|
||||
const heading = document.getElementById(id);
|
||||
if (heading) {
|
||||
heading.classList.add('highlight');
|
||||
heading.scrollIntoView({ behavior: 'smooth' });
|
||||
}
|
||||
}
|
||||
|
||||
// Highlight code blocks
|
||||
Prism.highlightAll();
|
||||
} catch (error) {
|
||||
console.error('Error loading document:', error);
|
||||
document.getElementById('document-content').innerHTML =
|
||||
'<div class="error">Error loading document. Please try again.</div>';
|
||||
}
|
||||
}
|
||||
|
||||
// Handle image paths
|
||||
function fixImagePaths(basePath, content) {
|
||||
return content.replace(/!\[\[(.*?)\]\]/g, (match, filename) => {
|
||||
const imagePath = basePath + '/images/' + filename;
|
||||
return ``;
|
||||
});
|
||||
}
|
||||
|
||||
// Add menu toggle functionality
|
||||
function setupMobileMenu() {
|
||||
const menuButton = document.querySelector('.menu-button');
|
||||
const leftSidebar = document.querySelector('.left-sidebar');
|
||||
const content = document.querySelector('.content');
|
||||
|
||||
menuButton.addEventListener('click', () => {
|
||||
leftSidebar.classList.toggle('show');
|
||||
});
|
||||
|
||||
// Close menu when clicking outside
|
||||
content.addEventListener('click', () => {
|
||||
if (leftSidebar.classList.contains('show')) {
|
||||
leftSidebar.classList.remove('show');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Add new initialization with proper order
|
||||
window.addEventListener('load', () => {
|
||||
console.log('Window loaded, initializing...'); // Debug log
|
||||
setupMobileMenu();
|
||||
loadIndex().catch(error => {
|
||||
console.error('Failed to initialize:', error);
|
||||
document.getElementById('document-content').innerHTML =
|
||||
'<div class="error">Failed to load documentation. Please try refreshing the page.</div>';
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"documents": [
|
||||
{
|
||||
"title": "Blueprint Depth Trace",
|
||||
"path": "docs/Blueprint Penetration Trace.md"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<div class="tree-container mod-root nav-folder tree-item file-tree mod-nav-indicator" data-depth="0"><div class="tree-header"><span class="sidebar-section-header">lit.ruv.wtf - Docs</span><button class="clickable-icon collapse-tree-button is-collapsed" aria-label="Collapse All"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></svg></button></div><div class="tree-scroll-area tree-item-children nav-folder-children"><div class="tree-item mod-tree-folder nav-folder mod-collapsible is-collapsed" style="display: none;"></div><div class="tree-item mod-tree-file nav-file" data-depth="1"><a class="tree-link" href="blueprint-penetration-trace.html"><div class="tree-item-contents nav-file-title"><span class="tree-item-title nav-file-title-content tree-item-inner">Blueprint Penetration Trace Documentation</span></div></a><div class="tree-item-children nav-folder-children"></div></div><div class="tree-item mod-tree-file nav-file" data-depth="1"><a class="tree-link" href="index.html"><div class="tree-item-contents nav-file-title"><span class="tree-item-title nav-file-title-content tree-item-inner">Documentation Home</span></div></a><div class="tree-item-children nav-folder-children"></div></div></div></div>
|
||||
@@ -1,2 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg xmlns='http://www.w3.org/2000/svg' class='i-external' viewBox='0 0 32 32' width='14' height='14' fill='none' stroke='#888888' stroke-linecap='round' stroke-linejoin='round' stroke-width='9.38%'><path d='M14 9 L3 9 3 29 23 29 23 18 M18 4 L28 4 28 14 M28 4 L14 18'/></svg>
|
||||
|
Before Width: | Height: | Size: 317 B |
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -1,281 +0,0 @@
|
||||
{
|
||||
"vaultName": "lit.ruv.wtf - Docs",
|
||||
"lastExport": 1738008923517,
|
||||
"pluginVersion": "1.8.01",
|
||||
"validBodyClasses": "publish css-settings-manager theme-dark show-inline-title show-ribbon",
|
||||
"useCustomHeadContent": false,
|
||||
"useCustomFavicon": false,
|
||||
"files": [
|
||||
"Blueprint Penetration Trace.md",
|
||||
"index.md",
|
||||
"images/traceexample.mp4",
|
||||
"images/depthtracebychannel.png",
|
||||
"images/depthtraceforobjects.png",
|
||||
"images/depthtracebyprofile.png",
|
||||
"lib/fonts/94f2f163d4b698242fef.otf",
|
||||
"lib/fonts/72505e6a122c6acd5471.woff2",
|
||||
"lib/fonts/2d5198822ab091ce4305.woff2",
|
||||
"lib/fonts/c8ba52b05a9ef10f4758.woff2",
|
||||
"lib/fonts/cb10ffd7684cd9836a05.woff2",
|
||||
"lib/fonts/b5f0f109bc88052d4000.woff2",
|
||||
"lib/fonts/cbe0ae49c52c920fd563.woff2",
|
||||
"lib/fonts/535a6cf662596b3bd6a6.woff2",
|
||||
"lib/fonts/70cc7ff27245e82ad414.ttf",
|
||||
"lib/fonts/454577c22304619db035.ttf",
|
||||
"lib/fonts/52ac8f3034507f1d9e53.ttf",
|
||||
"lib/fonts/05b618077343fbbd92b7.ttf",
|
||||
"lib/fonts/4bb6ac751d1c5478ff3a.woff2",
|
||||
"lib/media/874d8b8e340f75575caa.svg",
|
||||
"lib/html/file-tree.html",
|
||||
"lib/scripts/webpage.js",
|
||||
"lib/scripts/minisearch.js",
|
||||
"lib/media/favicon.png",
|
||||
"lib/styles/obsidian.css",
|
||||
"lib/styles/global-variable-styles.css",
|
||||
"lib/styles/main-styles.css",
|
||||
"lib/styles/snippets.css"
|
||||
],
|
||||
"mainDependencies": [
|
||||
"lib/fonts/94f2f163d4b698242fef.otf",
|
||||
"lib/fonts/72505e6a122c6acd5471.woff2",
|
||||
"lib/fonts/2d5198822ab091ce4305.woff2",
|
||||
"lib/fonts/c8ba52b05a9ef10f4758.woff2",
|
||||
"lib/fonts/cb10ffd7684cd9836a05.woff2",
|
||||
"lib/fonts/b5f0f109bc88052d4000.woff2",
|
||||
"lib/fonts/cbe0ae49c52c920fd563.woff2",
|
||||
"lib/fonts/535a6cf662596b3bd6a6.woff2",
|
||||
"lib/fonts/70cc7ff27245e82ad414.ttf",
|
||||
"lib/fonts/454577c22304619db035.ttf",
|
||||
"lib/fonts/52ac8f3034507f1d9e53.ttf",
|
||||
"lib/fonts/05b618077343fbbd92b7.ttf",
|
||||
"lib/fonts/4bb6ac751d1c5478ff3a.woff2",
|
||||
"lib/media/874d8b8e340f75575caa.svg",
|
||||
"lib/html/file-tree.html",
|
||||
"lib/scripts/webpage.js",
|
||||
"lib/scripts/minisearch.js",
|
||||
"lib/media/favicon.png",
|
||||
"lib/styles/obsidian.css",
|
||||
"lib/styles/global-variable-styles.css",
|
||||
"lib/styles/main-styles.css",
|
||||
"lib/styles/snippets.css"
|
||||
],
|
||||
"fileInfo": {
|
||||
"lib/scripts/graph-wasm.wasm": {
|
||||
"modifiedTime": 1737999520855,
|
||||
"sourceSize": 23377,
|
||||
"exportedPath": "lib/scripts/graph-wasm.wasm",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/fonts/94f2f163d4b698242fef.otf": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 66800,
|
||||
"exportedPath": "lib/fonts/94f2f163d4b698242fef.otf",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/fonts/72505e6a122c6acd5471.woff2": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 104232,
|
||||
"exportedPath": "lib/fonts/72505e6a122c6acd5471.woff2",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/fonts/2d5198822ab091ce4305.woff2": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 104332,
|
||||
"exportedPath": "lib/fonts/2d5198822ab091ce4305.woff2",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/fonts/c8ba52b05a9ef10f4758.woff2": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 98868,
|
||||
"exportedPath": "lib/fonts/c8ba52b05a9ef10f4758.woff2",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/fonts/cb10ffd7684cd9836a05.woff2": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 106876,
|
||||
"exportedPath": "lib/fonts/cb10ffd7684cd9836a05.woff2",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/fonts/b5f0f109bc88052d4000.woff2": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 105804,
|
||||
"exportedPath": "lib/fonts/b5f0f109bc88052d4000.woff2",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/fonts/cbe0ae49c52c920fd563.woff2": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 106108,
|
||||
"exportedPath": "lib/fonts/cbe0ae49c52c920fd563.woff2",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/fonts/535a6cf662596b3bd6a6.woff2": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 111708,
|
||||
"exportedPath": "lib/fonts/535a6cf662596b3bd6a6.woff2",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/fonts/70cc7ff27245e82ad414.ttf": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 192740,
|
||||
"exportedPath": "lib/fonts/70cc7ff27245e82ad414.ttf",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/fonts/454577c22304619db035.ttf": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 161376,
|
||||
"exportedPath": "lib/fonts/454577c22304619db035.ttf",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/fonts/52ac8f3034507f1d9e53.ttf": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 191568,
|
||||
"exportedPath": "lib/fonts/52ac8f3034507f1d9e53.ttf",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/fonts/05b618077343fbbd92b7.ttf": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 155288,
|
||||
"exportedPath": "lib/fonts/05b618077343fbbd92b7.ttf",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/fonts/4bb6ac751d1c5478ff3a.woff2": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 7876,
|
||||
"exportedPath": "lib/fonts/4bb6ac751d1c5478ff3a.woff2",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/media/874d8b8e340f75575caa.svg": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 317,
|
||||
"exportedPath": "lib/media/874d8b8e340f75575caa.svg",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/html/file-tree.html": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 1345,
|
||||
"exportedPath": "lib/html/file-tree.html",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/scripts/webpage.js": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 47290,
|
||||
"exportedPath": "lib/scripts/webpage.js",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/scripts/graph-view.js": {
|
||||
"modifiedTime": 1737999520855,
|
||||
"sourceSize": 15519,
|
||||
"exportedPath": "lib/scripts/graph-view.js",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/scripts/graph-wasm.js": {
|
||||
"modifiedTime": 1737999520855,
|
||||
"sourceSize": 14021,
|
||||
"exportedPath": "lib/scripts/graph-wasm.js",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/scripts/graph-render-worker.js": {
|
||||
"modifiedTime": 1737999520855,
|
||||
"sourceSize": 5179,
|
||||
"exportedPath": "lib/scripts/graph-render-worker.js",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/scripts/tinycolor.js": {
|
||||
"modifiedTime": 1737999520855,
|
||||
"sourceSize": 29832,
|
||||
"exportedPath": "lib/scripts/tinycolor.js",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/scripts/pixi.js": {
|
||||
"modifiedTime": 1737999520855,
|
||||
"sourceSize": 449509,
|
||||
"exportedPath": "lib/scripts/pixi.js",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/scripts/minisearch.js": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 29422,
|
||||
"exportedPath": "lib/scripts/minisearch.js",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/media/favicon.png": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 1105,
|
||||
"exportedPath": "lib/media/favicon.png",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/scripts/graph-data.js": {
|
||||
"modifiedTime": 1737999520855,
|
||||
"sourceSize": 310,
|
||||
"exportedPath": "lib/scripts/graph-data.js",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/styles/obsidian.css": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 131021,
|
||||
"exportedPath": "lib/styles/obsidian.css",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/styles/global-variable-styles.css": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 236,
|
||||
"exportedPath": "lib/styles/global-variable-styles.css",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/styles/main-styles.css": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 23130,
|
||||
"exportedPath": "lib/styles/main-styles.css",
|
||||
"dependencies": []
|
||||
},
|
||||
"lib/styles/snippets.css": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 6368,
|
||||
"exportedPath": "lib/styles/snippets.css",
|
||||
"dependencies": []
|
||||
},
|
||||
"images/traceexample.mp4": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 754671,
|
||||
"exportedPath": "images/traceexample.mp4",
|
||||
"dependencies": []
|
||||
},
|
||||
"index.md": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 315,
|
||||
"exportedPath": "index.html",
|
||||
"dependencies": [
|
||||
"images/traceexample.mp4"
|
||||
]
|
||||
},
|
||||
"Blueprint Penetration Trace.md": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 5345,
|
||||
"exportedPath": "blueprint-penetration-trace.html",
|
||||
"dependencies": [
|
||||
"images/traceexample.mp4",
|
||||
"images/depthtracebychannel.png",
|
||||
"images/depthtraceforobjects.png",
|
||||
"images/depthtracebyprofile.png"
|
||||
]
|
||||
},
|
||||
"images/depthtracebychannel.png": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 40519,
|
||||
"exportedPath": "images/depthtracebychannel.png",
|
||||
"dependencies": []
|
||||
},
|
||||
"images/depthtraceforobjects.png": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 38839,
|
||||
"exportedPath": "images/depthtraceforobjects.png",
|
||||
"dependencies": []
|
||||
},
|
||||
"images/depthtracebyprofile.png": {
|
||||
"modifiedTime": 1738008923517,
|
||||
"sourceSize": 38746,
|
||||
"exportedPath": "images/depthtracebyprofile.png",
|
||||
"dependencies": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[lit.ruv.wtf - Docs]]></title><description><![CDATA[Obsidian digital garden]]></description><link>https://lit.ruv.wtf/docs/</link><image><url>https://lit.ruv.wtf/docs/lib/media/favicon.png</url><title>lit.ruv.wtf - Docs</title><link>https://lit.ruv.wtf/docs/</link></image><generator>Webpage HTML Export plugin for Obsidian</generator><lastBuildDate>Mon, 27 Jan 2025 20:15:23 GMT</lastBuildDate><atom:link href="https://lit.ruv.wtf/docs/lib/rss.xml" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Jan 2025 20:15:23 GMT</pubDate><copyright><![CDATA[Litruv]]></copyright><ttl>60</ttl><dc:creator>Litruv</dc:creator><item><title><![CDATA[Blueprint Penetration Trace Documentation]]></title><description><![CDATA[
|
||||
<br>This is a Blueprint Function Library with a few functions that are callable in AActors to do depth trace results, for use in things like projectiles and tools.<br><br><br>
|
||||
<br>Depth-based trace
|
||||
<br>Forward and backward trace results for bullet holes
|
||||
<br>Simple to implement into existing systems
|
||||
<br>Easy debug options
|
||||
<br><br><br>This node works by simulating depth using two line traces—one forward and one backward from the point of impact. These traces scan for objects in their paths and gather information about the hit results. The distance travelled through each material is multiplied by its density (defined in the material's physical properties), which determines how much the projectile is slowed down or whether it stops entirely. Finally, the node returns a list of hit results, including the total depth.<br><br>Depth Trace by Channel<br>
|
||||
<img alt="DepthTraceByChannel.png" src="https://lit.ruv.wtf/docs/images/depthtracebychannel.png"><br>
|
||||
Depth Trace for Objects<br>
|
||||
<img alt="DepthTraceForObjects.png" src="https://lit.ruv.wtf/docs/images/depthtraceforobjects.png"><br>
|
||||
Depth Trace by Profile<br>
|
||||
<img alt="DepthTraceByProfile.png" src="https://lit.ruv.wtf/docs/images/depthtracebyprofile.png"><br><br><br><br>This can be seamlessly integrated with existing systems with minimal changes to your current blueprint setup.<br>By simply replacing your current line trace nodes with the Depth Trace node, you’ll get the added benefit of depth effects.<br><br>While adding a custom collision channel is optional, it can be a bit more time-consuming and may cause other systems in your project to break if not set up correctly. By default, your existing channels might not be set to overlap, so setting up a new custom trace channel helps ensure compatibility.<br>To set up a custom trace channel in Unreal Engine, follow these steps:<br>
|
||||
<br>Go to Project Settings → Engine → Collision.
|
||||
<br>In the Collision Channels section, click Add New.
|
||||
<br>Set the following properties for the new channel:
|
||||
|
||||
<br>Name: Projectile (or a name of your choice)
|
||||
<br>Default Response: Overlap
|
||||
|
||||
|
||||
<br>For more detailed instructions on adding a custom object type to your project, you can refer to the <a data-tooltip-position="top" aria-label="https://dev.epicgames.com/documentation/en-us/unreal-engine/add-a-custom-object-type-to-your-project-in-unreal-engine" rel="noopener nofollow" class="external-link" href="https://dev.epicgames.com/documentation/en-us/unreal-engine/add-a-custom-object-type-to-your-project-in-unreal-engine" target="_blank">Unreal Engine Wiki on Custom Object Types</a>.<br><br>Default <a data-tooltip-position="top" aria-label="https://dev.epicgames.com/documentation/en-us/unreal-engine/physical-materials-user-guide-for-unreal-engine" rel="noopener nofollow" class="external-link" href="https://dev.epicgames.com/documentation/en-us/unreal-engine/physical-materials-user-guide-for-unreal-engine" target="_blank">Physical Material</a> properties are at 1 g/cm, but adding more physical properties into your game can add extra depth. <br><br><br><br><br>
|
||||
<br><a data-tooltip-position="top" aria-label="https://opengameart.org/users/loafbrr1" rel="noopener nofollow" class="external-link" href="https://opengameart.org/users/loafbrr1" target="_blank">loafbrr_1</a> for the pistol model
|
||||
<br><a data-tooltip-position="top" aria-label="https://commons.wikimedia.org/wiki/File:B1_full_size_1500_target.jpg" rel="noopener nofollow" class="external-link" href="https://commons.wikimedia.org/wiki/File:B1_full_size_1500_target.jpg" target="_blank">Neil Francis</a> for the target image
|
||||
]]></description><link>https://lit.ruv.wtf/docs/blueprint-penetration-trace.html</link><guid isPermaLink="false">Blueprint Penetration Trace.md</guid><dc:creator><![CDATA[Litruv]]></dc:creator><pubDate>Mon, 27 Jan 2025 20:13:15 GMT</pubDate><enclosure url="https://lit.ruv.wtf/docs/images/depthtracebychannel.png" length="0" type="image/png"/><content:encoded><figure><img src="https://lit.ruv.wtf/docs/images/depthtracebychannel.png"></figure></content:encoded></item><item><title><![CDATA[Documentation Home]]></title><description><![CDATA[
|
||||
<br>Welcome to the docs, I make blueprint plugins, many are in the works, but they'll come out here as I go<br><br><br>If you require more support, come say hi on my <a data-tooltip-position="top" aria-label="https://discord.gg/b8ctQBaaax" rel="noopener nofollow" class="external-link" href="https://discord.gg/b8ctQBaaax" target="_blank">discord</a>. <a rel="noopener nofollow" class="external-link" href="https://discord.gg/b8ctQBaaax" target="_blank">https://discord.gg/b8ctQBaaax</a>]]></description><link>https://lit.ruv.wtf/docs/index.html</link><guid isPermaLink="false">index.md</guid><dc:creator><![CDATA[Litruv]]></dc:creator><pubDate>Mon, 27 Jan 2025 20:13:31 GMT</pubDate></item></channel></rss>
|
||||
@@ -1 +0,0 @@
|
||||
let graphData={graphOptions:{attractionForce:1,linkLength:10,repulsionForce:150,centralForce:3,edgePruning:100,minNodeRadius:3,maxNodeRadius:7},isInitialized:!0,paths:["blueprint-penetration-trace.html"],nodeCount:1,linkSources:[],linkTargets:[],labels:["Blueprint Penetration Trace"],radii:[null],linkCount:0}
|
||||
@@ -1 +0,0 @@
|
||||
if("function"==typeof importScripts){let e,t,o;importScripts("https://d157l7jdn8e5sf.cloudfront.net/v7.2.0/webworker.js","./tinycolor.js"),addEventListener("message",onMessage),isDrawing=!1;let n=0,a=[],r=[],i=0,l=[],c=[],d=[],s=[],u=[],g={x:0,y:0},p=new Float32Array(0),h=0,f=0,y={background:2302755,link:11184810,node:13421772,outline:11184810,text:16777215,accent:4203434},S=-1,x=-1,v=-1,m=!1,w=[],b=-1,C=1,k=1;function toScreenSpace(e,t,o=!0){return o?{x:Math.floor(e*C+g.x),y:Math.floor(t*C+g.y)}:{x:e*C+g.x,y:t*C+g.y}}function vecToScreenSpace({x:e,y:t},o=!0){return toScreenSpace(e,t,o)}function toWorldspace(e,t){return{x:(e-g.x)/C,y:(t-g.y)/C}}function vecToWorldspace({x:e,y:t}){return toWorldspace(e,t)}function setCameraCenterWorldspace({x:e,y:t}){g.x=canvas.width/2-e*C,g.y=canvas.height/2-t*C}function getCameraCenterWorldspace(){return toWorldspace(canvas.width/2,canvas.height/2)}function getNodeScreenRadius(e){return e*k}function getNodeWorldspaceRadius(e){return e/k}function getPosition(e){return{x:p[2*e],y:p[2*e+1]}}function mixColors(e,t,o){return tinycolor.mix(tinycolor(e.toString(16)),tinycolor(t.toString(16)),o).toHexNumber()}function darkenColor(e,t){return tinycolor(e.toString(16)).darken(t).toHexNumber()}function lightenColor(e,t){return tinycolor(e.toString(16)).lighten(t).toHexNumber()}function invertColor(e,t){for(e=e.toString(16);e.length<6;)e="0"+e;if(0===e.indexOf("#")&&(e=e.slice(1)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),6!==e.length)throw new Error("Invalid HEX color:"+e);var o=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16);return t?.299*o+.587*n+.114*a>186?"#000000":"#FFFFFF":(o=(255-o).toString(16),n=(255-n).toString(16),a=(255-a).toString(16),"#"+padZero(o)+padZero(n)+padZero(a))}function clamp(e,t,o){return Math.min(Math.max(e,t),o)}function lerp(e,t,o){return e+(t-e)*o}let N=0,T=.2,F=15,M=12,P=F/M;function showLabel(e,t,o=!1){let n=u[e];if(!n)return;if(d[e]=t,!(t>.01))return void hideLabel(e);n.visible=!0,n.style.fontSize=o?F:M;let a=vecToScreenSpace(getPosition(e)),r=s[e]*(o?P:1)/2;n.x=a.x-r,n.y=a.y+getNodeScreenRadius(l[e])+9,n.alpha=t}function hideLabel(e){u[e].visible=!1}function draw(){o.clear();let e=[];m&&(w=[]),N=-1!=S||-1!=v?Math.min(1,N+T):Math.max(0,N-T),o.lineStyle(1,mixColors(y.link,y.background,50*N),.7);for(let t=0;t<n;t++){let n=r[t],i=a[t];S!=i&&S!=n&&(x!=i&&x!=n||0==N)||(m&&S==i?w.push(n):m&&S==n&&w.push(i),e.push(t));let c=getPosition(i),d=getPosition(n),s=vecToScreenSpace(c),u=vecToScreenSpace(d);Math.sqrt(Math.pow(c.x-d.x,2)+Math.pow(c.y-d.y,2))<(l[i]+l[n])*f&&(o.moveTo(s.x,s.y),o.lineTo(u.x,u.y))}let t=1-.5*N;o.beginFill(mixColors(y.node,y.background,50*N),t),o.lineStyle(0,16777215);for(let e=0;e<i;e++){let t=getNodeScreenRadius(l[e]);if(S!=e)if(t>2){showLabel(e,lerp(0,(t-4)/8-1/k/6*.9,Math.max(1-N,.2)))}else hideLabel(e);if(S==e||x==e&&0!=N||-1!=S&&w.includes(e))continue;let n=vecToScreenSpace(getPosition(e));o.drawCircle(n.x,n.y,t)}o.endFill(),t=.7*N,o.lineStyle(1,mixColors(mixColors(y.link,y.accent,100*N),y.background,20),t);for(let t=0;t<e.length;t++){let n=r[e[t]],i=vecToScreenSpace(getPosition(a[e[t]])),l=vecToScreenSpace(getPosition(n));o.moveTo(i.x,i.y),o.lineTo(l.x,l.y)}if(-1!=S||-1!=x&&0!=N){o.beginFill(mixColors(y.node,y.accent,20*N),.9),o.lineStyle(0,16777215);for(let e=0;e<w.length;e++){let t=w[e],n=vecToScreenSpace(getPosition(t));o.drawCircle(n.x,n.y,getNodeScreenRadius(l[t])),showLabel(t,Math.max(.6*N,d[t]))}o.endFill();let e=-1!=S?S:x,t=vecToScreenSpace(getPosition(e));o.beginFill(mixColors(y.node,y.accent,100*N),1),o.lineStyle(N,mixColors(invertColor(y.background,!0),y.accent,50)),o.drawCircle(t.x,t.y,getNodeScreenRadius(l[e])),o.endFill(),showLabel(e,Math.max(N,d[e]),!0)}if(m=!1,o.lineStyle(2,y.accent),-1!=b){let e=vecToScreenSpace(getPosition(b));o.drawCircle(e.x,e.y,getNodeScreenRadius(l[b])+4)}}function onMessage(w){if("draw"==w.data.type)p=new Float32Array(w.data.positions),draw();else if("update_camera"==w.data.type)g=w.data.cameraOffset,C=w.data.cameraScale,k=Math.sqrt(C);else if("update_interaction"==w.data.type)S!=w.data.hoveredNode&&-1!=w.data.hoveredNode&&(m=!0),v!=w.data.grabbedNode&&-1!=w.data.hoveredNode&&(m=!0),x=-1==w.data.hoveredNode?S:-1,S=w.data.hoveredNode,v=w.data.grabbedNode;else if("resize"==w.data.type)e.renderer.resize(w.data.width,w.data.height);else if("set_active"==w.data.type)b=w.data.active;else if("update_colors"==w.data.type){y=w.data.colors;for(let e of u)e.style.fill=invertColor(y.background,!0)}else if("init"==w.data.type){n=w.data.linkCount,a=w.data.linkSources,r=w.data.linkTargets,i=w.data.nodeCount,l=w.data.radii,c=w.data.labels,h=w.data.linkLength,f=w.data.edgePruning,e=new PIXI.Application({...w.data.options,antialias:!0,resolution:2,backgroundAlpha:0,transparent:!0}),t=new PIXI.Container,o=new PIXI.Graphics,e.stage.addChild(t),t.addChild(o),u=[];for(let t=0;t<i;t++){let o=new PIXI.Text(c[t],{fontFamily:"Arial",fontSize:12,fontWeight:"normal",fill:invertColoLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
var running=!1;let pixiApp,graphRenderer,batchFraction=1,minBatchFraction=.3,dt=1,targetFPS=40,startingCameraRect={minX:-1,minY:-1,maxX:1,maxY:1},mouseWorldPos={x:void 0,y:void 0},scrollVelocity=0,averageFPS=2*targetFPS;class GraphAssembly{static nodeCount=0;static linkCount=0;static hoveredNode=-1;static#e=0;static#r=0;static#t=0;static#a=0;static#s=0;static linkSources=new Int32Array(0);static linkTargets=new Int32Array(0);static radii=new Float32Array(0);static maxRadius=0;static averageRadius=0;static minRadius=0;static init(e){GraphAssembly.nodeCount=e.nodeCount,GraphAssembly.linkCount=e.linkCount;let r=new Float32Array(2*GraphAssembly.nodeCount);GraphAssembly.radii=new Float32Array(e.radii),GraphAssembly.linkSources=new Int32Array(e.linkSources),GraphAssembly.linkTargets=new Int32Array(e.linkTargets),GraphAssembly.#e=Module._malloc(r.byteLength),GraphAssembly.#r=r.byteLength,GraphAssembly.#t=Module._malloc(GraphAssembly.radii.byteLength),GraphAssembly.#a=Module._malloc(GraphAssembly.linkSources.byteLength),GraphAssembly.#s=Module._malloc(GraphAssembly.linkTargets.byteLength),GraphAssembly.maxRadius=GraphAssembly.radii.reduce(((e,r)=>Math.max(e,r))),GraphAssembly.averageRadius=GraphAssembly.radii.reduce(((e,r)=>e+r))/GraphAssembly.radii.length,GraphAssembly.minRadius=GraphAssembly.radii.reduce(((e,r)=>Math.min(e,r))),r=this.loadState(),Module.HEAP32.set(new Int32Array(r.buffer),GraphAssembly.#e/r.BYTES_PER_ELEMENT),Module.HEAP32.set(new Int32Array(GraphAssembly.radii.buffer),GraphAssembly.#t/GraphAssembly.radii.BYTES_PER_ELEMENT),Module.HEAP32.set(new Int32Array(GraphAssembly.linkSources.buffer),GraphAssembly.#a/GraphAssembly.linkSources.BYTES_PER_ELEMENT),Module.HEAP32.set(new Int32Array(GraphAssembly.linkTargets.buffer),GraphAssembly.#s/GraphAssembly.linkTargets.BYTES_PER_ELEMENT),Module._Init(GraphAssembly.#e,GraphAssembly.#t,GraphAssembly.#a,GraphAssembly.#s,GraphAssembly.nodeCount,GraphAssembly.linkCount,batchFraction,dt,e.graphOptions.attractionForce,e.graphOptions.linkLength,e.graphOptions.repulsionForce,e.graphOptions.centralForce)}static get positions(){return Module.HEAP32.buffer.slice(GraphAssembly.#e,GraphAssembly.#e+GraphAssembly.#r)}static saveState(e){localStorage.setItem("positions",JSON.stringify(new Float32Array(GraphAssembly.positions).map((e=>Math.round(e)))))}static loadState(){let e=localStorage.getItem("positions"),r=null;if(e&&(r=new Float32Array(Object.values(JSON.parse(e)))),!r||!e||r.length!=2*GraphAssembly.nodeCount){r=new Float32Array(2*GraphAssembly.nodeCount);let e=GraphAssembly.averageRadius*Math.sqrt(GraphAssembly.nodeCount)*2;for(let t=0;t<GraphAssembly.nodeCount;t++){let a=(1-GraphAssembly.radii[t]/GraphAssembly.maxRadius)*e;r[2*t]=Math.cos(t/GraphAssembly.nodeCount*7.41*2*Math.PI)*a,r[2*t+1]=Math.sin(t/GraphAssembly.nodeCount*7.41*2*Math.PI)*a}}let t=1/0,a=-1/0,s=1/0,i=-1/0;for(let e=0;e<GraphAssembly.nodeCount-1;e+=2){let o={x:r[e],y:r[e+1]};t=Math.min(t,o.x),a=Math.max(a,o.x),s=Math.min(s,o.y),i=Math.max(i,o.y)}return startingCameraRect={minX:t-50,minY:s-50,maxX:a+50,maxY:i+50},r}static update(e,r,t){GraphAssembly.hoveredNode=Module._Update(e.x,e.y,r,t)}static free(){Module._free(GraphAssembly.#e),Module._free(GraphAssembly.#t),Module._free(GraphAssembly.#a),Module._free(GraphAssembly.#s),Module._FreeMemory()}static set batchFraction(e){Module._SetBatchFractionSize(e)}static set attractionForce(e){Module._SetAttractionForce(e)}static set repulsionForce(e){Module._SetRepulsionForce(e)}static set centralForce(e){Module._SetCentralForce(e)}static set linkLength(e){Module._SetLinkLength(e)}static set dt(e){Module._SetDt(e)}}class GraphRenderWorker{#i;#o;#n;#h;#d;#l;#c;constructor(){this.canvas=document.querySelector("#graph-canvas"),this.canvasSidebar=void 0;try{this.canvasSidebar=document.querySelector(".sidebar:has(#graph-canvas)")}catch(e){console.log("Error: "+e+"\n\n Using fallback.");let r=document.querySelector(".sidebar-right"),t=document.querySelector(".sidebar-left");this.canvasSidebar=r.querySelector("#graph-canvas")?r:t}this.view=this.canvas.transferControlToOffscreen(),this.worker=new Worker(new URL("./graph-render-worker.js",import.meta.url)),this.#i={x:0,y:0},this.#o=1,this.#n=-1,this.#h=-1,this.#d={background:0,link:0,node:0,outline:0,text:0,accent:0},this.#l=0,this.#c=0,this.cameraOffset={x:this.canvas.width/2,y:this.canvas.height/2},this.cameraScale=1,this.hoveredNode=-1,this.grabbedNode=-1,this.resampleColors(),this.#p(),this.width=this.canvas.width,this.height=this.canvas.height,this.autoResizeCanvas(),this.fitToRect(startingCameraRect)}#p(){let{width:e,height:r}=this.view;this.worker.postMessage({type:"init",linkCount:GraphAssembly.linkCount,linkSources:GraphAssembly.linkSources,linkTargets:GraphAssembly.linkTargets,nodeCount:GraphAssembly.nodeCount,radii:GraphAssembly.radii,labels:graphData.labels,linkLength:graphData.graphOptions.linkLength,edgePruning:graphData.graphOptions.edgePruning,options:{width:e,height:r,view:this.view}},[this.view])}fitLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
var read_,readAsync,readBinary,setWindowTitle,Module=void 0!==Module?Module:{},moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,n)=>{throw n},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,scriptDirectory="";function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=require("fs"),nodePath=require("path");scriptDirectory=ENVIRONMENT_IS_WORKER?nodePath.dirname(scriptDirectory)+"/":__dirname+"/",read_=(e,n)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e,n?void 0:"utf8")),readBinary=e=>{var n=read_(e,!0);return n.buffer||(n=new Uint8Array(n)),n},readAsync=(e,n,t)=>{e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFile(e,(function(e,r){e?t(e):n(r.buffer)}))},!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),"undefined"!=typeof module&&(module.exports=Module),process.on("uncaughtException",(function(e){if(!("unwind"===e||e instanceof ExitStatus||e.context instanceof ExitStatus))throw e}));var nodeMajor=process.versions.node.split(".")[0];nodeMajor<15&&process.on("unhandledRejection",(function(e){throw e})),quit_=(e,n)=>{throw process.exitCode=e,n},Module.inspect=function(){return"[Emscripten Module object]"}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:"undefined"!=typeof document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1):"",read_=e=>{var n=new XMLHttpRequest;return n.open("GET",e,!1),n.send(null),n.responseText},ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var n=new XMLHttpRequest;return n.open("GET",e,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)}),readAsync=(e,n,t)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?n(r.response):t()},r.onerror=t,r.send(null)},setWindowTitle=e=>document.title=e);var wasmBinary,out=Module.print||console.log.bind(console),err=Module.printErr||console.warn.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit),Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var wasmMemory,noExitRuntime=Module.noExitRuntime||!0;"object"!=typeof WebAssembly&&abort("no native wasm support detected");var EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,wasmTable,ABORT=!1;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}var __ATPRERUN__=[],__ATINIT__=[],__ATPOSTRUN__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__ATINIT__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function addRunDependency(e){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var n=dependenciesFulfilled;dependenciesFulfilled=null,n()}}function abort(e){throw Module.onAbort&&Module.onAbort(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var wasmBinaryFile,tempDouble,tempI64,dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(e){return e.startsWith(dataURIPrefix)}function isFileURI(e){return e.startsWith("file://")}function getBinary(e){try{if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)retuLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).MiniSearch=e()}(this,(function(){"use strict";var t=function(){return t=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},t.apply(this,arguments)};function e(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function r(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)u.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}"function"==typeof SuppressedError&&SuppressedError;var n,i="KEYS",o="VALUES",u="",a=function(){function t(t,e){var r=t._tree,n=Array.from(r.keys());this.set=t,this._type=e,this._path=n.length>0?[{node:r,keys:n}]:[]}return t.prototype.next=function(){var t=this.dive();return this.backtrack(),t},t.prototype.dive=function(){if(0===this._path.length)return{done:!0,value:void 0};var t=s(this._path),e=t.node,r=t.keys;if(s(r)===u)return{done:!1,value:this.result()};var n=e.get(s(r));return this._path.push({node:n,keys:Array.from(n.keys())}),this.dive()},t.prototype.backtrack=function(){if(0!==this._path.length){var t=s(this._path).keys;t.pop(),t.length>0||(this._path.pop(),this.backtrack())}},t.prototype.key=function(){return this.set._prefix+this._path.map((function(t){var e=t.keys;return s(e)})).filter((function(t){return t!==u})).join("")},t.prototype.value=function(){return s(this._path).node.get(u)},t.prototype.result=function(){switch(this._type){case o:return this.value();case i:return this.key();default:return[this.key(),this.value()]}},t.prototype[Symbol.iterator]=function(){return this},t}(),s=function(t){return t[t.length-1]},l=function(t,r,n,i,o,a,s,c){var h,d,f=a*s;try{t:for(var y=e(t.keys()),v=y.next();!v.done;v=y.next()){var p=v.value;if(p===u){var m=o[f-1];m<=n&&i.set(c,[t.get(p),m])}else{for(var _=a,g=0;g<p.length;++g,++_){for(var F=p[g],x=s*_,w=x-s,b=o[x],A=Math.max(0,_-n-1),C=Math.min(s-1,_+n),E=A;E<C;++E){var z=F!==r[E],S=o[w+E]+ +z,D=o[w+E+1]+1,I=o[x+E]+1,k=o[x+E+1]=Math.min(S,D,I);k<b&&(b=k)}if(b>n)continue t}l(t.get(p),r,n,i,o,_,s,c+p)}}}catch(t){h={error:t}}finally{try{v&&!v.done&&(d=y.return)&&d.call(y)}finally{if(h)throw h.error}}},c=function(){function t(t,e){void 0===t&&(t=new Map),void 0===e&&(e=""),this._size=void 0,this._tree=t,this._prefix=e}return t.prototype.atPrefix=function(n){var i,o;if(!n.startsWith(this._prefix))throw new Error("Mismatched prefix");var a=r(h(this._tree,n.slice(this._prefix.length)),2),s=a[0],l=a[1];if(void 0===s){var c=r(m(l),2),d=c[0],f=c[1];try{for(var y=e(d.keys()),v=y.next();!v.done;v=y.next()){var p=v.value;if(p!==u&&p.startsWith(f)){var _=new Map;return _.set(p.slice(f.length),d.get(p)),new t(_,n)}}}catch(t){i={error:t}}finally{try{v&&!v.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}}return new t(s,n)},t.prototype.clear=function(){this._size=void 0,this._tree.clear()},t.prototype.delete=function(t){return this._size=void 0,y(this._tree,t)},t.prototype.entries=function(){return new a(this,"ENTRIES")},t.prototype.forEach=function(t){var n,i;try{for(var o=e(this),u=o.next();!u.done;u=o.next()){var a=r(u.value,2);t(a[0],a[1],this)}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype.fuzzyGet=function(t,e){return function(t,e,r){var n=new Map;if(void 0===e)return n;for(var i=e.length+1,o=i+r,u=new Uint8Array(o*i).fill(r+1),a=0;a<i;++a)u[a]=a;for(var s=1;s<o;++s)u[s*i]=s;return l(t,e,r,n,u,1,i,""),n}(this._tree,t,e)},t.prototype.get=function(t){var e=d(this._tree,t);return void 0!==e?e.get(u):void 0},t.prototype.has=function(t){var e=d(this._tree,t);return void 0!==e&&e.has(u)},t.prototype.keys=function(){return new a(this,i)},t.prototype.set=function(t,e){if("string"!=typeof t)throw new Error("key must be a string");return this._size=void 0,f(this._tree,t).set(u,e),this},Object.defineProperty(t.prototype,"size",{get:function(){if(this._size)return this._size;this._size=0;for(var t=this.entries();!t.next().done;)this._size+=1;return this._size},enumerable:!1,configurable:!0}),t.prototype.update=function(t,e){if("string"!=typeof t)throw new Error("key must be a string");this._size=void 0;var r=f(this._tree,t);return r.set(u,e(r.get(u))),this},t.prototype.fetch=function(t,e){if("string"!=typeof t)throw new Error("key must be a string");this._size=void 0;var r=f(this._tree,t),n=r.get(u);return void 0===n&&r.set(u,n=e()),n},t.prototype.values=function(){return new a(this,o)},t.prototyLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
var qd=Object.defineProperty,Kd=Object.defineProperties,Zd=Object.getOwnPropertyDescriptors,ir=Object.getOwnPropertySymbols,$h=Object.prototype.hasOwnProperty,jh=Object.prototype.propertyIsEnumerable,Wh=(t,e,s)=>e in t?qd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,bt=(t,e)=>{for(var s in e||(e={}))$h.call(e,s)&&Wh(t,s,e[s]);if(ir)for(var s of ir(e))jh.call(e,s)&&Wh(t,s,e[s]);return t},Qi=(t,e)=>Kd(t,Zd(e)),zn=(t,e)=>{var s={};for(var i in t)$h.call(t,i)&&e.indexOf(i)<0&&(s[i]=t[i]);if(null!=t&&ir)for(var i of ir(t))e.indexOf(i)<0&&jh.call(t,i)&&(s[i]=t[i]);return s},PIXI=function(t){var e,s,i=((s=i||{})[s.WEBGL_LEGACY=0]="WEBGL_LEGACY",s[s.WEBGL=1]="WEBGL",s[s.WEBGL2=2]="WEBGL2",s),r=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS",t))(r||{}),n=(t=>(t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL",t))(n||{}),a=(t=>(t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR",t))(a||{}),o=(t=>(t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t))(o||{}),h=(t=>(t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t))(h||{}),l=(t=>(t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t))(l||{}),u=(t=>(t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT",t))(u||{}),d=(t=>(t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT",t))(d||{}),c=(t=>(t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR",t))(c||{}),p=(t=>(t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t))(p||{}),f=(t=>(t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL",t))(f||{}),m=(t=>(t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",t))(m||{}),_=(t=>(t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT",t))(_||{}),g=(t=>(t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL",t))(g||{}),x=(t=>(t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp",t))(x||{}),v=(t=>(t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE",t[t.COLOR=4]="COLOR",t))(v||{}),y=(t=>(t[t.RED=1]="RED",t[t.GREEN=2]="GREEN",t[t.BLUE=4]="BLUE",t[t.ALPHA=8]="ALPHA",t))(y||{}),T=(t=>(t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH",t))(T||{}),b=(t=>(t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFERLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
function w3color(t,e){return this instanceof w3color?"object"==typeof t?t:(this.attachValues(toColorObject(t)),void(e&&(e.style.backgroundColor=this.toRgbString()))):new w3color(t,e)}function toColorObject(t){var e,r,a,n,i,s,o,h,f,u,l,c=[],b=[],d=[];if(e=(t=w3trim(t.toLowerCase())).substr(0,1).toUpperCase(),r=t.substr(1),h=1,"R"!=e&&"Y"!=e&&"G"!=e&&"C"!=e&&"B"!=e&&"M"!=e&&"W"!=e||isNaN(r)||(6!=t.length||-1!=t.indexOf(","))&&(t="ncol("+t+")"),3==t.length||6==t.length||isNaN(t)||(t="ncol("+t+")"),t.indexOf(",")>0&&-1==t.indexOf("(")&&(t="ncol("+t+")"),"rgb"==t.substr(0,3)||"hsl"==t.substr(0,3)||"hwb"==t.substr(0,3)||"ncol"==t.substr(0,4)||"cmyk"==t.substr(0,4)){if("ncol"==t.substr(0,4)?(4==t.split(",").length&&-1==t.indexOf("ncola")&&(t=t.replace("ncol","ncola")),a="ncol",t=t.substr(4)):"cmyk"==t.substr(0,4)?(a="cmyk",t=t.substr(4)):(a=t.substr(0,3),t=t.substr(3)),n=3,s=!1,"a"==t.substr(0,1).toLowerCase()?(n=4,s=!0,t=t.substr(1)):"cmyk"==a&&(n=4,5==t.split(",").length&&(n=5,s=!0)),c=(t=(t=t.replace("(","")).replace(")","")).split(","),"rgb"==a){if(c.length!=n)return emptyObject();for(i=0;i<n;i++){if((""==c[i]||" "==c[i])&&(c[i]="0"),c[i].indexOf("%")>-1&&(c[i]=c[i].replace("%",""),c[i]=Number(c[i]/100),i<3&&(c[i]=Math.round(255*c[i]))),isNaN(c[i]))return emptyObject();parseInt(c[i])>255&&(c[i]=255),i<3&&(c[i]=parseInt(c[i])),3==i&&Number(c[i])>1&&(c[i]=1)}l={r:c[0],g:c[1],b:c[2]},1==s&&(h=Number(c[3]))}if("hsl"==a||"hwb"==a||"ncol"==a){for(;c.length<n;)c.push("0");for(("hsl"==a||"hwb"==a)&&parseInt(c[0])>=360&&(c[0]=0),i=1;i<n;i++){if(c[i].indexOf("%")>-1){if(c[i]=c[i].replace("%",""),c[i]=Number(c[i]),isNaN(c[i]))return emptyObject();c[i]=c[i]/100}else c[i]=Number(c[i]);Number(c[i])>1&&(c[i]=1),0>Number(c[i])&&(c[i]=0)}"hsl"==a&&(l=hslToRgb(c[0],c[1],c[2]),f=Number(c[0]),u=Number(c[1])),"hwb"==a&&(l=hwbToRgb(c[0],c[1],c[2])),"ncol"==a&&(l=ncolToRgb(c[0],c[1],c[2])),1==s&&(h=Number(c[3]))}if("cmyk"==a){for(;c.length<n;)c.push("0");for(i=0;i<n;i++){if(c[i].indexOf("%")>-1){if(c[i]=c[i].replace("%",""),c[i]=Number(c[i]),isNaN(c[i]))return emptyObject();c[i]=c[i]/100}else c[i]=Number(c[i]);Number(c[i])>1&&(c[i]=1),0>Number(c[i])&&(c[i]=0)}l=cmykToRgb(c[0],c[1],c[2],c[3]),1==s&&(h=Number(c[4]))}}else if("ncs"==t.substr(0,3))l=ncsToRgb(t);else{for(i=0,o=!1,b=getColorArr("names");i<b.length;i++)if(t.toLowerCase()==b[i].toLowerCase()){d=getColorArr("hexs"),o=!0,l={r:parseInt(d[i].substr(0,2),16),g:parseInt(d[i].substr(2,2),16),b:parseInt(d[i].substr(4,2),16)};break}if(0==o){for(3==(t=t.replace("#","")).length&&(t=t.substr(0,1)+t.substr(0,1)+t.substr(1,1)+t.substr(1,1)+t.substr(2,1)+t.substr(2,1)),i=0;i<t.length;i++)if(!isHex(t.substr(i,1)))return emptyObject();for(i=0,c[0]=parseInt(t.substr(0,2),16),c[1]=parseInt(t.substr(2,2),16),c[2]=parseInt(t.substr(4,2),16);i<3;i++)if(isNaN(c[i]))return emptyObject();l={r:c[0],g:c[1],b:c[2]}}}return colorObject(l,h,f,u)}function colorObject(t,e,r,a){var n,i,s,o,h,f;return t?(null===e&&(e=1),n=rgbToHsl(t.r,t.g,t.b),i=rgbToHwb(t.r,t.g,t.b),s=rgbToCmyk(t.r,t.g,t.b),h=r||n.h,f=a||n.s,o=hueToNcol(h),roundDecimals({red:t.r,green:t.g,blue:t.b,hue:h,sat:f,lightness:n.l,whiteness:i.w,blackness:i.b,cyan:s.c,magenta:s.m,yellow:s.y,black:s.k,ncol:o,opacity:e,valid:!0})):emptyObject()}function emptyObject(){return{red:0,green:0,blue:0,hue:0,sat:0,lightness:0,whiteness:0,blackness:0,cyan:0,magenta:0,yellow:0,black:0,ncol:"R",opacity:1,valid:!1}}function getColorArr(t){return"names"==t?["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","Black","BlanchedAlmond","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan","DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid","DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray","Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink","LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGrey","LightSteelBlue","LightYellow","Lime","LimeGreen","Linen","Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid","MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise","MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin","NavajoWhite","Navy","OldLace","Olive","OliveDrab","Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen","PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru","Pink","Plum","PowderBlue","Purple","RebeccaPurple","Red","RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
let absoluteBasePath,relativeBasePath,relativePathname,webpageContainer,documentContainer,viewContent,leftSidebar,rightSidebar,sidebarCollapseIcons,sidebarGutters,sidebars,sidebarDefaultWidth,sidebarTargetWidth,contentTargetWidth,themeToggle,searchInput,fileTree,outlineTree,fileTreeItems,outlineTreeItems,canvasWrapper,canvas,canvasNodes,canvasBackground,canvasBackgroundPattern,focusedCanvasNode,loadingIcon,documentType,embedType,customType,deviceSize,lastScreenWidth,loadedURL=new URL(window.location.href),isOffline=!1,collapseIconUp=["m7 15 5 5 5-5","m7 9 5-5 5 5"],collapseIconDown=["m7 20 5-5 5 5","m7 4 5 5 5-5"],isTouchDevice=isTouchCapable(),fullyInitialized=!1;async function initGlobalObjects(){"file:"!=window.location.protocol&&await loadIncludes(),loadingIcon=document.createElement("div"),loadingIcon.classList.add("loading-icon"),document.body.appendChild(loadingIcon),loadingIcon.innerHTML="<div></div><div></div><div></div><div></div>",webpageContainer=document.querySelector(".webpage-container"),documentContainer=document.querySelector(".document-container"),leftSidebar=document.querySelector(".sidebar-left"),rightSidebar=document.querySelector(".sidebar-right"),fileTree=document.querySelector(".file-tree"),outlineTree=document.querySelector(".outline-tree"),fileTreeItems=Array.from(document.querySelectorAll(".tree-container.file-tree .tree-item")),sidebars=[],sidebarGutters=[],sidebarCollapseIcons=[],leftSidebar&&rightSidebar&&(sidebarCollapseIcons=Array.from(document.querySelectorAll(".sidebar-collapse-icon")),sidebarGutters=[sidebarCollapseIcons[0].parentElement,sidebarCollapseIcons[1].parentElement],sidebars=[sidebarGutters[0].parentElement,sidebarGutters[1].parentElement]),themeToggle=document.querySelector(".theme-toggle-input")}async function initializePage(){focusedCanvasNode=null,canvasWrapper=document.querySelector(".canvas-wrapper")??canvasWrapper,canvas=document.querySelector(".canvas")??canvas;let e=document.querySelectorAll(".canvas-node");canvasNodes=e.length>0?e:canvasNodes,canvasBackground=document.querySelector(".canvas-background")??canvasBackground,canvasBackgroundPattern=document.querySelector(".canvas-background pattern")??canvasBackgroundPattern,viewContent=document.querySelector(".document-container > .view-content")??document.querySelector(".document-container > .markdown-preview-view")??viewContent,outlineTreeItems=Array.from(document.querySelectorAll(".tree-container.outline-tree .tree-item")),fullyInitialized||("file:"==window.location.protocol&&initializeForFileProtocol(),await initGlobalObjects(),initializeDocumentTypes(document),setupSidebars(),setupThemeToggle(),await setupSearch(),setupRootPath(document),sidebarDefaultWidth=await getComputedPixelValue("--sidebar-width"),contentTargetWidth=.9*await getComputedPixelValue("--line-width"),window.addEventListener("resize",(()=>onResize())),onResize()),setTimeout((()=>documentContainer.classList.remove("hide"))),!rightSidebar||"video"!=embedType&&"embed"!=embedType&&"excalidraw"!=customType&&"kanban"!=customType&&"canvas"!=documentType?rightSidebar&&rightSidebar.temporarilyCollapsed&&rightSidebar.collapsed&&(rightSidebar.collapse(!1),rightSidebar.temporarilyCollapsed=!1):rightSidebar.collapsed||rightSidebar.temporaryCollapse(),parseURLParams(),relativePathname=getVaultRelativePath(loadedURL.href)}function initializePageEvents(e){e&&(setupHeaders(e),setupTrees(e),setupLists(e),setupCallouts(e),setupCheckboxes(e),setupCanvas(e),setupCodeblocks(e),setupLinks(e),setupScroll(e))}function initializeDocumentTypes(e){e.querySelector(".document-container > .markdown-preview-view")?documentType="markdown":e.querySelector(".canvas-wrapper")?documentType="canvas":(documentType="custom",e.querySelector(".kanban-plugin")?customType="kanban":e.querySelector(".excalidraw-plugin")&&(customType="excalidraw"))}function initializeForFileProtocol(){let e=document.querySelector(".graph-view-placeholder");e&&(console.log("Running locally, skipping graph view initialization and hiding graph."),e.style.display="none",e.previousElementSibling.style.display="none")}function onEndResize(){document.body.classList.toggle("resizing",!1)}function onStartResize(){document.body.classList.toggle("resizing",!0)}window.onload=async function(){await initializePage(),initializePageEvents(document),setActiveDocument(loadedURL,!0,!1,!1),fullyInitialized=!0},window.onpopstate=function(e){if(e.preventDefault(),e.stopPropagation(),document.body.classList.contains("floating-sidebars")&&(!leftSidebar.collapsed||!rightSidebar.collapsed))return leftSidebar.collapse(!0),void rightSidebar.collapse(!0);loadDocument(getURLPath(),!1,!0),console.log("Popped state: "+getURLPath())};let checkStillResizingTimeout,isResizing=!1;function onResize(e=!1){function t(e,t){let o=window.innerWidth;return o>e&&o<t&&null==lastScreenWidth||o>e&&o<t&&(lastScreenWidth<=e||lastScreenWidth>=t)}function o(e){let t=window.innerWidth;return t>e&&null==lastScreenWidth||t>e&&lastScreenWidth<e}functLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
{"documentCount":37,"nextId":46,"documentIds":{"1":"unrealeditor_08ik2npkos.mp4","5":"lib/scripts/graph-wasm.wasm","6":"lib/fonts/94f2f163d4b698242fef.otf","7":"lib/fonts/72505e6a122c6acd5471.woff2","8":"lib/fonts/2d5198822ab091ce4305.woff2","9":"lib/fonts/c8ba52b05a9ef10f4758.woff2","10":"lib/fonts/cb10ffd7684cd9836a05.woff2","11":"lib/fonts/b5f0f109bc88052d4000.woff2","12":"lib/fonts/cbe0ae49c52c920fd563.woff2","13":"lib/fonts/535a6cf662596b3bd6a6.woff2","14":"lib/fonts/70cc7ff27245e82ad414.ttf","15":"lib/fonts/454577c22304619db035.ttf","16":"lib/fonts/52ac8f3034507f1d9e53.ttf","17":"lib/fonts/05b618077343fbbd92b7.ttf","18":"lib/fonts/4bb6ac751d1c5478ff3a.woff2","19":"lib/media/874d8b8e340f75575caa.svg","20":"lib/html/file-tree.html","21":"lib/scripts/webpage.js","22":"lib/scripts/graph-view.js","23":"lib/scripts/graph-wasm.js","24":"lib/scripts/graph-render-worker.js","25":"lib/scripts/tinycolor.js","26":"lib/scripts/pixi.js","27":"lib/scripts/minisearch.js","28":"lib/media/favicon.png","29":"lib/scripts/graph-data.js","30":"lib/styles/obsidian.css","31":"lib/styles/global-variable-styles.css","32":"lib/styles/main-styles.css","33":"lib/styles/snippets.css","34":"lib/metadata.json","39":"images/traceexample.mp4","41":"blueprint-penetration-trace.html","42":"index.html","43":"images/depthtracebychannel.png","44":"images/depthtraceforobjects.png","45":"images/depthtracebyprofile.png"},"fieldIds":{"path":0,"title":1,"content":2,"tags":3,"headers":4},"fieldLength":{"1":[3,2,1,1,1],"5":[4,2,1,1,1],"6":[4,1,1,1,1],"7":[4,1,1,1,1],"8":[4,1,1,1,1],"9":[4,1,1,1,1],"10":[4,1,1,1,1],"11":[4,1,1,1,1],"12":[4,1,1,1,1],"13":[4,1,1,1,1],"14":[4,1,1,1,1],"15":[4,1,1,1,1],"16":[4,1,1,1,1],"17":[4,1,1,1,1],"18":[4,1,1,1,1],"19":[4,1,1,1,1],"20":[4,2,1,1,1],"21":[4,1,1,1,1],"22":[5,2,1,1,1],"23":[5,2,1,1,1],"24":[6,3,1,1,1],"25":[4,1,1,1,1],"26":[4,1,1,1,1],"27":[4,1,1,1,1],"28":[4,1,1,1,1],"29":[5,2,1,1,1],"30":[4,1,1,1,1],"31":[5,3,1,1,1],"32":[4,2,1,1,1],"33":[4,1,1,1,1],"34":[3,1,1,1,1],"39":[3,1,1,1,1],"41":[4,4,274,1,24],"42":[2,2,38,1,6],"43":[3,1,1,1,1],"44":[3,1,1,1,1],"45":[3,1,1,1,1]},"averageFieldLength":[3.945945945945946,1.4054054054054057,9.378378378378379,1,1.7567567567567568],"storedFields":{"1":{"path":"unrealeditor_08ik2npkos.mp4","title":"unrealeditor_08ik2npkos","tags":[],"headers":[]},"5":{"path":"lib/scripts/graph-wasm.wasm","title":"graph-wasm","tags":[],"headers":[]},"6":{"path":"lib/fonts/94f2f163d4b698242fef.otf","title":"94f2f163d4b698242fef","tags":[],"headers":[]},"7":{"path":"lib/fonts/72505e6a122c6acd5471.woff2","title":"72505e6a122c6acd5471","tags":[],"headers":[]},"8":{"path":"lib/fonts/2d5198822ab091ce4305.woff2","title":"2d5198822ab091ce4305","tags":[],"headers":[]},"9":{"path":"lib/fonts/c8ba52b05a9ef10f4758.woff2","title":"c8ba52b05a9ef10f4758","tags":[],"headers":[]},"10":{"path":"lib/fonts/cb10ffd7684cd9836a05.woff2","title":"cb10ffd7684cd9836a05","tags":[],"headers":[]},"11":{"path":"lib/fonts/b5f0f109bc88052d4000.woff2","title":"b5f0f109bc88052d4000","tags":[],"headers":[]},"12":{"path":"lib/fonts/cbe0ae49c52c920fd563.woff2","title":"cbe0ae49c52c920fd563","tags":[],"headers":[]},"13":{"path":"lib/fonts/535a6cf662596b3bd6a6.woff2","title":"535a6cf662596b3bd6a6","tags":[],"headers":[]},"14":{"path":"lib/fonts/70cc7ff27245e82ad414.ttf","title":"70cc7ff27245e82ad414","tags":[],"headers":[]},"15":{"path":"lib/fonts/454577c22304619db035.ttf","title":"454577c22304619db035","tags":[],"headers":[]},"16":{"path":"lib/fonts/52ac8f3034507f1d9e53.ttf","title":"52ac8f3034507f1d9e53","tags":[],"headers":[]},"17":{"path":"lib/fonts/05b618077343fbbd92b7.ttf","title":"05b618077343fbbd92b7","tags":[],"headers":[]},"18":{"path":"lib/fonts/4bb6ac751d1c5478ff3a.woff2","title":"4bb6ac751d1c5478ff3a","tags":[],"headers":[]},"19":{"path":"lib/media/874d8b8e340f75575caa.svg","title":"874d8b8e340f75575caa","tags":[],"headers":[]},"20":{"path":"lib/html/file-tree.html","title":"file-tree","tags":[],"headers":[]},"21":{"path":"lib/scripts/webpage.js","title":"webpage","tags":[],"headers":[]},"22":{"path":"lib/scripts/graph-view.js","title":"graph-view","tags":[],"headers":[]},"23":{"path":"lib/scripts/graph-wasm.js","title":"graph-wasm","tags":[],"headers":[]},"24":{"path":"lib/scripts/graph-render-worker.js","title":"graph-render-worker","tags":[],"headers":[]},"25":{"path":"lib/scripts/tinycolor.js","title":"tinycolor","tags":[],"headers":[]},"26":{"path":"lib/scripts/pixi.js","title":"pixi","tags":[],"headers":[]},"27":{"path":"lib/scripts/minisearch.js","title":"minisearch","tags":[],"headers":[]},"28":{"path":"lib/media/favicon.png","title":"favicon","tags":[],"headers":[]},"29":{"path":"lib/scripts/graph-data.js","title":"graph-data","tags":[],"headers":[]},"30":{"path":"lib/styles/obsidian.css","title":"obsidian","tags":[],"headers":[]},"31":{"path":"lib/styles/global-variable-styles.css","title":"global-variable-styles","tags":[],"headers":[]},"32":{"path":"lib/styles/main-styles.css","title":"main-stLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
:root body{--line-width:min(40em, calc(100vw - 2em));--line-width-adaptive:min(40em, calc(100vw - 2em));--file-line-width:min(40em, calc(100vw - 2em));--sidebar-width:min(20em, 80vw)}body{--zoom-factor:1!important;--font-text-size:16px}
|
||||
@@ -1 +0,0 @@
|
||||
body{--color-fade-speed:0.2s}.tree-container{position:relative;height:100%;width:auto;margin-top:3em;margin-bottom:0}.tree-container .tree-header{display:flex;flex-direction:row;align-items:center;position:absolute;top:-3em}.tree-container .tree-header .sidebar-section-header{margin-block:1em;white-space:nowrap}.tree-container:has(.tree-scroll-area:empty){display:none}body .webpage-container .tree-container .tree-scroll-area{width:100%;height:100%;max-height:100%;overflow-y:auto;border-radius:0;position:absolute;margin:0;background-color:transparent}.tree-container .tree-item{display:flex;flex-direction:column;align-items:flex-start;padding:0;padding-block:1px;overflow:hidden!important;flex:none}.tree-container .tree-item-children{padding:0;margin:0;border-left:none;width:100%}.tree-item-title>*{padding:0;margin:0;overflow:hidden;display:inline;text-overflow:ellipsis}.tree-container .tree-item-icon *{color:var(--text-muted);font-family:emoji}.tree-container .tree-item-icon :is(svg,img){-webkit-mask-image-repeat:no-repeat;-webkit-mask-image-position:center;max-width:1.3em;height:100%}.tree-container .tree-item-icon :has(svg){display:contents!important}.tree-container .tree-item-icon{min-width:1.6em;max-width:1.6em;margin-left:2px;display:flex;align-items:center;justify-content:flex-start}.tree-container .tree-item.mod-active>.tree-link>.tree-item-contents{color:var(--interactive-accent)}.tree-container .tree-link{position:relative;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;border-radius:var(--radius-s);color:var(--nav-item-color);text-decoration-line:none;width:-webkit-fill-available;width:-moz-available;width:fill-available;margin-left:var(--tree-horizontal-spacing)}.tree-container .tree-link:active{color:var(--nav-item-color-active)}.tree-container .tree-item-contents{width:100%;height:100%;margin:0!important;padding:0!important;font-size:unset!important;padding-left:calc(var(--tree-horizontal-spacing) * 2 + var(--collapse-arrow-size))!important;border-radius:var(--radius-s);display:flex!important;flex-direction:row!important;align-items:center!important;color:var(--nav-item-color);transition:background-color .1s}.tree-container .tree-item-title{overflow:hidden;text-overflow:ellipsis!important;text-wrap:nowrap!important;white-space:nowrap!important;position:relative!important;border:none!important;width:100%;width:-webkit-fill-available;width:-moz-available;width:fill-available;background-color:transparent!important;padding-top:calc(var(--tree-vertical-spacing)/ 2)!important;padding-bottom:calc(var(--tree-vertical-spacing)/ 2)!important;margin:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important}.tree-container .tree-item-title::after{right:0;position:absolute!important;margin-right:.5em!important}.tree-container .mod-tree-folder:not(:has(.mod-tree-folder)) .mod-tree-file>.tree-link>.tree-item-contents{padding-left:calc(var(--tree-horizontal-spacing) * 2)!important}.tree-container .collapse-icon{translate:calc(0px - var(--collapse-arrow-size) - var(--tree-horizontal-spacing) * 2) 0;position:absolute;height:100%;padding:var(--tree-horizontal-spacing)}.tree-container .tree-item.mod-tree-folder>.tree-link>.collapse-icon{width:100%}.collapse-icon:hover{color:var(--nav-item-color-hover)}.tree-container .clickable-icon{width:3.2em;height:2.2em}.tree-container .tree-item.is-collapsed>.tree-link>.tree-item-contents>.collapse-icon>svg{transition:transform .1s ease-in-out;transform:rotate(-90deg)}.tree-container .tree-item-contents:hover{color:var(--nav-item-color-hover)}.filtered-out{display:none!important}.tree-container>.tree-scroll-area>* .tree-item{margin-left:calc(var(--tree-horizontal-spacing) * 2 + var(--collapse-arrow-size)/ 2)}.tree-container>.tree-scroll-area>* .tree-item{border-left:var(--nav-indentation-guide-width) solid var(--nav-indentation-guide-color)}.tree-container .tree-scroll-area>*>*>.tree-item{margin-left:calc(var(--tree-horizontal-spacing) + var(--collapse-arrow-size)/ 2)}.tree-container:not(.mod-nav-indicator) .tree-scroll-area .tree-item{border-color:transparent!important}.tree-container .tree-item.mod-active{border-color:var(--interactive-accent)!important;box-shadow:2px 0 0 0 var(--interactive-accent) inset;transition:box-shadow .4s ease-in-out}.tree-container .tree-item:hover:not(.mod-active):not(.mod-collapsible):not(:has(.tree-item:hover)):not(.mod-root > * > *){border-left:var(--nav-indentation-guide-width) solid var(--nav-item-color-hover)}.tree-container .mod-active>.tree-link,.tree-container .tree-link:hover{background-color:var(--nav-item-background-hover);cursor:pointer}.webpage-container .tree-container .tree-item:not(.mod-collapsible)>.tree-item-children>.tree-item>.tree-link,.webpage-container .tree-container>.tree-scroll-area>.tree-item>.tree-link{margin-left:0!important}.tree-container.outline-tree .tree-item[data-depth='1']>.tree-link>.tree-item-contents{font-weight:900;font-size:1.1em;margin-left:0;padding-left:1em}.navLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
:root{--highlight-bg-color:rgba(180, 0, 170, 1);--highlight-selected-bg-color:rgba(0, 100, 0, 1)}:root{--annotation-unfocused-field-background:url("data:image/svg+xml; charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13); '/></svg>");--input-focus-border-color:Highlight;--input-focus-outline:1px solid Canvas;--input-unfocused-border-color:transparent;--input-disabled-border-color:transparent;--input-hover-border-color:black;--link-outline:none}:root{--xfa-unfocused-field-background:url("data:image/svg+xml; charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13); '/></svg>");--xfa-focus-outline:auto}:root{--viewer-container-height:0;--pdfViewer-padding-bottom:0;--page-margin:1px auto -8px;--page-border:9px solid transparent;--spreadHorizontalWrapped-margin-LR:-3.5px;--loading-icon-delay:400ms}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translateX(-100%)}.hiddenCopyElement{position:absolute;top:0;left:0;width:0;height:0;display:none}.spread{margin-left:3.5px;margin-right:3.5px;text-align:center}.spread{white-space:nowrap}.spread .dummyPage,.spread .page{display:inline-block;vertical-align:middle}body{--anim-duration-none:0;--anim-duration-superfast:70ms;--anim-duration-fast:140ms;--anim-duration-moderate:300ms;--anim-duration-slow:560ms;--anim-motion-smooth:cubic-bezier(0.45, 0.05, 0.55, 0.95);--anim-motion-delay:cubic-bezier(0.65, 0.05, 0.36, 1);--anim-motion-jumpy:cubic-bezier(0.68, -0.55, 0.27, 1.55);--anim-motion-swing:cubic-bezier(0, 0.55, 0.45, 1);--blockquote-border-thickness:2px;--blockquote-border-color:var(--interactive-accent);--blockquote-font-style:normal;--blockquote-color:inherit;--blockquote-background-color:transparent;--bold-modifier:200;--bold-color:inherit;--bold-weight:calc(var(--font-weight) + var(--bold-modifier));--border-width:1px;--button-radius:var(--input-radius);--callout-border-width:0px;--callout-border-opacity:0.25;--callout-padding:var(--size-4-3) var(--size-4-3) var(--size-4-3) var(--size-4-6);--callout-radius:var(--radius-s);--callout-blend-mode:var(--highlight-mix-blend-mode);--callout-title-color:inherit;--callout-title-padding:0;--callout-title-size:inherit;--callout-title-weight:calc(var(--font-weight) + var(--bold-modifier));--callout-content-padding:0;--callout-content-background:transparent;--callout-bug:var(--color-red-rgb);--callout-default:var(--color-blue-rgb);--callout-error:var(--color-red-rgb);--callout-example:var(--color-purple-rgb);--callout-fail:var(--color-red-rgb);--callout-important:var(--color-cyan-rgb);--callout-info:var(--color-blue-rgb);--callout-question:var(--color-orange-rgb);--callout-success:var(--color-green-rgb);--callout-summary:var(--color-cyan-rgb);--callout-tip:var(--color-cyan-rgb);--callout-todo:var(--color-blue-rgb);--callout-warning:var(--color-orange-rgb);--callout-quote:158,158,158;--canvas-background:var(--background-primary);--canvas-card-label-color:var(--text-faint);--canvas-color-1:var(--color-red-rgb);--canvas-color-2:var(--color-orange-rgb);--canvas-color-3:var(--color-yellow-rgb);--canvas-color-4:var(--color-green-rgb);--canvas-color-5:var(--color-cyan-rgb);--canvas-color-6:var(--color-purple-rgb);--canvas-dot-pattern:var(--color-base-30);--caret-color:var(--text-normal);--checkbox-radius:var(--radius-s);--checkbox-size:var(--font-text-size);--checkbox-marker-color:var(--background-primary);--checkbox-color:var(--interactive-accent);--checkbox-color-hover:var(--interactive-accent-hover);--checkbox-border-color:var(--text-faint);--checkbox-border-color-hover:var(--text-muted);--checkbox-margin-inline-start:0.85em;--checklist-done-decoration:line-through;--checklist-done-color:var(--text-muted);--code-white-space:pre-wrap;--code-radius:var(--radius-s);--code-size:var(--font-smaller);--code-background:var(--background-primary-alt);--code-normal:var(--text-muted);--code-comment:var(--text-faint);--code-function:var(--color-yellow);--code-important:var(--color-orange);--code-keyword:var(--color-pink);--code-operator:var(--color-red);--code-property:var(--color-cyan);--code-punctuation:var(--text-muted);--code-string:var(--color-green);--code-tag:var(--color-red);--code-value:var(--color-purple);--collapse-icon-color:var(--text-faint);--collapse-icon-color-collapsed:var(--text-accent);--cursor:default;--cursor-link:pointer;--dialog-width:560px;--dialog-max-width:80vw;--dialog-max-height:85vh;--divider-color:var(--background-modifier-border);--divider-color-hover:var(--interactive-accent);--divider-width:1px;--divider-width-hover:3px;--divider-vertical-height:calc(100% - var(--header-height));--drag-ghost-background:rgba(0, 0, 0, 0.85);--drag-ghost-text-color:#fff;--dropdown-background:var(--interactivLine truncated
|
||||
@@ -1,31 +0,0 @@
|
||||
:root{--pen-white:#edf1fc;--pen-gray:#5f5d58;--pen-black:#26241f;--pen-red:#e14a49;--pen-green:#15b64f;--pen-blue:#3f76ed;--pen-light-blue:#54b6f8;--pen-purple:#9b4ff0;--neutral-pen-black:#272727;--neutral-pen-black-trans:#27272722;--page-white:#ffffff;--page-manila:#f3deaf;--page-blue:#3f76ed;--grid-size:32px}.recolor-images img{filter:var(--image-effect)}.page-blueprint,.page-manila,.page-white{--text-normal:var(--accent-color);--text-muted:var(--accent-color);--text-faint:var(--accent-color-trans);--h1-color:var(--accent-color);--h2-color:var(--accent-color);--h3-color:var(--accent-color);--h4-color:var(--accent-color);--h5-color:var(--accent-color);--h6-color:var(--accent-color);--link-color:var(--pen-blue);--link-color-hover:var(--pen-light-blue);--link-unresolved-color:var(--pen-red);--hr-color:var(--accent-color);--blockquote-border-color:var(--accent-color);--embed-border-left:2px solid var(--accent-color);--collapse-icon-color-collapsed:var(--accent-color);--checkbox-color:var(--accent-color);--checkbox-marker-color:var(--page-color);--checkbox-color-hover:var(--accent-color-trans);--checkbox-border-color:var(--accent-color);--checklist-done-color:var(--accent-color);--list-marker-color:var(--accent-color);--interactive-accent:var(--accent-color);--metadata-label-text-color:var(--accent-color);--metadata-input-text-color:var(--accent-color);--tag-color:var(--accent-color);--tag-background:var(--accent-color-trans);--pill-cover-hover:color-mix(in srgb, var(--accent-color) 60%, transparent);--background-modifier-border-focus:var(--accent-color);--background-modifier-border:var(--accent-color-trans);--background-modifier-hover:color-mix(
|
||||
in srgb,
|
||||
var(--accent-color) 60%,
|
||||
transparent
|
||||
);color:var(--accent-color);background-color:var(--page-color);font-weight:700}.page-manila{--page-color:var(--page-manila);--accent-color:var(--pen-black);--accent-color-trans:color-mix(
|
||||
in srgb,
|
||||
var(--accent-color) 15%,
|
||||
transparent
|
||||
);--image-effect:brightness(0) saturate(100%) invert(14%) sepia(19%) saturate(296%) hue-rotate(5deg) brightness(90%) contrast(96%);color-scheme:light}.embed-manila img{background-color:var(--page-manila)}.page-white{--page-color:var(--page-white);--accent-color:var(--neutral-pen-black);--accent-color-trans:color-mix(
|
||||
in srgb,
|
||||
var(--accent-color) 15%,
|
||||
transparent
|
||||
);--image-effect:brightness(0) saturate(100%) invert(14%) sepia(19%) saturate(296%) hue-rotate(5deg) brightness(90%) contrast(96%);color-scheme:light}.embed-white img{background-color:var(--page-white)}.page-blueprint{--page-color:var(--page-blue);--accent-color:var(--pen-white);--accent-color-trans:color-mix(
|
||||
in srgb,
|
||||
var(--accent-color) 15%,
|
||||
transparent
|
||||
);--image-effect:brightness(0) saturate(100%) invert(89%) sepia(1%) saturate(2714%) hue-rotate(196deg) brightness(107%) contrast(98%);color-scheme:dark;--link-color:color-mix(in srgb, var(--pen-light-blue) 60%, var(--pen-white));--link-color-hover:color-mix(
|
||||
in srgb,
|
||||
var(--pen-light-blue) 20%,
|
||||
var(--pen-white)
|
||||
)}.embed-blueprint img{background-color:var(--page-blue)}.page-grid{background-image:linear-gradient(0deg,transparent 0,var(--accent-color-trans) 1px,var(--accent-color-trans) 2px,transparent 3px),linear-gradient(90deg,transparent calc(var(--grid-size) - 3px),var(--accent-color-trans) calc(var(--grid-size) - 2px),var(--accent-color-trans) calc(var(--grid-size) - 1px),transparent var(--grid-size));background-size:var(--grid-size) var(--grid-size)}:is(
|
||||
.page-white,.page-manila,.page-blueprint,.pen-white,.pen-blue,.pen-red,.pen-green,.pen-black,.pen-gray,.pen-purple
|
||||
) svg{color:color-mix(in srgb,var(--accent-color) 60%,transparent)}:is(.page-white,.page-manila,.page-blueprint) :is(code,.HyperMD-codeblock,.cm-inline-code){--code-normal:var(--accent-color);--code-background:color-mix(
|
||||
in srgb,
|
||||
var(--page-color) 80%,
|
||||
black
|
||||
)!important}div>pre{--code-background:color-mix(
|
||||
in srgb,
|
||||
var(--page-color) 80%,
|
||||
black
|
||||
)!important}:is(.page-white,.page-manila,.page-blueprint){--metadata-input-background-active:var(--accent-color-trans)}.pen-white{--accent-color:var(--pen-white);--accent-color-trans:color-mix(in srgb, var(--pen-white) 15%, transparent);color:var(--accent-color);--hr-color:var(--accent-color);--image-effect:brightness(0) saturate(100%) invert(89%) sepia(1%) saturate(2714%) hue-rotate(196deg) brightness(107%) contrast(98%)}.pen-blue{--accent-color:var(--pen-blue);--accent-color-trans:color-mix(in srgb, var(--pen-blue) 15%, transparent);color:var(--accent-color);--hr-color:var(--accent-color);--image-effect:brightness(0) saturate(100%) invert(36%) sepia(95%) saturate(945%) hue-rotate(199deg) brightness(95%) contrast(95%)}.pen-red{--accent-color:var(--pen-red);--accent-color-trans:color-mix(in srgb, var(--pen-red) 15%, transparent);color:var(--accent-color);--hr-color:var(--accent-color);--image-effect:brightness(0) saturate(100%) invert(40%) sepia(41%) saturate(1024%) hue-rotate(316deg) brightness(99%) contrast(94%)}.pen-green{--accent-color:var(--pen-green);--accent-color-trans:color-mix(in srgb, var(--pen-green) 15%, transparent);color:var(--accent-color);--hr-color:var(--accent-color);--image-effect:brightness(0) saturate(100%) invert(52%) sepia(60%) saturate(2521%) hue-rotate(105deg) brightness(96%) contrast(84%)}.pen-black{--accent-color:var(--pen-black);--accent-color-trans:color-mix(in srgb, var(--pen-black) 15%, transparent);color:var(--accent-color);--hr-color:var(--accent-color);--image-effect:brightness(0) saturate(100%) invert(14%) sepia(19%) saturate(296%) hue-rotate(5deg) brightness(90%) contrast(96%)}.pen-gray{--accent-color:var(--pen-gray);--accent-color-trans:color-mix(in srgb, var(--pen-gray) 15%, transparent);color:var(--accent-color);--hr-color:var(--accent-color);--image-effect:brightness(0) saturate(100%) invert(35%) sepia(13%) saturate(189%) hue-rotate(5deg) brightness(96%) contrast(86%)}.pen-purple{--accent-color:var(--pen-purple);--accent-color-trans:color-mix(in srgb, var(--pen-purple) 15%, transparent);color:var(--accent-color);--hr-color:var(--accent-color);--image-effect:brightness(0) saturate(100%) invert(33%) sepia(59%) saturate(2620%) hue-rotate(249deg) brightness(98%) contrast(93%)}img[alt=left]{float:left;margin-right:10px;max-width:65%}img[alt=right]{float:right;margin-left:10px;max-width:65%}
|
||||
@@ -0,0 +1,319 @@
|
||||
:root {
|
||||
--doc-sidebar-width: 300px;
|
||||
--doc-outline-width: 240px;
|
||||
--ifm-color-primary: #2196f3;
|
||||
--ifm-color-primary-dark: #1976d2;
|
||||
--ifm-background-color: #1a1a1a;
|
||||
--ifm-background-surface-color: #252526;
|
||||
--ifm-color-content: #e0e0e0;
|
||||
--ifm-color-content-secondary: #a0a0a0;
|
||||
--ifm-link-color: #2196f3;
|
||||
--ifm-border-color: #404040;
|
||||
--title-bar-height: 48px;
|
||||
--sidebar-transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
|
||||
background: var(--ifm-background-color);
|
||||
color: var(--ifm-color-content);
|
||||
}
|
||||
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.title-bar {
|
||||
height: var(--title-bar-height);
|
||||
background-color: var(--ifm-background-surface-color);
|
||||
border-bottom: 1px solid var(--ifm-border-color);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 1rem;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 500;
|
||||
color: var(--ifm-color-content);
|
||||
flex-shrink: 0;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.menu-button {
|
||||
display: none;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--ifm-color-content);
|
||||
padding: 8px;
|
||||
cursor: pointer;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.menu-button:hover {
|
||||
color: var(--ifm-color-primary);
|
||||
}
|
||||
|
||||
.content-container {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
background-color: var(--ifm-background-surface-color);
|
||||
color: var(--ifm-color-content);
|
||||
overflow-y: auto;
|
||||
border-color: var(--ifm-border-color);
|
||||
height: calc(100vh - var(--title-bar-height));
|
||||
}
|
||||
|
||||
.left-sidebar {
|
||||
width: var(--doc-sidebar-width);
|
||||
border-right: 1px solid var(--ifm-border-color);
|
||||
}
|
||||
|
||||
.right-sidebar {
|
||||
width: var(--doc-outline-width);
|
||||
border-left: none;
|
||||
background-color: var(--ifm-background-color);
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
background-color: var(--ifm-background-color);
|
||||
padding: 2rem 3rem;
|
||||
overflow-y: auto;
|
||||
min-width: 0; /* Fix flexbox content overflow */
|
||||
color: var(--ifm-color-content);
|
||||
}
|
||||
|
||||
#file-index a, #document-outline a {
|
||||
color: var(--ifm-color-content);
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
padding: 0.4rem 0.8rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
#file-index a:hover, #document-outline a:hover {
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
color: var(--ifm-color-primary);
|
||||
}
|
||||
|
||||
#document-outline a {
|
||||
color: var(--ifm-color-content-secondary);
|
||||
border-left: 2px solid transparent;
|
||||
margin: 2px 0;
|
||||
}
|
||||
|
||||
#document-outline a:hover {
|
||||
background-color: transparent;
|
||||
color: var(--ifm-color-primary);
|
||||
border-left: 2px solid var(--ifm-color-primary);
|
||||
}
|
||||
|
||||
/* Markdown content styling */
|
||||
.markdown-content {
|
||||
line-height: 1.7;
|
||||
font-size: 1rem;
|
||||
max-width: 75ch;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.markdown-content h1 {
|
||||
font-size: 2.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.markdown-content h2 {
|
||||
font-size: 1.8rem;
|
||||
margin-top: 2.5rem;
|
||||
margin-bottom: 1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.markdown-content h3 {
|
||||
font-size: 1.5rem;
|
||||
margin-top: 2rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.markdown-content a {
|
||||
color: var(--ifm-link-color);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.markdown-content a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.markdown-content p {
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
.markdown-content img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.markdown-content table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin: 1em 0;
|
||||
font-size: 0.9rem;
|
||||
border-color: var(--ifm-border-color);
|
||||
}
|
||||
|
||||
.markdown-content th,
|
||||
.markdown-content td {
|
||||
border: 1px solid var(--ifm-border-color);
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.markdown-content th {
|
||||
background-color: var(--ifm-background-surface-color);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.markdown-content code:not([class*="language-"]) {
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
padding: 0.2em 0.4em;
|
||||
border-radius: 1px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
font-size: 0.9em;
|
||||
color: #e0e0e0;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.markdown-content blockquote {
|
||||
border-left: 4px solid var(--ifm-color-primary);
|
||||
margin: 1rem 0;
|
||||
padding: 0.5rem 1rem;
|
||||
background-color: var(--ifm-background-surface-color);
|
||||
border-radius: 4px;
|
||||
color: var(--ifm-color-content-secondary);
|
||||
}
|
||||
|
||||
.markdown-content video {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
margin: 1rem 0;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.markdown-content hr {
|
||||
margin: 3rem 0;
|
||||
border: none;
|
||||
border-bottom: 1px solid var(--ifm-border-color);
|
||||
}
|
||||
|
||||
.error {
|
||||
color: #ff6b6b;
|
||||
padding: 20px;
|
||||
border: 1px solid #ff6b6b;
|
||||
border-radius: 4px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
/* Custom Scrollbar */
|
||||
::-webkit-scrollbar {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: var(--ifm-background-color);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background-color: #505050;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background-color: #606060;
|
||||
}
|
||||
|
||||
/* Completely remove scrollbar buttons */
|
||||
::-webkit-scrollbar-button {
|
||||
display: none !important;
|
||||
width: 0 !important;
|
||||
height: 0 !important;
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-corner {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* Firefox scrollbar - hide buttons */
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #505050 var(--ifm-background-color);
|
||||
}
|
||||
|
||||
/* Highlight animation */
|
||||
@keyframes highlight {
|
||||
0% { background-color: rgba(33, 150, 243, 0.2); }
|
||||
100% { background-color: transparent; }
|
||||
}
|
||||
|
||||
.markdown-content h1.highlight,
|
||||
.markdown-content h2.highlight,
|
||||
.markdown-content h3.highlight,
|
||||
.markdown-content h4.highlight,
|
||||
.markdown-content h5.highlight,
|
||||
.markdown-content h6.highlight {
|
||||
animation: highlight 2s ease-out;
|
||||
}
|
||||
|
||||
@media (max-width: 1000px) {
|
||||
.menu-button {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.left-sidebar {
|
||||
position: fixed;
|
||||
left: -100%;
|
||||
top: var(--title-bar-height);
|
||||
bottom: 0;
|
||||
z-index: 100;
|
||||
transition: var(--sidebar-transition);
|
||||
}
|
||||
|
||||
.right-sidebar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.left-sidebar.show {
|
||||
left: 0;
|
||||
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.title-text {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.title-text .brand {
|
||||
color: var(--ifm-color-primary);
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.01em;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
.title-text .divider,
|
||||
.title-text .page-title {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||