jimp 0.22.12 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/fonts.d.ts +5 -0
- package/dist/commonjs/fonts.d.ts.map +1 -0
- package/dist/commonjs/fonts.js +21 -0
- package/dist/commonjs/fonts.js.map +1 -0
- package/dist/commonjs/index.d.ts +324 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +189 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/package.json +7 -0
- package/dist/esm/fonts.d.ts +5 -0
- package/dist/esm/fonts.d.ts.map +1 -0
- package/dist/esm/fonts.js +5 -0
- package/dist/esm/fonts.js.map +1 -0
- package/dist/esm/index.d.ts +324 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +163 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +7 -0
- package/package.json +103 -42
- package/README.md +0 -779
- package/browser/README.md +0 -67
- package/browser/examples/dice.png +0 -0
- package/browser/examples/example1.html +0 -25
- package/browser/examples/example2.html +0 -20
- package/browser/examples/example3.html +0 -31
- package/browser/examples/example4.html +0 -74
- package/browser/examples/jimp-worker.js +0 -18
- package/browser/examples/lenna.png +0 -0
- package/browser/examples/test.html +0 -49
- package/browser/lib/jimp.js +0 -3
- package/browser/lib/jimp.js.LICENSE.txt +0 -277
- package/browser/lib/jimp.js.map +0 -1
- package/dist/index.js +0 -18
- package/dist/index.js.map +0 -1
- package/es/index.js +0 -8
- package/es/index.js.map +0 -1
- package/fonts/open-sans/Apache License.txt +0 -201
- package/fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt +0 -160
- package/fonts/open-sans/open-sans-10-black/open-sans-10-black.png +0 -0
- package/fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt +0 -183
- package/fonts/open-sans/open-sans-12-black/open-sans-12-black.png +0 -0
- package/fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt +0 -298
- package/fonts/open-sans/open-sans-128-black/open-sans-128-black.png +0 -0
- package/fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt +0 -298
- package/fonts/open-sans/open-sans-128-white/open-sans-128-white.png +0 -0
- package/fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt +0 -215
- package/fonts/open-sans/open-sans-14-black/open-sans-14-black.png +0 -0
- package/fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt +0 -298
- package/fonts/open-sans/open-sans-16-black/open-sans-16-black.png +0 -0
- package/fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt +0 -298
- package/fonts/open-sans/open-sans-16-white/open-sans-16-white.png +0 -0
- package/fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt +0 -298
- package/fonts/open-sans/open-sans-32-black/open-sans-32-black.png +0 -0
- package/fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt +0 -298
- package/fonts/open-sans/open-sans-32-white/open-sans-32-white.png +0 -0
- package/fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt +0 -298
- package/fonts/open-sans/open-sans-64-black/open-sans-64-black.png +0 -0
- package/fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt +0 -298
- package/fonts/open-sans/open-sans-64-white/open-sans-64-white.png +0 -0
- package/fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt +0 -298
- package/fonts/open-sans/open-sans-8-black/open-sans-8-black.png +0 -0
- package/fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt +0 -298
- package/fonts/open-sans/open-sans-8-white/open-sans-8-white.png +0 -0
- package/types/index.d.ts +0 -53
- package/types/test.ts +0 -95
- package/types/tsconfig.json +0 -19
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
<font>
|
|
2
|
-
<info face="open-sans-8-white" size="8" bold="0" italic="0" charset="" unicode="" stretchH="100" smooth="1" aa="1" padding="2,2,2,2" spacing="0,0" outline="0"/>
|
|
3
|
-
<common lineHeight="9" base="7" scaleW="1148" scaleH="11" pages="1" packed="0"/>
|
|
4
|
-
<pages>
|
|
5
|
-
<page id="0" file="open-sans-8-white.png"/>
|
|
6
|
-
</pages>
|
|
7
|
-
<chars count="190">
|
|
8
|
-
<char id="32" x="0" y="0" width="0" height="0" xoffset="0" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
9
|
-
<char id="33" x="2" y="3" width="1" height="6" xoffset="1" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
10
|
-
<char id="34" x="5" y="3" width="2" height="2" xoffset="0" yoffset="1" xadvance="3" page="0" chnl="15"/>
|
|
11
|
-
<char id="35" x="9" y="3" width="5" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
12
|
-
<char id="36" x="16" y="2" width="4" height="7" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
13
|
-
<char id="37" x="22" y="3" width="7" height="6" xoffset="0" yoffset="1" xadvance="7" page="0" chnl="15"/>
|
|
14
|
-
<char id="38" x="31" y="3" width="5" height="6" xoffset="0" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
15
|
-
<char id="39" x="38" y="3" width="1" height="2" xoffset="0" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
16
|
-
<char id="40" x="41" y="3" width="2" height="8" xoffset="0" yoffset="1" xadvance="3" page="0" chnl="15"/>
|
|
17
|
-
<char id="41" x="45" y="3" width="2" height="8" xoffset="0" yoffset="1" xadvance="3" page="0" chnl="15"/>
|
|
18
|
-
<char id="42" x="49" y="3" width="3" height="3" xoffset="0" yoffset="1" xadvance="3" page="0" chnl="15"/>
|
|
19
|
-
<char id="43" x="54" y="4" width="4" height="4" xoffset="0" yoffset="2" xadvance="5" page="0" chnl="15"/>
|
|
20
|
-
<char id="44" x="60" y="8" width="1" height="2" xoffset="1" yoffset="6" xadvance="2" page="0" chnl="15"/>
|
|
21
|
-
<char id="45" x="63" y="6" width="3" height="1" xoffset="0" yoffset="5" xadvance="3" page="0" chnl="15"/>
|
|
22
|
-
<char id="46" x="68" y="8" width="1" height="1" xoffset="1" yoffset="6" xadvance="2" page="0" chnl="15"/>
|
|
23
|
-
<char id="47" x="71" y="3" width="3" height="6" xoffset="0" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
24
|
-
<char id="48" x="76" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
25
|
-
<char id="49" x="82" y="3" width="2" height="6" xoffset="1" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
26
|
-
<char id="50" x="86" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
27
|
-
<char id="51" x="92" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
28
|
-
<char id="52" x="98" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
29
|
-
<char id="53" x="104" y="3" width="4" height="6" xoffset="0" yoffset="2" xadvance="4" page="0" chnl="15"/>
|
|
30
|
-
<char id="54" x="110" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
31
|
-
<char id="55" x="116" y="3" width="4" height="6" xoffset="0" yoffset="2" xadvance="4" page="0" chnl="15"/>
|
|
32
|
-
<char id="56" x="122" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
33
|
-
<char id="57" x="128" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
34
|
-
<char id="58" x="134" y="5" width="1" height="4" xoffset="1" yoffset="3" xadvance="2" page="0" chnl="15"/>
|
|
35
|
-
<char id="59" x="137" y="5" width="1" height="6" xoffset="1" yoffset="3" xadvance="2" page="0" chnl="15"/>
|
|
36
|
-
<char id="60" x="140" y="4" width="4" height="4" xoffset="0" yoffset="2" xadvance="5" page="0" chnl="15"/>
|
|
37
|
-
<char id="61" x="146" y="5" width="4" height="3" xoffset="0" yoffset="3" xadvance="5" page="0" chnl="15"/>
|
|
38
|
-
<char id="62" x="152" y="4" width="4" height="4" xoffset="0" yoffset="2" xadvance="5" page="0" chnl="15"/>
|
|
39
|
-
<char id="63" x="158" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
40
|
-
<char id="64" x="164" y="3" width="8" height="8" xoffset="0" yoffset="1" xadvance="8" page="0" chnl="15"/>
|
|
41
|
-
<char id="65" x="174" y="3" width="6" height="6" xoffset="0" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
42
|
-
<char id="66" x="182" y="3" width="5" height="6" xoffset="1" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
43
|
-
<char id="67" x="189" y="3" width="5" height="6" xoffset="0" yoffset="1" xadvance="6" page="0" chnl="15"/>
|
|
44
|
-
<char id="68" x="196" y="3" width="5" height="6" xoffset="1" yoffset="1" xadvance="6" page="0" chnl="15"/>
|
|
45
|
-
<char id="69" x="203" y="3" width="5" height="6" xoffset="1" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
46
|
-
<char id="70" x="210" y="3" width="4" height="6" xoffset="1" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
47
|
-
<char id="71" x="216" y="3" width="6" height="6" xoffset="0" yoffset="1" xadvance="6" page="0" chnl="15"/>
|
|
48
|
-
<char id="72" x="224" y="3" width="5" height="6" xoffset="1" yoffset="1" xadvance="6" page="0" chnl="15"/>
|
|
49
|
-
<char id="73" x="231" y="3" width="1" height="6" xoffset="1" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
50
|
-
<char id="74" x="234" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
51
|
-
<char id="75" x="240" y="3" width="5" height="6" xoffset="1" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
52
|
-
<char id="76" x="247" y="3" width="4" height="6" xoffset="1" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
53
|
-
<char id="77" x="253" y="3" width="6" height="6" xoffset="1" yoffset="1" xadvance="7" page="0" chnl="15"/>
|
|
54
|
-
<char id="78" x="261" y="3" width="5" height="6" xoffset="1" yoffset="1" xadvance="6" page="0" chnl="15"/>
|
|
55
|
-
<char id="79" x="268" y="3" width="6" height="6" xoffset="0" yoffset="1" xadvance="6" page="0" chnl="15"/>
|
|
56
|
-
<char id="80" x="276" y="3" width="5" height="6" xoffset="1" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
57
|
-
<char id="81" x="283" y="3" width="6" height="7" xoffset="0" yoffset="1" xadvance="6" page="0" chnl="15"/>
|
|
58
|
-
<char id="82" x="291" y="3" width="5" height="6" xoffset="1" yoffset="1" xadvance="6" page="0" chnl="15"/>
|
|
59
|
-
<char id="83" x="298" y="3" width="5" height="6" xoffset="0" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
60
|
-
<char id="84" x="305" y="3" width="5" height="6" xoffset="0" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
61
|
-
<char id="85" x="312" y="3" width="5" height="6" xoffset="1" yoffset="1" xadvance="6" page="0" chnl="15"/>
|
|
62
|
-
<char id="86" x="319" y="3" width="6" height="6" xoffset="0" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
63
|
-
<char id="87" x="327" y="3" width="8" height="6" xoffset="0" yoffset="1" xadvance="8" page="0" chnl="15"/>
|
|
64
|
-
<char id="88" x="337" y="3" width="5" height="6" xoffset="0" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
65
|
-
<char id="89" x="344" y="3" width="6" height="6" xoffset="0" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
66
|
-
<char id="90" x="352" y="3" width="5" height="6" xoffset="0" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
67
|
-
<char id="91" x="359" y="3" width="2" height="8" xoffset="1" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
68
|
-
<char id="92" x="363" y="3" width="3" height="6" xoffset="0" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
69
|
-
<char id="93" x="368" y="3" width="2" height="8" xoffset="0" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
70
|
-
<char id="94" x="372" y="3" width="4" height="3" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
71
|
-
<char id="95" x="378" y="10" width="5" height="1" xoffset="0" yoffset="8" xadvance="4" page="0" chnl="15"/>
|
|
72
|
-
<char id="97" x="385" y="4" width="4" height="5" xoffset="0" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
73
|
-
<char id="98" x="391" y="3" width="4" height="6" xoffset="1" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
74
|
-
<char id="99" x="397" y="4" width="4" height="5" xoffset="0" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
75
|
-
<char id="100" x="403" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
76
|
-
<char id="101" x="409" y="4" width="4" height="5" xoffset="0" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
77
|
-
<char id="102" x="415" y="3" width="3" height="6" xoffset="0" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
78
|
-
<char id="103" x="420" y="4" width="4" height="6" xoffset="0" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
79
|
-
<char id="104" x="426" y="3" width="4" height="6" xoffset="1" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
80
|
-
<char id="105" x="432" y="3" width="1" height="6" xoffset="1" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
81
|
-
<char id="106" x="435" y="3" width="2" height="8" xoffset="0" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
82
|
-
<char id="107" x="439" y="3" width="4" height="6" xoffset="1" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
83
|
-
<char id="108" x="445" y="3" width="1" height="6" xoffset="1" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
84
|
-
<char id="109" x="448" y="4" width="6" height="5" xoffset="1" yoffset="3" xadvance="7" page="0" chnl="15"/>
|
|
85
|
-
<char id="110" x="456" y="4" width="4" height="5" xoffset="1" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
86
|
-
<char id="111" x="462" y="4" width="4" height="5" xoffset="0" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
87
|
-
<char id="112" x="468" y="4" width="4" height="6" xoffset="1" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
88
|
-
<char id="113" x="474" y="4" width="4" height="6" xoffset="0" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
89
|
-
<char id="114" x="480" y="4" width="3" height="5" xoffset="1" yoffset="3" xadvance="3" page="0" chnl="15"/>
|
|
90
|
-
<char id="115" x="485" y="4" width="4" height="5" xoffset="0" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
91
|
-
<char id="116" x="491" y="3" width="2" height="6" xoffset="0" yoffset="2" xadvance="2" page="0" chnl="15"/>
|
|
92
|
-
<char id="117" x="495" y="5" width="4" height="5" xoffset="1" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
93
|
-
<char id="118" x="501" y="5" width="4" height="4" xoffset="0" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
94
|
-
<char id="119" x="507" y="5" width="6" height="4" xoffset="0" yoffset="3" xadvance="6" page="0" chnl="15"/>
|
|
95
|
-
<char id="120" x="515" y="5" width="4" height="4" xoffset="0" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
96
|
-
<char id="121" x="521" y="5" width="4" height="6" xoffset="0" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
97
|
-
<char id="122" x="527" y="5" width="4" height="4" xoffset="0" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
98
|
-
<char id="123" x="533" y="3" width="3" height="8" xoffset="0" yoffset="1" xadvance="3" page="0" chnl="15"/>
|
|
99
|
-
<char id="124" x="538" y="3" width="1" height="8" xoffset="1" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
100
|
-
<char id="125" x="541" y="3" width="3" height="8" xoffset="0" yoffset="1" xadvance="3" page="0" chnl="15"/>
|
|
101
|
-
<char id="126" x="546" y="5" width="4" height="2" xoffset="0" yoffset="4" xadvance="5" page="0" chnl="15"/>
|
|
102
|
-
<char id="161" x="552" y="5" width="1" height="6" xoffset="1" yoffset="3" xadvance="3" page="0" chnl="15"/>
|
|
103
|
-
<char id="162" x="555" y="3" width="4" height="8" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
104
|
-
<char id="163" x="561" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
105
|
-
<char id="164" x="567" y="4" width="4" height="4" xoffset="0" yoffset="2" xadvance="4" page="0" chnl="15"/>
|
|
106
|
-
<char id="165" x="573" y="3" width="5" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
107
|
-
<char id="166" x="580" y="3" width="1" height="8" xoffset="1" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
108
|
-
<char id="167" x="583" y="3" width="4" height="8" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
109
|
-
<char id="168" x="589" y="3" width="3" height="1" xoffset="0" yoffset="1" xadvance="3" page="0" chnl="15"/>
|
|
110
|
-
<char id="169" x="594" y="3" width="6" height="6" xoffset="0" yoffset="1" xadvance="6" page="0" chnl="15"/>
|
|
111
|
-
<char id="170" x="602" y="3" width="3" height="3" xoffset="0" yoffset="1" xadvance="3" page="0" chnl="15"/>
|
|
112
|
-
<char id="171" x="607" y="5" width="4" height="4" xoffset="1" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
113
|
-
<char id="172" x="613" y="5" width="4" height="3" xoffset="0" yoffset="3" xadvance="5" page="0" chnl="15"/>
|
|
114
|
-
<char id="173" x="619" y="6" width="3" height="1" xoffset="0" yoffset="5" xadvance="3" page="0" chnl="15"/>
|
|
115
|
-
<char id="174" x="624" y="3" width="6" height="6" xoffset="0" yoffset="1" xadvance="6" page="0" chnl="15"/>
|
|
116
|
-
<char id="175" x="632" y="2" width="5" height="1" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
117
|
-
<char id="176" x="639" y="3" width="3" height="3" xoffset="1" yoffset="1" xadvance="3" page="0" chnl="15"/>
|
|
118
|
-
<char id="177" x="644" y="4" width="4" height="5" xoffset="0" yoffset="2" xadvance="4" page="0" chnl="15"/>
|
|
119
|
-
<char id="178" x="650" y="3" width="3" height="3" xoffset="0" yoffset="1" xadvance="3" page="0" chnl="15"/>
|
|
120
|
-
<char id="179" x="655" y="3" width="3" height="3" xoffset="0" yoffset="1" xadvance="3" page="0" chnl="15"/>
|
|
121
|
-
<char id="180" x="660" y="3" width="2" height="1" xoffset="1" yoffset="1" xadvance="3" page="0" chnl="15"/>
|
|
122
|
-
<char id="181" x="664" y="5" width="4" height="6" xoffset="1" yoffset="3" xadvance="5" page="0" chnl="15"/>
|
|
123
|
-
<char id="182" x="670" y="3" width="5" height="8" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
124
|
-
<char id="183" x="677" y="5" width="1" height="1" xoffset="1" yoffset="4" xadvance="3" page="0" chnl="15"/>
|
|
125
|
-
<char id="184" x="680" y="9" width="2" height="2" xoffset="0" yoffset="7" xadvance="3" page="0" chnl="15"/>
|
|
126
|
-
<char id="185" x="684" y="3" width="2" height="3" xoffset="0" yoffset="1" xadvance="3" page="0" chnl="15"/>
|
|
127
|
-
<char id="186" x="688" y="3" width="3" height="3" xoffset="0" yoffset="1" xadvance="3" page="0" chnl="15"/>
|
|
128
|
-
<char id="187" x="693" y="5" width="4" height="4" xoffset="1" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
129
|
-
<char id="188" x="699" y="3" width="6" height="6" xoffset="0" yoffset="1" xadvance="7" page="0" chnl="15"/>
|
|
130
|
-
<char id="189" x="707" y="3" width="6" height="6" xoffset="0" yoffset="1" xadvance="7" page="0" chnl="15"/>
|
|
131
|
-
<char id="190" x="715" y="3" width="7" height="6" xoffset="0" yoffset="1" xadvance="7" page="0" chnl="15"/>
|
|
132
|
-
<char id="191" x="724" y="5" width="4" height="6" xoffset="1" yoffset="3" xadvance="5" page="0" chnl="15"/>
|
|
133
|
-
<char id="192" x="730" y="2" width="6" height="8" xoffset="0" yoffset="0" xadvance="5" page="0" chnl="15"/>
|
|
134
|
-
<char id="193" x="738" y="2" width="6" height="8" xoffset="0" yoffset="0" xadvance="5" page="0" chnl="15"/>
|
|
135
|
-
<char id="194" x="746" y="2" width="6" height="8" xoffset="0" yoffset="0" xadvance="5" page="0" chnl="15"/>
|
|
136
|
-
<char id="195" x="754" y="2" width="6" height="7" xoffset="0" yoffset="0" xadvance="5" page="0" chnl="15"/>
|
|
137
|
-
<char id="196" x="762" y="2" width="6" height="7" xoffset="0" yoffset="0" xadvance="5" page="0" chnl="15"/>
|
|
138
|
-
<char id="197" x="770" y="2" width="6" height="7" xoffset="0" yoffset="0" xadvance="5" page="0" chnl="15"/>
|
|
139
|
-
<char id="198" x="778" y="3" width="8" height="6" xoffset="0" yoffset="1" xadvance="8" page="0" chnl="15"/>
|
|
140
|
-
<char id="199" x="788" y="3" width="5" height="8" xoffset="0" yoffset="1" xadvance="6" page="0" chnl="15"/>
|
|
141
|
-
<char id="200" x="795" y="2" width="5" height="8" xoffset="1" yoffset="0" xadvance="5" page="0" chnl="15"/>
|
|
142
|
-
<char id="201" x="802" y="2" width="5" height="8" xoffset="1" yoffset="0" xadvance="5" page="0" chnl="15"/>
|
|
143
|
-
<char id="202" x="809" y="2" width="5" height="8" xoffset="1" yoffset="0" xadvance="5" page="0" chnl="15"/>
|
|
144
|
-
<char id="203" x="816" y="2" width="5" height="7" xoffset="1" yoffset="0" xadvance="5" page="0" chnl="15"/>
|
|
145
|
-
<char id="204" x="823" y="2" width="2" height="8" xoffset="0" yoffset="0" xadvance="2" page="0" chnl="15"/>
|
|
146
|
-
<char id="205" x="827" y="2" width="2" height="8" xoffset="1" yoffset="0" xadvance="2" page="0" chnl="15"/>
|
|
147
|
-
<char id="206" x="831" y="2" width="3" height="8" xoffset="0" yoffset="0" xadvance="2" page="0" chnl="15"/>
|
|
148
|
-
<char id="207" x="836" y="2" width="3" height="7" xoffset="0" yoffset="0" xadvance="2" page="0" chnl="15"/>
|
|
149
|
-
<char id="208" x="841" y="3" width="6" height="6" xoffset="0" yoffset="1" xadvance="6" page="0" chnl="15"/>
|
|
150
|
-
<char id="209" x="849" y="2" width="5" height="7" xoffset="1" yoffset="0" xadvance="6" page="0" chnl="15"/>
|
|
151
|
-
<char id="210" x="856" y="2" width="6" height="8" xoffset="0" yoffset="0" xadvance="6" page="0" chnl="15"/>
|
|
152
|
-
<char id="211" x="864" y="2" width="6" height="8" xoffset="0" yoffset="0" xadvance="6" page="0" chnl="15"/>
|
|
153
|
-
<char id="212" x="872" y="2" width="6" height="8" xoffset="0" yoffset="0" xadvance="6" page="0" chnl="15"/>
|
|
154
|
-
<char id="213" x="880" y="2" width="6" height="7" xoffset="0" yoffset="0" xadvance="6" page="0" chnl="15"/>
|
|
155
|
-
<char id="214" x="888" y="2" width="6" height="7" xoffset="0" yoffset="0" xadvance="6" page="0" chnl="15"/>
|
|
156
|
-
<char id="215" x="896" y="4" width="4" height="4" xoffset="1" yoffset="3" xadvance="5" page="0" chnl="15"/>
|
|
157
|
-
<char id="216" x="902" y="3" width="6" height="7" xoffset="0" yoffset="1" xadvance="6" page="0" chnl="15"/>
|
|
158
|
-
<char id="217" x="910" y="2" width="5" height="8" xoffset="1" yoffset="0" xadvance="6" page="0" chnl="15"/>
|
|
159
|
-
<char id="218" x="917" y="2" width="5" height="8" xoffset="1" yoffset="0" xadvance="6" page="0" chnl="15"/>
|
|
160
|
-
<char id="219" x="924" y="2" width="5" height="8" xoffset="1" yoffset="0" xadvance="6" page="0" chnl="15"/>
|
|
161
|
-
<char id="220" x="931" y="2" width="5" height="7" xoffset="1" yoffset="0" xadvance="6" page="0" chnl="15"/>
|
|
162
|
-
<char id="221" x="938" y="2" width="6" height="8" xoffset="0" yoffset="0" xadvance="5" page="0" chnl="15"/>
|
|
163
|
-
<char id="222" x="946" y="3" width="5" height="6" xoffset="1" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
164
|
-
<char id="223" x="953" y="3" width="4" height="6" xoffset="1" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
165
|
-
<char id="224" x="959" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
166
|
-
<char id="225" x="965" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
167
|
-
<char id="226" x="971" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
168
|
-
<char id="227" x="977" y="3" width="4" height="6" xoffset="0" yoffset="2" xadvance="4" page="0" chnl="15"/>
|
|
169
|
-
<char id="228" x="983" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
170
|
-
<char id="229" x="989" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
171
|
-
<char id="230" x="995" y="4" width="7" height="5" xoffset="0" yoffset="3" xadvance="7" page="0" chnl="15"/>
|
|
172
|
-
<char id="231" x="1004" y="4" width="4" height="6" xoffset="0" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
173
|
-
<char id="232" x="1010" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
174
|
-
<char id="233" x="1016" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
175
|
-
<char id="234" x="1022" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
176
|
-
<char id="235" x="1028" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
177
|
-
<char id="236" x="1034" y="3" width="2" height="6" xoffset="0" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
178
|
-
<char id="237" x="1038" y="3" width="2" height="6" xoffset="1" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
179
|
-
<char id="238" x="1042" y="3" width="3" height="6" xoffset="0" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
180
|
-
<char id="239" x="1047" y="3" width="3" height="6" xoffset="0" yoffset="1" xadvance="2" page="0" chnl="15"/>
|
|
181
|
-
<char id="240" x="1052" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
182
|
-
<char id="241" x="1058" y="3" width="4" height="6" xoffset="1" yoffset="2" xadvance="4" page="0" chnl="15"/>
|
|
183
|
-
<char id="242" x="1064" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
184
|
-
<char id="243" x="1070" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
185
|
-
<char id="244" x="1076" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
186
|
-
<char id="245" x="1082" y="3" width="4" height="6" xoffset="0" yoffset="2" xadvance="4" page="0" chnl="15"/>
|
|
187
|
-
<char id="246" x="1088" y="3" width="4" height="6" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
188
|
-
<char id="247" x="1094" y="4" width="4" height="4" xoffset="0" yoffset="3" xadvance="4" page="0" chnl="15"/>
|
|
189
|
-
<char id="248" x="1100" y="4" width="4" height="5" xoffset="1" yoffset="3" xadvance="5" page="0" chnl="15"/>
|
|
190
|
-
<char id="249" x="1106" y="3" width="4" height="6" xoffset="1" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
191
|
-
<char id="250" x="1112" y="3" width="4" height="6" xoffset="1" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
192
|
-
<char id="251" x="1118" y="3" width="4" height="6" xoffset="1" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
193
|
-
<char id="252" x="1124" y="3" width="4" height="6" xoffset="1" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
194
|
-
<char id="253" x="1130" y="3" width="4" height="8" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
195
|
-
<char id="254" x="1136" y="3" width="4" height="8" xoffset="1" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
196
|
-
<char id="255" x="1142" y="3" width="4" height="8" xoffset="0" yoffset="1" xadvance="4" page="0" chnl="15"/>
|
|
197
|
-
<char id="8364" x="1148" y="3" width="5" height="6" xoffset="0" yoffset="1" xadvance="5" page="0" chnl="15"/>
|
|
198
|
-
</chars>
|
|
199
|
-
<kernings count="97">
|
|
200
|
-
<kerning first="32" second="65" amount="0"/>
|
|
201
|
-
<kerning first="32" second="84" amount="0"/>
|
|
202
|
-
<kerning first="32" second="89" amount="0"/>
|
|
203
|
-
<kerning first="49" second="49" amount="-1"/>
|
|
204
|
-
<kerning first="65" second="32" amount="0"/>
|
|
205
|
-
<kerning first="65" second="84" amount="-1"/>
|
|
206
|
-
<kerning first="65" second="86" amount="-1"/>
|
|
207
|
-
<kerning first="65" second="87" amount="0"/>
|
|
208
|
-
<kerning first="65" second="89" amount="-1"/>
|
|
209
|
-
<kerning first="65" second="118" amount="0"/>
|
|
210
|
-
<kerning first="65" second="119" amount="0"/>
|
|
211
|
-
<kerning first="65" second="121" amount="0"/>
|
|
212
|
-
<kerning first="70" second="44" amount="-1"/>
|
|
213
|
-
<kerning first="70" second="46" amount="-1"/>
|
|
214
|
-
<kerning first="70" second="65" amount="0"/>
|
|
215
|
-
<kerning first="76" second="32" amount="0"/>
|
|
216
|
-
<kerning first="76" second="84" amount="-1"/>
|
|
217
|
-
<kerning first="76" second="86" amount="-1"/>
|
|
218
|
-
<kerning first="76" second="87" amount="-1"/>
|
|
219
|
-
<kerning first="76" second="89" amount="-1"/>
|
|
220
|
-
<kerning first="76" second="121" amount="0"/>
|
|
221
|
-
<kerning first="80" second="32" amount="0"/>
|
|
222
|
-
<kerning first="80" second="44" amount="-1"/>
|
|
223
|
-
<kerning first="80" second="46" amount="-1"/>
|
|
224
|
-
<kerning first="80" second="65" amount="-1"/>
|
|
225
|
-
<kerning first="82" second="84" amount="0"/>
|
|
226
|
-
<kerning first="82" second="86" amount="0"/>
|
|
227
|
-
<kerning first="82" second="87" amount="0"/>
|
|
228
|
-
<kerning first="82" second="89" amount="0"/>
|
|
229
|
-
<kerning first="84" second="32" amount="0"/>
|
|
230
|
-
<kerning first="84" second="44" amount="-1"/>
|
|
231
|
-
<kerning first="84" second="173" amount="0"/>
|
|
232
|
-
<kerning first="84" second="46" amount="-1"/>
|
|
233
|
-
<kerning first="84" second="58" amount="-1"/>
|
|
234
|
-
<kerning first="84" second="59" amount="-1"/>
|
|
235
|
-
<kerning first="84" second="65" amount="-1"/>
|
|
236
|
-
<kerning first="84" second="79" amount="0"/>
|
|
237
|
-
<kerning first="84" second="97" amount="-1"/>
|
|
238
|
-
<kerning first="84" second="99" amount="-1"/>
|
|
239
|
-
<kerning first="84" second="101" amount="-1"/>
|
|
240
|
-
<kerning first="84" second="105" amount="0"/>
|
|
241
|
-
<kerning first="84" second="111" amount="-1"/>
|
|
242
|
-
<kerning first="84" second="114" amount="0"/>
|
|
243
|
-
<kerning first="84" second="115" amount="-1"/>
|
|
244
|
-
<kerning first="84" second="117" amount="0"/>
|
|
245
|
-
<kerning first="84" second="119" amount="0"/>
|
|
246
|
-
<kerning first="84" second="121" amount="0"/>
|
|
247
|
-
<kerning first="86" second="44" amount="-1"/>
|
|
248
|
-
<kerning first="86" second="173" amount="0"/>
|
|
249
|
-
<kerning first="86" second="46" amount="-1"/>
|
|
250
|
-
<kerning first="86" second="58" amount="0"/>
|
|
251
|
-
<kerning first="86" second="59" amount="0"/>
|
|
252
|
-
<kerning first="86" second="65" amount="-1"/>
|
|
253
|
-
<kerning first="86" second="97" amount="-1"/>
|
|
254
|
-
<kerning first="86" second="101" amount="0"/>
|
|
255
|
-
<kerning first="86" second="105" amount="0"/>
|
|
256
|
-
<kerning first="86" second="111" amount="0"/>
|
|
257
|
-
<kerning first="86" second="114" amount="0"/>
|
|
258
|
-
<kerning first="86" second="117" amount="0"/>
|
|
259
|
-
<kerning first="86" second="121" amount="0"/>
|
|
260
|
-
<kerning first="87" second="44" amount="0"/>
|
|
261
|
-
<kerning first="87" second="173" amount="0"/>
|
|
262
|
-
<kerning first="87" second="46" amount="0"/>
|
|
263
|
-
<kerning first="87" second="58" amount="0"/>
|
|
264
|
-
<kerning first="87" second="59" amount="0"/>
|
|
265
|
-
<kerning first="87" second="65" amount="0"/>
|
|
266
|
-
<kerning first="87" second="97" amount="0"/>
|
|
267
|
-
<kerning first="87" second="101" amount="0"/>
|
|
268
|
-
<kerning first="87" second="105" amount="0"/>
|
|
269
|
-
<kerning first="87" second="111" amount="0"/>
|
|
270
|
-
<kerning first="87" second="114" amount="0"/>
|
|
271
|
-
<kerning first="87" second="117" amount="0"/>
|
|
272
|
-
<kerning first="87" second="121" amount="0"/>
|
|
273
|
-
<kerning first="89" second="32" amount="0"/>
|
|
274
|
-
<kerning first="89" second="44" amount="-1"/>
|
|
275
|
-
<kerning first="89" second="173" amount="-1"/>
|
|
276
|
-
<kerning first="89" second="46" amount="-1"/>
|
|
277
|
-
<kerning first="89" second="58" amount="0"/>
|
|
278
|
-
<kerning first="89" second="59" amount="-1"/>
|
|
279
|
-
<kerning first="89" second="65" amount="-1"/>
|
|
280
|
-
<kerning first="89" second="97" amount="-1"/>
|
|
281
|
-
<kerning first="89" second="101" amount="-1"/>
|
|
282
|
-
<kerning first="89" second="105" amount="0"/>
|
|
283
|
-
<kerning first="89" second="111" amount="-1"/>
|
|
284
|
-
<kerning first="89" second="112" amount="-1"/>
|
|
285
|
-
<kerning first="89" second="113" amount="-1"/>
|
|
286
|
-
<kerning first="89" second="117" amount="0"/>
|
|
287
|
-
<kerning first="89" second="118" amount="0"/>
|
|
288
|
-
<kerning first="102" second="102" amount="0"/>
|
|
289
|
-
<kerning first="114" second="44" amount="0"/>
|
|
290
|
-
<kerning first="114" second="46" amount="0"/>
|
|
291
|
-
<kerning first="118" second="44" amount="-1"/>
|
|
292
|
-
<kerning first="118" second="46" amount="-1"/>
|
|
293
|
-
<kerning first="119" second="44" amount="0"/>
|
|
294
|
-
<kerning first="119" second="46" amount="0"/>
|
|
295
|
-
<kerning first="121" second="44" amount="-1"/>
|
|
296
|
-
<kerning first="121" second="46" amount="-1"/>
|
|
297
|
-
</kernings>
|
|
298
|
-
</font>
|
|
Binary file
|
package/types/index.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// Minimum TypeScript Version: 3.1
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* While there is nothing in these typings that prevent it from running in TS 2.8 even,
|
|
5
|
-
* due to the complexity of the typings anything lower than TS 3.1 will only see
|
|
6
|
-
* Jimp as `any`. In order to test the strict versions of these types in our typing
|
|
7
|
-
* test suite, the version has been bumped to 3.1
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
import {
|
|
11
|
-
Jimp as JimpType,
|
|
12
|
-
Bitmap,
|
|
13
|
-
RGB,
|
|
14
|
-
RGBA,
|
|
15
|
-
UnionToIntersection,
|
|
16
|
-
GetPluginVal,
|
|
17
|
-
GetPluginConst,
|
|
18
|
-
GetPluginEncoders,
|
|
19
|
-
GetPluginDecoders,
|
|
20
|
-
JimpConstructors,
|
|
21
|
-
} from "@jimp/core";
|
|
22
|
-
import typeFn from "@jimp/types";
|
|
23
|
-
import pluginFn from "@jimp/plugins";
|
|
24
|
-
|
|
25
|
-
type Types = ReturnType<typeof typeFn>;
|
|
26
|
-
type Plugins = ReturnType<typeof pluginFn>;
|
|
27
|
-
|
|
28
|
-
type IntersectedPluginTypes = UnionToIntersection<
|
|
29
|
-
GetPluginVal<Types> | GetPluginVal<Plugins>
|
|
30
|
-
>;
|
|
31
|
-
|
|
32
|
-
type IntersectedPluginConsts = UnionToIntersection<
|
|
33
|
-
GetPluginConst<Types> | GetPluginConst<Plugins>
|
|
34
|
-
>;
|
|
35
|
-
|
|
36
|
-
type IntersectedPluginEncoders = UnionToIntersection<
|
|
37
|
-
GetPluginEncoders<Types> | GetPluginEncoders<Plugins>
|
|
38
|
-
>;
|
|
39
|
-
|
|
40
|
-
type IntersectedPluginDecoders = UnionToIntersection<
|
|
41
|
-
GetPluginDecoders<Types> | GetPluginDecoders<Plugins>
|
|
42
|
-
>;
|
|
43
|
-
|
|
44
|
-
type Jimp = JimpType & IntersectedPluginTypes;
|
|
45
|
-
|
|
46
|
-
declare const Jimp: JimpConstructors &
|
|
47
|
-
IntersectedPluginConsts & {
|
|
48
|
-
prototype: Jimp;
|
|
49
|
-
encoders: IntersectedPluginEncoders;
|
|
50
|
-
decoders: IntersectedPluginDecoders;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export = Jimp;
|
package/types/test.ts
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import * as Jimp from "jimp";
|
|
2
|
-
import { ColorActionName } from "@jimp/plugin-color";
|
|
3
|
-
|
|
4
|
-
const jimpInst: Jimp = new Jimp("test");
|
|
5
|
-
|
|
6
|
-
// Main Jimp export should already have all of these already applied
|
|
7
|
-
// $ExpectError
|
|
8
|
-
jimpInst.read("Test");
|
|
9
|
-
jimpInst.displace(jimpInst, 2);
|
|
10
|
-
jimpInst.resize(40, 40);
|
|
11
|
-
jimpInst.displace(jimpInst, 2);
|
|
12
|
-
jimpInst.shadow((err, val, coords) => {});
|
|
13
|
-
jimpInst.fishEye({ r: 12 });
|
|
14
|
-
jimpInst.circle({ radius: 12, x: 12, y: 12 });
|
|
15
|
-
jimpInst.color([{ apply: ColorActionName.SATURATE, params: [90] }]);
|
|
16
|
-
// $ExpectError
|
|
17
|
-
jimpInst.PNG_FILTER_NONE;
|
|
18
|
-
|
|
19
|
-
// $ExpectError
|
|
20
|
-
jimpInst.test;
|
|
21
|
-
|
|
22
|
-
// $ExpectError
|
|
23
|
-
jimpInst.func();
|
|
24
|
-
|
|
25
|
-
// Main Jimp export should already have all of these already applied
|
|
26
|
-
Jimp.read("Test");
|
|
27
|
-
|
|
28
|
-
// $ExpectType 0
|
|
29
|
-
Jimp.PNG_FILTER_NONE;
|
|
30
|
-
|
|
31
|
-
// $ExpectError
|
|
32
|
-
Jimp.test;
|
|
33
|
-
|
|
34
|
-
// $ExpectError
|
|
35
|
-
Jimp.func();
|
|
36
|
-
|
|
37
|
-
test("can clone properly", async () => {
|
|
38
|
-
const baseImage = await Jimp.read("filename");
|
|
39
|
-
const cloneBaseImage = baseImage.clone();
|
|
40
|
-
|
|
41
|
-
// $ExpectType number
|
|
42
|
-
cloneBaseImage._deflateLevel;
|
|
43
|
-
|
|
44
|
-
test("can handle `this` returns on the core type properly", () => {
|
|
45
|
-
// $ExpectType number
|
|
46
|
-
cloneBaseImage.posterize(3)._quality;
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
test("can handle `this` returns properly", () => {
|
|
50
|
-
cloneBaseImage
|
|
51
|
-
.resize(1, 1)
|
|
52
|
-
.crop(0, 0, 0, 0)
|
|
53
|
-
.mask(cloneBaseImage, 2, 2)
|
|
54
|
-
.print("a" as any, 2, 2, "a" as any)
|
|
55
|
-
.resize(1, 1)
|
|
56
|
-
.quality(1)
|
|
57
|
-
.deflateLevel(2)._filterType;
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
test("can handle imageCallbacks `this` properly", () => {
|
|
61
|
-
cloneBaseImage.rgba(false, (_, jimpCBIn) => {
|
|
62
|
-
// $ExpectError
|
|
63
|
-
jimpCBIn.read("Test");
|
|
64
|
-
jimpCBIn.displace(jimpInst, 2);
|
|
65
|
-
jimpCBIn.resize(40, 40);
|
|
66
|
-
// $ExpectType number
|
|
67
|
-
jimpCBIn._filterType;
|
|
68
|
-
|
|
69
|
-
// $ExpectError
|
|
70
|
-
jimpCBIn.test;
|
|
71
|
-
|
|
72
|
-
// $ExpectError
|
|
73
|
-
jimpCBIn.func();
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
test("Can handle callback with constructor", () => {
|
|
79
|
-
const myBmpBuffer: Buffer = {} as any;
|
|
80
|
-
|
|
81
|
-
Jimp.read(myBmpBuffer, (err, cbJimpInst) => {
|
|
82
|
-
// $ExpectError
|
|
83
|
-
cbJimpInst.read("Test");
|
|
84
|
-
cbJimpInst.displace(jimpInst, 2);
|
|
85
|
-
cbJimpInst.resize(40, 40);
|
|
86
|
-
// $ExpectType number
|
|
87
|
-
cbJimpInst._filterType;
|
|
88
|
-
|
|
89
|
-
// $ExpectError
|
|
90
|
-
cbJimpInst.test;
|
|
91
|
-
|
|
92
|
-
// $ExpectError
|
|
93
|
-
cbJimpInst.func();
|
|
94
|
-
});
|
|
95
|
-
});
|
package/types/tsconfig.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "commonjs",
|
|
4
|
-
"lib": ["es6"],
|
|
5
|
-
"noImplicitAny": true,
|
|
6
|
-
"noImplicitThis": true,
|
|
7
|
-
"strictNullChecks": true,
|
|
8
|
-
"strictFunctionTypes": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"noEmit": true,
|
|
11
|
-
|
|
12
|
-
// If the library is an external module (uses `export`), this allows your test file to import "mylib" instead of "./index".
|
|
13
|
-
// If the library is global (cannot be imported via `import` or `require`), leave this out.
|
|
14
|
-
"baseUrl": "../test",
|
|
15
|
-
"paths": {
|
|
16
|
-
"mylib": ["."]
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|