Skip to content

Commit

Permalink
I hate Javascript.
Browse files Browse the repository at this point in the history
  • Loading branch information
samwho committed Oct 21, 2023
1 parent c468f5b commit 571e672
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion out/Grid.js
Original file line number Diff line number Diff line change
@@ -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);
}
Expand Down
1 change: 1 addition & 0 deletions out/Partitioner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 4 additions & 1 deletion out/Stack.js
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/Partitioner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 571e672

Please sign in to comment.