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

krot-pixi

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

krot-pixi

Extension for pixi-5 app, to support layouts generated by visual editor - KROT

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

krot-pixi

This module allows your PIXI 5 application to create layouts generate by KROT editor

How to use

Somewhere in main flow
const { init } = require('krot-pixi');

init(PIXI);

Now you can require yours layouts and create instances

On view classes
const MyLayout = require('./my-layout');
new MyLayout();

All the objects are accessible by name.

You can also specify class for some objects, they will be put in arrays. Make sure all the names and class names are unique in single layout.

Example
const ui = new MyLayout();

ui.someName.x = 0;

ui.someClassName.forEach(object => object.x = 0);

Keywords

FAQs

Package last updated on 26 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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