@zenuml/core 2.0.25 → 2.0.27

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/embed.html CHANGED
@@ -41,6 +41,15 @@
41
41
  }
42
42
  }
43
43
 
44
+ if (action === 'get_png') {
45
+ try {
46
+ let png = await zenUml.getPng();
47
+ send_reply({ action: 'cmd_png', png });
48
+ } catch (e) {
49
+ send_error(e.message, e.stack);
50
+ }
51
+ }
52
+
44
53
  if (action === 'catch_clicks') {
45
54
  try {
46
55
  const top_origin = ev.origin;
@@ -176,7 +185,7 @@
176
185
  })();
177
186
  </script>
178
187
 
179
- <div id="diagram" class="diagram">
188
+ <div id="diagram" class="diagram" style="text-align: center">
180
189
  <pre class="zenuml"></pre>
181
190
  </div>
182
191
  <script type="module" src="src/main.ts"></script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenuml/core",
3
- "version": "2.0.25",
3
+ "version": "2.0.27",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "url": "https://github.com/ZenUml/core.git"