Skip to content

Commit 5de16cd

Browse files
author
AleBles
committed
Possible fix for #15
1 parent 0f504b5 commit 5de16cd

File tree

5 files changed

+138
-14
lines changed

5 files changed

+138
-14
lines changed

build/phaser-input.js

+2-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/phaser-input.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/phaser-input.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/Objects/TextMask.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,11 @@ module Fabrique {
1111
height = Math.max(parseInt(inputOptions.font.substr(0, inputOptions.font.indexOf('px')), 10), height);
1212
}
1313
var width = inputOptions.width;
14+
height *= 1.3;
1415

1516
this.beginFill(0x000000);
1617

17-
if (borderRadius > 0) {
18-
this.drawRoundedRect(0, 0, width, height, borderRadius);
19-
} else {
20-
this.drawRect(0, 0, width, height);
21-
}
18+
this.drawRect(0, 0, width, height);
2219
}
2320
}
2421
}

tslint.json

+131
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
{
2+
"rules": {
3+
"align": [
4+
true,
5+
"parameters",
6+
"statements"
7+
],
8+
"ban": false,
9+
"class-name": true,
10+
"curly": true,
11+
"eofline": true,
12+
"forin": true,
13+
"indent": [
14+
true,
15+
"spaces"
16+
],
17+
"interface-name": true,
18+
"jsdoc-format": true,
19+
"label-position": true,
20+
"label-undefined": true,
21+
"max-line-length": [
22+
true,
23+
200
24+
],
25+
"member-access": true,
26+
"no-any": false,
27+
"no-arg": true,
28+
"no-conditional-assignment": true,
29+
"no-consecutive-blank-lines": true,
30+
"no-console": [
31+
true,
32+
"debug",
33+
"info",
34+
"time",
35+
"timeEnd",
36+
"trace"
37+
],
38+
"no-construct": true,
39+
"no-constructor-vars": true,
40+
"no-debugger": true,
41+
"no-duplicate-key": true,
42+
"no-duplicate-variable": true,
43+
"no-empty": true,
44+
"no-eval": true,
45+
"no-inferrable-types": false,
46+
"no-internal-module": false,
47+
"no-null-keyword": false,
48+
"no-require-imports": true,
49+
"no-shadowed-variable": true,
50+
"no-string-literal": false,
51+
"no-switch-case-fall-through": true,
52+
"no-trailing-whitespace": true,
53+
"no-unreachable": true,
54+
"no-unused-expression": true,
55+
"no-unused-variable": true,
56+
"no-use-before-declare": true,
57+
"no-var-keyword": true,
58+
"no-var-requires": true,
59+
"object-literal-sort-keys": false,
60+
"one-line": [
61+
true,
62+
"check-open-brace",
63+
"check-catch",
64+
"check-else",
65+
"check-finally",
66+
"check-whitespace"
67+
],
68+
"quotemark": [
69+
true,
70+
"single",
71+
"avoid-escape"
72+
],
73+
"radix": true,
74+
"semicolon": [
75+
true,
76+
"always"
77+
],
78+
"switch-default": true,
79+
"trailing-comma": [
80+
true,
81+
{
82+
"multiline": "never",
83+
"singleline": "never"
84+
}
85+
],
86+
"triple-equals": [
87+
true,
88+
"allow-null-check"
89+
],
90+
"typedef": [
91+
true,
92+
"call-signature",
93+
"parameter",
94+
"arrow-parameter",
95+
"property-declaration",
96+
"variable-declaration",
97+
"member-variable-declaration"
98+
],
99+
"typedef-whitespace": [
100+
true,
101+
{
102+
"call-signature": "nospace",
103+
"index-signature": "nospace",
104+
"parameter": "nospace",
105+
"property-declaration": "nospace",
106+
"variable-declaration": "nospace"
107+
},
108+
{
109+
"call-signature": "onespace",
110+
"index-signature": "onespace",
111+
"parameter": "onespace",
112+
"property-declaration": "onespace",
113+
"variable-declaration": "onespace"
114+
}
115+
],
116+
"use-strict": false,
117+
"variable-name": [
118+
true,
119+
"allow-leading-underscore",
120+
"ban-keywords"
121+
],
122+
"whitespace": [
123+
true,
124+
"check-branch",
125+
"check-decl",
126+
"check-operator",
127+
"check-separator",
128+
"check-type"
129+
]
130+
}
131+
}

0 commit comments

Comments
 (0)