Import a 3D Model and automatically assign and export animations
TypeScript
A few minor style updates with animation playback and theme positioning
Scott Petrovic772e663f555f
diff --git a/src/index.html b/src/index.htmlindex 053941a..12ed7fc 100644--- a/src/index.html+++ b/src/index.html@@ -94,7 +94,7 @@<span><span style="max-width: 220px">Rotate Model to face front <br/> (blue origin line)</span>- <div style="display: flex; flex-direction: row">+ <div style="display: flex; flex-direction: row"><button class="secondary-button" id="rotate-model-x-button">X</button><button class="secondary-button" id="rotate-model-y-button">Y</button><button class="secondary-button" id="rotate-model-z-button">Z</button>diff --git a/src/lib/processes/StepAnimationsListing.ts b/src/lib/processes/StepAnimationsListing.tsindex 92ba01e..c2f2b6b 100644--- a/src/lib/processes/StepAnimationsListing.ts+++ b/src/lib/processes/StepAnimationsListing.ts@@ -138,7 +138,7 @@ export class StepAnimationsListing extends EventTarget {const animation_button: HTMLButtonElement | null = this.ui.dom_animation_clip_list.querySelector(`button[data-index="${this.current_playing_index}"]`)if (animation_button !== null) {- animation_button.style.background = `linear-gradient(to right,rgba(50, 94, 114, 0.42) ${progress_percent}%, rgba(50, 94, 113, 0) ${progress_percent}%)`+ animation_button.style.background = `linear-gradient(to right,var(--bg-primary) ${progress_percent}%, var(--bg-alternate) ${progress_percent}%)`}})}diff --git a/src/styles.css b/src/styles.cssindex 9a104be..80179bb 100644--- a/src/styles.css+++ b/src/styles.css@@ -49,7 +49,7 @@ html, body, li, p, div, span, label, input,h1, h2, h3, h4, h5, h6, input, button, select {color: var(--text-primary);font-family: 'Jost', sans-serif;- font-size: 13px;+ font-size: 14px;display: inline-block;}@@ -83,7 +83,6 @@ li{display: list-item;line-height: 135%;color: var(--text-primary);- font-size: 13px;}html {@@ -255,7 +254,6 @@ option {}#info-messaging {padding: 0.5rem;- font-size: 13px;color: var(--text-primary);border: 1px solid var(--text-primary);}@@ -277,7 +275,7 @@ option {top: 0;right: 0;border: 1px dotted var(--text-primary);- padding: 1rem;+ padding: 0.5rem;height: 100%;overflow-y: auto;overflow-x: hidden;@@ -457,6 +455,7 @@ input[type="file"] {width: 20px; /* Increase checkbox size */height: 20px;cursor: pointer;+ accent-color: var(--text-alternate);}.styled-checkbox label {@@ -492,9 +491,8 @@ input[type="file"] {/* Theme toggle button styles */#theme-toggle-container {position: fixed;- bottom: 20px;- right: 200px;- z-index: 1000;+ bottom: 4rem;+ left: 1rem;}#theme-toggle {