@inweb/markup 25.8.22 → 25.9.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.
- package/dist/markup.js +60 -9
- package/dist/markup.js.map +1 -1
- package/dist/markup.min.js +1 -1
- package/dist/markup.module.js +1 -1
- package/dist/markup.module.js.map +1 -1
- package/lib/markup/Konva/KonvaImage.d.ts +1 -1
- package/package.json +4 -4
- package/src/markup/IMarkup.ts +0 -1
- package/src/markup/Konva/KonvaImage.ts +1 -1
package/dist/markup.js
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
: {};
|
|
37
37
|
exports.Konva = {
|
|
38
38
|
_global: exports.glob,
|
|
39
|
-
version: '9.3.
|
|
39
|
+
version: '9.3.14',
|
|
40
40
|
isBrowser: detectBrowser(),
|
|
41
41
|
isUnminified: /param/.test(function (param) { }.toString()),
|
|
42
42
|
dblClickWindow: 400,
|
|
@@ -4548,7 +4548,13 @@
|
|
|
4548
4548
|
context.stroke();
|
|
4549
4549
|
}
|
|
4550
4550
|
function _fillFuncHit(context) {
|
|
4551
|
-
|
|
4551
|
+
const fillRule = this.attrs.fillRule;
|
|
4552
|
+
if (fillRule) {
|
|
4553
|
+
context.fill(fillRule);
|
|
4554
|
+
}
|
|
4555
|
+
else {
|
|
4556
|
+
context.fill();
|
|
4557
|
+
}
|
|
4552
4558
|
}
|
|
4553
4559
|
function _strokeFuncHit(context) {
|
|
4554
4560
|
context.stroke();
|
|
@@ -7930,7 +7936,7 @@
|
|
|
7930
7936
|
const Shape_1$a = Shape;
|
|
7931
7937
|
const Global_1$a = Global;
|
|
7932
7938
|
const Validators_1$p = Validators;
|
|
7933
|
-
|
|
7939
|
+
let Image$1 = class Image extends Shape_1$a.Shape {
|
|
7934
7940
|
constructor(attrs) {
|
|
7935
7941
|
super(attrs);
|
|
7936
7942
|
this.on('imageChange.konva', () => {
|
|
@@ -7953,6 +7959,11 @@
|
|
|
7953
7959
|
}
|
|
7954
7960
|
}
|
|
7955
7961
|
_useBufferCanvas() {
|
|
7962
|
+
const hasCornerRadius = !!this.cornerRadius();
|
|
7963
|
+
const hasShadow = this.hasShadow();
|
|
7964
|
+
if (hasCornerRadius && hasShadow) {
|
|
7965
|
+
return true;
|
|
7966
|
+
}
|
|
7956
7967
|
return super._useBufferCanvas(true);
|
|
7957
7968
|
}
|
|
7958
7969
|
_sceneFunc(context) {
|
|
@@ -8019,7 +8030,7 @@
|
|
|
8019
8030
|
static fromURL(url, callback, onError = null) {
|
|
8020
8031
|
var img = Util_1$7.Util.createImageElement();
|
|
8021
8032
|
img.onload = function () {
|
|
8022
|
-
var image = new Image
|
|
8033
|
+
var image = new Image({
|
|
8023
8034
|
image: img,
|
|
8024
8035
|
});
|
|
8025
8036
|
callback(image);
|
|
@@ -8028,7 +8039,7 @@
|
|
|
8028
8039
|
img.crossOrigin = 'Anonymous';
|
|
8029
8040
|
img.src = url;
|
|
8030
8041
|
}
|
|
8031
|
-
}
|
|
8042
|
+
};
|
|
8032
8043
|
Image$2.Image = Image$1;
|
|
8033
8044
|
Image$1.prototype.className = 'Image';
|
|
8034
8045
|
(0, Global_1$a._registerNode)(Image$1);
|
|
@@ -10860,7 +10871,7 @@
|
|
|
10860
10871
|
y = ySize - yMid;
|
|
10861
10872
|
rad = Math.sqrt(x * x + y * y);
|
|
10862
10873
|
rMax = rad > rMax ? rad : rMax;
|
|
10863
|
-
var rSize = ySize, tSize = xSize, radius, theta, phaseShift =
|
|
10874
|
+
var rSize = ySize, tSize = xSize, radius, theta, phaseShift = 0;
|
|
10864
10875
|
var x1, y1;
|
|
10865
10876
|
for (x = 0; x < xSize; x += 1) {
|
|
10866
10877
|
for (y = 0; y < ySize; y += 1) {
|
|
@@ -12010,6 +12021,27 @@
|
|
|
12010
12021
|
}
|
|
12011
12022
|
}
|
|
12012
12023
|
|
|
12024
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
12025
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
12026
|
+
// All rights reserved.
|
|
12027
|
+
//
|
|
12028
|
+
// This software and its documentation and related materials are owned by
|
|
12029
|
+
// the Alliance. The software may only be incorporated into application
|
|
12030
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
12031
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
12032
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
12033
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
12034
|
+
// protected by copyright law and international treaty provisions. Application
|
|
12035
|
+
// programs incorporating this software must include the following statement
|
|
12036
|
+
// with their copyright notices:
|
|
12037
|
+
//
|
|
12038
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
12039
|
+
// license agreement with Open Design Alliance.
|
|
12040
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
12041
|
+
// All rights reserved.
|
|
12042
|
+
//
|
|
12043
|
+
// By use of this software, its documentation or related materials, you
|
|
12044
|
+
// acknowledge and accept the above terms.
|
|
12013
12045
|
///////////////////////////////////////////////////////////////////////////////
|
|
12014
12046
|
class KonvaArrow {
|
|
12015
12047
|
constructor(params, ref = null) {
|
|
@@ -12112,8 +12144,8 @@
|
|
|
12112
12144
|
var _a, _b;
|
|
12113
12145
|
this._ratio = 1;
|
|
12114
12146
|
this.EPSILON = 10e-6;
|
|
12115
|
-
this.BASE64_NOT_FOUND = "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAADsAAAA7AF5KHG9AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAmhJREFUWIXtlr9rVEEQxz+H8RQUJIdeIopYm0vkCg0GBBtbG1NF7Kxt7dR/IGIw/uhTaBNLERURg2kCEUyCYCPi70b0InjGS57FzOZN3r19d+9HJIVfWO52dma/s7Mz8xa2KAaBCWAR+AkECWOmSOIdwC1gtQOpHc+NfQ8wClQ8+1d0vcdH/lQ3bSI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lXlAXA2zvi2Ln4AjqYgtagYEutENSLvjRoOImFv5iB32Ae8UrLXwFBk3h9ndF0VJnKSO9gTu3yKu5Z1LKnS8YIcABgw5Ks692JZFXcXRJ46Aq6kikCnHNi/mQ50WwVtfaIoBzL3gRk2drSscJ2wrc4VvUoe2wn/41/iBfoVLRnBGnDSY3AAKacy8AmYR+o7K1zCl6wgrgpOAc/MuhvfgMuk+1JGHQgSBcAloKXy78AjYBppJk5/noTulseBMZ23iD/piHFkEdgTQzKk+5wHjmHC3cmBg0BD5xcSTrFXyQPgIWFtDwMvab+2N8DpbhyY1v/3E8gdDgNfVX9SCVZ0/gW4B0wB71S2BpxLcuCM/jaQSHSDEeAX4VMuAG4gTzyHbcAVXXO6GxxwIX+vvxe7JHcYQ07nHqklj96UIW/YhSWzMKcep8VVtf8B1Dw6h4DfhB+sdbgn2R+gnoEc5NR3dZ+3QJ9H74HqXLPCGlJyTfI9y3YCs0owq3OLOpKkLeBI1HhSDT/mdKIPiUCARMTlQx34TMLjtww8IczmO8AJ/N/2JNSQXAiQ671JePePge0+wzJSQq4FFzlaenIvucUAkiQLhC/mLGNZ9xgn5s63BP4CCk0QDtm4BhoAAAAASUVORK5CYII=";
|
|
12117
12149
|
if (ref) {
|
|
12118
12150
|
if (!ref.src || !ref.src.startsWith(this.BASE64_HEADER_START))
|
|
12119
12151
|
ref.src = this.BASE64_NOT_FOUND;
|
|
@@ -12433,6 +12465,27 @@
|
|
|
12433
12465
|
}
|
|
12434
12466
|
}
|
|
12435
12467
|
|
|
12468
|
+
///////////////////////////////////////////////////////////////////////////////
|
|
12469
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
12470
|
+
// All rights reserved.
|
|
12471
|
+
//
|
|
12472
|
+
// This software and its documentation and related materials are owned by
|
|
12473
|
+
// the Alliance. The software may only be incorporated into application
|
|
12474
|
+
// programs owned by members of the Alliance, subject to a signed
|
|
12475
|
+
// Membership Agreement and Supplemental Software License Agreement with the
|
|
12476
|
+
// Alliance. The structure and organization of this software are the valuable
|
|
12477
|
+
// trade secrets of the Alliance and its suppliers. The software is also
|
|
12478
|
+
// protected by copyright law and international treaty provisions. Application
|
|
12479
|
+
// programs incorporating this software must include the following statement
|
|
12480
|
+
// with their copyright notices:
|
|
12481
|
+
//
|
|
12482
|
+
// This application incorporates Open Design Alliance software pursuant to a
|
|
12483
|
+
// license agreement with Open Design Alliance.
|
|
12484
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
12485
|
+
// All rights reserved.
|
|
12486
|
+
//
|
|
12487
|
+
// By use of this software, its documentation or related materials, you
|
|
12488
|
+
// acknowledge and accept the above terms.
|
|
12436
12489
|
///////////////////////////////////////////////////////////////////////////////
|
|
12437
12490
|
const MarkupMode2Konva = {
|
|
12438
12491
|
SelectMarkup: {
|
|
@@ -13300,7 +13353,5 @@
|
|
|
13300
13353
|
|
|
13301
13354
|
exports.Markup = KonvaMarkup;
|
|
13302
13355
|
|
|
13303
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13304
|
-
|
|
13305
13356
|
}));
|
|
13306
13357
|
//# sourceMappingURL=markup.js.map
|