node icon indicating copy to clipboard operation
node copied to clipboard

Run PixiJS but in Node.js environments, no browser required!

Results 21 node issues
Sort by recently updated
recently updated
newest added

when I try to build client code with pixi/node dep I see errors: ``` ../draw/src/views/figures/FigureCircle.ts:14:19 - error TS2345: Argument of type 'Graphics' is not assignable to parameter of type 'DisplayObject'....

When loading an image asset, I get this error : **Unrecognized source type to auto-detect Resource** After investigation, the error happened during the texture creation here: https://github.com/pixijs/node/blob/65d42f79a4615642af6a815d7c8ab6ec908fe901/src/adapter/loadNodeTexture.ts#L27 The method `autoDetectResource`...

Hi! only one string const app = new Application(); and i have error ReferenceError: document is not defined at new AccessibilityManager (D:\test\node_modules\@pixi\accessibility\src\AccessibilityManager.ts:96:21) an error appears if the monorepe uses pixi...

```shell npm i @pixi/node node -e "require('@pixi/node').Assets.load('https://fastly.jsdelivr.net/gh/dictcp/wangfonts/TrueType/wt071.ttf')" ``` ``` /home/ulysses/temp/pixi-node-test/node_modules/@pixi/assets/lib/loader/Loader.js:93 throw new Error(`[Loader.load] Failed to load ${url}. ^ Error: [Loader.load] Failed to load https://fastly.jsdelivr.net/gh/dictcp/wangfonts/TrueType/wt071.ttf. Error: ENOENT: no such file or...

Reproduction: ```shell npm i @pixi/node echo '' > test.svg node -e "require('@pixi/node').Assets.load('test.svg');" ``` ``` /home/ulysses/temp/pixi-node-test/node_modules/@pixi/assets/lib/loader/Loader.js:93 throw new Error(`[Loader.load] Failed to load ${url}. ^ Error: [Loader.load] Failed to load /home/ulysses/temp/pixi-node-test/test.svg. ReferenceError:...

There is only Node Canvas resource. We should also support Image resource (Image object from node-canvas), SVG resource, Array resource, and Buffer resource.

Hello, Just would like to know: What assets can be supported in Assets from '@pixi/node'? I tried mp4, gif files, got errors: mp4: ![image](https://github.com/user-attachments/assets/410ff754-0020-4413-ae9d-e1fe52daf1f7) gif: ![image](https://github.com/user-attachments/assets/e094cd19-3eb8-4d0c-a23f-d688109c573c)

`import { Assets } from "@pixi/node" const video = Assets.load('./test.mp4')` always get `file:///C:/Users/admin/Documents/Projects/renderer-node/node_modules/@pixi/assets/lib/loader/Loader.mjs:59 throw delete this.promiseCache[url], delete assets[asset.src], new Error(`[Loader.load] Failed to load ${url}. ^ Error: [Loader.load] Failed to load...

`node_modules/.pnpm/[email protected]/node_modules/canvas: Running install script, failed in 12.8s .../[email protected]/node_modules/canvas install$ node-pre-gyp install --fallback-to-build --update-binary │ node-pre-gyp info it worked if it ends with ok │ node-pre-gyp info using [email protected] │ node-pre-gyp...

Hello, I found that pixijs supports webworker context very well, something as below: https://www.npmjs.com/package/@pixi/webworker ``` import * as PIXI from "@pixi/webworker"; ...... ``` Would it be easier if pixijs/node package...