npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@dfares/renderer

v6.8.14

Published

## Table of contents

Downloads

221

Readme

@dfares/renderer

Table of contents

Classes

Interfaces

Type aliases

Variables

Functions

Type aliases

AttribData

Ƭ AttribData: Object

Index signature

▪ [key: string]: AttribProps


AttribManagers

Ƭ AttribManagers<T>: { [k in keyof T["attribs"]]: AttribManager }

Type parameters

| Name | Type | | :--- | :------------------------------------------------------------------------- | | T | extends EngineProgramDefinition |


AttributeSetters

Ƭ AttributeSetters<U>: { [key in keyof U]: Function }

Type parameters

| Name | Type | | :--- | :----------------------------------------------- | | U | extends Attributes |


Avatar

Ƭ Avatar: Object

Type declaration

| Name | Type | | :------------ | :--------- | | bottomLayer | string[] | | desc | string | | legacy | boolean | | topLayer | string[] |


GLArray

Ƭ GLArray: Float32Array | Uint8Array


Hat

Ƭ Hat: Object

Type declaration

| Name | Type | | :------------ | :--------- | | bottomLayer | string[] | | legacy | boolean | | topLayer | string[] |


Logo

Ƭ Logo: Object

Type declaration

| Name | Type | | :------------ | :--------- | | bottomLayer | string[] | | color | string | | desc | string | | legacy | boolean | | topLayer | string[] | | website | string |


Meme

Ƭ Meme: Object

Type declaration

| Name | Type | | :------------ | :--------- | | bottomLayer | string[] | | legacy | boolean | | topLayer | string[] |


ProgramInfo

Ƭ ProgramInfo: Object

Type declaration

| Name | Type | | :------------- | :----------------------------------- | | fragShader | string | | uniforms | Uniforms | | vertexShader | string |


UniformData

Ƭ UniformData: Object

Index signature

▪ [key: string]: UniformProps


UniformLocs

Ƭ UniformLocs<T>: { [k in keyof T["uniforms"]]: WebGLUniformLocation }

Type parameters

| Name | Type | | :--- | :------------------------------------------------------------------------- | | T | extends EngineProgramDefinition |


UniformSetter

Ƭ UniformSetter: (el: any) => void

Type declaration

▸ (el): void

Parameters

| Name | Type | | :--- | :---- | | el | any |

Returns

void


UniformSetters

Ƭ UniformSetters<T>: { [k in keyof T["uniforms"]]: UniformSetter }

Type parameters

| Name | Type | | :--- | :------------------------------------------------------------------------- | | T | extends EngineProgramDefinition |

Variables

avatars

Const avatars: Record<AvatarType, Avatar>


engineConsts

Const engineConsts: Object

Type declaration

| Name | Type | | :----------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | colors | { artifacts: { shine: RGBVec ; trim: RGBVec } ; barbs: RGBVec ; barbsA: RGBAVec ; belt: { defense: RGBVec ; range: RGBVec ; silver: RGBVec ; speed: RGBVec } ; blue: RGBVec ; blueA: RGBAVec ; bonus: { defense: RGBVec ; energyCap: RGBVec ; energyGro: RGBVec ; range: RGBVec ; spaceJunk: RGBVec ; speed: RGBVec } ; gold: RGBVec ; green: RGBVec ; greenA: RGBAVec ; orange: RGBVec ; orangeA: RGBAVec ; pink: number[] ; pinkA: RGBAVec ; purple: RGBVec ; purpleA: RGBAVec ; range: { dash: RGBVec ; energy: RGBVec } ; red: RGBVec ; redA: RGBAVec ; sensaicha: RGBVec ; sensaichaA: RGBAVec ; voyage: { enemy: RGBVec ; enemyA: RGBAVec ; mine: RGBVec ; mineA: RGBAVec ; shipA: RGBAVec } ; white: RGBVec ; whiteA: RGBAVec } | | colors.artifacts | { shine: RGBVec ; trim: RGBVec } | | colors.artifacts.shine | RGBVec | | colors.artifacts.trim | RGBVec | | colors.barbs | RGBVec | | colors.barbsA | RGBAVec | | colors.belt | { defense: RGBVec ; range: RGBVec ; silver: RGBVec ; speed: RGBVec } | | colors.belt.defense | RGBVec | | colors.belt.range | RGBVec | | colors.belt.silver | RGBVec | | colors.belt.speed | RGBVec | | colors.blue | RGBVec | | colors.blueA | RGBAVec | | colors.bonus | { defense: RGBVec ; energyCap: RGBVec ; energyGro: RGBVec ; range: RGBVec ; spaceJunk: RGBVec ; speed: RGBVec } | | colors.bonus.defense | RGBVec | | colors.bonus.energyCap | RGBVec | | colors.bonus.energyGro | RGBVec | | colors.bonus.range | RGBVec | | colors.bonus.spaceJunk | RGBVec | | colors.bonus.speed | RGBVec | | colors.gold | RGBVec | | colors.green | RGBVec | | colors.greenA | RGBAVec | | colors.orange | RGBVec | | colors.orangeA | RGBAVec | | colors.pink | number[] | | colors.pinkA | RGBAVec | | colors.purple | RGBVec | | colors.purpleA | RGBAVec | | colors.range | { dash: RGBVec ; energy: RGBVec } | | colors.range.dash | RGBVec | | colors.range.energy | RGBVec | | colors.red | RGBVec | | colors.redA | RGBAVec | | colors.sensaicha | RGBVec | | colors.sensaichaA | RGBAVec | | colors.voyage | { enemy: RGBVec ; enemyA: RGBAVec ; mine: RGBVec ; mineA: RGBAVec ; shipA: RGBAVec } | | colors.voyage.enemy | RGBVec | | colors.voyage.enemyA | RGBAVec | | colors.voyage.mine | RGBVec | | colors.voyage.mineA | RGBAVec | | colors.voyage.shipA | RGBAVec | | colors.white | RGBVec | | colors.whiteA | RGBAVec | | dashLength | number | | fontStyle | string | | glyphs | { canvasDim: number = 1024; glyphH: number = 64; glyphW: number = 40; rowL: number = 13; scale: number = 4 } | | glyphs.canvasDim | number | | glyphs.glyphH | number | | glyphs.glyphW | number | | glyphs.rowL | number | | glyphs.scale | number | | planet | { maxRadius: number = 4 } | | planet.maxRadius | number |


hats

Const hats: Record<HatType, Hat>


logos

Const logos: Record<LogoType, Logo>


memes

Const memes: Record<MemeType, Meme>

Functions

avatarFromType

avatarFromType(type): Avatar

Parameters

| Name | Type | | :----- | :----------- | | type | AvatarType |

Returns

Avatar


getUniformSetter

getUniformSetter(gl, loc, props): UniformSetter

Create a setter which writes the given uniform specified by props to loc. Note that this function does not call gl.useProgram().

Parameters

| Name | Type | Description | | :------ | :----------------------- | :---------------------------------------------- | | gl | WebGL2RenderingContext | The WebGL rendering context this uniform is in. | | loc | WebGLUniformLocation | The uniform location to write to. | | props | UniformProps | UniformProps for this uniform. |

Returns

UniformSetter


glsl

glsl(arr, ...args): string

Parameters

| Name | Type | | :-------- | :--------------------- | | arr | TemplateStringsArray | | ...args | any[] |

Returns

string


hatFromType

hatFromType(type): Hat

Parameters

| Name | Type | | :----- | :-------- | | type | HatType |

Returns

Hat


logoFromType

logoFromType(type): Logo

Parameters

| Name | Type | | :----- | :--------- | | type | LogoType |

Returns

Logo


memeFromType

memeFromType(type): Meme

Parameters

| Name | Type | | :----- | :--------- | | type | MemeType |

Returns

Meme