uni-canvas-image 1.0.3 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uni-canvas-image",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "租房项目使用uniapp canvas合并图片",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -76,7 +76,7 @@ export async function drawImageToCanvas(arr, canvasId = 'canvas-1', api) {
76
76
  uni.canvasToTempFilePath({
77
77
  canvasId,
78
78
  fileType: 'jpg',
79
- quality: 0.1,
79
+ quality: 1,
80
80
  destWidth: 1500,
81
81
  destHeight: 1200,
82
82
  success: async (tempRes) => {
@@ -118,7 +118,7 @@ function hanleTagsInfo(tags, x = 14, y = 224) {
118
118
  return {
119
119
  type: 'rect',
120
120
  x: tag.x - 4,
121
- y: tag.y - 6,
121
+ y: tag.y - 4,
122
122
  width: tag.text.length * 12 + 8,
123
123
  height: 20,
124
124
  borderRadius: 4,