verstak 0.24.107 → 0.24.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SimpleDelegate } from "reactronic";
|
|
1
|
+
import { SimpleDelegate, RxNode } from "reactronic";
|
|
2
2
|
import { El, ElDriver } from "./El.js";
|
|
3
3
|
export declare class VerstakDriver<T extends Element, M = unknown, C = unknown> extends ElDriver<T, M, C> {
|
|
4
4
|
initialize(element: El<T, M, C>): void;
|
|
@@ -6,6 +6,8 @@ export declare class VerstakDriver<T extends Element, M = unknown, C = unknown>
|
|
|
6
6
|
mount(element: El<T, M, C>): void;
|
|
7
7
|
relocate(element: El<T, M, C>): void;
|
|
8
8
|
update(element: El<T, M, C>): void | Promise<void>;
|
|
9
|
+
static findBrotherlyHost<T, R>(node: RxNode<El<T>>): RxNode<El<R>> | undefined;
|
|
10
|
+
static findBrotherlyPrevSibling<T, R>(node: RxNode<El<T>>): RxNode<El<R>> | undefined;
|
|
9
11
|
static get blinkingEffectMarker(): string | undefined;
|
|
10
12
|
static set blinkingEffectMarker(value: string | undefined);
|
|
11
13
|
}
|
|
@@ -57,6 +57,12 @@ export class VerstakDriver extends ElDriver {
|
|
|
57
57
|
blink(element.native, RxTree.currentUpdatePriority, element.node.stamp);
|
|
58
58
|
return result;
|
|
59
59
|
}
|
|
60
|
+
static findBrotherlyHost(node) {
|
|
61
|
+
return RxTree.findMatchingHost(node, n => n.element.native instanceof HTMLElement || n.element.native instanceof SVGElement);
|
|
62
|
+
}
|
|
63
|
+
static findBrotherlyPrevSibling(node) {
|
|
64
|
+
return RxTree.findMatchingPrevSibling(node, n => n.element.native instanceof HTMLElement || n.element.native instanceof SVGElement);
|
|
65
|
+
}
|
|
60
66
|
static get blinkingEffectMarker() {
|
|
61
67
|
return gBlinkingEffectMarker;
|
|
62
68
|
}
|