@zenuml/core 3.36.0 → 3.37.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.
package/index.html CHANGED
@@ -103,7 +103,7 @@
103
103
  <div class="bg-gray-800 text-white px-4 py-3">
104
104
  <h3 class="font-medium">Preview</h3>
105
105
  </div>
106
- <div style="height: calc(100% - 52px); overflow: auto;" class="p-4">
106
+ <div id="preview-scroll-root" style="height: calc(100% - 52px); overflow: auto;" class="p-4">
107
107
  <pre class="zenuml" style="margin: 0"></pre>
108
108
  </div>
109
109
  </div>
@@ -127,6 +127,7 @@
127
127
  const updateDiagram = debounce((content) => {
128
128
  const config = createConfig({
129
129
  onContentChange: (code) => editor.setValue(code),
130
+ scrollRoot: document.getElementById('preview-scroll-root'),
130
131
  });
131
132
 
132
133
  window.zenUml.render(content, config).then((r) => {
@@ -209,4 +210,4 @@ WebApp --> Customer: Order confirmation`
209
210
  </script>
210
211
  <script type="module" src="/src/main.tsx"></script>
211
212
  </body>
212
- </html>
213
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenuml/core",
3
- "version": "3.36.0",
3
+ "version": "3.37.0",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {