yh-hiprint 2.6.20 → 2.6.21

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.
@@ -455,6 +455,12 @@
455
455
 
456
456
  const {paperType, paperTypeName, paperTypesObj, paperWidth, paperHeight, setPaper} = usePaper();
457
457
 
458
+ function setPaperHandler(type) {
459
+ setPaper(type, () => {
460
+ hiprintTemplate.value.setPaper(paperWidth.value, paperHeight.value);
461
+ });
462
+ }
463
+
458
464
  const canvasRef = ref();
459
465
  const {scaleValue, scalePercentage, canZoomIn, canZoomOut, zoomIn, zoomOut} = useScale(() => {
460
466
  hiprintTemplate.value?.zoom(scaleValue.value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yh-hiprint",
3
- "version": "2.6.20",
3
+ "version": "2.6.21",
4
4
  "description": "Hiprint for Vue3 by NoahLiu in ForceCon in Hunan Changesha",
5
5
  "type": "module",
6
6
  "exports": {