You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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 - npm Package Compare versions

Comparing version

to
1.0.3

15

index.js

@@ -16,10 +16,2 @@ let PIXI = null;

class: (layout, item, object) => {
const classNames = item.class.split(/\s+/).filter(v => v);
for (let j = 0, kLen = classNames.length; j < kLen; j++) {
layout[classNames[j]].push(object);
}
},
parent: (layout, item, object) => {

@@ -55,12 +47,5 @@ const parent = layout[item.parent];

const name = item.name;
const classNames = item.class.split(/\s+/).filter(v => v);
for (let j = 0, kLen = classNames.length; j < kLen; j++) {
const className = classNames[j];
layout[className] = layout[className] || [];
}
if (
filter[name] ||
classNames.find(className => filter[className]) ||
(item.parent && !layout[item.parent])

@@ -67,0 +52,0 @@ ) continue;

2

package.json
{
"name": "krot-pixi",
"version": "1.0.2",
"version": "1.0.3",
"description": "Extension for pixi-5 app, to support layouts generated by visual editor - KROT",

@@ -5,0 +5,0 @@ "main": "index.js",

## krot-pixi
##
##### This is client library, which allows *KROT* layouts be integrated into your game.
This module allows your PIXI 5 application to create layouts generate by KROT editor
* KROT is a program, where you can visually create and edit PIXI layouts.
##
##### Contact
* roman.kopanskyi@gmail.com
### How to use

@@ -21,7 +28,4 @@ #### Somewhere in main flow

All the objects are accessible by name.
All the objects are accessible by name so they should be unique for single layout.
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

@@ -32,4 +36,2 @@ <pre>

ui.someName.x = 0;
ui.someClassName.forEach(object => object.x = 0);
</pre>