visio-svelte-viewer 0.7.0 → 0.7.2

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.
@@ -24,7 +24,7 @@
24
24
  export function getState() { return readonly(state); }
25
25
  export function getHandle() { return handle; }
26
26
  export function load(source: VsdxSource) { return handle.load(source); }
27
- export function createBlankDrawing(options?: CreateVsdxOptions) { return handle.createBlankDrawing(options); }
27
+ export function createBlankDrawing(blankOptions?: CreateVsdxOptions) { return handle.createBlankDrawing(blankOptions); }
28
28
  export function applyEdits(edits: readonly VisioEdit[]) { return handle.applyEdits(edits); }
29
29
  export function selectShapes(shapes: readonly VisioShapeSelection[]) { handle.selectShapes(shapes); }
30
30
  export function selectAll() { handle.selectAll(); }
@@ -41,7 +41,7 @@
41
41
  export function fit() { handle.fit(); }
42
42
  export function setLayerVisibility(pageId: string, layerId: string, visible: boolean | null) { handle.setLayerVisibility(pageId, layerId, visible); }
43
43
  export function resetLayerVisibility(pageId?: string) { handle.resetLayerVisibility(pageId); }
44
- export function exportSvg(options?: SvgExportOptions) { return handle.exportSvg(options); }
45
- export function createPrintSnapshot(options?: CurrentPagePrintSnapshotOptions) { return handle.createPrintSnapshot(options); }
44
+ export function exportSvg(svgOptions?: SvgExportOptions) { return handle.exportSvg(svgOptions); }
45
+ export function createPrintSnapshot(printOptions?: CurrentPagePrintSnapshotOptions) { return handle.createPrintSnapshot(printOptions); }
46
46
  </script>
47
47
  <div class={className} {style} aria-label={ariaLabel} use:attach={options}></div>
package/dist/index.js CHANGED
@@ -188,8 +188,8 @@ function VisioViewer($$anchor, $$props) {
188
188
  function load(source) {
189
189
  return handle.load(source);
190
190
  }
191
- function createBlankDrawing(options) {
192
- return handle.createBlankDrawing(options);
191
+ function createBlankDrawing(blankOptions) {
192
+ return handle.createBlankDrawing(blankOptions);
193
193
  }
194
194
  function applyEdits(edits) {
195
195
  return handle.applyEdits(edits);
@@ -239,11 +239,11 @@ function VisioViewer($$anchor, $$props) {
239
239
  function resetLayerVisibility(pageId) {
240
240
  handle.resetLayerVisibility(pageId);
241
241
  }
242
- function exportSvg(options) {
243
- return handle.exportSvg(options);
242
+ function exportSvg(svgOptions) {
243
+ return handle.exportSvg(svgOptions);
244
244
  }
245
- function createPrintSnapshot(options) {
246
- return handle.createPrintSnapshot(options);
245
+ function createPrintSnapshot(printOptions) {
246
+ return handle.createPrintSnapshot(printOptions);
247
247
  }
248
248
  var $$exports = {
249
249
  getState,
@@ -106,8 +106,8 @@ function VisioViewer($$renderer, $$props) {
106
106
  function load(source) {
107
107
  return handle.load(source);
108
108
  }
109
- function createBlankDrawing(options) {
110
- return handle.createBlankDrawing(options);
109
+ function createBlankDrawing(blankOptions) {
110
+ return handle.createBlankDrawing(blankOptions);
111
111
  }
112
112
  function applyEdits(edits) {
113
113
  return handle.applyEdits(edits);
@@ -157,11 +157,11 @@ function VisioViewer($$renderer, $$props) {
157
157
  function resetLayerVisibility(pageId) {
158
158
  handle.resetLayerVisibility(pageId);
159
159
  }
160
- function exportSvg(options) {
161
- return handle.exportSvg(options);
160
+ function exportSvg(svgOptions) {
161
+ return handle.exportSvg(svgOptions);
162
162
  }
163
- function createPrintSnapshot(options) {
164
- return handle.createPrintSnapshot(options);
163
+ function createPrintSnapshot(printOptions) {
164
+ return handle.createPrintSnapshot(printOptions);
165
165
  }
166
166
  $$renderer.push(`<div${$.attr_class($.clsx(className))}${$.attr_style(style)}${$.attr("aria-label", ariaLabel)}></div>`);
167
167
  $.bind_props($$props, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "visio-svelte-viewer",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "Local-first Visio viewer for svelte",
5
5
  "homepage": "https://christophervr.github.io/ooxml/visio/",
6
6
  "bugs": {
@@ -37,9 +37,9 @@
37
37
  "access": "public"
38
38
  },
39
39
  "dependencies": {
40
- "emf-converter": "4.11.2",
41
- "ooxml-core": "^1.8.0",
42
- "ooxml-ui": "^1.8.0",
40
+ "emf-converter": "4.18.1",
41
+ "ooxml-core": "^1.11.0",
42
+ "ooxml-ui": "^1.11.0",
43
43
  "visio-core": "^0.4.1"
44
44
  },
45
45
  "peerDependencies": {