New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@threlte/core

Package Overview
Dependencies
Maintainers
0
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@threlte/core - npm Package Compare versions

Comparing version 8.0.0-next.4 to 8.0.0-next.5

9

dist/Canvas.svelte.d.ts
import { SvelteComponent } from "svelte";
import { type ColorSpace, type ShadowMapType, type ToneMapping, type WebGLRendererParameters } from 'three';
import { type ThrelteContext } from './lib/contexts';
import type { Size } from './types';
declare const __propDef: {

@@ -41,3 +40,2 @@ props: {

shadows?: boolean | ShadowMapType | undefined;
size?: Size | undefined;
/**

@@ -48,9 +46,2 @@ * @default ACESFilmicToneMapping

/**
* This property is not reactive and must be set at initialization.
*
* @default false if greater than or equal to r155, true if less than 155
* @see https://github.com/mrdoob/three.js/pull/26392
*/
useLegacyLights?: boolean | undefined;
/**
* By default, Threlte will automatically render the scene. To implement

@@ -57,0 +48,0 @@ * custom render pipelines, set this to `false`.

7

dist/lib/contexts.d.ts

@@ -18,3 +18,2 @@ /// <reference types="svelte" />

dpr: CurrentWritable<number>;
useLegacyLights: CurrentWritable<boolean>;
renderer: WebGLRenderer;

@@ -72,3 +71,3 @@ /**

/** If anything is in this set, the frame will be considered invalidated */
autoInvalidations: Set<any>;
autoInvalidations: Set<unknown>;
/** A function to be called at the end of the frame loop that resets the invalidation flags */

@@ -107,3 +106,3 @@ resetFrameInvalidation: () => void;

};
export type ThrelteUserContext = CurrentWritable<Record<string | symbol, any>>;
export type ThrelteUserContext = CurrentWritable<Record<string | symbol, unknown>>;
/**

@@ -116,3 +115,2 @@ * This function creates the necessary context objects for a Threlte application.

dpr: number;
userSize: Writable<Size | undefined>;
parentSize: Writable<Size>;

@@ -123,3 +121,2 @@ renderMode: 'always' | 'on-demand' | 'manual';

colorManagementEnabled: boolean;
useLegacyLights: boolean;
}) => ThrelteContext;

@@ -89,5 +89,3 @@ import { setContext, tick } from 'svelte';

const ctx = {
size: derived([options.userSize, options.parentSize], ([uSize, pSize]) => {
return uSize ? uSize : pSize;
}),
size: derived(options.parentSize, (size) => size),
camera: currentWritable(getDefaultCamera()),

@@ -105,3 +103,2 @@ scene: new Scene(),

dpr: currentWritable(options.dpr),
useLegacyLights: currentWritable(options.useLegacyLights),
shadows: currentWritable(options.shadows),

@@ -108,0 +105,0 @@ colorManagementEnabled: currentWritable(options.colorManagementEnabled),

@@ -16,3 +16,2 @@ import { type WebGLRendererParameters } from 'three';

* - `toneMapping`
* - `useLegacyLights`
*/

@@ -19,0 +18,0 @@ export declare const useRenderer: (ctx: ThrelteContext) => {

@@ -17,3 +17,2 @@ import { ColorManagement, PCFSoftShadowMap, WebGLRenderer } from 'three';

* - `toneMapping`
* - `useLegacyLights`
*/

@@ -76,9 +75,2 @@ export const useRenderer = (ctx) => {

});
watch([renderer, ctx.useLegacyLights], ([renderer, useLegacyLights]) => {
if (!renderer)
return;
if (useLegacyLights) {
renderer.useLegacyLights = useLegacyLights;
}
});
return {

@@ -85,0 +77,0 @@ createRenderer

{
"name": "@threlte/core",
"version": "8.0.0-next.4",
"version": "8.0.0-next.5",
"author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",

@@ -38,3 +38,3 @@ "license": "MIT",

"svelte": ">=5",
"three": ">=0.152"
"three": ">=0.155"
},

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

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