@zenuml/core 3.36.0 → 3.38.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,8 @@
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'),
131
+ stickyStrategy: 'raf',
130
132
  });
131
133
 
132
134
  window.zenUml.render(content, config).then((r) => {
@@ -209,4 +211,4 @@ WebApp --> Customer: Order confirmation`
209
211
  </script>
210
212
  <script type="module" src="/src/main.tsx"></script>
211
213
  </body>
212
- </html>
214
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenuml/core",
3
- "version": "3.36.0",
3
+ "version": "3.38.0",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {