@joint/core 4.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 (139) hide show
  1. package/LICENSE +376 -0
  2. package/README.md +49 -0
  3. package/dist/geometry.js +6486 -0
  4. package/dist/geometry.min.js +8 -0
  5. package/dist/joint.d.ts +5536 -0
  6. package/dist/joint.js +39629 -0
  7. package/dist/joint.min.js +8 -0
  8. package/dist/joint.nowrap.js +39626 -0
  9. package/dist/joint.nowrap.min.js +8 -0
  10. package/dist/vectorizer.js +9135 -0
  11. package/dist/vectorizer.min.js +8 -0
  12. package/dist/version.mjs +3 -0
  13. package/index.js +3 -0
  14. package/joint.mjs +27 -0
  15. package/package.json +192 -0
  16. package/src/V/annotation.mjs +0 -0
  17. package/src/V/index.mjs +2642 -0
  18. package/src/anchors/index.mjs +123 -0
  19. package/src/config/index.mjs +12 -0
  20. package/src/connectionPoints/index.mjs +202 -0
  21. package/src/connectionStrategies/index.mjs +73 -0
  22. package/src/connectors/curve.mjs +553 -0
  23. package/src/connectors/index.mjs +6 -0
  24. package/src/connectors/jumpover.mjs +452 -0
  25. package/src/connectors/normal.mjs +12 -0
  26. package/src/connectors/rounded.mjs +17 -0
  27. package/src/connectors/smooth.mjs +44 -0
  28. package/src/connectors/straight.mjs +110 -0
  29. package/src/dia/Cell.mjs +945 -0
  30. package/src/dia/CellView.mjs +1316 -0
  31. package/src/dia/Element.mjs +519 -0
  32. package/src/dia/ElementView.mjs +859 -0
  33. package/src/dia/Graph.mjs +1112 -0
  34. package/src/dia/HighlighterView.mjs +319 -0
  35. package/src/dia/Link.mjs +565 -0
  36. package/src/dia/LinkView.mjs +2207 -0
  37. package/src/dia/Paper.mjs +3171 -0
  38. package/src/dia/PaperLayer.mjs +75 -0
  39. package/src/dia/ToolView.mjs +69 -0
  40. package/src/dia/ToolsView.mjs +128 -0
  41. package/src/dia/attributes/calc.mjs +128 -0
  42. package/src/dia/attributes/connection.mjs +75 -0
  43. package/src/dia/attributes/defs.mjs +76 -0
  44. package/src/dia/attributes/eval.mjs +64 -0
  45. package/src/dia/attributes/index.mjs +69 -0
  46. package/src/dia/attributes/legacy.mjs +148 -0
  47. package/src/dia/attributes/offset.mjs +53 -0
  48. package/src/dia/attributes/props.mjs +30 -0
  49. package/src/dia/attributes/shape.mjs +92 -0
  50. package/src/dia/attributes/text.mjs +180 -0
  51. package/src/dia/index.mjs +13 -0
  52. package/src/dia/layers/GridLayer.mjs +176 -0
  53. package/src/dia/ports.mjs +874 -0
  54. package/src/elementTools/Control.mjs +153 -0
  55. package/src/elementTools/HoverConnect.mjs +37 -0
  56. package/src/elementTools/index.mjs +5 -0
  57. package/src/env/index.mjs +43 -0
  58. package/src/g/bezier.mjs +175 -0
  59. package/src/g/curve.mjs +956 -0
  60. package/src/g/ellipse.mjs +245 -0
  61. package/src/g/extend.mjs +64 -0
  62. package/src/g/geometry.helpers.mjs +58 -0
  63. package/src/g/index.mjs +17 -0
  64. package/src/g/intersection.mjs +511 -0
  65. package/src/g/line.bearing.mjs +30 -0
  66. package/src/g/line.length.mjs +5 -0
  67. package/src/g/line.mjs +356 -0
  68. package/src/g/line.squaredLength.mjs +10 -0
  69. package/src/g/path.mjs +2260 -0
  70. package/src/g/point.mjs +375 -0
  71. package/src/g/points.mjs +247 -0
  72. package/src/g/polygon.mjs +51 -0
  73. package/src/g/polyline.mjs +523 -0
  74. package/src/g/rect.mjs +556 -0
  75. package/src/g/types.mjs +10 -0
  76. package/src/highlighters/addClass.mjs +27 -0
  77. package/src/highlighters/index.mjs +5 -0
  78. package/src/highlighters/list.mjs +111 -0
  79. package/src/highlighters/mask.mjs +220 -0
  80. package/src/highlighters/opacity.mjs +17 -0
  81. package/src/highlighters/stroke.mjs +100 -0
  82. package/src/layout/index.mjs +4 -0
  83. package/src/layout/ports/port.mjs +188 -0
  84. package/src/layout/ports/portLabel.mjs +224 -0
  85. package/src/linkAnchors/index.mjs +76 -0
  86. package/src/linkTools/Anchor.mjs +235 -0
  87. package/src/linkTools/Arrowhead.mjs +103 -0
  88. package/src/linkTools/Boundary.mjs +48 -0
  89. package/src/linkTools/Button.mjs +121 -0
  90. package/src/linkTools/Connect.mjs +85 -0
  91. package/src/linkTools/HoverConnect.mjs +161 -0
  92. package/src/linkTools/Segments.mjs +393 -0
  93. package/src/linkTools/Vertices.mjs +253 -0
  94. package/src/linkTools/helpers.mjs +33 -0
  95. package/src/linkTools/index.mjs +8 -0
  96. package/src/mvc/Collection.mjs +560 -0
  97. package/src/mvc/Data.mjs +46 -0
  98. package/src/mvc/Dom/Dom.mjs +587 -0
  99. package/src/mvc/Dom/Event.mjs +130 -0
  100. package/src/mvc/Dom/animations.mjs +122 -0
  101. package/src/mvc/Dom/events.mjs +69 -0
  102. package/src/mvc/Dom/index.mjs +13 -0
  103. package/src/mvc/Dom/methods.mjs +392 -0
  104. package/src/mvc/Dom/props.mjs +77 -0
  105. package/src/mvc/Dom/vars.mjs +5 -0
  106. package/src/mvc/Events.mjs +337 -0
  107. package/src/mvc/Listener.mjs +33 -0
  108. package/src/mvc/Model.mjs +239 -0
  109. package/src/mvc/View.mjs +323 -0
  110. package/src/mvc/ViewBase.mjs +182 -0
  111. package/src/mvc/index.mjs +9 -0
  112. package/src/mvc/mvcUtils.mjs +90 -0
  113. package/src/polyfills/array.js +4 -0
  114. package/src/polyfills/base64.js +68 -0
  115. package/src/polyfills/index.mjs +5 -0
  116. package/src/polyfills/number.js +3 -0
  117. package/src/polyfills/string.js +3 -0
  118. package/src/polyfills/typedArray.js +47 -0
  119. package/src/routers/index.mjs +6 -0
  120. package/src/routers/manhattan.mjs +856 -0
  121. package/src/routers/metro.mjs +91 -0
  122. package/src/routers/normal.mjs +6 -0
  123. package/src/routers/oneSide.mjs +60 -0
  124. package/src/routers/orthogonal.mjs +323 -0
  125. package/src/routers/rightAngle.mjs +1056 -0
  126. package/src/shapes/index.mjs +3 -0
  127. package/src/shapes/standard.mjs +755 -0
  128. package/src/util/cloneCells.mjs +67 -0
  129. package/src/util/getRectPoint.mjs +65 -0
  130. package/src/util/index.mjs +5 -0
  131. package/src/util/svgTagTemplate.mjs +110 -0
  132. package/src/util/util.mjs +1754 -0
  133. package/src/util/utilHelpers.mjs +2402 -0
  134. package/src/util/wrappers.mjs +56 -0
  135. package/types/geometry.d.ts +815 -0
  136. package/types/index.d.ts +53 -0
  137. package/types/joint.d.ts +4391 -0
  138. package/types/joint.head.d.ts +12 -0
  139. package/types/vectorizer.d.ts +327 -0
package/LICENSE ADDED
@@ -0,0 +1,376 @@
1
+ Copyright 2013 client IO
2
+ http://client.io
3
+
4
+ Mozilla Public License Version 2.0
5
+ ==================================
6
+
7
+ 1. Definitions
8
+ --------------
9
+
10
+ 1.1. "Contributor"
11
+ means each individual or legal entity that creates, contributes to
12
+ the creation of, or owns Covered Software.
13
+
14
+ 1.2. "Contributor Version"
15
+ means the combination of the Contributions of others (if any) used
16
+ by a Contributor and that particular Contributor's Contribution.
17
+
18
+ 1.3. "Contribution"
19
+ means Covered Software of a particular Contributor.
20
+
21
+ 1.4. "Covered Software"
22
+ means Source Code Form to which the initial Contributor has attached
23
+ the notice in Exhibit A, the Executable Form of such Source Code
24
+ Form, and Modifications of such Source Code Form, in each case
25
+ including portions thereof.
26
+
27
+ 1.5. "Incompatible With Secondary Licenses"
28
+ means
29
+
30
+ (a) that the initial Contributor has attached the notice described
31
+ in Exhibit B to the Covered Software; or
32
+
33
+ (b) that the Covered Software was made available under the terms of
34
+ version 1.1 or earlier of the License, but not also under the
35
+ terms of a Secondary License.
36
+
37
+ 1.6. "Executable Form"
38
+ means any form of the work other than Source Code Form.
39
+
40
+ 1.7. "Larger Work"
41
+ means a work that combines Covered Software with other material, in
42
+ a separate file or files, that is not Covered Software.
43
+
44
+ 1.8. "License"
45
+ means this document.
46
+
47
+ 1.9. "Licensable"
48
+ means having the right to grant, to the maximum extent possible,
49
+ whether at the time of the initial grant or subsequently, any and
50
+ all of the rights conveyed by this License.
51
+
52
+ 1.10. "Modifications"
53
+ means any of the following:
54
+
55
+ (a) any file in Source Code Form that results from an addition to,
56
+ deletion from, or modification of the contents of Covered
57
+ Software; or
58
+
59
+ (b) any new file in Source Code Form that contains any Covered
60
+ Software.
61
+
62
+ 1.11. "Patent Claims" of a Contributor
63
+ means any patent claim(s), including without limitation, method,
64
+ process, and apparatus claims, in any patent Licensable by such
65
+ Contributor that would be infringed, but for the grant of the
66
+ License, by the making, using, selling, offering for sale, having
67
+ made, import, or transfer of either its Contributions or its
68
+ Contributor Version.
69
+
70
+ 1.12. "Secondary License"
71
+ means either the GNU General Public License, Version 2.0, the GNU
72
+ Lesser General Public License, Version 2.1, the GNU Affero General
73
+ Public License, Version 3.0, or any later versions of those
74
+ licenses.
75
+
76
+ 1.13. "Source Code Form"
77
+ means the form of the work preferred for making modifications.
78
+
79
+ 1.14. "You" (or "Your")
80
+ means an individual or a legal entity exercising rights under this
81
+ License. For legal entities, "You" includes any entity that
82
+ controls, is controlled by, or is under common control with You. For
83
+ purposes of this definition, "control" means (a) the power, direct
84
+ or indirect, to cause the direction or management of such entity,
85
+ whether by contract or otherwise, or (b) ownership of more than
86
+ fifty percent (50%) of the outstanding shares or beneficial
87
+ ownership of such entity.
88
+
89
+ 2. License Grants and Conditions
90
+ --------------------------------
91
+
92
+ 2.1. Grants
93
+
94
+ Each Contributor hereby grants You a world-wide, royalty-free,
95
+ non-exclusive license:
96
+
97
+ (a) under intellectual property rights (other than patent or trademark)
98
+ Licensable by such Contributor to use, reproduce, make available,
99
+ modify, display, perform, distribute, and otherwise exploit its
100
+ Contributions, either on an unmodified basis, with Modifications, or
101
+ as part of a Larger Work; and
102
+
103
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
104
+ for sale, have made, import, and otherwise transfer either its
105
+ Contributions or its Contributor Version.
106
+
107
+ 2.2. Effective Date
108
+
109
+ The licenses granted in Section 2.1 with respect to any Contribution
110
+ become effective for each Contribution on the date the Contributor first
111
+ distributes such Contribution.
112
+
113
+ 2.3. Limitations on Grant Scope
114
+
115
+ The licenses granted in this Section 2 are the only rights granted under
116
+ this License. No additional rights or licenses will be implied from the
117
+ distribution or licensing of Covered Software under this License.
118
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
119
+ Contributor:
120
+
121
+ (a) for any code that a Contributor has removed from Covered Software;
122
+ or
123
+
124
+ (b) for infringements caused by: (i) Your and any other third party's
125
+ modifications of Covered Software, or (ii) the combination of its
126
+ Contributions with other software (except as part of its Contributor
127
+ Version); or
128
+
129
+ (c) under Patent Claims infringed by Covered Software in the absence of
130
+ its Contributions.
131
+
132
+ This License does not grant any rights in the trademarks, service marks,
133
+ or logos of any Contributor (except as may be necessary to comply with
134
+ the notice requirements in Section 3.4).
135
+
136
+ 2.4. Subsequent Licenses
137
+
138
+ No Contributor makes additional grants as a result of Your choice to
139
+ distribute the Covered Software under a subsequent version of this
140
+ License (see Section 10.2) or under the terms of a Secondary License (if
141
+ permitted under the terms of Section 3.3).
142
+
143
+ 2.5. Representation
144
+
145
+ Each Contributor represents that the Contributor believes its
146
+ Contributions are its original creation(s) or it has sufficient rights
147
+ to grant the rights to its Contributions conveyed by this License.
148
+
149
+ 2.6. Fair Use
150
+
151
+ This License is not intended to limit any rights You have under
152
+ applicable copyright doctrines of fair use, fair dealing, or other
153
+ equivalents.
154
+
155
+ 2.7. Conditions
156
+
157
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
158
+ in Section 2.1.
159
+
160
+ 3. Responsibilities
161
+ -------------------
162
+
163
+ 3.1. Distribution of Source Form
164
+
165
+ All distribution of Covered Software in Source Code Form, including any
166
+ Modifications that You create or to which You contribute, must be under
167
+ the terms of this License. You must inform recipients that the Source
168
+ Code Form of the Covered Software is governed by the terms of this
169
+ License, and how they can obtain a copy of this License. You may not
170
+ attempt to alter or restrict the recipients' rights in the Source Code
171
+ Form.
172
+
173
+ 3.2. Distribution of Executable Form
174
+
175
+ If You distribute Covered Software in Executable Form then:
176
+
177
+ (a) such Covered Software must also be made available in Source Code
178
+ Form, as described in Section 3.1, and You must inform recipients of
179
+ the Executable Form how they can obtain a copy of such Source Code
180
+ Form by reasonable means in a timely manner, at a charge no more
181
+ than the cost of distribution to the recipient; and
182
+
183
+ (b) You may distribute such Executable Form under the terms of this
184
+ License, or sublicense it under different terms, provided that the
185
+ license for the Executable Form does not attempt to limit or alter
186
+ the recipients' rights in the Source Code Form under this License.
187
+
188
+ 3.3. Distribution of a Larger Work
189
+
190
+ You may create and distribute a Larger Work under terms of Your choice,
191
+ provided that You also comply with the requirements of this License for
192
+ the Covered Software. If the Larger Work is a combination of Covered
193
+ Software with a work governed by one or more Secondary Licenses, and the
194
+ Covered Software is not Incompatible With Secondary Licenses, this
195
+ License permits You to additionally distribute such Covered Software
196
+ under the terms of such Secondary License(s), so that the recipient of
197
+ the Larger Work may, at their option, further distribute the Covered
198
+ Software under the terms of either this License or such Secondary
199
+ License(s).
200
+
201
+ 3.4. Notices
202
+
203
+ You may not remove or alter the substance of any license notices
204
+ (including copyright notices, patent notices, disclaimers of warranty,
205
+ or limitations of liability) contained within the Source Code Form of
206
+ the Covered Software, except that You may alter any license notices to
207
+ the extent required to remedy known factual inaccuracies.
208
+
209
+ 3.5. Application of Additional Terms
210
+
211
+ You may choose to offer, and to charge a fee for, warranty, support,
212
+ indemnity or liability obligations to one or more recipients of Covered
213
+ Software. However, You may do so only on Your own behalf, and not on
214
+ behalf of any Contributor. You must make it absolutely clear that any
215
+ such warranty, support, indemnity, or liability obligation is offered by
216
+ You alone, and You hereby agree to indemnify every Contributor for any
217
+ liability incurred by such Contributor as a result of warranty, support,
218
+ indemnity or liability terms You offer. You may include additional
219
+ disclaimers of warranty and limitations of liability specific to any
220
+ jurisdiction.
221
+
222
+ 4. Inability to Comply Due to Statute or Regulation
223
+ ---------------------------------------------------
224
+
225
+ If it is impossible for You to comply with any of the terms of this
226
+ License with respect to some or all of the Covered Software due to
227
+ statute, judicial order, or regulation then You must: (a) comply with
228
+ the terms of this License to the maximum extent possible; and (b)
229
+ describe the limitations and the code they affect. Such description must
230
+ be placed in a text file included with all distributions of the Covered
231
+ Software under this License. Except to the extent prohibited by statute
232
+ or regulation, such description must be sufficiently detailed for a
233
+ recipient of ordinary skill to be able to understand it.
234
+
235
+ 5. Termination
236
+ --------------
237
+
238
+ 5.1. The rights granted under this License will terminate automatically
239
+ if You fail to comply with any of its terms. However, if You become
240
+ compliant, then the rights granted under this License from a particular
241
+ Contributor are reinstated (a) provisionally, unless and until such
242
+ Contributor explicitly and finally terminates Your grants, and (b) on an
243
+ ongoing basis, if such Contributor fails to notify You of the
244
+ non-compliance by some reasonable means prior to 60 days after You have
245
+ come back into compliance. Moreover, Your grants from a particular
246
+ Contributor are reinstated on an ongoing basis if such Contributor
247
+ notifies You of the non-compliance by some reasonable means, this is the
248
+ first time You have received notice of non-compliance with this License
249
+ from such Contributor, and You become compliant prior to 30 days after
250
+ Your receipt of the notice.
251
+
252
+ 5.2. If You initiate litigation against any entity by asserting a patent
253
+ infringement claim (excluding declaratory judgment actions,
254
+ counter-claims, and cross-claims) alleging that a Contributor Version
255
+ directly or indirectly infringes any patent, then the rights granted to
256
+ You by any and all Contributors for the Covered Software under Section
257
+ 2.1 of this License shall terminate.
258
+
259
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
260
+ end user license agreements (excluding distributors and resellers) which
261
+ have been validly granted by You or Your distributors under this License
262
+ prior to termination shall survive termination.
263
+
264
+ ************************************************************************
265
+ * *
266
+ * 6. Disclaimer of Warranty *
267
+ * ------------------------- *
268
+ * *
269
+ * Covered Software is provided under this License on an "as is" *
270
+ * basis, without warranty of any kind, either expressed, implied, or *
271
+ * statutory, including, without limitation, warranties that the *
272
+ * Covered Software is free of defects, merchantable, fit for a *
273
+ * particular purpose or non-infringing. The entire risk as to the *
274
+ * quality and performance of the Covered Software is with You. *
275
+ * Should any Covered Software prove defective in any respect, You *
276
+ * (not any Contributor) assume the cost of any necessary servicing, *
277
+ * repair, or correction. This disclaimer of warranty constitutes an *
278
+ * essential part of this License. No use of any Covered Software is *
279
+ * authorized under this License except under this disclaimer. *
280
+ * *
281
+ ************************************************************************
282
+
283
+ ************************************************************************
284
+ * *
285
+ * 7. Limitation of Liability *
286
+ * -------------------------- *
287
+ * *
288
+ * Under no circumstances and under no legal theory, whether tort *
289
+ * (including negligence), contract, or otherwise, shall any *
290
+ * Contributor, or anyone who distributes Covered Software as *
291
+ * permitted above, be liable to You for any direct, indirect, *
292
+ * special, incidental, or consequential damages of any character *
293
+ * including, without limitation, damages for lost profits, loss of *
294
+ * goodwill, work stoppage, computer failure or malfunction, or any *
295
+ * and all other commercial damages or losses, even if such party *
296
+ * shall have been informed of the possibility of such damages. This *
297
+ * limitation of liability shall not apply to liability for death or *
298
+ * personal injury resulting from such party's negligence to the *
299
+ * extent applicable law prohibits such limitation. Some *
300
+ * jurisdictions do not allow the exclusion or limitation of *
301
+ * incidental or consequential damages, so this exclusion and *
302
+ * limitation may not apply to You. *
303
+ * *
304
+ ************************************************************************
305
+
306
+ 8. Litigation
307
+ -------------
308
+
309
+ Any litigation relating to this License may be brought only in the
310
+ courts of a jurisdiction where the defendant maintains its principal
311
+ place of business and such litigation shall be governed by laws of that
312
+ jurisdiction, without reference to its conflict-of-law provisions.
313
+ Nothing in this Section shall prevent a party's ability to bring
314
+ cross-claims or counter-claims.
315
+
316
+ 9. Miscellaneous
317
+ ----------------
318
+
319
+ This License represents the complete agreement concerning the subject
320
+ matter hereof. If any provision of this License is held to be
321
+ unenforceable, such provision shall be reformed only to the extent
322
+ necessary to make it enforceable. Any law or regulation which provides
323
+ that the language of a contract shall be construed against the drafter
324
+ shall not be used to construe this License against a Contributor.
325
+
326
+ 10. Versions of the License
327
+ ---------------------------
328
+
329
+ 10.1. New Versions
330
+
331
+ Mozilla Foundation is the license steward. Except as provided in Section
332
+ 10.3, no one other than the license steward has the right to modify or
333
+ publish new versions of this License. Each version will be given a
334
+ distinguishing version number.
335
+
336
+ 10.2. Effect of New Versions
337
+
338
+ You may distribute the Covered Software under the terms of the version
339
+ of the License under which You originally received the Covered Software,
340
+ or under the terms of any subsequent version published by the license
341
+ steward.
342
+
343
+ 10.3. Modified Versions
344
+
345
+ If you create software not governed by this License, and you want to
346
+ create a new license for such software, you may create and use a
347
+ modified version of this License if you rename the license and remove
348
+ any references to the name of the license steward (except to note that
349
+ such modified license differs from this License).
350
+
351
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
352
+ Licenses
353
+
354
+ If You choose to distribute Source Code Form that is Incompatible With
355
+ Secondary Licenses under the terms of this version of the License, the
356
+ notice described in Exhibit B of this License must be attached.
357
+
358
+ Exhibit A - Source Code Form License Notice
359
+ -------------------------------------------
360
+
361
+ This Source Code Form is subject to the terms of the Mozilla Public
362
+ License, v. 2.0. If a copy of the MPL was not distributed with this
363
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
364
+
365
+ If it is not possible or desirable to put the notice in a particular
366
+ file, then You may include the notice in a location (such as a LICENSE
367
+ file in a relevant directory) where a recipient would be likely to look
368
+ for such a notice.
369
+
370
+ You may add additional accurate notices of copyright ownership.
371
+
372
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
373
+ ---------------------------------------------------------
374
+
375
+ This Source Code Form is "Incompatible With Secondary Licenses", as
376
+ defined by the Mozilla Public License, v. 2.0.
package/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # JointJS Core
2
+
3
+ The base of the *[JointJS](https://www.jointjs.com/)* library.
4
+
5
+ ## Development Environment
6
+
7
+ If you want to work on *JointJS* locally, use the following guidelines to get started.
8
+
9
+ ### Dependencies
10
+
11
+ Make sure you have the following dependencies installed on your system:
12
+ * [Node.js](https://nodejs.org/)
13
+ * [grunt-cli](http://gruntjs.com/using-the-cli)
14
+ * [git](https://git-scm.com/)
15
+ * [yarn](https://yarnpkg.com/getting-started/install)
16
+
17
+ ### Setup
18
+
19
+ Clone the root git repository:
20
+ ```bash
21
+ git clone https://github.com/clientIO/joint.git
22
+ ```
23
+
24
+ Navigate to the root `joint` directory:
25
+ ```bash
26
+ cd joint
27
+ ```
28
+
29
+ Install all dependencies:
30
+ ```bash
31
+ yarn install
32
+ ```
33
+
34
+ Generate distribution files from the source code:
35
+ ```bash
36
+ yarn run dist
37
+ ```
38
+
39
+ You are now ready to browse our demos:
40
+ ```bash
41
+ cd packages/joint-core/demo
42
+ ```
43
+ Most demos can be run by simply opening the `index.html` file in your browser. Some demos have additional instructions, which you can find in their respective `README.md` files.
44
+
45
+ ## License
46
+
47
+ The *JointJS* library is licensed under the [Mozilla Public License 2.0](https://github.com/clientIO/joint/blob/master/LICENSE).
48
+
49
+ Copyright © 2013-2024 client IO