@lightningjs/solid
Advanced tools
Comparing version 0.12.0 to 0.12.1
@@ -1,2 +0,2 @@ | ||
import { createSignal, mergeProps as mergeProps$1, createRoot, createRenderEffect, createMemo, createComponent as createComponent$1, untrack, createEffect } from 'solid-js'; | ||
import { createSignal, mergeProps as mergeProps$1, createRoot, createRenderEffect, createMemo, createComponent as createComponent$1, untrack, onMount } from 'solid-js'; | ||
export { ErrorBoundary, For, Index, Match, Show, Suspense, SuspenseList, Switch } from 'solid-js'; | ||
@@ -1131,3 +1131,3 @@ import { MainCoreDriver, RendererMain } from '@lightningjs/renderer'; | ||
const node = new ElementNode(name); | ||
renderer.root && createEffect(() => node.render()); | ||
renderer.root && onMount(() => node.render()); | ||
return node; | ||
@@ -1176,3 +1176,3 @@ }, | ||
getParentNode(node) { | ||
return node.parent ?? undefined; | ||
return node.parent; | ||
}, | ||
@@ -1179,0 +1179,0 @@ getFirstChild(node) { |
@@ -19,3 +19,3 @@ /* | ||
import { renderer } from '../renderer/index.js'; | ||
import { createEffect } from 'solid-js'; | ||
import { onMount } from 'solid-js'; | ||
import { log } from '../utils.js'; | ||
@@ -26,3 +26,3 @@ import { ElementNode } from '../node/index.js'; | ||
const node = new ElementNode(name); | ||
renderer.root && createEffect(() => node.render()); | ||
renderer.root && onMount(() => node.render()); | ||
return node; | ||
@@ -67,3 +67,3 @@ }, | ||
getParentNode(node) { | ||
return node.parent ?? undefined; | ||
return node.parent; | ||
}, | ||
@@ -70,0 +70,0 @@ getFirstChild(node) { |
@@ -54,3 +54,4 @@ import { type AnimationSettings, type Dimensions, type INode, type INodeWritableProps, type ITextNodeWritableProps, type NodeFailedPayload, type NodeLoadedPayload } from '@lightningjs/renderer'; | ||
} | ||
export type IntrinsicCommonProps = IntrinsicNodeCommonProps & IntrinsicNodeStyleCommonProps & IntrinsicTextStyleCommonProps; | ||
export interface IntrinsicCommonProps extends IntrinsicNodeCommonProps, IntrinsicNodeStyleCommonProps, IntrinsicTextStyleCommonProps { | ||
} | ||
export interface IntrinsicNodeStyleProps extends Partial<Omit<INodeWritableProps, 'parent' | 'shader'>>, IntrinsicNodeStyleCommonProps { | ||
@@ -57,0 +58,0 @@ [key: string]: unknown; |
{ | ||
"name": "@lightningjs/solid", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"description": "Lightning renderer for solid universal", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -19,3 +19,3 @@ /* | ||
import { renderer } from '../renderer/index.js'; | ||
import { createEffect } from 'solid-js'; | ||
import { onMount } from 'solid-js'; | ||
import { log } from '../utils.js'; | ||
@@ -32,3 +32,3 @@ import { ElementNode, type SolidNode, type TextNode } from '../node/index.js'; | ||
const node = new ElementNode(name); | ||
renderer.root && createEffect(() => node.render()); | ||
renderer.root && onMount(() => node.render()); | ||
return node; | ||
@@ -74,3 +74,3 @@ }, | ||
getParentNode(node: SolidNode): ElementNode | undefined { | ||
return node.parent ?? undefined; | ||
return node.parent; | ||
}, | ||
@@ -77,0 +77,0 @@ getFirstChild(node: ElementNode): SolidNode | undefined { |
@@ -91,6 +91,6 @@ /* | ||
export type IntrinsicCommonProps = IntrinsicNodeCommonProps & | ||
IntrinsicNodeStyleCommonProps & | ||
IntrinsicTextStyleCommonProps; | ||
export interface IntrinsicCommonProps | ||
extends IntrinsicNodeCommonProps, | ||
IntrinsicNodeStyleCommonProps, | ||
IntrinsicTextStyleCommonProps {} | ||
export interface IntrinsicNodeStyleProps | ||
@@ -97,0 +97,0 @@ extends Partial<Omit<INodeWritableProps, 'parent' | 'shader'>>, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4463
287323