@lofcz/tikz 0.0.0-stage → 0.2.0

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.
Files changed (118) hide show
  1. package/LICENSE +674 -0
  2. package/NOTICE.md +30 -0
  3. package/README.md +127 -2
  4. package/package.json +56 -4
  5. package/runtime/LICENSE +165 -0
  6. package/runtime/NOTICE.md +32 -0
  7. package/runtime/dist/auto.d.ts +68 -0
  8. package/runtime/dist/auto.js +564 -0
  9. package/runtime/dist/bibtex.mjs +2 -0
  10. package/runtime/dist/bibtex.wasm +0 -0
  11. package/runtime/dist/bundles/cm-tfm/files.br +0 -0
  12. package/runtime/dist/bundles/cm-tfm/files.index.json +1 -0
  13. package/runtime/dist/bundles/cm-tfm/manifest.json +1 -0
  14. package/runtime/dist/bundles/cm-type1/files.br +0 -0
  15. package/runtime/dist/bundles/cm-type1/files.index.json +1 -0
  16. package/runtime/dist/bundles/cm-type1/manifest.json +1 -0
  17. package/runtime/dist/bundles/core/files.br +0 -0
  18. package/runtime/dist/bundles/core/files.index.json +1 -0
  19. package/runtime/dist/bundles/core/manifest.json +1 -0
  20. package/runtime/dist/bundles/hot.json +1 -0
  21. package/runtime/dist/bundles/index.json +80 -0
  22. package/runtime/dist/bundles/latex-core/files.br +0 -0
  23. package/runtime/dist/bundles/latex-core/files.index.json +1 -0
  24. package/runtime/dist/bundles/latex-core/manifest.json +1 -0
  25. package/runtime/dist/bundles/latex-extra/files.br +0 -0
  26. package/runtime/dist/bundles/latex-extra/files.index.json +1 -0
  27. package/runtime/dist/bundles/latex-extra/manifest.json +1 -0
  28. package/runtime/dist/bundles/lm-fonts/files.br +0 -0
  29. package/runtime/dist/bundles/lm-fonts/files.index.json +1 -0
  30. package/runtime/dist/bundles/lm-fonts/manifest.json +1 -0
  31. package/runtime/dist/bundles/luatex/files.br +0 -0
  32. package/runtime/dist/bundles/luatex/files.index.json +1 -0
  33. package/runtime/dist/bundles/luatex/manifest.json +1 -0
  34. package/runtime/dist/bundles/ps-fonts/files.br +0 -0
  35. package/runtime/dist/bundles/ps-fonts/files.index.json +1 -0
  36. package/runtime/dist/bundles/ps-fonts/manifest.json +1 -0
  37. package/runtime/dist/bundles/tex-plain/files.br +0 -0
  38. package/runtime/dist/bundles/tex-plain/files.index.json +1 -0
  39. package/runtime/dist/bundles/tex-plain/manifest.json +1 -0
  40. package/runtime/dist/bundles/tikz-snapshot/files.br +0 -0
  41. package/runtime/dist/bundles/tikz-snapshot/files.index.json +1 -0
  42. package/runtime/dist/bundles/tikz-snapshot/manifest.json +1 -0
  43. package/runtime/dist/bundles-config.d.ts +3 -0
  44. package/runtime/dist/bundles-config.js +16 -0
  45. package/runtime/dist/cli.d.ts +2 -0
  46. package/runtime/dist/cli.js +372 -0
  47. package/runtime/dist/core.d.ts +124 -0
  48. package/runtime/dist/core.js +927 -0
  49. package/runtime/dist/diagnostics.d.ts +53 -0
  50. package/runtime/dist/diagnostics.js +184 -0
  51. package/runtime/dist/dvisvgm.d.ts +20 -0
  52. package/runtime/dist/dvisvgm.js +46 -0
  53. package/runtime/dist/dvisvgm.mjs +2 -0
  54. package/runtime/dist/dvisvgm.wasm +0 -0
  55. package/runtime/dist/figures.d.ts +92 -0
  56. package/runtime/dist/figures.js +250 -0
  57. package/runtime/dist/ghostscript.d.ts +92 -0
  58. package/runtime/dist/ghostscript.js +218 -0
  59. package/runtime/dist/index.d.ts +87 -0
  60. package/runtime/dist/index.js +364 -0
  61. package/runtime/dist/logger.d.ts +48 -0
  62. package/runtime/dist/logger.js +55 -0
  63. package/runtime/dist/luatex.mjs +2 -0
  64. package/runtime/dist/luatex.wasm +0 -0
  65. package/runtime/dist/makeindex.mjs +2 -0
  66. package/runtime/dist/makeindex.wasm +0 -0
  67. package/runtime/dist/mplib.d.ts +106 -0
  68. package/runtime/dist/mplib.js +85 -0
  69. package/runtime/dist/mplib.mjs +2 -0
  70. package/runtime/dist/mplib.wasm +0 -0
  71. package/runtime/dist/node.d.ts +4 -0
  72. package/runtime/dist/node.js +49 -0
  73. package/runtime/dist/postscript.d.ts +21 -0
  74. package/runtime/dist/postscript.js +130 -0
  75. package/runtime/dist/prerender.d.ts +55 -0
  76. package/runtime/dist/prerender.js +106 -0
  77. package/runtime/dist/render/svg.d.ts +20 -0
  78. package/runtime/dist/render/svg.js +96 -0
  79. package/runtime/dist/tex/bridge.d.ts +93 -0
  80. package/runtime/dist/tex/bridge.js +223 -0
  81. package/runtime/dist/tex/cache-key.d.ts +33 -0
  82. package/runtime/dist/tex/cache-key.js +150 -0
  83. package/runtime/dist/tex/mpto.d.ts +60 -0
  84. package/runtime/dist/tex/mpto.js +112 -0
  85. package/runtime/dist/tex/mpx.d.ts +25 -0
  86. package/runtime/dist/tex/mpx.js +54 -0
  87. package/runtime/dist/tex/scanner.d.ts +78 -0
  88. package/runtime/dist/tex/scanner.js +326 -0
  89. package/runtime/dist/tex.mjs +2 -0
  90. package/runtime/dist/tex.wasm +0 -0
  91. package/runtime/dist/texengine.d.ts +35 -0
  92. package/runtime/dist/texengine.js +57 -0
  93. package/runtime/dist/texutils.d.ts +19 -0
  94. package/runtime/dist/texutils.js +60 -0
  95. package/runtime/dist/types.d.ts +376 -0
  96. package/runtime/dist/types.js +6 -0
  97. package/runtime/dist/vfs/bundle.d.ts +88 -0
  98. package/runtime/dist/vfs/bundle.js +315 -0
  99. package/runtime/dist/vfs/lazyfs.d.ts +62 -0
  100. package/runtime/dist/vfs/lazyfs.js +133 -0
  101. package/runtime/dist/worker.d.ts +15 -0
  102. package/runtime/dist/worker.js +143 -0
  103. package/runtime/licenses/COPYING.AFPL +230 -0
  104. package/runtime/licenses/COPYING.makeindex +42 -0
  105. package/runtime/licenses/GPL-3.0.txt +674 -0
  106. package/runtime/licenses/LGPL-3.0.txt +165 -0
  107. package/runtime/licenses/OFL-1.1.txt +93 -0
  108. package/runtime/package.json +1 -0
  109. package/runtime/upstream.json +27 -0
  110. package/src/browser-worker.js +26 -0
  111. package/src/browser.d.ts +18 -0
  112. package/src/browser.js +68 -0
  113. package/src/deploy.d.ts +5 -0
  114. package/src/deploy.js +48 -0
  115. package/src/index.d.ts +28 -0
  116. package/src/index.js +103 -0
  117. package/src/worker.js +15 -0
  118. package/upstream.json +27 -0
@@ -0,0 +1,230 @@
1
+ Aladdin Free Public License
2
+ (Version 9, September 18, 2000)
3
+
4
+ Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000 Aladdin Enterprises,
5
+ Menlo Park, California, U.S.A. All rights reserved.
6
+
7
+ NOTE: This License is not the same as any of the GNU Licenses
8
+ published by the Free Software Foundation. Its terms are
9
+ substantially different from those of the GNU Licenses. If you are
10
+ familiar with the GNU Licenses, please read this license with
11
+ extra care.
12
+
13
+ Aladdin Enterprises hereby grants to anyone the permission to apply this
14
+ License to their own work, as long as the entire License (including the
15
+ above notices and this paragraph) is copied with no changes, additions, or
16
+ deletions except for changing the first paragraph of Section 0 to include a
17
+ suitable description of the work to which the license is being applied and
18
+ of the person or entity that holds the copyright in the work, and, if the
19
+ License is being applied to a work created in a country other than the
20
+ United States, replacing the first paragraph of Section 6 with an
21
+ appropriate reference to the laws of the appropriate country.
22
+
23
+ This License is not an Open Source license: among other things, it places
24
+ restrictions on distribution of the Program, specifically including sale of
25
+ the Program. While Aladdin Enterprises respects and supports the philosophy
26
+ of the Open Source Definition, and shares the desire of the GNU project to
27
+ keep licensed software freely redistributable in both source and object
28
+ form, we feel that Open Source licenses unfairly prevent developers of
29
+ useful software from being compensated proportionately when others profit
30
+ financially from their work. This License attempts to ensure that those who
31
+ receive, redistribute, and contribute to the licensed Program according to
32
+ the Open Source and Free Software philosophies have the right to do so,
33
+ while retaining for the developer(s) of the Program the power to make those
34
+ who use the Program to enhance the value of commercial products pay for the
35
+ privilege of doing so.
36
+
37
+ 0. Subject Matter
38
+
39
+ This License applies to the computer program known as "AFPL Ghostscript."
40
+ The "Program", below, refers to such program. The Program is a copyrighted
41
+ work whose copyright is held by artofcode LLC, located in Benicia,
42
+ California (the "Licensor"). Please note that AFPL Ghostscript is neither
43
+ the program known as "GNU Ghostscript" nor the version of Ghostscript
44
+ available for commercial licensing from Artifex Software Inc.
45
+
46
+ A "work based on the Program" means either the Program or any derivative
47
+ work of the Program, as defined in the United States Copyright Act of 1976,
48
+ such as a translation or a modification.
49
+
50
+ BY MODIFYING OR DISTRIBUTING THE PROGRAM (OR ANY WORK BASED ON THE PROGRAM),
51
+ YOU INDICATE YOUR ACCEPTANCE OF THIS LICENSE TO DO SO, AND ALL ITS TERMS AND
52
+ CONDITIONS FOR COPYING, DISTRIBUTING OR MODIFYING THE PROGRAM OR WORKS BASED
53
+ ON IT. NOTHING OTHER THAN THIS LICENSE GRANTS YOU PERMISSION TO MODIFY OR
54
+ DISTRIBUTE THE PROGRAM OR ITS DERIVATIVE WORKS. THESE ACTIONS ARE PROHIBITED
55
+ BY LAW. IF YOU DO NOT ACCEPT THESE TERMS AND CONDITIONS, DO NOT MODIFY OR
56
+ DISTRIBUTE THE PROGRAM.
57
+
58
+ 1. Licenses.
59
+
60
+ Licensor hereby grants you the following rights, provided that you comply
61
+ with all of the restrictions set forth in this License and provided,
62
+ further, that you distribute an unmodified copy of this License with the
63
+ Program:
64
+
65
+ (a) You may copy and distribute literal (i.e., verbatim) copies of the
66
+ Program's source code as you receive it throughout the world, in any
67
+ medium.
68
+ (b) You may modify the Program, create works based on the Program and
69
+ distribute copies of such throughout the world, in any medium.
70
+
71
+ 2. Restrictions.
72
+
73
+ This license is subject to the following restrictions:
74
+
75
+ (a) Distribution of the Program or any work based on the Program by a
76
+ commercial organization to any third party is prohibited if any payment
77
+ is made in connection with such distribution, whether directly (as in
78
+ payment for a copy of the Program) or indirectly (as in payment for
79
+ some service related to the Program, or payment for some product or
80
+ service that includes a copy of the Program "without charge"; these are
81
+ only examples, and not an exhaustive enumeration of prohibited
82
+ activities). The following methods of distribution involving payment
83
+ shall not in and of themselves be a violation of this restriction:
84
+ (i) Posting the Program on a public access information storage and
85
+ retrieval service for which a fee is received for retrieving
86
+ information (such as an on-line service), provided that the fee is
87
+ not content-dependent (i.e., the fee would be the same for
88
+ retrieving the same volume of information consisting of random
89
+ data) and that access to the service and to the Program is
90
+ available independent of any other product or service. An example
91
+ of a service that does not fall under this section is an on-line
92
+ service that is operated by a company and that is only available
93
+ to customers of that company. (This is not an exhaustive
94
+ enumeration.)
95
+ (ii) Distributing the Program on removable computer-readable media,
96
+ provided that the files containing the Program are reproduced
97
+ entirely and verbatim on such media, that all information on such
98
+ media be redistributable for non-commercial purposes without
99
+ charge, and that such media are distributed by themselves (except
100
+ for accompanying documentation) independent of any other product
101
+ or service. Examples of such media include CD-ROM, magnetic tape,
102
+ and optical storage media. (This is not intended to be an
103
+ exhaustive list.) An example of a distribution that does not fall
104
+ under this section is a CD-ROM included in a book or magazine.
105
+ (This is not an exhaustive enumeration.)
106
+ (b) Activities other than copying, distribution and modification of the
107
+ Program are not subject to this License and they are outside its scope.
108
+ Functional use (running) of the Program is not restricted, and any
109
+ output produced through the use of the Program is subject to this
110
+ license only if its contents constitute a work based on the Program
111
+ (independent of having been made by running the Program).
112
+ (c) You must meet all of the following conditions with respect to any work
113
+ that you distribute or publish that in whole or in part contains or is
114
+ derived from the Program or any part thereof ("the Work"):
115
+ (i) If you have modified the Program, you must cause the Work to carry
116
+ prominent notices stating that you have modified the Program's
117
+ files and the date of any change. In each source file that you
118
+ have modified, you must include a prominent notice that you have
119
+ modified the file, including your name, your e-mail address (if
120
+ any), and the date and purpose of the change;
121
+ (ii) You must cause the Work to be licensed as a whole and at no charge
122
+ to all third parties under the terms of this License;
123
+ (iii)
124
+ If the Work normally reads commands interactively when run, you
125
+ must cause it, at each time the Work commences operation, to print
126
+ or display an announcement including an appropriate copyright
127
+ notice and a notice that there is no warranty (or else, saying
128
+ that you provide a warranty). Such notice must also state that
129
+ users may redistribute the Work only under the conditions of this
130
+ License and tell the user how to view the copy of this License
131
+ included with the Work. (Exceptions: if the Program is interactive
132
+ but normally prints or displays such an announcement only at the
133
+ request of a user, such as in an "About box", the Work is required
134
+ to print or display the notice only under the same circumstances;
135
+ if the Program itself is interactive but does not normally print
136
+ such an announcement, the Work is not required to print an
137
+ announcement.);
138
+ (iv) You must accompany the Work with the complete corresponding
139
+ machine-readable source code, delivered on a medium customarily
140
+ used for software interchange. The source code for a work means
141
+ the preferred form of the work for making modifications to it. For
142
+ an executable work, complete source code means all the source code
143
+ for all modules it contains, plus any associated interface
144
+ definition files, plus the scripts used to control compilation and
145
+ installation of the executable code. If you distribute with the
146
+ Work any component that is normally distributed (in either source
147
+ or binary form) with the major components (compiler, kernel, and
148
+ so on) of the operating system on which the executable runs, you
149
+ must also distribute the source code of that component if you have
150
+ it and are allowed to do so;
151
+ (v) If you distribute any written or printed material at all with the
152
+ Work, such material must include either a written copy of this
153
+ License, or a prominent written indication that the Work is
154
+ covered by this License and written instructions for printing
155
+ and/or displaying the copy of the License on the distribution
156
+ medium;
157
+ (vi) You may not impose any further restrictions on the recipient's
158
+ exercise of the rights granted herein.
159
+
160
+ If distribution of executable or object code is made by offering the
161
+ equivalent ability to copy from a designated place, then offering equivalent
162
+ ability to copy the source code from the same place counts as distribution
163
+ of the source code, even though third parties are not compelled to copy the
164
+ source code along with the object code.
165
+
166
+ 3. Reservation of Rights.
167
+
168
+ No rights are granted to the Program except as expressly set forth herein.
169
+ You may not copy, modify, sublicense, or distribute the Program except as
170
+ expressly provided under this License. Any attempt otherwise to copy,
171
+ modify, sublicense or distribute the Program is void, and will automatically
172
+ terminate your rights under this License. However, parties who have received
173
+ copies, or rights, from you under this License will not have their licenses
174
+ terminated so long as such parties remain in full compliance.
175
+
176
+ 4. Other Restrictions.
177
+
178
+ If the distribution and/or use of the Program is restricted in certain
179
+ countries for any reason, Licensor may add an explicit geographical
180
+ distribution limitation excluding those countries, so that distribution is
181
+ permitted only in or among countries not thus excluded. In such case, this
182
+ License incorporates the limitation as if written in the body of this
183
+ License.
184
+
185
+ 5. Limitations.
186
+
187
+ THE PROGRAM IS PROVIDED TO YOU "AS IS," WITHOUT WARRANTY. THERE IS NO
188
+ WARRANTY FOR THE PROGRAM, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
189
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
190
+ PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. THE ENTIRE
191
+ RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD
192
+ THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
193
+ REPAIR OR CORRECTION.
194
+
195
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL
196
+ LICENSOR, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM
197
+ AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
198
+ SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
199
+ INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR
200
+ DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES
201
+ OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF
202
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
203
+ DAMAGES.
204
+
205
+ 6. General.
206
+
207
+ This License is governed by the laws of the State of California, U.S.A.,
208
+ excluding choice of law rules.
209
+
210
+ If any part of this License is found to be in conflict with the law, that
211
+ part shall be interpreted in its broadest meaning consistent with the law,
212
+ and no other parts of the License shall be affected.
213
+
214
+ For United States Government users, the Program is provided with RESTRICTED
215
+ RIGHTS. If you are a unit or agency of the United States Government or are
216
+ acquiring the Program for any such unit or agency, the following apply:
217
+
218
+ If the unit or agency is the Department of Defense ("DOD"), the
219
+ Program and its documentation are classified as "commercial
220
+ computer software" and "commercial computer software
221
+ documentation" respectively and, pursuant to DFAR Section
222
+ 227.7202, the Government is acquiring the Program and its
223
+ documentation in accordance with the terms of this License. If the
224
+ unit or agency is other than DOD, the Program and its
225
+ documentation are classified as "commercial computer software" and
226
+ "commercial computer software documentation" respectively and,
227
+ pursuant to FAR Section 12.212, the Government is acquiring the
228
+ Program and its documentation in accordance with the terms of this
229
+ License.
230
+
@@ -0,0 +1,42 @@
1
+
2
+ MakeIndex Distribution Notice
3
+
4
+ 11/11/1989
5
+
6
+ Copyright (C) 1989 by Chen & Harrison International Systems, Inc.
7
+ Copyright (C) 1988 by Olivetti Research Center
8
+ Copyright (C) 1987 by Regents of the University of California
9
+
10
+ Author:
11
+ Pehong Chen
12
+ Chen & Harrison International Systems, Inc.
13
+ Palo Alto, California
14
+ USA
15
+
16
+ Permission is hereby granted to make and distribute original copies of
17
+ this program provided that the copyright notice and this permission
18
+ notice are preserved and provided that the recipient is not asked to
19
+ waive or limit his right to redistribute copies as allowed by this
20
+ permission notice and provided that anyone who receives an executable
21
+ form of this program is granted access to a machine-readable form of
22
+ the source code for this program at a cost not greater than reasonable
23
+ reproduction, shipping, and handling costs. Executable forms of this
24
+ program distributed without the source code must be accompanied by a
25
+ conspicuous copy of this permission notice and a statement that tells
26
+ the recipient how to obtain the source code.
27
+
28
+ Permission is granted to distribute modified versions of all or part
29
+ of this program under the conditions above with the additional
30
+ requirement that the entire modified work must be covered by a
31
+ permission notice identical to this permission notice. Anything
32
+ distributed with and usable only in conjunction with something derived
33
+ from this program, whose useful purpose is to extend or adapt or add
34
+ capabilities to this program, is to be considered a modified version
35
+ of this program under the requirement above. Ports of this program to
36
+ other systems not supported in the distribution are also considered
37
+ modified versions. All modified versions should be reported back to
38
+ the author.
39
+
40
+ This program is distributed with no warranty of any sort. No
41
+ contributor accepts responsibility for the consequences of using this
42
+ program or for whether it serves any particular purpose.