🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@lightningtv/core

Package Overview
Dependencies
Maintainers
0
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningtv/core - npm Package Compare versions

Comparing version

to
2.5.9

14

dist/src/elementNode.js

@@ -439,3 +439,5 @@ import { renderer, createShader } from './lightningInit.js';

}
isFunc(this.onLayout) && this.onLayout.call(this, this);
if (isFunc(this.onLayout) && this.onLayout.call(this, this)) {
this.parent?.updateLayout();
}
}

@@ -524,2 +526,5 @@ }

const props = node.lng;
props.x = props.x || 0;
props.y = props.y || 0;
props.parent = parent.lng;
if (this.right || this.right === 0) {

@@ -537,12 +542,9 @@ props.x = (parent.width || 0) - this.right;

if (this.centerX) {
props.x = (parent.width || 0) / 2;
props.x += (parent.width || 0) / 2;
props.mountX = 0.5;
}
if (this.centerY) {
props.y = (parent.height || 0) / 2;
props.y += (parent.height || 0) / 2;
props.mountY = 0.5;
}
props.x = props.x || 0;
props.y = props.y || 0;
props.parent = parent.lng;
if (isElementText(node)) {

@@ -549,0 +551,0 @@ const textProps = props;

@@ -42,2 +42,3 @@ import { isTextNode, isElementText } from './utils.js';

const align = node.alignItems;
let containerUpdated = false;
if (growSize) {

@@ -81,3 +82,7 @@ const flexBasis = children.reduce((prev, c) => prev +

// Assuming all the children have the same height
node.height = children[0]?.height || node.height;
const newHeight = children[0]?.height || node.height;
if (newHeight !== node.height) {
containerUpdated = true;
node.height = newHeight;
}
}

@@ -147,4 +152,4 @@ if (justify === 'flexStart') {

// Container was not updated
return false;
return containerUpdated;
}
//# sourceMappingURL=flex.js.map
{
"name": "@lightningtv/core",
"version": "2.5.8",
"version": "2.5.9",
"description": "Lightning TV Core for Universal Renderers",

@@ -5,0 +5,0 @@ "type": "module",

@@ -699,3 +699,5 @@ import { renderer, createShader } from './lightningInit.js';

isFunc(this.onLayout) && this.onLayout.call(this, this);
if (isFunc(this.onLayout) && this.onLayout.call(this, this)) {
this.parent?.updateLayout();
}
}

@@ -797,2 +799,5 @@ }

const props = node.lng;
props.x = props.x || 0;
props.y = props.y || 0;
props.parent = parent.lng as INode;

@@ -814,3 +819,3 @@ if (this.right || this.right === 0) {

if (this.centerX) {
props.x = (parent.width || 0) / 2;
props.x += (parent.width || 0) / 2;
props.mountX = 0.5;

@@ -820,10 +825,6 @@ }

if (this.centerY) {
props.y = (parent.height || 0) / 2;
props.y += (parent.height || 0) / 2;
props.mountY = 0.5;
}
props.x = props.x || 0;
props.y = props.y || 0;
props.parent = parent.lng as INode;
if (isElementText(node)) {

@@ -830,0 +831,0 @@ const textProps = props as TextProps;

@@ -51,2 +51,3 @@ import { type ElementNode } from './elementNode.js';

const align = node.alignItems;
let containerUpdated = false;

@@ -102,3 +103,7 @@ if (growSize) {

// Assuming all the children have the same height
node.height = children[0]?.height || node.height;
const newHeight = children[0]?.height || node.height;
if (newHeight !== node.height) {
containerUpdated = true;
node.height = newHeight;
}
}

@@ -166,3 +171,3 @@

// Container was not updated
return false;
return containerUpdated;
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet