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 - npm Package Compare versions

Comparing version 1.0.2 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>
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