Skip to content

Commit

Permalink
0.24.264
Browse files Browse the repository at this point in the history
  • Loading branch information
ychetyrko committed Feb 16, 2024
1 parent 72e4d67 commit dbfa1f6
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "verstak",
"version": "0.24.263",
"version": "0.24.264",
"description": "Verstak - Front-End Library",
"publisher": "Nezaboodka Software",
"license": "Apache-2.0",
Expand Down Expand Up @@ -31,7 +31,7 @@
},
"homepage": "https://github.com/nezaboodka/verstak/blob/master/README.md#readme",
"dependencies": {
"reactronic": "^0.24.263"
"reactronic": "^0.24.264"
},
"devDependencies": {
"@types/node": "20.11.17",
Expand Down
14 changes: 7 additions & 7 deletions source/html/El.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class ElImpl<T extends Element = any, M = any> implements El<T, M> {
set area(value: ElArea) {
const node = this.node
const driver = node.driver
if (!driver.isPartitionSeparator) {
if (!driver.isPartition) {
const owner = node.owner as RxNode<ElImpl>
const ownerEl = owner.element
const prevEl = node.seat!.prev?.instance.element as ElImpl
Expand Down Expand Up @@ -480,7 +480,7 @@ export class Apply {
static heightGrowth<T extends Element>(element: El<T, any>, value: number): void {
const bNode = element.node
const driver = bNode.driver
if (driver.isPartitionSeparator) {
if (driver.isPartition) {
if (element.native instanceof HTMLElement) {
const s = element.native.style
if (value > 0)
Expand All @@ -491,7 +491,7 @@ export class Apply {
}
else {
const hostDriver = bNode.host.driver
if (hostDriver.isPartitionSeparator) {
if (hostDriver.isPartition) {
const host = bNode.host.seat!.instance as RxNode<El<T, any>>
Apply.boundsAlignment(element, Align.stretch)
Apply.heightGrowth(host.element, value)
Expand Down Expand Up @@ -622,13 +622,13 @@ export class Apply {
// Constants

export const Constants = {
// element: "элемент",
// partition: "раздел",
// element: "эл",
// partition: "разд",
// layouts: ["цепочка", "таблица", "" /* раздел */, "группа", "заметка"],
// keyAttrName: "ключ",
// kindAttrName: "вид",
element: "element",
partition: "partition",
element: "el",
partition: "part",
group: "group",
layouts: ["section", "table", "note", "group", "" /* partition */, "" /* cursor */],
keyAttrName: "key",
Expand Down
8 changes: 4 additions & 4 deletions source/html/HtmlDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ export class WebDriver<T extends Element, M = unknown> extends ElDriver<T, M> {
create(node: RxNode<El<T, M>>): void {
this.setNativeElement(node)
const e = node.element.native
if (RxSystem.isLogging && e !== undefined && !node.driver.isPartitionSeparator)
if (RxSystem.isLogging && e !== undefined && !node.driver.isPartition)
e.setAttribute(Constants.keyAttrName, node.key)
super.create(node)
if (e == undefined && RxSystem.isLogging && !node.driver.isPartitionSeparator)
if (e == undefined && RxSystem.isLogging && !node.driver.isPartition)
node.element.native.setAttribute(Constants.keyAttrName, node.key)
}

Expand All @@ -48,10 +48,10 @@ export class WebDriver<T extends Element, M = unknown> extends ElDriver<T, M> {
n.element.native instanceof HTMLElement || n.element.native instanceof SVGElement)
const automaticNativeHost = automaticHost?.element.native
if (automaticNativeHost) {
if (sequential && !node.driver.isPartitionSeparator) {
if (sequential && !node.driver.isPartition) {
const after = RxNode.findMatchingPrevSibling<El, El>(node, n =>
n.element.native instanceof HTMLElement || n.element.native instanceof SVGElement)
if (after === undefined || after.driver.isPartitionSeparator) {
if (after === undefined || after.driver.isPartition) {
if (automaticNativeHost !== native.parentNode || !native.previousSibling)
automaticNativeHost.prepend(native)
}
Expand Down

0 comments on commit dbfa1f6

Please sign in to comment.