fixing stack state problem
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>Quill</title>
|
<title>Quill</title>
|
||||||
<link rel="icon" href="">
|
<link rel="icon" href="../_/Quill.png">
|
||||||
<link rel="stylesheet" href="">
|
<link rel="stylesheet" href="">
|
||||||
<script src="../index.js"></script>
|
<script src="../index.js"></script>
|
||||||
<script src="test.js" type="module"></script>
|
<script src="test.js" type="module"></script>
|
||||||
|
|||||||
BIN
_/Quill.png
Normal file
BIN
_/Quill.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 117 KiB |
15
index.js
15
index.js
@@ -1,7 +1,8 @@
|
|||||||
/*
|
/*
|
||||||
Sam Russell
|
Sam Russell
|
||||||
Captured Sun
|
Captured Sun
|
||||||
12.26.25 - State for arrays, nested objects. State for stacks (Shadow-only)
|
12.26.25 - Fixing stack state problem
|
||||||
|
12.25.25 - State for arrays, nested objects. State for stacks (Shadow-only)
|
||||||
12.17.25 - [Hyperia] - adding width, height functions. adding "e" to onClick. adding the non-window $$ funcs.
|
12.17.25 - [Hyperia] - adding width, height functions. adding "e" to onClick. adding the non-window $$ funcs.
|
||||||
12.16.25 - [comalyr] - State
|
12.16.25 - [comalyr] - State
|
||||||
11.25.25.1 - Added minHeight and minWidth to be counted as numerical styles
|
11.25.25.1 - Added minHeight and minWidth to be counted as numerical styles
|
||||||
@@ -203,6 +204,13 @@ window.quill = {
|
|||||||
quill.rendering.pop()
|
quill.rendering.pop()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
rerenderStackContents: (el, cb) => {
|
||||||
|
el.innerHTML = ""
|
||||||
|
quill.rendering.push(el)
|
||||||
|
cb()
|
||||||
|
quill.rendering.pop()
|
||||||
|
},
|
||||||
|
|
||||||
isStack: (el) => {
|
isStack: (el) => {
|
||||||
return el.classList.contains("HStack") || el.classList.contains("ZStack") || el.classList.contains("VStack")
|
return el.classList.contains("HStack") || el.classList.contains("ZStack") || el.classList.contains("VStack")
|
||||||
},
|
},
|
||||||
@@ -831,10 +839,7 @@ handleStack = function(cb, name, styles="") {
|
|||||||
quill.lastState = null
|
quill.lastState = null
|
||||||
cb()
|
cb()
|
||||||
if(quill.lastState) {
|
if(quill.lastState) {
|
||||||
nowRendering.addStateWatcher(quill.lastState, () => {
|
nowRendering.addStateWatcher(quill.lastState, quill.rerenderStackContents.bind(nowRendering, nowRendering, cb))
|
||||||
nowRendering.innerHTML = ""
|
|
||||||
cb()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
return nowRendering
|
return nowRendering
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user