costy-plus 1.0.45-0 → 1.0.46-0

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.
@@ -7,7 +7,7 @@ declare class MXBackgroundGrid extends MXBackgroundGrid_base {
7
7
  protected watchGridConfig(): void;
8
8
  protected get cellMg(): number;
9
9
  protected mounted(): void;
10
- protected againInitGrid(): void;
10
+ protected againInitGrid: import("lodash").DebouncedFunc<() => void>;
11
11
  protected initGrid(): void;
12
12
  protected drawPoints(): void;
13
13
  protected drawRowAndCol(): void;
@@ -1,8 +1,8 @@
1
1
  import "vue";
2
2
  import w, { mixins as m } from "../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js";
3
3
  import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js";
4
- import { Watch as d } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js";
5
- import { debounce as C } from "@costy-plus/utils";
4
+ import { Watch as c } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js";
5
+ import { debounce as C } from "lodash";
6
6
  import I from "./PropsMinix.js";
7
7
  var p = Object.defineProperty, u = Object.getOwnPropertyDescriptor, g = (s, i, t, h) => {
8
8
  for (var e = h > 1 ? void 0 : h ? u(i, t) : i, n = s.length - 1, a; n >= 0; n--)
@@ -11,7 +11,9 @@ var p = Object.defineProperty, u = Object.getOwnPropertyDescriptor, g = (s, i, t
11
11
  };
12
12
  let l = class extends m(I) {
13
13
  constructor() {
14
- super(...arguments), this.canvasIns = Object.freeze(null);
14
+ super(...arguments), this.canvasIns = Object.freeze(null), this.againInitGrid = C(() => {
15
+ this.initGrid();
16
+ }, 100);
15
17
  }
16
18
  watchWidth() {
17
19
  this.againInitGrid();
@@ -28,9 +30,6 @@ let l = class extends m(I) {
28
30
  mounted() {
29
31
  this.initGrid();
30
32
  }
31
- againInitGrid() {
32
- this.initGrid();
33
- }
34
33
  initGrid() {
35
34
  if (this.canvasIns)
36
35
  this.canvasIns.clearRect(0, 0, this.width, this.height);
@@ -72,7 +71,7 @@ let l = class extends m(I) {
72
71
  this.afterDrawOver(this.canvasIns);
73
72
  }
74
73
  drawMesh() {
75
- var e, n, a, r, o, c, f, v;
74
+ var e, n, a, r, o, d, f, v;
76
75
  const s = this.gridConfig.lineWidth === 1 ? 0.5 : 0;
77
76
  let i = s, t = s, h = 0;
78
77
  for (this.beforeCtxDraw(
@@ -86,7 +85,7 @@ let l = class extends m(I) {
86
85
  this.gridConfig.bigCellColor,
87
86
  this.gridConfig.lineWidth
88
87
  ); i < this.width || t < this.height; )
89
- h % this.cellPoints === 0 && ((o = this.canvasIns) == null || o.moveTo(i, 0), (c = this.canvasIns) == null || c.lineTo(i, this.height), (f = this.canvasIns) == null || f.moveTo(0, t), (v = this.canvasIns) == null || v.lineTo(this.width, t)), i < this.width && (i += this.cellMg), t < this.height && (t += this.cellMg), h++;
88
+ h % this.cellPoints === 0 && ((o = this.canvasIns) == null || o.moveTo(i, 0), (d = this.canvasIns) == null || d.lineTo(i, this.height), (f = this.canvasIns) == null || f.moveTo(0, t), (v = this.canvasIns) == null || v.lineTo(this.width, t)), i < this.width && (i += this.cellMg), t < this.height && (t += this.cellMg), h++;
90
89
  this.afterDrawOver(this.canvasIns);
91
90
  }
92
91
  beforeCtxDraw(s, i, t) {
@@ -97,17 +96,14 @@ let l = class extends m(I) {
97
96
  }
98
97
  };
99
98
  g([
100
- d("width")
99
+ c("width")
101
100
  ], l.prototype, "watchWidth", 1);
102
101
  g([
103
- d("height")
102
+ c("height")
104
103
  ], l.prototype, "watchHeight", 1);
105
104
  g([
106
- d("gridConfig", { deep: !0 })
105
+ c("gridConfig", { deep: !0 })
107
106
  ], l.prototype, "watchGridConfig", 1);
108
- g([
109
- C(200)
110
- ], l.prototype, "againInitGrid", 1);
111
107
  l = g([
112
108
  w({
113
109
  name: "MXBackgroundGrid"
@@ -10,7 +10,7 @@ declare class CommonWaveForm extends CommonWaveForm_base {
10
10
  protected watchWidth(): void;
11
11
  protected watchHeight(): void;
12
12
  protected watchLongLeadConfig(): void;
13
- protected repaint(): void;
13
+ protected repaint: import("lodash").DebouncedFunc<() => void>;
14
14
  created(): void;
15
15
  mounted(): void;
16
16
  }
@@ -2,20 +2,29 @@ import "./style/index.css";
2
2
  import "vue";
3
3
  import d, { mixins as l } from "../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js";
4
4
  import "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js";
5
- import { Watch as a } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js";
5
+ import { Watch as r } from "../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js";
6
6
  import c from "../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.14/node_modules/vuescroll/dist/vuescroll-native.js";
7
- import { debounce as m } from "@costy-plus/utils";
8
- import f from "../MeasuringRuler/index2.js";
9
- import u from "../MagnifierWave/index.js";
7
+ import { debounce as m } from "lodash";
8
+ import u from "../MeasuringRuler/index2.js";
9
+ import f from "../MagnifierWave/index.js";
10
10
  import g from "../ParallelRuler/index2.js";
11
11
  import w from "../BackgroundGrid/index2.js";
12
12
  import C from "./method.js";
13
- var v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, i = (t, o, s, n) => {
14
- for (var r = n > 1 ? void 0 : n ? y(o, s) : o, p = t.length - 1, h; p >= 0; p--)
15
- (h = t[p]) && (r = (n ? h(o, s, r) : h(r)) || r);
16
- return n && r && v(o, s, r), r;
13
+ var v = Object.defineProperty, L = Object.getOwnPropertyDescriptor, o = (e, i, s, n) => {
14
+ for (var a = n > 1 ? void 0 : n ? L(i, s) : i, h = e.length - 1, p; h >= 0; h--)
15
+ (p = e[h]) && (a = (n ? p(i, s, a) : p(a)) || a);
16
+ return n && a && v(i, s, a), a;
17
17
  };
18
- let e = class extends l(C) {
18
+ let t = class extends l(C) {
19
+ constructor() {
20
+ super(...arguments), this.repaint = m(() => {
21
+ var e, i;
22
+ (e = this.sceneIns) == null || e.clear(), (i = this.sceneIns) == null || i.resize({
23
+ width: this.canvasContainer.width,
24
+ height: this.canvasContainer.height
25
+ }), this.initCreatedConfig(), this.combinationDrawing();
26
+ }, 200);
27
+ }
19
28
  watchVuescrollConfig() {
20
29
  this.repaint();
21
30
  }
@@ -29,8 +38,8 @@ let e = class extends l(C) {
29
38
  this.repaint();
30
39
  }
31
40
  watchLeadHeadConfig() {
32
- var t, o;
33
- (t = this.leadHeadGroup) == null || t.removeAll(), (o = this.sceneIns) == null || o.remove(this.leadHeadGroup), this.drawLeadHead();
41
+ var e, i;
42
+ (e = this.leadHeadGroup) == null || e.removeAll(), (i = this.sceneIns) == null || i.remove(this.leadHeadGroup), this.drawLeadHead();
34
43
  }
35
44
  watchLeadModel() {
36
45
  this.repaint();
@@ -42,15 +51,8 @@ let e = class extends l(C) {
42
51
  this.repaint();
43
52
  }
44
53
  watchLongLeadConfig() {
45
- var t;
46
- (t = this.sceneIns) == null || t.clear(), this.init();
47
- }
48
- repaint() {
49
- var t, o;
50
- (t = this.sceneIns) == null || t.clear(), (o = this.sceneIns) == null || o.resize({
51
- width: this.canvasContainer.width,
52
- height: this.canvasContainer.height
53
- }), this.initCreatedConfig(), this.combinationDrawing();
54
+ var e;
55
+ (e = this.sceneIns) == null || e.clear(), this.init();
54
56
  }
55
57
  created() {
56
58
  this.initCreatedConfig();
@@ -59,48 +61,45 @@ let e = class extends l(C) {
59
61
  this.init();
60
62
  }
61
63
  };
62
- i([
63
- a("vuescrollConfig", { deep: !0 })
64
- ], e.prototype, "watchVuescrollConfig", 1);
65
- i([
66
- a("analyseValues", { deep: !0 })
67
- ], e.prototype, "watchAnalyseValues", 1);
68
- i([
69
- a("waveConfigs", { deep: !0 })
70
- ], e.prototype, "watchWaveConfigs", 1);
71
- i([
72
- a("waveLists", { deep: !0 })
73
- ], e.prototype, "watchWaveLists", 1);
74
- i([
75
- a("leadHeadConfig", { deep: !0 })
76
- ], e.prototype, "watchLeadHeadConfig", 1);
77
- i([
78
- a("leadModel", { deep: !0 })
79
- ], e.prototype, "watchLeadModel", 1);
80
- i([
81
- a("width")
82
- ], e.prototype, "watchWidth", 1);
83
- i([
84
- a("height")
85
- ], e.prototype, "watchHeight", 1);
86
- i([
87
- a("longLeadConfig", { deep: !0 })
88
- ], e.prototype, "watchLongLeadConfig", 1);
89
- i([
90
- m(100)
91
- ], e.prototype, "repaint", 1);
92
- e = i([
64
+ o([
65
+ r("vuescrollConfig", { deep: !0 })
66
+ ], t.prototype, "watchVuescrollConfig", 1);
67
+ o([
68
+ r("analyseValues", { deep: !0 })
69
+ ], t.prototype, "watchAnalyseValues", 1);
70
+ o([
71
+ r("waveConfigs", { deep: !0 })
72
+ ], t.prototype, "watchWaveConfigs", 1);
73
+ o([
74
+ r("waveLists", { deep: !0 })
75
+ ], t.prototype, "watchWaveLists", 1);
76
+ o([
77
+ r("leadHeadConfig", { deep: !0 })
78
+ ], t.prototype, "watchLeadHeadConfig", 1);
79
+ o([
80
+ r("leadModel", { deep: !0 })
81
+ ], t.prototype, "watchLeadModel", 1);
82
+ o([
83
+ r("width")
84
+ ], t.prototype, "watchWidth", 1);
85
+ o([
86
+ r("height")
87
+ ], t.prototype, "watchHeight", 1);
88
+ o([
89
+ r("longLeadConfig", { deep: !0 })
90
+ ], t.prototype, "watchLongLeadConfig", 1);
91
+ t = o([
93
92
  d({
94
93
  name: "CommonWaveForm",
95
94
  components: {
96
95
  vueScroll: c,
97
96
  MXBackgroundGrid: w,
98
- MXMeasuringRuler: f,
97
+ MXMeasuringRuler: u,
99
98
  MXParallelRuler: g,
100
- MXMagnifierWave: u
99
+ MXMagnifierWave: f
101
100
  }
102
101
  })
103
- ], e);
102
+ ], t);
104
103
  export {
105
- e as default
104
+ t as default
106
105
  };
@@ -7,7 +7,7 @@ declare class MXBackgroundGrid extends MXBackgroundGrid_base {
7
7
  protected watchGridConfig(): void;
8
8
  protected get cellMg(): number;
9
9
  protected mounted(): void;
10
- protected againInitGrid(): void;
10
+ protected againInitGrid: import("lodash").DebouncedFunc<() => void>;
11
11
  protected initGrid(): void;
12
12
  protected drawPoints(): void;
13
13
  protected drawRowAndCol(): void;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("vue");const f=require("../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js");require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js");const d=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js"),u=require("@costy-plus/utils"),w=require("./PropsMinix.js");var m=Object.defineProperty,p=Object.getOwnPropertyDescriptor,l=(s,i,t,e)=>{for(var h=e>1?void 0:e?p(i,t):i,n=s.length-1,o;n>=0;n--)(o=s[n])&&(h=(e?o(i,t,h):o(h))||h);return e&&h&&m(i,t,h),h};exports.default=class extends f.mixins(w.default){constructor(){super(...arguments),this.canvasIns=Object.freeze(null)}watchWidth(){this.againInitGrid()}watchHeight(){this.againInitGrid()}watchGridConfig(){this.againInitGrid()}get cellMg(){return this.gridConfig.cellMg*this.magnification}mounted(){this.initGrid()}againInitGrid(){this.initGrid()}initGrid(){if(this.canvasIns)this.canvasIns.clearRect(0,0,this.width,this.height);else{const s=document.getElementById(this.layerId);this.canvasIns=s.getContext("2d")}this.model===0?(this.drawPoints(),this.drawRowAndCol()):this.model===1&&this.drawMesh()}drawPoints(){var o,r;let i=this.gridConfig.lineWidth===1?.5:0,t=this.cellMg;const e=[],h=this.magnification>1?this.gridConfig.lineWidth+1:this.gridConfig.lineWidth;for(this.beforeCtxDraw(this.canvasIns,this.gridConfig.smallCellColor,h);t<this.width;)e.push(t),t%this.cellMg===0?t+=h:t+=this.cellMg-h;let n=0;for(;i<this.height;){if(n%this.cellPoints!==0)for(let a=0;a<e.length;a++)(a+2)%this.cellPoints!==0&&a%2===0&&((o=this.canvasIns)==null||o.moveTo(e[a],i),(r=this.canvasIns)==null||r.lineTo(e[a+1],i));i+=this.cellMg,n++}this.afterDrawOver(this.canvasIns)}drawRowAndCol(){var h,n,o,r;const s=this.gridConfig.lineWidth===1?.5:0;let i=s,t=s,e=0;for(this.beforeCtxDraw(this.canvasIns,this.gridConfig.bigCellColor,this.gridConfig.lineWidth);i<this.width||t<this.height;)e%this.cellPoints===0&&((h=this.canvasIns)==null||h.moveTo(i,0),(n=this.canvasIns)==null||n.lineTo(i,this.height),(o=this.canvasIns)==null||o.moveTo(0,t),(r=this.canvasIns)==null||r.lineTo(this.width,t)),i<this.width&&(i+=this.cellMg),t<this.height&&(t+=this.cellMg),e++;this.afterDrawOver(this.canvasIns)}drawMesh(){var h,n,o,r,a,c,g,v;const s=this.gridConfig.lineWidth===1?.5:0;let i=s,t=s,e=0;for(this.beforeCtxDraw(this.canvasIns,this.gridConfig.smallCellColor,this.gridConfig.lineWidth);i<this.width||t<this.height;)e%this.cellPoints!==0&&((h=this.canvasIns)==null||h.moveTo(i,0),(n=this.canvasIns)==null||n.lineTo(i,this.height),(o=this.canvasIns)==null||o.moveTo(0,t),(r=this.canvasIns)==null||r.lineTo(this.width,t)),i<this.width&&(i+=this.cellMg),t<this.height&&(t+=this.cellMg),e++;for(this.afterDrawOver(this.canvasIns),i=t=s,e=0,this.beforeCtxDraw(this.canvasIns,this.gridConfig.bigCellColor,this.gridConfig.lineWidth);i<this.width||t<this.height;)e%this.cellPoints===0&&((a=this.canvasIns)==null||a.moveTo(i,0),(c=this.canvasIns)==null||c.lineTo(i,this.height),(g=this.canvasIns)==null||g.moveTo(0,t),(v=this.canvasIns)==null||v.lineTo(this.width,t)),i<this.width&&(i+=this.cellMg),t<this.height&&(t+=this.cellMg),e++;this.afterDrawOver(this.canvasIns)}beforeCtxDraw(s,i,t){s.save(),s.beginPath(),s.strokeStyle=i,s.lineWidth=t}afterDrawOver(s){s.stroke(),s.restore()}};l([d.Watch("width")],exports.default.prototype,"watchWidth",1);l([d.Watch("height")],exports.default.prototype,"watchHeight",1);l([d.Watch("gridConfig",{deep:!0})],exports.default.prototype,"watchGridConfig",1);l([u.debounce(200)],exports.default.prototype,"againInitGrid",1);exports.default=l([f.default({name:"MXBackgroundGrid"})],exports.default);
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("vue");const f=require("../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js");require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js");const d=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js"),u=require("lodash"),w=require("./PropsMinix.js");var m=Object.defineProperty,p=Object.getOwnPropertyDescriptor,l=(s,i,t,e)=>{for(var h=e>1?void 0:e?p(i,t):i,n=s.length-1,o;n>=0;n--)(o=s[n])&&(h=(e?o(i,t,h):o(h))||h);return e&&h&&m(i,t,h),h};exports.default=class extends f.mixins(w.default){constructor(){super(...arguments),this.canvasIns=Object.freeze(null),this.againInitGrid=u.debounce(()=>{this.initGrid()},100)}watchWidth(){this.againInitGrid()}watchHeight(){this.againInitGrid()}watchGridConfig(){this.againInitGrid()}get cellMg(){return this.gridConfig.cellMg*this.magnification}mounted(){this.initGrid()}initGrid(){if(this.canvasIns)this.canvasIns.clearRect(0,0,this.width,this.height);else{const s=document.getElementById(this.layerId);this.canvasIns=s.getContext("2d")}this.model===0?(this.drawPoints(),this.drawRowAndCol()):this.model===1&&this.drawMesh()}drawPoints(){var o,r;let i=this.gridConfig.lineWidth===1?.5:0,t=this.cellMg;const e=[],h=this.magnification>1?this.gridConfig.lineWidth+1:this.gridConfig.lineWidth;for(this.beforeCtxDraw(this.canvasIns,this.gridConfig.smallCellColor,h);t<this.width;)e.push(t),t%this.cellMg===0?t+=h:t+=this.cellMg-h;let n=0;for(;i<this.height;){if(n%this.cellPoints!==0)for(let a=0;a<e.length;a++)(a+2)%this.cellPoints!==0&&a%2===0&&((o=this.canvasIns)==null||o.moveTo(e[a],i),(r=this.canvasIns)==null||r.lineTo(e[a+1],i));i+=this.cellMg,n++}this.afterDrawOver(this.canvasIns)}drawRowAndCol(){var h,n,o,r;const s=this.gridConfig.lineWidth===1?.5:0;let i=s,t=s,e=0;for(this.beforeCtxDraw(this.canvasIns,this.gridConfig.bigCellColor,this.gridConfig.lineWidth);i<this.width||t<this.height;)e%this.cellPoints===0&&((h=this.canvasIns)==null||h.moveTo(i,0),(n=this.canvasIns)==null||n.lineTo(i,this.height),(o=this.canvasIns)==null||o.moveTo(0,t),(r=this.canvasIns)==null||r.lineTo(this.width,t)),i<this.width&&(i+=this.cellMg),t<this.height&&(t+=this.cellMg),e++;this.afterDrawOver(this.canvasIns)}drawMesh(){var h,n,o,r,a,c,g,v;const s=this.gridConfig.lineWidth===1?.5:0;let i=s,t=s,e=0;for(this.beforeCtxDraw(this.canvasIns,this.gridConfig.smallCellColor,this.gridConfig.lineWidth);i<this.width||t<this.height;)e%this.cellPoints!==0&&((h=this.canvasIns)==null||h.moveTo(i,0),(n=this.canvasIns)==null||n.lineTo(i,this.height),(o=this.canvasIns)==null||o.moveTo(0,t),(r=this.canvasIns)==null||r.lineTo(this.width,t)),i<this.width&&(i+=this.cellMg),t<this.height&&(t+=this.cellMg),e++;for(this.afterDrawOver(this.canvasIns),i=t=s,e=0,this.beforeCtxDraw(this.canvasIns,this.gridConfig.bigCellColor,this.gridConfig.lineWidth);i<this.width||t<this.height;)e%this.cellPoints===0&&((a=this.canvasIns)==null||a.moveTo(i,0),(c=this.canvasIns)==null||c.lineTo(i,this.height),(g=this.canvasIns)==null||g.moveTo(0,t),(v=this.canvasIns)==null||v.lineTo(this.width,t)),i<this.width&&(i+=this.cellMg),t<this.height&&(t+=this.cellMg),e++;this.afterDrawOver(this.canvasIns)}beforeCtxDraw(s,i,t){s.save(),s.beginPath(),s.strokeStyle=i,s.lineWidth=t}afterDrawOver(s){s.stroke(),s.restore()}};l([d.Watch("width")],exports.default.prototype,"watchWidth",1);l([d.Watch("height")],exports.default.prototype,"watchHeight",1);l([d.Watch("gridConfig",{deep:!0})],exports.default.prototype,"watchGridConfig",1);exports.default=l([f.default({name:"MXBackgroundGrid"})],exports.default);
@@ -10,7 +10,7 @@ declare class CommonWaveForm extends CommonWaveForm_base {
10
10
  protected watchWidth(): void;
11
11
  protected watchHeight(): void;
12
12
  protected watchLongLeadConfig(): void;
13
- protected repaint(): void;
13
+ protected repaint: import("lodash").DebouncedFunc<() => void>;
14
14
  created(): void;
15
15
  mounted(): void;
16
16
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./style/index.css");require("vue");const u=require("../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js");require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js");const o=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js"),l=require("../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.14/node_modules/vuescroll/dist/vuescroll-native.js"),c=require("@costy-plus/utils"),p=require("../MeasuringRuler/index2.js"),h=require("../MagnifierWave/index.js"),v=require("../ParallelRuler/index2.js"),f=require("../BackgroundGrid/index2.js"),m=require("./method.js");var g=Object.defineProperty,w=Object.getOwnPropertyDescriptor,t=(e,a,i,s)=>{for(var r=s>1?void 0:s?w(a,i):a,n=e.length-1,d;n>=0;n--)(d=e[n])&&(r=(s?d(a,i,r):d(r))||r);return s&&r&&g(a,i,r),r};exports.default=class extends u.mixins(m.default){watchVuescrollConfig(){this.repaint()}watchAnalyseValues(){this.repaint()}watchWaveConfigs(){this.repaint()}watchWaveLists(){this.repaint()}watchLeadHeadConfig(){var e,a;(e=this.leadHeadGroup)==null||e.removeAll(),(a=this.sceneIns)==null||a.remove(this.leadHeadGroup),this.drawLeadHead()}watchLeadModel(){this.repaint()}watchWidth(){this.repaint()}watchHeight(){this.repaint()}watchLongLeadConfig(){var e;(e=this.sceneIns)==null||e.clear(),this.init()}repaint(){var e,a;(e=this.sceneIns)==null||e.clear(),(a=this.sceneIns)==null||a.resize({width:this.canvasContainer.width,height:this.canvasContainer.height}),this.initCreatedConfig(),this.combinationDrawing()}created(){this.initCreatedConfig()}mounted(){this.init()}};t([o.Watch("vuescrollConfig",{deep:!0})],exports.default.prototype,"watchVuescrollConfig",1);t([o.Watch("analyseValues",{deep:!0})],exports.default.prototype,"watchAnalyseValues",1);t([o.Watch("waveConfigs",{deep:!0})],exports.default.prototype,"watchWaveConfigs",1);t([o.Watch("waveLists",{deep:!0})],exports.default.prototype,"watchWaveLists",1);t([o.Watch("leadHeadConfig",{deep:!0})],exports.default.prototype,"watchLeadHeadConfig",1);t([o.Watch("leadModel",{deep:!0})],exports.default.prototype,"watchLeadModel",1);t([o.Watch("width")],exports.default.prototype,"watchWidth",1);t([o.Watch("height")],exports.default.prototype,"watchHeight",1);t([o.Watch("longLeadConfig",{deep:!0})],exports.default.prototype,"watchLongLeadConfig",1);t([c.debounce(100)],exports.default.prototype,"repaint",1);exports.default=t([u.default({name:"CommonWaveForm",components:{vueScroll:l.default,MXBackgroundGrid:f.default,MXMeasuringRuler:p.default,MXParallelRuler:v.default,MXMagnifierWave:h.default}})],exports.default);
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});require("./style/index.css");require("vue");const u=require("../../node_modules/.pnpm/vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-class-component/dist/vue-class-component.esm.js");require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Emit.js");const o=require("../../node_modules/.pnpm/vue-property-decorator@9.1.2_vue-class-component@7.2.6_vue@2.6.14/node_modules/vue-property-decorator/lib/decorators/Watch.js"),l=require("../../node_modules/.pnpm/vuescroll@4.17.5_vue@2.7.14/node_modules/vuescroll/dist/vuescroll-native.js"),c=require("lodash"),h=require("../MeasuringRuler/index2.js"),p=require("../MagnifierWave/index.js"),v=require("../ParallelRuler/index2.js"),f=require("../BackgroundGrid/index2.js"),m=require("./method.js");var g=Object.defineProperty,w=Object.getOwnPropertyDescriptor,a=(e,t,n,s)=>{for(var r=s>1?void 0:s?w(t,n):t,i=e.length-1,d;i>=0;i--)(d=e[i])&&(r=(s?d(t,n,r):d(r))||r);return s&&r&&g(t,n,r),r};exports.default=class extends u.mixins(m.default){constructor(){super(...arguments),this.repaint=c.debounce(()=>{var e,t;(e=this.sceneIns)==null||e.clear(),(t=this.sceneIns)==null||t.resize({width:this.canvasContainer.width,height:this.canvasContainer.height}),this.initCreatedConfig(),this.combinationDrawing()},200)}watchVuescrollConfig(){this.repaint()}watchAnalyseValues(){this.repaint()}watchWaveConfigs(){this.repaint()}watchWaveLists(){this.repaint()}watchLeadHeadConfig(){var e,t;(e=this.leadHeadGroup)==null||e.removeAll(),(t=this.sceneIns)==null||t.remove(this.leadHeadGroup),this.drawLeadHead()}watchLeadModel(){this.repaint()}watchWidth(){this.repaint()}watchHeight(){this.repaint()}watchLongLeadConfig(){var e;(e=this.sceneIns)==null||e.clear(),this.init()}created(){this.initCreatedConfig()}mounted(){this.init()}};a([o.Watch("vuescrollConfig",{deep:!0})],exports.default.prototype,"watchVuescrollConfig",1);a([o.Watch("analyseValues",{deep:!0})],exports.default.prototype,"watchAnalyseValues",1);a([o.Watch("waveConfigs",{deep:!0})],exports.default.prototype,"watchWaveConfigs",1);a([o.Watch("waveLists",{deep:!0})],exports.default.prototype,"watchWaveLists",1);a([o.Watch("leadHeadConfig",{deep:!0})],exports.default.prototype,"watchLeadHeadConfig",1);a([o.Watch("leadModel",{deep:!0})],exports.default.prototype,"watchLeadModel",1);a([o.Watch("width")],exports.default.prototype,"watchWidth",1);a([o.Watch("height")],exports.default.prototype,"watchHeight",1);a([o.Watch("longLeadConfig",{deep:!0})],exports.default.prototype,"watchLongLeadConfig",1);exports.default=a([u.default({name:"CommonWaveForm",components:{vueScroll:l.default,MXBackgroundGrid:f.default,MXMeasuringRuler:h.default,MXParallelRuler:v.default,MXMagnifierWave:p.default}})],exports.default);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "costy-plus",
3
- "version": "1.0.45-0",
3
+ "version": "1.0.46-0",
4
4
  "main": "dist/lib/index.js",
5
5
  "module": "dist/es/index.js",
6
6
  "types": "dist/es/index.d.ts",