Skip to content

Commit

Permalink
v0.13.2
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaSh committed Jul 18, 2024
1 parent 2ad6fc0 commit 3c56a1c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 2 additions & 0 deletions dist/veloxi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ declare class CoreView implements View {
private _registry;
private _layoutId;
private _elementReader;
private _viewParents;
private _temporaryView;
private _inverseEffect;
private _renderNextTick;
Expand All @@ -139,6 +140,7 @@ declare class CoreView implements View {
get _children(): CoreView[];
get _parent(): CoreView | undefined;
get _parents(): CoreView[];
private _getParents;
get rotation(): ViewRotation;
get size(): ViewSize;
get _localWidth(): number;
Expand Down
14 changes: 6 additions & 8 deletions dist/veloxi.js
Original file line number Diff line number Diff line change
Expand Up @@ -1767,10 +1767,11 @@ class Vt {
o(this, "_registry");
o(this, "_layoutId");
o(this, "_elementReader");
o(this, "_viewParents");
o(this, "_temporaryView");
o(this, "_inverseEffect");
o(this, "_renderNextTick");
this.id = we(), this.name = t, this.element = e, this._elementReader = D(e), this._previousRect = this._elementReader.rect, this._viewProps = new yt(this), this._skipFirstRenderFrame = !0, this._layoutId = s, this._layoutTransition = !1, this._registry = i, this.element.dataset.velViewId = this.id, this._temporaryView = !1, this._inverseEffect = !1, this.styles = q(this.styles, () => {
this._registry = i, this.id = we(), this.name = t, this.element = e, this._elementReader = D(e), this._viewParents = this._getParents(), this._previousRect = this._elementReader.rect, this._viewProps = new yt(this), this._skipFirstRenderFrame = !0, this._layoutId = s, this._layoutTransition = !1, this.element.dataset.velViewId = this.id, this._temporaryView = !1, this._inverseEffect = !1, this.styles = q(this.styles, () => {
this._renderNextTick = !0;
}), this._renderNextTick = !1;
}
Expand All @@ -1796,15 +1797,12 @@ class Vt {
return Array.from(this.element.children).map((t) => t.dataset.velViewId).filter((t) => t && typeof t == "string").map((t) => this._registry.getViewById(t)).filter((t) => !!t);
}
get _parent() {
var i;
const e = this.element.parentElement;
if (!e)
return;
const t = e.closest("[data-vel-view-id]");
if ((i = t == null ? void 0 : t.dataset) != null && i.velViewId)
return this._registry.getViewById(t.dataset.velViewId);
return this._parents[0];
}
get _parents() {
return this._viewParents;
}
_getParents() {
var i;
const e = [];
let t = this.element.parentElement;
Expand Down
2 changes: 1 addition & 1 deletion dist/veloxi.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "veloxi",
"author": "Taha Shashtari ([email protected])",
"version": "0.13.1",
"version": "0.13.2",
"private": false,
"type": "module",
"main": "./dist/veloxi.min.js",
Expand Down

0 comments on commit 3c56a1c

Please sign in to comment.