fragment-shader
Advanced tools
Comparing version 4.0.1 to 4.0.2
{ | ||
"name": "fragment-shader", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./index.ts", |
@@ -77,3 +77,3 @@ # fragment-shader | ||
```ts | ||
import Editor from './classes/Editor'; | ||
import { Editor } from 'fragment-shader'; | ||
@@ -94,2 +94,14 @@ new Editor({ | ||
### Configuration | ||
```ts | ||
export type EditorConfig = { | ||
parent?: HTMLElement | string; | ||
uniforms?: Uniform[]; | ||
onUpdate?: (update?: string) => void; | ||
language?: 'HTML' | 'GLSL'; | ||
doc?: string; | ||
}; | ||
``` | ||
## SandBox | ||
@@ -100,3 +112,3 @@ | ||
```ts | ||
import SandBox from './classes/SandBox'; | ||
import { SandBox } from 'fragment-shader'; | ||
@@ -103,0 +115,0 @@ new SandBox({ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
41218
123
0