@toolspack/ttd-common 0.2.8 → 0.2.9

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": "@toolspack/ttd-common",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "private": false,
5
5
  "main": "lib/ttd-common.umd.min.js",
6
6
  "scripts": {
@@ -466,14 +466,15 @@ export default {
466
466
  console.log(`-signFileKeyImage--certSN-${ certSN}`, item)
467
467
 
468
468
  try {
469
+ // 套印是 已左下角为原定, ukey 签署是以左上角未原点,并且,图像是图像的中心点 140/1.5/2 = 47
469
470
  let lacotionX = ''; let lacotionY = '';
470
471
  if (item.height) {
471
- lacotionX = Number(item.X)
472
+ lacotionX = Number(item.X) + 47
472
473
  lacotionY = Number(item.height) - Number(item.Y) - 47
473
474
  } else {
474
475
  // 于静 的签章标签,是未经处理的(无需Y轴颠倒),所以处理方式,和江湖的不一样,
475
- lacotionX = Number(item.X)
476
- lacotionY = Number(item.Y)
476
+ lacotionX = Number(item.X) + 47
477
+ lacotionY = Number(item.Y) - 47
477
478
  }
478
479
 
479
480
  console.log(` 参数 pageIndex = ${ item.pageIndex} x = ${ lacotionX} Y = ${ lacotionY}`)
@@ -114,7 +114,7 @@ export default {
114
114
  // 此动作用于点击其他区域时清除标签内动态生成的删除按钮
115
115
  const vm = this;
116
116
  document.onclick = () => {
117
- vm.removeElementsByClass('dele');
117
+ vm.removeElementsByClass('mouse-right-el');
118
118
  };
119
119
  const box = this.$refs.labelView
120
120
  const me = this
@@ -400,7 +400,7 @@ export default {
400
400
  if (!this.isclose && !this.isset) {
401
401
  return;
402
402
  }
403
- this.removeElementsByClass('dele');
403
+ this.removeElementsByClass('mouse-right-el');
404
404
  const x = e.offsetX;
405
405
  const y = e.offsetY;
406
406
  const oEm = document.createElement('ul');