feat: add icons
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m55s

This commit is contained in:
2024-04-26 01:13:08 +02:00
parent bd359fbaf7
commit d06b33f508
9 changed files with 31 additions and 8 deletions

View File

@ -64,6 +64,14 @@
inputEl.focus();
}
if (value > max) {
max = value;
}
if (value < min) {
min = value;
}
// setTimeout(() => {
// if (value >= 0) {
// max = getBoundingValue(value);

View File

@ -7,6 +7,8 @@ import Select from "./elements/Select.svelte";
import Checkbox from "./elements/Checkbox.svelte";
import Details from "./Details.svelte";
export const icons = import.meta.glob('./icons/*.svg?raw', { eager: true })
export { Float, Integer, Select, Checkbox, Input, Details };
export default Input;

View File

@ -54,9 +54,7 @@ export function encodeNestedArray(array: SparseArray): number[] {
encoded.push(0, 1, 1, 1);
} else {
// Recursively encode non-empty arrays
console.log("recursing", item);
const child = encodeNestedArray(item);
console.log("recursed", child);
encoded.push(...child);
}
// Update missingBracketIndex to the position of the newly added bracket
@ -67,7 +65,6 @@ export function encodeNestedArray(array: SparseArray): number[] {
// Update the distance for the last opened bracket
if (missingBracketIndex) encoded[missingBracketIndex] = index + 2;
}
console.log(encoded, item);
}
return [...encoded, 1, 1];