Skip to content

Commit

Permalink
Deploying to gh-pages from @ 058c35e 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
caiwuu committed Mar 20, 2024
1 parent 4128fdf commit 5dfdd08
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions @typex-core_view_component.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @memberof Component
* @instance
*/
get isComponent() {
get isComponent () {
return true
}

Expand Down Expand Up @@ -61,7 +61,7 @@
* @memberof Component
* @instance
*/
render(h) {
render (h) {
throw Error('Component does not implement a required interface "render"')
}

Expand All @@ -73,7 +73,7 @@
* @private
* @memberof Component
*/
generateVdom(h) {
_generateVdom_ (h) {
typeof this.onBeforeRender === 'function' && this.onBeforeRender()
return this.render(h)
}
Expand All @@ -84,7 +84,7 @@
* @memberof Component
* @instance
*/
setState(partialState = {}) {
setState (partialState = {}) {
return enqueueSetState(partialState, this)
}

Expand All @@ -94,7 +94,7 @@
* @instance
* @private
*/
syncUpdate() {
_syncUpdate_ () {
const oldVndoe = getVnodeOrIns(this)
patch(null, oldVndoe)
}
Expand All @@ -105,7 +105,7 @@
* @instance
* @memberof Component
*/
shouldComponentUpdate() {
shouldComponentUpdate () {
return true
}
}
Expand Down
8 changes: 4 additions & 4 deletions @typex-core_view_vdom_enqueueSetState.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @param {*} component
* @returns {*}
*/
export default function enqueueSetState(partialState, component) {
export default function enqueueSetState (partialState, component) {
let deferPromise = null
if (queue.length === 0) {
deferPromise = defer(flush)
Expand All @@ -28,7 +28,7 @@
/**
* @description 调度执行
*/
function flush() {
function flush () {
let item, component
while ((item = queue.shift())) {
const { partialState, component } = item
Expand All @@ -50,7 +50,7 @@
}

while ((component = componentQueue.shift())) {
component.shouldComponentUpdate() && component.syncUpdate()
component.shouldComponentUpdate() && component._syncUpdate_()
}
}

Expand All @@ -59,7 +59,7 @@
* @param {function} fn
* @returns {*}
*/
function defer(fn) {
function defer (fn) {
return Promise.resolve().then(fn)
}
</code></pre></article></section><footer class="footer" id="PeOAagUepe"><div class="wrapper"><div style="font-size:16px;color:#ff6c6c;text-align:center">Typex 欢迎各位对编辑器感兴趣的同学加入 QQ群:616405713</div></div></footer></div></div></div><div class="search-container" id="PkfLWpAbet" style="display:none"><div class="wrapper" id="iCxFxjkHbP"><button class="icon-button search-close-button" id="VjLlGakifb" aria-label="close search"><svg><use xlink:href="#close-icon"></use></svg></button><div class="search-box-c"><svg><use xlink:href="#search-icon"></use></svg> <input type="text" id="vpcKVYIppa" class="search-input" placeholder="Search..." autofocus></div><div class="search-result-c" id="fWwVHRuDuN"><span class="search-result-c-text">Type anything to view search result</span></div></div></div><div class="mobile-menu-icon-container"><button class="icon-button" id="mobile-menu" data-isopen="false" aria-label="menu"><svg><use xlink:href="#menu-icon"></use></svg></button></div><div id="mobile-sidebar" class="mobile-sidebar-container"><div class="mobile-sidebar-wrapper"><a style="font:bold 30px/30px 黑体;color:#999;text-align:center;text-decoration:none" href="./index.html">Typex-Document</a><div class="mobile-nav-links"><div class="home-class navbar-item"><a id="home-id-mobile" href="./index.html" target="">Home</a></div><div class="github-class navbar-item"><a id="github-id-mobile" href="https://github.com/caiwuu/Typex" target="_blank">Github</a></div></div><div class="mobile-sidebar-items-c"><div class="sidebar-section-title with-arrow" data-isopen="false" id="sidebar-classes"><div>Classes</div><svg><use xlink:href="#down-icon"></use></svg></div><div class="sidebar-section-children-container"><div class="sidebar-section-children"><a href="Caret.html">Caret</a></div><div class="sidebar-section-children"><a href="Component.html">Component</a></div><div class="sidebar-section-children"><a href="Content.html">Content</a></div><div class="sidebar-section-children"><a href="Formater.html">Formater</a></div><div class="sidebar-section-children"><a href="Measure.html">Measure</a></div><div class="sidebar-section-children"><a href="Path.html">Path</a></div><div class="sidebar-section-children"><a href="Path_Path.html">Path</a></div><div class="sidebar-section-children"><a href="Range.html">Range</a></div><div class="sidebar-section-children"><a href="Selection.html">Selection</a></div><div class="sidebar-section-children"><a href="SetFormats.html">SetFormats</a></div><div class="sidebar-section-children"><a href="SplitText.html">SplitText</a></div><div class="sidebar-section-children"><a href="Step.html">Step</a></div><div class="sidebar-section-children"><a href="TextDelete.html">TextDelete</a></div><div class="sidebar-section-children"><a href="TextInsert.html">TextInsert</a></div><div class="sidebar-section-children"><a href="Transaction.html">Transaction</a></div></div><div class="sidebar-section-title with-arrow" data-isopen="false" id="sidebar-global"><div>Global</div><svg><use xlink:href="#down-icon"></use></svg></div><div class="sidebar-section-children-container"><div class="sidebar-section-children"><a href="global.html#addVnodes">addVnodes</a></div><div class="sidebar-section-children"><a href="global.html#computeOffset">computeOffset</a></div><div class="sidebar-section-children"><a href="global.html#computeScroll">computeScroll</a></div><div class="sidebar-section-children"><a href="global.html#createKeyToOldIdx">createKeyToOldIdx</a></div><div class="sidebar-section-children"><a href="global.html#createPath">createPath</a></div><div class="sidebar-section-children"><a href="global.html#defer">defer</a></div><div class="sidebar-section-children"><a href="global.html#del">del</a></div><div class="sidebar-section-children"><a href="global.html#findIdxInOld">findIdxInOld</a></div><div class="sidebar-section-children"><a href="global.html#flush">flush</a></div><div class="sidebar-section-children"><a href="global.html#getRect">getRect</a></div><div class="sidebar-section-children"><a href="global.html#horizontalMove">horizontalMove</a></div><div class="sidebar-section-children"><a href="global.html#initDispatcher">initDispatcher</a></div><div class="sidebar-section-children"><a href="global.html#invokeDestroyHook">invokeDestroyHook</a></div><div class="sidebar-section-children"><a href="global.html#isSameLine">isSameLine</a></div><div class="sidebar-section-children"><a href="global.html#loop">loop</a></div><div class="sidebar-section-children"><a href="global.html#patchVnode">patchVnode</a></div><div class="sidebar-section-children"><a href="global.html#positionCompare">positionCompare</a></div><div class="sidebar-section-children"><a href="global.html#queryPath">queryPath</a></div><div class="sidebar-section-children"><a href="global.html#queryPathByElm">queryPathByElm</a></div><div class="sidebar-section-children"><a href="global.html#queryPathByPosition">queryPathByPosition</a></div><div class="sidebar-section-children"><a href="global.html#queryPathByVn">queryPathByVn</a></div><div class="sidebar-section-children"><a href="global.html#removeVnodes">removeVnodes</a></div><div class="sidebar-section-children"><a href="global.html#renderRoot">renderRoot</a></div><div class="sidebar-section-children"><a href="global.html#sameVnode">sameVnode</a></div><div class="sidebar-section-children"><a href="global.html#setStyle">setStyle</a></div><div class="sidebar-section-children"><a href="global.html#updateChildren">updateChildren</a></div><div class="sidebar-section-children"><a href="global.html#verticalMove">verticalMove</a></div></div></div><div class="mobile-navbar-actions"><div class="navbar-right-item"><button class="icon-button search-button" aria-label="open-search"><svg><use xlink:href="#search-icon"></use></svg></button></div><div class="navbar-right-item"><button class="icon-button theme-toggle" aria-label="toggle-theme"><svg><use class="theme-svg-use" xlink:href="#dark-theme-icon"></use></svg></button></div><div class="navbar-right-item"><button class="icon-button font-size" aria-label="change-font-size"><svg><use xlink:href="#font-size-icon"></use></svg></button></div></div></div></div><script type="text/javascript" src="scripts/core.min.js"></script><script src="scripts/search.min.js" defer="defer"></script><script src="scripts/third-party/fuse.js" defer="defer"></script><script type="text/javascript">function foo(){console.log("foo")}</script><script type="text/javascript">var tocbotInstance=tocbot.init({tocSelector:"#eed4d2a0bfd64539bb9df78095dec881",contentSelector:".main-content",headingSelector:"h1, h2, h3",hasInnerContainers:!0,scrollContainer:".main-content",headingsOffset:130,onClick:bringLinkToView})</script></body></html>
4 changes: 2 additions & 2 deletions @typex-core_view_vdom_patch.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
const ins = getVnodeOrIns(oldVnode)
setVnodeOrIns(vnode, ins)
ins.props = Object.freeze({ ...vnode.props })
const newVdom = ins.generateVdom(h)
const newVdom = ins._generateVdom_(h)
setVdomOrIns(ins, newVdom)
setVnodeOrIns(ins, vnode)
return patchVnode(newVdom, oldVdom)
Expand Down Expand Up @@ -309,7 +309,7 @@
if (!vnode) {
const ins = getVnodeOrIns(oldVnode)
const oldVdom = getVdomOrIns(ins)
const newVdom = ins.generateVdom(h)
const newVdom = ins._generateVdom_(h)
setVdomOrIns(ins, newVdom)
patchVnode(newVdom, oldVdom)
return getVdomOrElm(newVdom)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

0 comments on commit 5dfdd08

Please sign in to comment.