Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

my-avatars

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

my-avatars - npm Package Compare versions

Comparing version 0.1.3 to 1.0.0

2

package.json
{
"name": "my-avatars",
"version": "0.1.3",
"version": "1.0.0",
"scripts": {

@@ -5,0 +5,0 @@ "dev": "vite",

@@ -5,2 +5,24 @@ # [my-avatars](https://www.npmjs.com/package/my-avatars)

## Docs
- `Item`
- `new Item(path, opts)`
- `path` is the path to the image
- `opts`
- `x`: `Number` - x-coord to place the image
- `y`: `Number` - y-coord to place the image
- `check`: `Boolean` - check if the image can be found
- `replace`: `Array` of `Object`'s - filled with colors to replace from and to
- `from`: `String` - color to replace from, in the format of `r,g,b` - e.g. `128,128,128`
- `to`: `String` - color to replace to, in the format of `r,g,b` - e.g. `128,128,128`
- `Layer`
- `new Layer(name, idx)`
- `name`: `String` - a friendly name to recognise
- `idx`: `Number` - the z-index of the layer
- `Generator`
- `new Generator(width, height, parentElm)`
- `width`: `Number` - width of the avatar
- `height`: `Number` - height of the avatar
- `parentElm`: `Element` - element to place avatar within
## Usage

@@ -22,3 +44,3 @@

> NB: No two layers can have the same index.
> NB: No two layers can't have the same index.

@@ -25,0 +47,0 @@ Next-up, we'll need to pass in all of the `Item`'s, like so: `faceLayer.addItem(item)`.

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