@r74tech/docusaurus-plugin-panzoom 2.4.4 → 2.4.5

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.4.5](https://github.com/r74tech/docusaurus-plugin-panzoom/compare/v2.4.4...v2.4.5) (2026-09-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * instantiate panzoom after element is wrapped in container ([#39](https://github.com/r74tech/docusaurus-plugin-panzoom/issues/39)) ([012fda2](https://github.com/r74tech/docusaurus-plugin-panzoom/commit/012fda2f82879fb0df284163ff673d8542e1ee66))
7
+
1
8
  ## [2.4.4](https://github.com/r74tech/docusaurus-plugin-panzoom/compare/v2.4.3...v2.4.4) (2026-09-10)
2
9
 
3
10
 
package/dist/PanZoom.js CHANGED
@@ -120,7 +120,6 @@ const zoomElements = (selectors) => {
120
120
  foundElements.push(...document.querySelectorAll(selector));
121
121
  });
122
122
  foundElements.forEach((element) => {
123
- const instance = (0, panzoom_1.default)(element, { excludeClass, ...panZoomConfig });
124
123
  let container;
125
124
  if (wrap) {
126
125
  const wrapper = document.createElement('div');
@@ -134,6 +133,7 @@ const zoomElements = (selectors) => {
134
133
  htmlElement.style.position = 'relative';
135
134
  container = htmlElement;
136
135
  }
136
+ const instance = (0, panzoom_1.default)(element, { excludeClass, ...panZoomConfig });
137
137
  addEventListeners(container, instance);
138
138
  // Add toolbar if enabled
139
139
  if (enabled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r74tech/docusaurus-plugin-panzoom",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "packageManager": "pnpm@11.24.0",
5
5
  "description": "A plugin to enable the panzoom component on SVG and other elements",
6
6
  "main": "dist/index.js",