@bill_nee/dwg-reader 0.0.0-stage → 1.0.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 (99) hide show
  1. package/LICENSE +615 -0
  2. package/cordis.patch.yml +3 -0
  3. package/icon.svg +15 -0
  4. package/lib/index.js +355 -0
  5. package/locale/en.json +6 -0
  6. package/locale/zh.json +6 -0
  7. package/package.json +32 -4
  8. package/vendor/libredwg-web/lib/converter/converter.js +1102 -0
  9. package/vendor/libredwg-web/lib/converter/dwgColorToMLeaderRawColor.js +55 -0
  10. package/vendor/libredwg-web/lib/converter/entityConverter.js +2050 -0
  11. package/vendor/libredwg-web/lib/converter/index.js +3 -0
  12. package/vendor/libredwg-web/lib/converter/utils.js +46 -0
  13. package/vendor/libredwg-web/lib/database/classes/class.js +2 -0
  14. package/vendor/libredwg-web/lib/database/classes/index.js +2 -0
  15. package/vendor/libredwg-web/lib/database/codepage.js +101 -0
  16. package/vendor/libredwg-web/lib/database/common.js +2 -0
  17. package/vendor/libredwg-web/lib/database/database.js +2 -0
  18. package/vendor/libredwg-web/lib/database/entities/3dface.js +2 -0
  19. package/vendor/libredwg-web/lib/database/entities/arc.js +2 -0
  20. package/vendor/libredwg-web/lib/database/entities/arcAlignedText.js +2 -0
  21. package/vendor/libredwg-web/lib/database/entities/attdef.js +2 -0
  22. package/vendor/libredwg-web/lib/database/entities/attrib.js +2 -0
  23. package/vendor/libredwg-web/lib/database/entities/circle.js +2 -0
  24. package/vendor/libredwg-web/lib/database/entities/dimension.js +70 -0
  25. package/vendor/libredwg-web/lib/database/entities/ellipse.js +2 -0
  26. package/vendor/libredwg-web/lib/database/entities/entity.js +2 -0
  27. package/vendor/libredwg-web/lib/database/entities/hatch.js +54 -0
  28. package/vendor/libredwg-web/lib/database/entities/image.js +2 -0
  29. package/vendor/libredwg-web/lib/database/entities/index.js +38 -0
  30. package/vendor/libredwg-web/lib/database/entities/insert.js +2 -0
  31. package/vendor/libredwg-web/lib/database/entities/leader.js +2 -0
  32. package/vendor/libredwg-web/lib/database/entities/line.js +2 -0
  33. package/vendor/libredwg-web/lib/database/entities/lwpolyline.js +2 -0
  34. package/vendor/libredwg-web/lib/database/entities/mline.js +2 -0
  35. package/vendor/libredwg-web/lib/database/entities/mtext.js +2 -0
  36. package/vendor/libredwg-web/lib/database/entities/multileader.js +2 -0
  37. package/vendor/libredwg-web/lib/database/entities/ole2frame.js +2 -0
  38. package/vendor/libredwg-web/lib/database/entities/oleframe.js +2 -0
  39. package/vendor/libredwg-web/lib/database/entities/point.js +2 -0
  40. package/vendor/libredwg-web/lib/database/entities/polyline.js +19 -0
  41. package/vendor/libredwg-web/lib/database/entities/proxy.js +10 -0
  42. package/vendor/libredwg-web/lib/database/entities/ray.js +2 -0
  43. package/vendor/libredwg-web/lib/database/entities/section.js +2 -0
  44. package/vendor/libredwg-web/lib/database/entities/shape.js +2 -0
  45. package/vendor/libredwg-web/lib/database/entities/solid.js +2 -0
  46. package/vendor/libredwg-web/lib/database/entities/solid3d.js +2 -0
  47. package/vendor/libredwg-web/lib/database/entities/spline.js +2 -0
  48. package/vendor/libredwg-web/lib/database/entities/table.js +2 -0
  49. package/vendor/libredwg-web/lib/database/entities/text.js +23 -0
  50. package/vendor/libredwg-web/lib/database/entities/tolerance.js +2 -0
  51. package/vendor/libredwg-web/lib/database/entities/trace.js +2 -0
  52. package/vendor/libredwg-web/lib/database/entities/vertex.js +2 -0
  53. package/vendor/libredwg-web/lib/database/entities/viewport.js +2 -0
  54. package/vendor/libredwg-web/lib/database/entities/wipeout.js +2 -0
  55. package/vendor/libredwg-web/lib/database/entities/xline.js +2 -0
  56. package/vendor/libredwg-web/lib/database/header/header.js +2 -0
  57. package/vendor/libredwg-web/lib/database/header/index.js +3 -0
  58. package/vendor/libredwg-web/lib/database/header/variables.js +217 -0
  59. package/vendor/libredwg-web/lib/database/index.js +12 -0
  60. package/vendor/libredwg-web/lib/database/objects/common.js +2 -0
  61. package/vendor/libredwg-web/lib/database/objects/dictionary.js +19 -0
  62. package/vendor/libredwg-web/lib/database/objects/imageDef.js +2 -0
  63. package/vendor/libredwg-web/lib/database/objects/index.js +11 -0
  64. package/vendor/libredwg-web/lib/database/objects/layerFilter.js +2 -0
  65. package/vendor/libredwg-web/lib/database/objects/layerIndex.js +2 -0
  66. package/vendor/libredwg-web/lib/database/objects/layout.js +2 -0
  67. package/vendor/libredwg-web/lib/database/objects/mleaderStyle.js +2 -0
  68. package/vendor/libredwg-web/lib/database/objects/plotSetting.js +2 -0
  69. package/vendor/libredwg-web/lib/database/objects/spatialFilter.js +2 -0
  70. package/vendor/libredwg-web/lib/database/objects/xrecord.js +2 -0
  71. package/vendor/libredwg-web/lib/database/shared/index.js +2 -0
  72. package/vendor/libredwg-web/lib/database/shared/xdata.js +2 -0
  73. package/vendor/libredwg-web/lib/database/tables/appId.js +2 -0
  74. package/vendor/libredwg-web/lib/database/tables/blockRecord.js +2 -0
  75. package/vendor/libredwg-web/lib/database/tables/dimStyle.js +2 -0
  76. package/vendor/libredwg-web/lib/database/tables/index.js +9 -0
  77. package/vendor/libredwg-web/lib/database/tables/layer.js +2 -0
  78. package/vendor/libredwg-web/lib/database/tables/ltype.js +2 -0
  79. package/vendor/libredwg-web/lib/database/tables/style.js +2 -0
  80. package/vendor/libredwg-web/lib/database/tables/table.js +2 -0
  81. package/vendor/libredwg-web/lib/database/tables/vport.js +2 -0
  82. package/vendor/libredwg-web/lib/database/textEscapes.js +19 -0
  83. package/vendor/libredwg-web/lib/database/version.js +260 -0
  84. package/vendor/libredwg-web/lib/index.js +4 -0
  85. package/vendor/libredwg-web/lib/libredwg.js +1271 -0
  86. package/vendor/libredwg-web/lib/svg/box2d.js +104 -0
  87. package/vendor/libredwg-web/lib/svg/bspline.js +95 -0
  88. package/vendor/libredwg-web/lib/svg/color.js +371 -0
  89. package/vendor/libredwg-web/lib/svg/index.js +2 -0
  90. package/vendor/libredwg-web/lib/svg/polyline.js +70 -0
  91. package/vendor/libredwg-web/lib/svg/svgConverter.js +540 -0
  92. package/vendor/libredwg-web/lib/svg/transformBoundingBoxAndElement.js +20 -0
  93. package/vendor/libredwg-web/lib/svg/vector.js +27 -0
  94. package/vendor/libredwg-web/lib/types/common.js +2 -0
  95. package/vendor/libredwg-web/lib/types/enums.js +390 -0
  96. package/vendor/libredwg-web/lib/types/index.js +3 -0
  97. package/vendor/libredwg-web/wasm/libredwg-web.js +2 -0
  98. package/vendor/libredwg-web/wasm/libredwg-web.wasm +0 -0
  99. package/README.md +0 -3
package/LICENSE ADDED
@@ -0,0 +1,615 @@
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU General Public License is a free, copyleft license for
11
+ software and other kinds of works.
12
+
13
+ The licenses for most software and other practical works are designed
14
+ to take away your freedom to share and change the works. By contrast,
15
+ the GNU General Public License is intended to guarantee your freedom to
16
+ share and change all versions of a program--to make sure it remains free
17
+ software for all its users. We, the Free Software Foundation, use the
18
+ GNU General Public License for most of our software; it applies also to
19
+ any other work released this way by its authors. You can apply it to
20
+ your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you
30
+ these rights or asking you to surrender the rights. Therefore, you have
31
+ certain responsibilities if you distribute copies of the software, or if
32
+ you modify it: responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must pass on to the recipients the same
36
+ freedoms that you received. You must make sure that they, too, receive
37
+ or can get the source code. And you must show them these terms so they
38
+ know their rights.
39
+
40
+ Developers that use the GNU GPL protect your rights with two steps:
41
+ (1) assert copyright on the software, and (2) offer you this License
42
+ giving you legal permission to copy, distribute and/or modify it.
43
+
44
+ For the developers' and authors' protection, the GPL clearly explains
45
+ that there is no warranty for this free software. For both users' and
46
+ authors' sake, the GPL requires that modified versions be marked as
47
+ changed, so that their problems will not be attributed erroneously to
48
+ authors of previous versions.
49
+
50
+ Some devices are designed to deny users access to install or run
51
+ modified versions of the software inside them, although the manufacturer
52
+ can do so. This is fundamentally incompatible with the aim of
53
+ protecting users' freedom to change the software. The systematic
54
+ pattern of such abuse occurs in the area of products for individuals to
55
+ use, which is precisely where it is most unacceptable. Therefore, we
56
+ have designed this version of the GPL to prohibit the practice for those
57
+ products. If such problems arise substantially in other domains, we
58
+ stand ready to extend this provision to those domains in future versions
59
+ of the GPL, as needed to protect the freedom of users.
60
+
61
+ Finally, every program is threatened constantly by software patents.
62
+ States should not allow patents to restrict development and use of
63
+ software on general-purpose computers, but in those that do, we wish to
64
+ avoid the special danger that patents applied to a free program could
65
+ make it effectively proprietary. To prevent this, the GPL assures that
66
+ patents cannot be used to render the program non-free.
67
+
68
+ The precise terms and conditions for copying, distribution and
69
+ modification follow.
70
+
71
+ TERMS AND CONDITIONS
72
+
73
+ 0. Definitions.
74
+
75
+ "This License" refers to version 3 of the GNU General Public License.
76
+
77
+ "Copyright" also means copyright-like laws that apply to other kinds of
78
+ works, such as semiconductor masks.
79
+
80
+ "The Program" refers to any copyrightable work licensed under this
81
+ License. Each licensee is addressed as "you". "Licensees" and
82
+ "recipients" may be individuals or organizations.
83
+
84
+ To "modify" a work means to copy from or adapt all or part of the work
85
+ in a fashion requiring copyright permission, other than the making of an
86
+ exact copy. The resulting work is called a "modified version" of the
87
+ earlier work or a work "based on" the earlier work.
88
+
89
+ A "covered work" means either the unmodified Program or a work based
90
+ on the Program.
91
+
92
+ To "propagate" a work means to do anything with it that, without
93
+ permission, would make you directly or secondarily liable for
94
+ infringement under applicable copyright law, except executing it on a
95
+ computer or modifying a private copy. Propagation includes copying,
96
+ distribution (with or without modification), making available to the
97
+ public, and in some countries other activities as well.
98
+
99
+ To "convey" a work means any kind of propagation that enables other
100
+ parties to make or receive copies. Mere interaction with a user through
101
+ a computer network, with no transfer of a copy, is not conveying.
102
+
103
+ An interactive user interface displays "Appropriate Legal Notices"
104
+ to the extent that it includes a convenient and prominently visible
105
+ feature that (1) displays an appropriate copyright notice, and (2)
106
+ tells the user that there is no warranty for the program (to the extent
107
+ permitted by law), that licensees may convey copies of this program under
108
+ the conditions stated in the License, and how to view a copy of this
109
+ License. If the interface presents a list of user commands or options,
110
+ such as a menu, a prominent item in the list meets this criterion.
111
+
112
+ 1. Source Code.
113
+
114
+ The "source code" for a work means the preferred form of the work for
115
+ making modifications to it. "Object code" means any non-source form of
116
+ a work.
117
+
118
+ A "Standard Interface" means an interface that either is an official
119
+ standard defined by a recognized standards body, or, in the case of
120
+ interfaces specified for a particular programming language, one that is
121
+ widely used among developers working in that language.
122
+
123
+ The "System Libraries" of an executable work include anything, other
124
+ than the work as a whole, that (a) is included in the normal form of
125
+ packaging a Major Component, but which is not part of that Major
126
+ Component, and (b) serves only to enable use of the work with that Major
127
+ Component, or to implement a Standard Interface for which an
128
+ implementation is available to the public in source code form. A
129
+ "Major Component", in this context, means a major essential component
130
+ (kernel, window system, and so on) of the specific operating system (if
131
+ any) on which the executable work runs, or a compiler used to produce
132
+ the work, or an object code interpreter used to run it.
133
+
134
+ The "Corresponding Source" for a work in object code form means all
135
+ the source code needed to generate, install, and (for an executable
136
+ work) run the object code and to modify the work, including scripts to
137
+ control those activities. However, it does not include the work's
138
+ System Libraries, or general-purpose tools or generally available free
139
+ programs which are used unmodified in performing those activities but
140
+ which are not part of the work. For example, Corresponding Source
141
+ includes interface definition files associated with source files for
142
+ the work, and the source code for shared libraries and dynamically
143
+ linked subprograms that the work is specifically designed to require,
144
+ such as by intimate data communication or control flow between those
145
+ subprograms and other parts of the work.
146
+
147
+ The Corresponding Source need not include anything that users can
148
+ regenerate automatically from other parts of the Corresponding Source.
149
+
150
+ The Corresponding Source for a work in source code form is that same
151
+ work.
152
+
153
+ 2. Basic Permissions.
154
+
155
+ All rights granted under this License are granted for the term of
156
+ copyright on the Program, and are irrevocable provided the stated
157
+ conditions are met. This License explicitly affirms your unlimited
158
+ permission to run the unmodified Program. The output from running a
159
+ covered work is covered by this License only if the output, given its
160
+ content, constitutes a covered work. This License acknowledges your
161
+ rights of fair use or other equivalent provisions, as provided by
162
+ copyright law.
163
+
164
+ You may make, run and propagate covered works that you do not
165
+ convey, without conditions so long as your license otherwise remains
166
+ in force. You may convey covered works to others for the sole purpose
167
+ of having them make modifications exclusively for you, or provide you
168
+ with facilities for running those works, provided that you comply with
169
+ the terms of this License in conveying all material for which you do
170
+ not control copyright. Those thus making or running the covered works
171
+ for you must do so exclusively on your behalf, under your direction and
172
+ control, on terms that prohibit them from making any copies of your
173
+ copyrighted material outside their scope of working with you.
174
+
175
+ Conveying under any other circumstances is permitted solely under the
176
+ conditions stated below. Sublicensing is not allowed; section 10 makes
177
+ it unnecessary.
178
+
179
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+ No covered work shall be deemed part of an effective technological
182
+ measure under any applicable law fulfilling obligations under article
183
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar
184
+ laws prohibiting or restricting circumvention of such measures.
185
+
186
+ When you convey a covered work, you waive any legal power to forbid
187
+ circumvention of technological measures to the extent such circumvention
188
+ is effected by exercising rights under this License with respect to the
189
+ covered work, and you disclaim any intention to limit operation or
190
+ modification of the work as a means of enforcing, against the users of
191
+ your work, your rights or an infringement of users' rights under this
192
+ License to propagate or modify the covered work.
193
+
194
+ 4. Conveying Verbatim Copies.
195
+
196
+ You may convey verbatim copies of the Program's source code as you
197
+ receive it, in any medium, provided that you conspicuously and
198
+ appropriately publish on each copy an appropriate copyright notice; keep
199
+ intact all notices stating that this License and any non-permissive
200
+ terms added in accord with section 7 apply to the code; keep intact all
201
+ notices of the absence of any warranty; and give all recipients a copy
202
+ of this License along with the Program.
203
+
204
+ You may charge any price or no price for each copy that you convey,
205
+ and you may offer support or warranty protection for a price.
206
+
207
+ 5. Conveying Modified Source Versions.
208
+
209
+ You may convey a work based on the Program, or the modifications to
210
+ produce it from the Program, in the form of source code under the terms
211
+ of section 4, provided that you also meet all of these conditions:
212
+
213
+ a) The work must carry prominent notices stating that you modified
214
+ it, and giving a relevant date.
215
+
216
+ b) The work must carry prominent notices stating that it is
217
+ released under this License and any conditions added under section
218
+ 7. This requirement modifies the requirement in section 4 to
219
+ "keep intact all notices".
220
+
221
+ c) You must license the entire work, as a whole, under this
222
+ License to anyone who comes into possession of a copy. This
223
+ License will therefore apply, along with any applicable section 7
224
+ additional terms, to the whole of the work, and all its parts,
225
+ regardless of how they are packaged. This License gives no
226
+ permission to license the work in any other way, but it does not
227
+ invalidate this permission if you have separately received it.
228
+
229
+ d) If the work has interactive user interfaces, each must display
230
+ Appropriate Legal Notices; however, if the Program has interactive
231
+ interfaces that do not display Appropriate Legal Notices, your work
232
+ need not make them do so.
233
+
234
+ A compilation of a covered work with other separate and independent
235
+ works, which are not by their nature extensions of the covered work,
236
+ and which are not combined with it such as to form a larger program, in
237
+ or on a volume of a storage or distribution medium, is called an
238
+ "aggregate" if the compilation and its resulting copyright are not
239
+ used to limit the access or legal rights of the compilation's users
240
+ beyond what the individual works permit. Inclusion of a covered work
241
+ in an aggregate does not cause this License to apply to the other
242
+ parts of the aggregate.
243
+
244
+ 6. Conveying Non-Source Forms.
245
+
246
+ You may convey a covered work in object code form under the terms
247
+ of sections 4 and 5, provided that you also convey the machine-readable
248
+ Corresponding Source under the terms of this License, in one of these
249
+ ways:
250
+
251
+ a) Convey the object code in, or embodied in, a physical product
252
+ (including a distribution medium), accompanied by the Corresponding
253
+ Source fixed on a durable physical medium customarily used for
254
+ software interchange.
255
+
256
+ b) Convey the object code in, or embodied in, a physical product
257
+ (including a distribution medium), accompanied by a written offer,
258
+ valid for at least three years and valid for as long as you offer
259
+ spare parts or customer support for that product model, to give
260
+ anyone who possesses the object code either (1) a copy of the
261
+ Corresponding Source for all the software in the product that is
262
+ covered by this License, on a durable physical medium customarily
263
+ used for software interchange, for a price no more than your
264
+ reasonable cost of physically performing this conveying of source,
265
+ or (2) access to copy the Corresponding Source from a network
266
+ server at no charge.
267
+
268
+ c) Convey individual copies of the object code with a copy of the
269
+ written offer to provide the Corresponding Source. This
270
+ alternative is allowed only occasionally and noncommercially, and
271
+ only if you received the object code with such an offer, in accord
272
+ with subsection 6b.
273
+
274
+ d) Convey the object code by offering access from a designated
275
+ place (gratis or for a charge), and offer equivalent access to the
276
+ Corresponding Source in the same way through the same place at no
277
+ further charge. You need not require recipients to copy the
278
+ Corresponding Source along with the object code. If the place to
279
+ copy the object code is a network server, the Corresponding Source
280
+ may be on a different server (operated by you or a third party)
281
+ that supports equivalent copying facilities, provided you maintain
282
+ clear directions next to the object code saying where to find the
283
+ Corresponding Source. Regardless of what server hosts the
284
+ Corresponding Source, you remain obligated to ensure that it is
285
+ available for as long as needed to satisfy these requirements.
286
+
287
+ e) Convey the object code using peer-to-peer transmission, provided
288
+ you also inform peers of the address where the object code and
289
+ Corresponding Source of the work are being offered to the general
290
+ public at no charge under subsection 6d.
291
+
292
+ A separable portion of the object code, whose source code is excluded
293
+ from the Corresponding Source as a System Library, need not be included
294
+ in conveying the object code under this section.
295
+
296
+ 7. Additional Terms.
297
+
298
+ "Additional permissions" are terms that supplement the terms of this
299
+ License by making exceptions from one or more of its conditions.
300
+ Additional permissions that are applicable to the entire Program shall
301
+ be treated as though they were included in this License, to the extent
302
+ that they are valid under applicable law. If additional permissions
303
+ apply only to part of the Program, that part may be used separately
304
+ under those permissions, but the entire Program remains governed by
305
+ this License without regard to the additional permissions.
306
+
307
+ When you convey a copy of a covered work, you may at your option
308
+ remove any additional permissions from that copy, or from any part of
309
+ it. (Additional permissions may be written to require their own removal
310
+ in certain cases when you modify the work.) You may place additional
311
+ permissions on material, added by you to a covered work, for which you
312
+ have or can give appropriate copyright permission.
313
+
314
+ Notwithstanding any other provision of this License, for material you
315
+ add to a covered work, you may (if authorized by the copyright holders
316
+ of that material) supplement the terms of this License with terms:
317
+
318
+ a) Disclaiming warranty or limiting liability differently from the
319
+ terms of sections 15 and 16 of this License; or
320
+
321
+ b) Requiring preservation of specified reasonable legal notices or
322
+ author attributions in that material or in the Appropriate Legal
323
+ Notices displayed by works, if any; or
324
+
325
+ c) Prohibiting misrepresentation of the origin of that material,
326
+ or requiring that modified versions of such material be marked in
327
+ reasonable ways as different from the original version; or
328
+
329
+ d) Limiting the use for publicity purposes of names of licensors or
330
+ authors of the material; or
331
+
332
+ e) Declining to grant rights under trademark law for use of some
333
+ trade names, trademarks, or service marks; or
334
+
335
+ f) Requiring indemnification of licensors and authors of that
336
+ material by anyone who conveys the work (or a modified version of
337
+ it) with contractual assumptions of liability to the recipient, for
338
+ any liability that these contractual assumptions directly impose on
339
+ those licensors and authors.
340
+
341
+ All other non-permissive additional terms are considered "further
342
+ restrictions" within the meaning of section 10. If the Program as you
343
+ received it, or any part of it, contains a notice stating that it is
344
+ governed by this License along with a term that is a further
345
+ restriction, you may remove that term. If a license document contains
346
+ a further restriction but permits relicensing or conveying under this
347
+ License, you may add to a covered work material governed by the terms
348
+ of that license document, provided that the modification does not
349
+ contain within itself a further restriction within the meaning of
350
+ section 10. If you add material governed by a license document that
351
+ contains a further restriction, you may relicense the added material
352
+ under this License, provided that the modification does not contain
353
+ within itself a further restriction within the meaning of section 10.
354
+
355
+ If you add terms to a covered work in accord with this section, you
356
+ must place, in the relevant source files, a statement of the
357
+ additional terms that apply to those files, or a notice indicating
358
+ where to find the applicable terms.
359
+
360
+ Additional terms, permissive or non-permissive, may be stated in the
361
+ form of a separately written license, or stated as exceptions; the
362
+ above requirements apply either way.
363
+
364
+ 8. Termination.
365
+
366
+ You may not propagate or modify a covered work except as expressly
367
+ provided under this License. Any attempt otherwise to propagate or
368
+ modify it is void, and will automatically terminate your rights under
369
+ this License (including any patent licenses granted under the third
370
+ paragraph of section 11).
371
+
372
+ However, if you cease all violation of this License, then your license
373
+ from a particular copyright holder is reinstated (a) provisionally,
374
+ unless and until the copyright holder explicitly and finally terminates
375
+ your license, and (b) permanently, if the copyright holder fails to
376
+ notify you of the violation by some reasonable means prior to 60 days
377
+ after the violation.
378
+
379
+ Moreover, your license from a particular copyright holder is
380
+ reinstated permanently if the copyright holder notifies you of the
381
+ violation by some reasonable means, this is the first time you have
382
+ received notice of violation of this License for that work, and you
383
+ cure the violation prior to 30 days after your receipt of the notice.
384
+
385
+ Termination of your rights under this License does not terminate the
386
+ licenses of parties who have received copies or rights from you under
387
+ this License. If your rights have been terminated and not permanently
388
+ reinstated, you do not qualify to receive new licenses for the same
389
+ work under section 13.
390
+
391
+ 9. Acceptance Not Required for Having Copies.
392
+
393
+ You are not required to accept this License in order to receive or run
394
+ a copy of the Program. Ancillary propagation of a covered work occurring
395
+ solely as a consequence of using peer-to-peer transmission to receive a
396
+ copy does not require acceptance. However, nothing other than this
397
+ License grants you permission to propagate or modify any covered work.
398
+ These actions infringe copyright if you do not accept this License.
399
+
400
+ Therefore, by modifying or propagating a covered work, you indicate
401
+ your acceptance of this License to do so.
402
+
403
+ 10. Automatic Licensing of Downstream Recipients.
404
+
405
+ Each time you convey a covered work, the recipient automatically
406
+ receives a license from the original licensors, to run, modify and
407
+ propagate that work, subject to this License. You are not responsible
408
+ for enforcing compliance by third parties with this License.
409
+
410
+ An "entity transaction" is a transaction transferring control of an
411
+ organization, or substantially all assets of one, or subdividing an
412
+ organization, or merging organizations. If propagation of a covered
413
+ work results from an entity transaction, each party to that transaction
414
+ who receives a copy of the work also receives whatever licenses to the
415
+ work the party's predecessor in interest had or could give under the
416
+ previous paragraph, plus a right to possess the Corresponding Source of
417
+ the work from the predecessor in interest, if the predecessor has it or
418
+ can get it.
419
+
420
+ You may not impose any further restrictions on the exercise of the
421
+ rights granted or affirmed under this License. For example, you may not
422
+ impose a license fee, royalty, or other charge for exercise of rights
423
+ granted under this License, and you may not initiate litigation
424
+ (including a cross-claim) alleging that any patent claim is infringed
425
+ by making, using, selling, offering for sale, or importing the Program
426
+ or any portion of it.
427
+
428
+ 11. Patents.
429
+
430
+ A "contributor" is a copyright holder who authorizes use under this
431
+ License of the Program or a work based on the Program. The work thus
432
+ licensed is called the contributor's "contributor version".
433
+
434
+ A contributor's "essential patent claims" are all patent claims owned
435
+ or controlled by the contributor, whether already acquired or hereafter
436
+ acquired, that would be infringed by some manner, permitted by this
437
+ License, of making, using, or selling its contributor version, but do
438
+ not include claims that would be infringed only as a consequence of
439
+ further modification of the contributor version. For purposes of this
440
+ definition, "control" includes the right to grant patent sublicenses in
441
+ a manner consistent with the requirements of this License.
442
+
443
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
444
+ patent license under the contributor's essential patent claims, to make,
445
+ use, sell, offer for sale, import and otherwise run, modify and
446
+ propagate the contents of its contributor version.
447
+
448
+ In the following three paragraphs, a "patent grant" is the grant of a
449
+ patent license as described above. A contributor may revoke a patent
450
+ grant on a contributor version as a consequence of patent litigation.
451
+
452
+ If you institute patent litigation against any entity (including a
453
+ cross-claim or counterclaim in a lawsuit) alleging that a patent claim
454
+ is infringed by making, using, selling, offering for sale, or importing
455
+ the Program or any portion of it, then any patent licenses granted to
456
+ you under this License for that Program shall terminate on the date
457
+ such litigation is filed.
458
+
459
+ If you convey a covered work that relies on a patent license, and the
460
+ Corresponding Source of the work is not available for anyone to copy,
461
+ free of charge and under the terms of this License, through a publicly
462
+ available network server or other readily accessible means, then you
463
+ must either (1) cause the Corresponding Source to be so available, or
464
+ (2) arrange to deprive yourself of the benefit of the patent license for
465
+ this particular work, or (3) arrange, in a manner consistent with the
466
+ requirements of this License, to extend a patent license to downstream
467
+ recipients. "Knowing reliance" means you have knowledge that reliance
468
+ on a patent license would result in a loss of certain rights under this
469
+ License.
470
+
471
+ Nothing in this License shall be construed as excluding or limiting
472
+ any patent license or other rights granted under this License with
473
+ respect to any portion of the Program. The term of a patent license
474
+ is specified elsewhere in this License.
475
+
476
+ If the Program, or a portion of it, is subject to a patent license
477
+ granted under this License, then you must convey the work so that it is
478
+ possible for all recipients to obtain a license under this License at
479
+ no cost under any combination of circumstances where you might
480
+ otherwise attempt to restrict their access to rights under this License.
481
+
482
+ 12. No Surrender of Others' Freedom.
483
+
484
+ If conditions are imposed on you (whether by court order, agreement or
485
+ otherwise) that conflict with the conditions of this License, they do
486
+ not excuse you from the conditions of this License. If you cannot
487
+ convey a covered work so as to satisfy both your obligations under this
488
+ License and any other simultaneous obligations, then you may not convey
489
+ it at all. For example, if you agree to terms that obligate you to
490
+ perform a royalty-for-license-for-all-patents-of-the-counterparty
491
+ obligation that would conflict with this License, then you may not
492
+ convey the work under this License.
493
+
494
+ If you distribute a covered work knowingly relying on a patent
495
+ license, you must provide to each recipient a copy of this License
496
+ along with the work.
497
+
498
+ 13. Use with the GNU Affero General Public License.
499
+
500
+ Notwithstanding any other provision of this License, you have
501
+ permission to link or combine any covered work with a work licensed
502
+ under version 3 of the GNU Affero General Public License into a single
503
+ combined work, and to convey the resulting work. The terms of this
504
+ License will continue to apply to the part which is the covered work,
505
+ but the special requirements of the GNU Affero General Public License,
506
+ section 13, concerning interaction through a network will apply to the
507
+ combination as such.
508
+
509
+ 14. Revised Versions of this License.
510
+
511
+ The Free Software Foundation may publish revised and/or new versions of
512
+ the GNU General Public License from time to time. Such new versions
513
+ will be similar in spirit to the present version, but may differ in
514
+ detail to address new problems or concerns.
515
+
516
+ Each version is given a distinguishing version number. If the
517
+ Program specifies that a certain numbered version of the GNU General
518
+ Public License "or any later version" applies to it, you have the
519
+ option of following the terms and conditions either of that numbered
520
+ version or of any later version published by the Free Software
521
+ Foundation. If the Program does not specify a version number of the
522
+ GNU General Public License, you may choose any version ever published
523
+ by the Free Software Foundation.
524
+
525
+ If the Program specifies that a proxy can decide which future versions
526
+ of the GNU General Public License can be used, that proxy's public
527
+ statement of acceptance of a version automatically authorizes you to
528
+ that version for the Program.
529
+
530
+ Later license versions may give you additional or different
531
+ permissions or obligations. No proxy is authorized to decide for you
532
+ whether to grant them or not.
533
+
534
+ 15. Disclaimer of Warranty.
535
+
536
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
537
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
538
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
539
+ WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
540
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
541
+ A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
542
+ PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
543
+ DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
544
+ CORRECTION.
545
+
546
+ 16. Limitation of Liability.
547
+
548
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
549
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
550
+ CONVEYS THE PROGRAM AS PERMITTED BY THIS LICENSE, BE LIABLE TO YOU FOR
551
+ DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
552
+ DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING
553
+ BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
554
+ LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO
555
+ OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY
556
+ HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
557
+
558
+ 17. Interpretation of Sections 15 and 16.
559
+
560
+ If the disclaimer of warranty and limitation of liability provided
561
+ above cannot be given local legal effect according to their terms,
562
+ nearest reasonable legal equivalents shall be used. If a section 15
563
+ disclaimer and section 16 limitation are not available in your local
564
+ area, choose reasonable alternatives as close as possible to the
565
+ disclaimer and limitation above.
566
+
567
+ END OF TERMS AND CONDITIONS
568
+
569
+ How to Apply These Terms to Your New Programs
570
+
571
+ If you develop a new program, and you want it to be of the greatest
572
+ possible use to the public, the best way to achieve this is to make it
573
+ free software which everyone can redistribute and change under these
574
+ terms.
575
+
576
+ To do so, attach the following notices to the program. It is safest
577
+ to attach them to the start of each source file to most effectively
578
+ state the exclusion of warranty; and each file should have at least
579
+ the "copyright" line and a pointer to where the full notice is found.
580
+
581
+ <one line to give the program's name and a brief idea of what it does.>
582
+ Copyright (C) <year> <name of author>
583
+
584
+ This program is free software: you can redistribute it and/or modify
585
+ it under the terms of the GNU General Public License as published by
586
+ the Free Software Foundation, either version 3 of the License, or
587
+ (at your option) any later version.
588
+
589
+ This program is distributed in the hope that it will be useful,
590
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
591
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
592
+ GNU General Public License for more details.
593
+
594
+ You should have received a copy of the GNU General Public License
595
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
596
+
597
+ Also add information on how to contact you by electronic and paper mail.
598
+
599
+ If the program does terminal interaction, make it output a short
600
+ notice like this when it starts in an interactive mode:
601
+
602
+ <program> Copyright (C) <year> <name of author>
603
+ This program comes with ABSOLUTELY NO WARRANTY; for details type
604
+ `show w'. This is free software, and you are welcome to redistribute
605
+ it under certain conditions; type `show c' for details.
606
+
607
+ The hypothetical commands `show w' and `show c' should show the
608
+ appropriate parts of the General Public License. Of course, your
609
+ program's commands might be different; for details see
610
+ <https://www.gnu.org/licenses/>.
611
+
612
+ You should also get your employer (if you work as a programmer) or
613
+ school, if any, to sign a "copyright disclaimer" for the program, if
614
+ necessary. For more information on this, and how to apply and follow
615
+ the GNU GPL, see <https://www.gnu.org/licenses/>.
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: dwg-reader
3
+ name: '@bill_nee/dwg-reader'
package/icon.svg ADDED
@@ -0,0 +1,15 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256">
2
+ <defs>
3
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
4
+ <stop offset="0" stop-color="#1e5eff"/>
5
+ <stop offset="1" stop-color="#0a2f9e"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <rect x="8" y="8" width="240" height="240" rx="40" fill="url(#bg)"/>
9
+ <g stroke="#ffffff" stroke-width="12" stroke-linecap="round" stroke-linejoin="round" fill="none">
10
+ <path d="M48 196 L120 88 L192 196 Z"/>
11
+ <path d="M86 196 L120 128 L154 196"/>
12
+ </g>
13
+ <circle cx="120" cy="88" r="10" fill="#ffffff" stroke="none"/>
14
+ <text x="128" y="238" font-family="Segoe UI, sans-serif" font-size="34" font-weight="700" fill="#ffffff" text-anchor="middle">DWG</text>
15
+ </svg>