Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lightningjs/solid

Package Overview
Dependencies
Maintainers
7
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningjs/solid - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

9

dist/esm/index.js

@@ -730,7 +730,10 @@ import { createSignal, createEffect, mergeProps as mergeProps$1, createRoot, createRenderEffect, createMemo, createComponent as createComponent$1, untrack } from 'solid-js';

updateLayout(child, dimensions) {
if (this.display === 'flex' && this.hasChildren) {
if (this.hasChildren) {
log('Layout: ', this);
calculateFlex(this);
isFunc(this.onBeforeLayout) && this.onBeforeLayout(child, dimensions);
if (this.display === 'flex') {
calculateFlex(this);
}
isFunc(this.onLayout) && this.onLayout(child, dimensions);
}
isFunc(this.onLayout) && this.onLayout(child, dimensions);
}

@@ -737,0 +740,0 @@ _stateChanged() {

@@ -323,7 +323,10 @@ /*

updateLayout(child, dimensions) {
if (this.display === 'flex' && this.hasChildren) {
if (this.hasChildren) {
log('Layout: ', this);
calculateFlex(this);
isFunc(this.onBeforeLayout) && this.onBeforeLayout(child, dimensions);
if (this.display === 'flex') {
calculateFlex(this);
}
isFunc(this.onLayout) && this.onLayout(child, dimensions);
}
isFunc(this.onLayout) && this.onLayout(child, dimensions);
}

@@ -330,0 +333,0 @@ _stateChanged() {

@@ -22,2 +22,3 @@ import { type Dimensions, type INode, type INodeWritableProps, type ITextNodeWritableProps } from '@lightningjs/renderer';

onFail?: (target: INode, error: Error) => void;
onBeforeLayout?: (child: ElementNode, dimensions: Dimensions) => void;
onLayout?: (child: ElementNode, dimensions: Dimensions) => void;

@@ -24,0 +25,0 @@ autofocus?: boolean;

{
"name": "@lightningjs/solid",
"version": "0.7.1",
"version": "0.7.2",
"description": "Lightning renderer for solid universal",

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

@@ -413,8 +413,12 @@ /*

updateLayout(child?: ElementNode, dimensions?: Dimensions) {
if (this.display === 'flex' && this.hasChildren) {
if (this.hasChildren) {
log('Layout: ', this);
calculateFlex(this);
isFunc(this.onBeforeLayout) && this.onBeforeLayout(child, dimensions);
if (this.display === 'flex') {
calculateFlex(this);
}
isFunc(this.onLayout) && this.onLayout(child, dimensions);
}
isFunc(this.onLayout) && this.onLayout(child, dimensions);
}

@@ -421,0 +425,0 @@

@@ -53,2 +53,3 @@ /*

onFail?: (target: INode, error: Error) => void;
onBeforeLayout?: (child: ElementNode, dimensions: Dimensions) => void;
onLayout?: (child: ElementNode, dimensions: Dimensions) => void;

@@ -55,0 +56,0 @@ autofocus?: boolean;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc