sigma-playground 1.0.10 → 1.0.11

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-25 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
3
+ Copyright (c) 2015-26 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,93 +1,17 @@
1
1
  <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->
2
2
 
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
3
  # sigma-playground
21
4
 
22
5
  [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/sigma-playground.svg)](https://www.npmjs.com/package/sigma-playground) [![Downloads](https://img.shields.io/npm/dt/sigma-playground.svg)](https://www.npmjs.com/package/sigma-playground) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/@johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github)
23
6
 
24
7
  <a href="https://www.buymeacoffee.com/H96WwChMy" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png" alt="Buy Me A Coffee"></a>
25
8
 
26
-
27
-
28
-
29
-
30
-
31
-
32
9
  > A web app to play with sigma.js graphs.
33
10
 
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
11
  [![sigma-playground](http://i.imgur.com/wHhPt2Z.png)](https://ionicabizau.github.io/sigma-playground)
45
12
 
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
-
72
- ## :question: Get Help
73
-
74
- There are few ways to get help:
75
-
76
-
77
-
78
- 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.
79
- 2. For bug reports and feature requests, open issues. :bug:
80
- 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
13
  ## :memo: Documentation
89
14
 
90
-
91
15
  +-----------------------------------+
92
16
  | WELCOME TO SIGMA.JS PLAYGROUND! |
93
17
  +-----------------------------------+
@@ -104,73 +28,38 @@ There are few ways to get help:
104
28
 
105
29
  So, have fun! :)
106
30
 
31
+ ## :question: Get Help
107
32
 
33
+ There are a few ways to get help:
108
34
 
35
+ 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long as you add a link to your Stack Overflow question.
36
+ 2. For bug reports and feature requests, open issues. :bug:
37
+ 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:
109
38
 
39
+ ## :yum: How to Contribute
110
40
 
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
- ## :yum: How to contribute
121
41
  Have an idea? Found a bug? See [how to contribute][contributing].
122
42
 
43
+ ## :sparkling_heart: Support My Projects
123
44
 
124
- ## :sparkling_heart: Support my projects
125
- I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,
126
- this takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).
127
-
128
- However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:
45
+ I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute it (even resell it).
129
46
 
47
+ However, if you get some profit from this or just want to encourage me to continue creating stuff, there are a few ways you can do it:
130
48
 
131
49
  - Starring and sharing the projects you like :rocket:
132
- - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:
50
+ - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you for years if you buy me one. :grin: :book:
133
51
  - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:
134
52
  - [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).
135
- - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`
136
-
137
- ![](https://i.imgur.com/z6OQI95.png)
53
+ - **Bitcoin**—You can send me bitcoins at this address (or by scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`
138
54
 
55
+ ![Bitcoin QR code](https://i.imgur.com/z6OQI95.png)
139
56
 
140
57
  Thanks! :heart:
141
58
 
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
59
  ## :scroll: License
166
60
 
167
61
  [MIT][license] © [Ionică Bizău][website]
168
62
 
169
-
170
-
171
-
172
-
173
-
174
63
  [license]: /LICENSE
175
64
  [website]: https://ionicabizau.net
176
65
  [contributing]: /CONTRIBUTING.md
@@ -180,5 +69,5 @@ Thanks! :heart:
180
69
  [badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg
181
70
  [badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg
182
71
  [patreon]: https://www.patreon.com/ionicabizau
183
- [amazon]: http://amzn.eu/hRo9sIZ
72
+ [amazon]: https://amzn.eu/hRo9sIZ
184
73
  [paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW
package/index.html CHANGED
File without changes
package/lib/index.js CHANGED
@@ -1,5 +1,3 @@
1
- "use strict";
2
-
3
1
  // Sigma stuff
4
2
  sigma = require("sigma");
5
3
  conrad = require("sigma/src/conrad.js");
@@ -12,19 +10,18 @@ require("sigma/plugins/sigma.renderers.parallelEdges/sigma.canvas.edges.curvedAr
12
10
  require("sigma/plugins/sigma.renderers.parallelEdges/sigma.canvas.edges.curve.js");
13
11
  require("sigma/plugins/sigma.renderers.parallelEdges/sigma.canvas.edges.labels.curve.js");
14
12
  require("sigma/plugins/sigma.renderers.parallelEdges/utils.js");
15
- sigma.renderers.def = sigma.renderers.canvas;
13
+ sigma.renderers.def = sigma.renderers.canvas
16
14
 
17
15
  var $result = document.getElementById("result");
18
16
 
19
- function update() {
20
- var result = null,
21
- input = editor.getValue();
17
+ function update () {
18
+ var result = null
19
+ , input = editor.getValue()
20
+ ;
22
21
 
23
22
  try {
24
23
  eval(input);
25
- } catch (e) {
26
- return;
27
- }
24
+ } catch (e) { return; }
28
25
 
29
26
  $result.textContent = result;
30
27
 
@@ -51,4 +48,4 @@ window.addEventListener("keydown", function (e) {
51
48
  }
52
49
  });
53
50
  editor.focus();
54
- update();
51
+ update();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigma-playground",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "A web app to play with sigma.js graphs.",
5
5
  "main": "index.html",
6
6
  "scripts": {
@@ -39,7 +39,6 @@
39
39
  "cli.js",
40
40
  "index.js",
41
41
  "index.d.ts",
42
- "package-lock.json",
43
42
  "bloggify.js",
44
43
  "bloggify.json",
45
44
  "bloggify/"