@lightningjs/solid
Advanced tools
@@ -741,2 +741,6 @@ import { createSignal, mergeProps as mergeProps$1, createRoot, createRenderEffect, createMemo, createComponent as createComponent$1, untrack, onMount, splitProps } from 'solid-js'; | ||
| const parent = this.parent; | ||
| if (!parent) { | ||
| console.warn('Parent not set - no node created for: ', this); | ||
| return; | ||
| } | ||
@@ -743,0 +747,0 @@ // Parent is dirty whenever a node is inserted after initial render |
@@ -425,2 +425,6 @@ /* | ||
| const parent = this.parent; | ||
| if (!parent) { | ||
| console.warn('Parent not set - no node created for: ', this); | ||
| return; | ||
| } | ||
| // Parent is dirty whenever a node is inserted after initial render | ||
@@ -427,0 +431,0 @@ if (parent._isDirty) { |
@@ -1,2 +0,2 @@ | ||
| import { type AnimationSettings, type Dimensions, type INode, type INodeWritableProps, type ITextNodeWritableProps, type NodeFailedPayload, type NodeLoadedPayload } from '@lightningjs/renderer'; | ||
| import { type AnimationSettings, type Dimensions, type FadeOutEffectProps, type GlitchEffectProps, type GrayscaleEffectProps, type INode, type INodeWritableProps, type ITextNodeWritableProps, type LinearGradientEffectProps, type NodeFailedPayload, type NodeLoadedPayload, type RadialGradientEffectProps, type RadialProgressEffectProps } from '@lightningjs/renderer'; | ||
| import { type JSX } from 'solid-js'; | ||
@@ -13,2 +13,10 @@ import { type ElementNode } from './core/node/index.js'; | ||
| export type BorderStyle = number | BorderStyleObject; | ||
| export interface Effects { | ||
| fadeOut?: FadeOutEffectProps; | ||
| linearGradient?: LinearGradientEffectProps; | ||
| radialGradient?: RadialGradientEffectProps; | ||
| grayscale?: GrayscaleEffectProps; | ||
| glitch?: GlitchEffectProps; | ||
| radialProgress?: RadialProgressEffectProps; | ||
| } | ||
| export interface IntrinsicNodeCommonProps { | ||
@@ -39,7 +47,7 @@ animationSettings?: Partial<AnimationSettings>; | ||
| display?: 'flex' | 'block'; | ||
| effects?: any; | ||
| effects?: Effects; | ||
| flexDirection?: 'row' | 'column'; | ||
| gap?: number; | ||
| justifyContent?: 'flexStart' | 'flexEnd' | 'center' | 'spaceBetween' | 'spaceEvenly'; | ||
| linearGradient?: any; | ||
| linearGradient?: LinearGradientEffectProps; | ||
| marginBottom?: number; | ||
@@ -46,0 +54,0 @@ marginLeft?: number; |
+1
-1
| { | ||
| "name": "@lightningjs/solid", | ||
| "version": "0.13.3", | ||
| "version": "0.13.4", | ||
| "description": "Lightning renderer for solid universal", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -538,4 +538,9 @@ /* | ||
| const node = this; | ||
| const parent = this.parent!; | ||
| const parent = this.parent; | ||
| if (!parent) { | ||
| console.warn('Parent not set - no node created for: ', this); | ||
| return; | ||
| } | ||
| // Parent is dirty whenever a node is inserted after initial render | ||
@@ -542,0 +547,0 @@ if (parent._isDirty) { |
@@ -21,7 +21,13 @@ /* | ||
| type Dimensions, | ||
| type FadeOutEffectProps, | ||
| type GlitchEffectProps, | ||
| type GrayscaleEffectProps, | ||
| type INode, | ||
| type INodeWritableProps, | ||
| type ITextNodeWritableProps, | ||
| type LinearGradientEffectProps, | ||
| type NodeFailedPayload, | ||
| type NodeLoadedPayload, | ||
| type RadialGradientEffectProps, | ||
| type RadialProgressEffectProps, | ||
| } from '@lightningjs/renderer'; | ||
@@ -43,2 +49,11 @@ import { type JSX } from 'solid-js'; | ||
| export interface Effects { | ||
| fadeOut?: FadeOutEffectProps; | ||
| linearGradient?: LinearGradientEffectProps; | ||
| radialGradient?: RadialGradientEffectProps; | ||
| grayscale?: GrayscaleEffectProps; | ||
| glitch?: GlitchEffectProps; | ||
| radialProgress?: RadialProgressEffectProps; | ||
| } | ||
| export interface IntrinsicNodeCommonProps { | ||
@@ -72,3 +87,3 @@ animationSettings?: Partial<AnimationSettings>; | ||
| display?: 'flex' | 'block'; | ||
| effects?: any; // Should be EffectMap | ||
| effects?: Effects; | ||
| flexDirection?: 'row' | 'column'; | ||
@@ -82,3 +97,3 @@ gap?: number; | ||
| | 'spaceEvenly'; | ||
| linearGradient?: any; // Should be typeof LinearGradientEffect | ||
| linearGradient?: LinearGradientEffectProps; | ||
| marginBottom?: number; | ||
@@ -85,0 +100,0 @@ marginLeft?: number; |
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
268673
0.55%4361
0.81%