@lightningjs/solid
Advanced tools
Comparing version 0.8.1 to 0.8.2
import { createSignal, createEffect, mergeProps as mergeProps$1, createRoot, createRenderEffect, createMemo, createComponent as createComponent$1, untrack } from 'solid-js'; | ||
export { ErrorBoundary, For, Index, Match, Show, Suspense, SuspenseList, Switch } from 'solid-js'; | ||
import { MainRenderDriver, ThreadXRenderDriver, RendererMain } from '@lightningjs/renderer'; | ||
import { MainRenderDriver, RendererMain } from '@lightningjs/renderer'; | ||
import { createElement as createElement$1, spread as spread$1, use as use$1, setProp as setProp$1, insert as insert$1 } from '@lightningjs/solid'; | ||
@@ -65,9 +65,7 @@ | ||
function View(props) { | ||
return (() => { | ||
const _el$ = createElement$1("node"); | ||
spread$1(_el$, props, false); | ||
return _el$; | ||
})(); | ||
} | ||
const View = props => (() => { | ||
const _el$ = createElement$1("node"); | ||
spread$1(_el$, props, false); | ||
return _el$; | ||
})(); | ||
@@ -102,3 +100,3 @@ /* | ||
function startLightningRenderer(options = {}) { | ||
let driver; | ||
const driver = new MainRenderDriver(); | ||
const resolvedOptions = { | ||
@@ -108,9 +106,2 @@ ...defaultOptions, | ||
}; | ||
if (!resolvedOptions.threadXCoreWorkerUrl) { | ||
driver = new MainRenderDriver(); | ||
} else { | ||
driver = new ThreadXRenderDriver({ | ||
coreWorkerUrl: resolvedOptions.threadXCoreWorkerUrl | ||
}); | ||
} | ||
renderer = new RendererMain({ | ||
@@ -117,0 +108,0 @@ appWidth: resolvedOptions.appWidth, |
@@ -17,4 +17,2 @@ /* | ||
*/ | ||
export function View(props) { | ||
return <node {...props}></node>; | ||
} | ||
export const View = (props) => <node {...props}></node>; |
@@ -17,3 +17,3 @@ /* | ||
*/ | ||
import { MainRenderDriver, RendererMain, ThreadXRenderDriver, } from '@lightningjs/renderer'; | ||
import { MainRenderDriver, RendererMain, } from '@lightningjs/renderer'; | ||
export let renderer; | ||
@@ -30,3 +30,3 @@ export let createShader; | ||
export function startLightningRenderer(options = {}) { | ||
let driver; | ||
const driver = new MainRenderDriver(); | ||
const resolvedOptions = { | ||
@@ -36,10 +36,2 @@ ...defaultOptions, | ||
}; | ||
if (!resolvedOptions.threadXCoreWorkerUrl) { | ||
driver = new MainRenderDriver(); | ||
} | ||
else { | ||
driver = new ThreadXRenderDriver({ | ||
coreWorkerUrl: resolvedOptions.threadXCoreWorkerUrl, | ||
}); | ||
} | ||
renderer = new RendererMain({ | ||
@@ -46,0 +38,0 @@ appWidth: resolvedOptions.appWidth, |
@@ -0,2 +1,3 @@ | ||
import { type Component } from "solid-js"; | ||
import { type IntrinsicNodeProps } from "../intrinsicTypes.js"; | ||
export declare function View(props: IntrinsicNodeProps): import("solid-js").JSX.Element; | ||
export declare const View: Component<IntrinsicNodeProps>; |
{ | ||
"name": "@lightningjs/solid", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "Lightning renderer for solid universal", | ||
@@ -32,3 +32,2 @@ "type": "module", | ||
"dev": "concurrently -c \"auto\" \"npm:watch\" \"npm:vite\"", | ||
"vite": "vite --open \"/test/index.html\" --host", | ||
"prepare": "husky install", | ||
@@ -57,5 +56,3 @@ "prepack": "npm run build" | ||
"solid-js": "^1.8.1", | ||
"typescript": "^5.2.2", | ||
"vite": "^4.4.9", | ||
"vite-tsconfig-paths": "^4.2.0" | ||
"typescript": "^5.2.2" | ||
}, | ||
@@ -62,0 +59,0 @@ "lint-staged": { |
@@ -21,3 +21,2 @@ /* | ||
RendererMain, | ||
ThreadXRenderDriver, | ||
type RendererMainSettings, | ||
@@ -46,3 +45,3 @@ } from '@lightningjs/renderer'; | ||
): RendererMain { | ||
let driver; | ||
const driver = new MainRenderDriver(); | ||
const resolvedOptions: SolidRendererOptions = { | ||
@@ -53,10 +52,2 @@ ...defaultOptions, | ||
if (!resolvedOptions.threadXCoreWorkerUrl) { | ||
driver = new MainRenderDriver(); | ||
} else { | ||
driver = new ThreadXRenderDriver({ | ||
coreWorkerUrl: resolvedOptions.threadXCoreWorkerUrl, | ||
}); | ||
} | ||
renderer = new RendererMain( | ||
@@ -63,0 +54,0 @@ { |
Sorry, the diff of this file is not supported yet
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
11
281806
4395