diff --git a/out/Grid.js b/out/Grid.js index 1fa3468..be06bee 100644 --- a/out/Grid.js +++ b/out/Grid.js @@ -1,8 +1,11 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.GridComponent = exports.Grid = void 0; const pixi_js_legacy_1 = require("pixi.js-legacy"); -const Partitioner_1 = require("./Partitioner"); +const Partitioner_1 = __importDefault(require("./Partitioner")); function Grid(...objects) { return new GridComponent(...objects); } diff --git a/out/Partitioner.js b/out/Partitioner.js index c7e0e9c..ab0cae8 100644 --- a/out/Partitioner.js +++ b/out/Partitioner.js @@ -109,6 +109,7 @@ class Partitioner extends pixi_js_legacy_1.Container { container.zIndex = child.zIndex; if (this._debug) { let dbg = new pixi_js_legacy_1.Graphics(); + dbg.name = "dbg"; dbg.zIndex = -Infinity; dbg.beginFill(0x000000, 0.05); dbg.drawRect(1, 1, partition.width - 2, partition.height - 2); diff --git a/out/Stack.js b/out/Stack.js index 37d71fe..66aa606 100644 --- a/out/Stack.js +++ b/out/Stack.js @@ -1,8 +1,11 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.StackComponent = exports.VStack = exports.HStack = exports.Stack = void 0; const pixi_js_legacy_1 = require("pixi.js-legacy"); -const Partitioner_1 = require("./Partitioner"); +const Partitioner_1 = __importDefault(require("./Partitioner")); var Direction; (function (Direction) { Direction[Direction["Horizontal"] = 0] = "Horizontal"; diff --git a/package.json b/package.json index fe38c45..9330137 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,10 @@ { "name": "pixijs-layout", - "version": "0.1.10", + "version": "0.1.11", "description": "", "main": "./out/index.js", "types": "./out/index.d.ts", + "type": "module", "scripts": { "prepublish": "npm run build", "build": "npx tsc", diff --git a/src/Partitioner.ts b/src/Partitioner.ts index 7919f14..485963c 100644 --- a/src/Partitioner.ts +++ b/src/Partitioner.ts @@ -140,6 +140,7 @@ export default abstract class Partitioner if (this._debug) { let dbg = new Graphics(); + dbg.name = "dbg"; dbg.zIndex = -Infinity; dbg.beginFill(0x000000, 0.05); dbg.drawRect(1, 1, partition.width - 2, partition.height - 2); diff --git a/tsconfig.json b/tsconfig.json index a922948..b5da00e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -71,7 +71,7 @@ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ - "esModuleInterop": false, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ + "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ /* Type Checking */