atr-components 0.2.231 → 0.2.233
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/esm2020/core/utils/ToolsUtil.mjs +3 -3
- package/esm2020/lib/shared/img-canvas/img-canvas.component.mjs +2 -1
- package/fesm2015/atr-components.mjs +3 -2
- package/fesm2015/atr-components.mjs.map +1 -1
- package/fesm2020/atr-components.mjs +3 -2
- package/fesm2020/atr-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -238,7 +238,7 @@ class ToolsUtil {
|
|
|
238
238
|
return;
|
|
239
239
|
}
|
|
240
240
|
//判断射线重合并且点在边上
|
|
241
|
-
if ((startY == endY)
|
|
241
|
+
if ((startY == endY == py)
|
|
242
242
|
&& ((px > endX && px < startX
|
|
243
243
|
|| (px < endX && px > startX)))) {
|
|
244
244
|
inRect = true;
|
|
@@ -403,7 +403,7 @@ class ToolsUtil {
|
|
|
403
403
|
if (url.startsWith("http")) {
|
|
404
404
|
return url;
|
|
405
405
|
}
|
|
406
|
-
return atr_static_datas.STATIC_OSS_URL + url;
|
|
406
|
+
return atr_static_datas.STATIC_OSS_URL + url + "?v=" + new Date().getTime();
|
|
407
407
|
}
|
|
408
408
|
static removeHtml(value) {
|
|
409
409
|
if (!value) {
|
|
@@ -4795,6 +4795,7 @@ class ImgCanvasComponent {
|
|
|
4795
4795
|
let context1 = this.canvasDom.getContext('2d');
|
|
4796
4796
|
this.img = new Image(); //创建img元素
|
|
4797
4797
|
this.img.setAttribute('crossOrigin', 'anonymous');
|
|
4798
|
+
this.img.crossOrigin = 'anonymous';
|
|
4798
4799
|
this.img.src = this.imgUrl; //设置图片源地址
|
|
4799
4800
|
// this.img.src = ToolsUtil.getOssUrl(this.imgUrl);//设置图片源地址
|
|
4800
4801
|
this.img.onload = () => {
|