@visactor/react-vtable 1.14.1 → 1.14.3
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/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/react-vtable.js +124 -102
- package/dist/react-vtable.min.js +2 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +2 -2
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -18,5 +18,5 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", {
|
|
19
19
|
value: !0
|
|
20
20
|
}), exports.version = void 0, __exportStar(require("./tables"), exports), __exportStar(require("./table-components"), exports),
|
|
21
|
-
__exportStar(require("./components"), exports), exports.version = "1.14.
|
|
21
|
+
__exportStar(require("./components"), exports), exports.version = "1.14.3";
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,qDAAmC;AACnC,+CAA6B;AAEhB,QAAA,OAAO,GAAG,QAAQ,CAAC","file":"index.js","sourcesContent":["export * from './tables';\nexport * from './table-components';\nexport * from './components';\n\nexport const version = \"1.14.
|
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,qDAAmC;AACnC,+CAA6B;AAEhB,QAAA,OAAO,GAAG,QAAQ,CAAC","file":"index.js","sourcesContent":["export * from './tables';\nexport * from './table-components';\nexport * from './components';\n\nexport const version = \"1.14.3\";\n"]}
|
package/dist/react-vtable.js
CHANGED
|
@@ -1732,19 +1732,10 @@
|
|
|
1732
1732
|
}
|
|
1733
1733
|
function isRotateAABBIntersect(box1, box2) {
|
|
1734
1734
|
let isDeg = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
|
|
1735
|
-
let ctx = arguments.length > 3 ? arguments[3] : undefined;
|
|
1736
1735
|
const rect1 = toRect(box1, isDeg),
|
|
1737
1736
|
rect2 = toRect(box2, isDeg),
|
|
1738
|
-
vector = (start, end) => [end.x - start.x, end.y - start.y]
|
|
1739
|
-
|
|
1740
|
-
0 === index ? ctx.moveTo(item.x, item.y) : ctx.lineTo(item.x, item.y);
|
|
1741
|
-
}), ctx.fill(), ctx.restore(), ctx.save(), ctx.fillStyle = "green", ctx.globalAlpha = .6, rect2.forEach((item, index) => {
|
|
1742
|
-
0 === index ? ctx.moveTo(item.x, item.y) : ctx.lineTo(item.x, item.y);
|
|
1743
|
-
}), ctx.fill(), ctx.restore());
|
|
1744
|
-
const p1 = getCenterPoint(box1),
|
|
1745
|
-
p2 = getCenterPoint(box2);
|
|
1746
|
-
ctx && ctx.fillRect(p1.x, p1.y, 2, 2), ctx && ctx.fillRect(p2.x, p2.y, 2, 2);
|
|
1747
|
-
const vp1p2 = vector(p1, p2),
|
|
1737
|
+
vector = (start, end) => [end.x - start.x, end.y - start.y],
|
|
1738
|
+
vp1p2 = vector(getCenterPoint(box1), getCenterPoint(box2)),
|
|
1748
1739
|
AB = vector(rect1[0], rect1[1]),
|
|
1749
1740
|
BC = vector(rect1[1], rect1[2]),
|
|
1750
1741
|
A1B1 = vector(rect2[0], rect2[1]),
|
|
@@ -1964,7 +1955,8 @@
|
|
|
1964
1955
|
class OBBBounds extends Bounds {
|
|
1965
1956
|
constructor(bounds) {
|
|
1966
1957
|
let angle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
1967
|
-
|
|
1958
|
+
var _a;
|
|
1959
|
+
super(bounds), bounds && (this.angle = null !== (_a = bounds.angle) && void 0 !== _a ? _a : angle);
|
|
1968
1960
|
}
|
|
1969
1961
|
intersects(b) {
|
|
1970
1962
|
return isRotateAABBIntersect(this, b);
|
|
@@ -1977,6 +1969,9 @@
|
|
|
1977
1969
|
let angle = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
1978
1970
|
return super.setValue(x1, y1, x2, y2), this.angle = angle, this;
|
|
1979
1971
|
}
|
|
1972
|
+
clone() {
|
|
1973
|
+
return new OBBBounds(this);
|
|
1974
|
+
}
|
|
1980
1975
|
}
|
|
1981
1976
|
|
|
1982
1977
|
class Matrix {
|
|
@@ -4618,7 +4613,7 @@
|
|
|
4618
4613
|
return null;
|
|
4619
4614
|
}
|
|
4620
4615
|
|
|
4621
|
-
var __awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
4616
|
+
var __awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
4622
4617
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4623
4618
|
function fulfilled(value) {
|
|
4624
4619
|
try {
|
|
@@ -4688,7 +4683,7 @@
|
|
|
4688
4683
|
}
|
|
4689
4684
|
forEachChildrenAsync(cb) {
|
|
4690
4685
|
let reverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
4691
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
4686
|
+
return __awaiter$2(this, void 0, void 0, function* () {
|
|
4692
4687
|
if (reverse) {
|
|
4693
4688
|
let child = this._lastChild,
|
|
4694
4689
|
i = 0;
|
|
@@ -7941,68 +7936,6 @@
|
|
|
7941
7936
|
const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
7942
7937
|
const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
7943
7938
|
|
|
7944
|
-
class DefaultImageBackgroundRenderContribution extends DefaultBaseBackgroundRenderContribution {
|
|
7945
|
-
constructor() {
|
|
7946
|
-
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
7947
|
-
}
|
|
7948
|
-
drawShape(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb) {
|
|
7949
|
-
const {
|
|
7950
|
-
background: background,
|
|
7951
|
-
backgroundMode = graphicAttribute.backgroundMode,
|
|
7952
|
-
backgroundFit = graphicAttribute.backgroundFit
|
|
7953
|
-
} = graphic.attribute;
|
|
7954
|
-
if (background) if (graphic.backgroundImg) {
|
|
7955
|
-
const res = graphic.resources.get(background);
|
|
7956
|
-
if ("success" !== res.state || !res.data) return;
|
|
7957
|
-
if (context.save(), graphic.parent && !graphic.transMatrix.onlyTranslate()) {
|
|
7958
|
-
const groupAttribute = getTheme(graphic.parent).group,
|
|
7959
|
-
{
|
|
7960
|
-
scrollX = groupAttribute.scrollX,
|
|
7961
|
-
scrollY = groupAttribute.scrollY
|
|
7962
|
-
} = graphic.parent.attribute;
|
|
7963
|
-
context.setTransformFromMatrix(graphic.parent.globalTransMatrix, !0), context.translate(scrollX, scrollY);
|
|
7964
|
-
}
|
|
7965
|
-
const b = graphic.AABBBounds;
|
|
7966
|
-
this.doDrawImage(context, res.data, b, backgroundMode, backgroundFit), context.restore(), graphic.transMatrix.onlyTranslate() || context.setTransformForCurrent();
|
|
7967
|
-
} else if (isObject$1(background)) {
|
|
7968
|
-
const {
|
|
7969
|
-
stroke: stroke,
|
|
7970
|
-
fill: fill,
|
|
7971
|
-
lineWidth = 1,
|
|
7972
|
-
cornerRadius = 0,
|
|
7973
|
-
expandX = 0,
|
|
7974
|
-
expandY = 0
|
|
7975
|
-
} = background;
|
|
7976
|
-
if (!stroke && !fill) return;
|
|
7977
|
-
context.beginPath();
|
|
7978
|
-
const {
|
|
7979
|
-
x: x,
|
|
7980
|
-
y: y,
|
|
7981
|
-
width: width,
|
|
7982
|
-
height: height
|
|
7983
|
-
} = getActualPosition(graphic);
|
|
7984
|
-
cornerRadius ? createRectPath(context, x - expandX, y - expandY, width + 2 * expandX, height + 2 * expandY, cornerRadius) : context.rect(x - expandX, y - expandY, width + 2 * expandX, height + 2 * expandY), context.globalAlpha = 1, fill && (context.fillStyle = fill, context.fill()), stroke && lineWidth > 0 && (context.lineWidth = lineWidth, context.strokeStyle = stroke, context.stroke());
|
|
7985
|
-
} else {
|
|
7986
|
-
context.beginPath();
|
|
7987
|
-
const b = graphic.AABBBounds;
|
|
7988
|
-
context.rect(x, y, b.width(), b.height()), context.fillStyle = background, context.globalAlpha = 1, context.fill();
|
|
7989
|
-
}
|
|
7990
|
-
}
|
|
7991
|
-
}
|
|
7992
|
-
function getActualPosition(graphic) {
|
|
7993
|
-
const boundsPadding = parsePadding(graphic.attribute.boundsPadding),
|
|
7994
|
-
bounds = graphic.AABBBounds;
|
|
7995
|
-
let x = bounds.x1,
|
|
7996
|
-
y = bounds.y1,
|
|
7997
|
-
width = bounds.width(),
|
|
7998
|
-
height = bounds.height();
|
|
7999
|
-
return isNumber$1(boundsPadding) ? (x += boundsPadding, y += boundsPadding, width -= 2 * boundsPadding, height -= 2 * boundsPadding) : (x += boundsPadding[3], y += boundsPadding[0], width -= boundsPadding[1] + boundsPadding[3], height -= boundsPadding[0] + boundsPadding[2]), {
|
|
8000
|
-
x: x,
|
|
8001
|
-
y: y,
|
|
8002
|
-
width: width,
|
|
8003
|
-
height: height
|
|
8004
|
-
};
|
|
8005
|
-
}
|
|
8006
7939
|
class DefaultImageRenderContribution extends DefaultRectRenderContribution {
|
|
8007
7940
|
constructor() {
|
|
8008
7941
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -8012,7 +7945,7 @@
|
|
|
8012
7945
|
}
|
|
8013
7946
|
}
|
|
8014
7947
|
const defaultImageRenderContribution = new DefaultImageRenderContribution();
|
|
8015
|
-
const defaultImageBackgroundRenderContribution =
|
|
7948
|
+
const defaultImageBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
8016
7949
|
|
|
8017
7950
|
class DefaultSymbolRenderContribution {
|
|
8018
7951
|
constructor() {
|
|
@@ -8502,26 +8435,25 @@
|
|
|
8502
8435
|
doFill: doFill,
|
|
8503
8436
|
doStroke: doStroke
|
|
8504
8437
|
} = data;
|
|
8505
|
-
|
|
8438
|
+
if (!url || !image.resources) return;
|
|
8439
|
+
const res = image.resources.get(url);
|
|
8440
|
+
if ("success" !== res.state) return;
|
|
8441
|
+
let needRestore = !1;
|
|
8442
|
+
0 === cornerRadius || isArray$1(cornerRadius) && cornerRadius.every(num => 0 === num) || (context.beginPath(), createRectPath(context, x, y, width, height, cornerRadius), needRestore = !0), context.setShadowBlendStyle && context.setShadowBlendStyle(image, image.attribute, imageAttribute);
|
|
8506
8443
|
const _runFill = () => {
|
|
8507
8444
|
if (doFill) if (fillCb) fillCb(context, image.attribute, imageAttribute);else if (fVisible) {
|
|
8508
|
-
|
|
8509
|
-
const res = image.resources.get(url);
|
|
8510
|
-
if ("success" !== res.state) return;
|
|
8511
|
-
let needRestore = !1;
|
|
8512
|
-
0 === cornerRadius || isArray$1(cornerRadius) && cornerRadius.every(num => 0 === num) || (context.beginPath(), createRectPath(context, x, y, width, height, cornerRadius), context.save(), context.clip(), needRestore = !0), context.setCommonStyle(image, image.attribute, x, y, imageAttribute);
|
|
8445
|
+
context.setCommonStyle(image, image.attribute, x, y, imageAttribute);
|
|
8513
8446
|
let repeat = 0;
|
|
8514
8447
|
if ("repeat" === repeatX && (repeat |= 1), "repeat" === repeatY && (repeat |= 2), repeat) {
|
|
8515
8448
|
const pattern = context.createPattern(res.data, repeatStr[repeat]);
|
|
8516
8449
|
context.fillStyle = pattern, context.translate(x, y, !0), context.fillRect(0, 0, width, height), context.translate(-x, -y, !0);
|
|
8517
8450
|
} else context.drawImage(res.data, x, y, width, height);
|
|
8518
|
-
needRestore && context.restore();
|
|
8519
8451
|
}
|
|
8520
8452
|
},
|
|
8521
8453
|
_runStroke = () => {
|
|
8522
8454
|
doStroke && (strokeCb ? strokeCb(context, image.attribute, imageAttribute) : sVisible && (context.setStrokeStyle(image, image.attribute, originX - x, originY - y, imageAttribute), context.stroke()));
|
|
8523
8455
|
};
|
|
8524
|
-
fillStrokeOrder ? (_runStroke(), _runFill()) : (_runFill(), _runStroke()), this.afterRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb);
|
|
8456
|
+
fillStrokeOrder ? (_runStroke(), needRestore && (context.save(), context.clip()), this.beforeRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb), _runFill(), needRestore && context.restore()) : (needRestore && (context.save(), context.clip()), this.beforeRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb), _runFill(), needRestore && context.restore(), _runStroke()), this.afterRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb);
|
|
8525
8457
|
}
|
|
8526
8458
|
draw(image, renderService, drawContext) {
|
|
8527
8459
|
const {
|
|
@@ -10914,12 +10846,37 @@
|
|
|
10914
10846
|
}
|
|
10915
10847
|
|
|
10916
10848
|
var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10921
|
-
|
|
10922
|
-
|
|
10849
|
+
var d,
|
|
10850
|
+
c = arguments.length,
|
|
10851
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
10852
|
+
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
10853
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10854
|
+
},
|
|
10855
|
+
__awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
10856
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10857
|
+
function fulfilled(value) {
|
|
10858
|
+
try {
|
|
10859
|
+
step(generator.next(value));
|
|
10860
|
+
} catch (e) {
|
|
10861
|
+
reject(e);
|
|
10862
|
+
}
|
|
10863
|
+
}
|
|
10864
|
+
function rejected(value) {
|
|
10865
|
+
try {
|
|
10866
|
+
step(generator.throw(value));
|
|
10867
|
+
} catch (e) {
|
|
10868
|
+
reject(e);
|
|
10869
|
+
}
|
|
10870
|
+
}
|
|
10871
|
+
function step(result) {
|
|
10872
|
+
var value;
|
|
10873
|
+
result.done ? resolve(result.value) : (value = result.value, value instanceof P ? value : new P(function (resolve) {
|
|
10874
|
+
resolve(value);
|
|
10875
|
+
})).then(fulfilled, rejected);
|
|
10876
|
+
}
|
|
10877
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
10878
|
+
});
|
|
10879
|
+
};
|
|
10923
10880
|
let BaseEnvContribution = class {
|
|
10924
10881
|
configure(service) {
|
|
10925
10882
|
service.env === this.type && service.setActiveEnvContribution(this);
|
|
@@ -10988,6 +10945,13 @@
|
|
|
10988
10945
|
left: 0
|
|
10989
10946
|
};
|
|
10990
10947
|
}
|
|
10948
|
+
loadFont(font, source, descriptors) {
|
|
10949
|
+
return __awaiter$1(this, void 0, void 0, function* () {
|
|
10950
|
+
return {
|
|
10951
|
+
loadState: "fail"
|
|
10952
|
+
};
|
|
10953
|
+
});
|
|
10954
|
+
}
|
|
10991
10955
|
};
|
|
10992
10956
|
BaseEnvContribution = __decorate$b([injectable()], BaseEnvContribution);
|
|
10993
10957
|
|
|
@@ -11032,7 +10996,7 @@
|
|
|
11032
10996
|
const fVisible = fillVisible(opacity, fillOpacity, !0),
|
|
11033
10997
|
sVisible = fillVisible(opacity, strokeOpacity, !0);
|
|
11034
10998
|
if (!fVisible) return;
|
|
11035
|
-
context.translate(x, y), this.beforeRenderStep(richtext, context, x, y, fVisible, sVisible, fVisible, sVisible, richtextAttribute, drawContext);
|
|
10999
|
+
context.setShadowBlendStyle && context.setShadowBlendStyle(richtext, richtext.attribute, richtextAttribute), context.translate(x, y), this.beforeRenderStep(richtext, context, x, y, fVisible, sVisible, fVisible, sVisible, richtextAttribute, drawContext);
|
|
11036
11000
|
richtext.getFrameCache().draw(context, this.drawIcon), this.afterRenderStep(richtext, context, x, y, fVisible, sVisible, fVisible, sVisible, richtextAttribute, drawContext);
|
|
11037
11001
|
}
|
|
11038
11002
|
drawIcon(icon, context, x, y, baseline) {
|
|
@@ -11109,11 +11073,18 @@
|
|
|
11109
11073
|
|
|
11110
11074
|
class HtmlAttributePlugin {
|
|
11111
11075
|
constructor() {
|
|
11112
|
-
this.name = "HtmlAttributePlugin", this.activeEvent = "onRegister", this._uid = Generator.GenAutoIncrementId(), this.key = this.name + this._uid, this.htmlMap = {}, this.renderId = 0
|
|
11076
|
+
this.name = "HtmlAttributePlugin", this.activeEvent = "onRegister", this._uid = Generator.GenAutoIncrementId(), this.key = this.name + this._uid, this.htmlMap = {}, this.renderId = 0, this.onWheel = ev => {
|
|
11077
|
+
try {
|
|
11078
|
+
const newEvent = new ev.constructor(ev.type, ev);
|
|
11079
|
+
this.pluginService.stage.window.getContext().getCanvas().nativeCanvas.dispatchEvent(newEvent);
|
|
11080
|
+
} catch (err) {
|
|
11081
|
+
return;
|
|
11082
|
+
}
|
|
11083
|
+
};
|
|
11113
11084
|
}
|
|
11114
11085
|
activate(context) {
|
|
11115
11086
|
this.pluginService = context, context.stage.hooks.afterRender.tap(this.key, stage => {
|
|
11116
|
-
stage && stage === this.pluginService.stage && this.drawHTML(context.stage.
|
|
11087
|
+
stage && stage === this.pluginService.stage && this.drawHTML([...context.stage.getChildren()]);
|
|
11117
11088
|
});
|
|
11118
11089
|
}
|
|
11119
11090
|
deactivate(context) {
|
|
@@ -11175,10 +11146,13 @@
|
|
|
11175
11146
|
}
|
|
11176
11147
|
updateStyleOfWrapContainer(graphic, stage, wrapContainer, nativeContainer, options) {
|
|
11177
11148
|
const {
|
|
11178
|
-
pointerEvents: pointerEvents
|
|
11149
|
+
pointerEvents: pointerEvents,
|
|
11150
|
+
penetrateEventList = []
|
|
11179
11151
|
} = options;
|
|
11180
11152
|
let calculateStyle = this.parseDefaultStyleFromGraphic(graphic);
|
|
11181
|
-
calculateStyle.display = !1 !== graphic.attribute.visible ? "block" : "none", calculateStyle.pointerEvents = !0 === pointerEvents ? "all" : pointerEvents || "none",
|
|
11153
|
+
calculateStyle.display = !1 !== graphic.attribute.visible ? "block" : "none", calculateStyle.pointerEvents = !0 === pointerEvents ? "all" : pointerEvents || "none", "none" !== calculateStyle.pointerEvents && (this.removeWrapContainerEventListener(wrapContainer), penetrateEventList.forEach(event => {
|
|
11154
|
+
"wheel" === event && wrapContainer.addEventListener("wheel", this.onWheel);
|
|
11155
|
+
})), wrapContainer.style.position || (wrapContainer.style.position = "absolute", nativeContainer.style.position = "relative");
|
|
11182
11156
|
let left = 0,
|
|
11183
11157
|
top = 0;
|
|
11184
11158
|
const b = graphic.globalAABBBounds;
|
|
@@ -11206,7 +11180,7 @@
|
|
|
11206
11180
|
} else isObject$1(options.style) ? calculateStyle = Object.assign(Object.assign({}, calculateStyle), options.style) : isString$1(options.style) && options.style && (calculateStyle = Object.assign(Object.assign({}, calculateStyle), styleStringToObject(options.style)));
|
|
11207
11181
|
application.global.updateDom(wrapContainer, {
|
|
11208
11182
|
width: options.width,
|
|
11209
|
-
height: options.
|
|
11183
|
+
height: options.height,
|
|
11210
11184
|
style: calculateStyle
|
|
11211
11185
|
});
|
|
11212
11186
|
}
|
|
@@ -11215,8 +11189,8 @@
|
|
|
11215
11189
|
this.htmlMap[key] && this.htmlMap[key].renderId !== this.renderId && this.removeElement(key);
|
|
11216
11190
|
}), this.renderId += 1;
|
|
11217
11191
|
}
|
|
11218
|
-
drawHTML(
|
|
11219
|
-
"browser" === application.global.env && (
|
|
11192
|
+
drawHTML(layers) {
|
|
11193
|
+
"browser" === application.global.env && (layers.sort((a, b) => {
|
|
11220
11194
|
var _a, _b;
|
|
11221
11195
|
return (null !== (_a = a.attribute.zIndex) && void 0 !== _a ? _a : DefaultAttribute.zIndex) - (null !== (_b = b.attribute.zIndex) && void 0 !== _b ? _b : DefaultAttribute.zIndex);
|
|
11222
11196
|
}).forEach(group => {
|
|
@@ -11235,6 +11209,9 @@
|
|
|
11235
11209
|
} = this.htmlMap[id];
|
|
11236
11210
|
wrapContainer && application.global.removeDom(wrapContainer), this.htmlMap[id] = null;
|
|
11237
11211
|
}
|
|
11212
|
+
removeWrapContainerEventListener(wrapContainer) {
|
|
11213
|
+
wrapContainer.removeEventListener("wheel", this.onWheel);
|
|
11214
|
+
}
|
|
11238
11215
|
renderGraphicHTML(graphic) {
|
|
11239
11216
|
var _a;
|
|
11240
11217
|
const {
|
|
@@ -11355,10 +11332,17 @@
|
|
|
11355
11332
|
this.render(), this.bindEvents();
|
|
11356
11333
|
});
|
|
11357
11334
|
}
|
|
11358
|
-
setAttribute(key, value, forceUpdateTag) {
|
|
11335
|
+
setAttribute(key, value, forceUpdateTag, context) {
|
|
11336
|
+
const params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate({
|
|
11337
|
+
[key]: value
|
|
11338
|
+
}, this.attribute, key, context);
|
|
11339
|
+
if (params) return this._setAttributes(params, forceUpdateTag);
|
|
11359
11340
|
isPlainObject$1(this.attribute[key]) && isPlainObject$1(value) && !isFunction$1(this.attribute[key]) && !isFunction$1(value) ? merge(this.attribute[key], value) : this.attribute[key] = value, GROUP_ATTRIBUTES.includes(key) || this.render(), this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTag(key) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(), this.onAttributeUpdate();
|
|
11360
11341
|
}
|
|
11361
|
-
setAttributes(params, forceUpdateTag) {
|
|
11342
|
+
setAttributes(params, forceUpdateTag, context) {
|
|
11343
|
+
return params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params, this._setAttributes(params, forceUpdateTag);
|
|
11344
|
+
}
|
|
11345
|
+
_setAttributes(params, forceUpdateTag) {
|
|
11362
11346
|
const keys = Object.keys(params);
|
|
11363
11347
|
this._mergeAttributes(params, keys), keys.every(key => GROUP_ATTRIBUTES.includes(key)) || this.render(), this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTags(keys) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(), this.onAttributeUpdate();
|
|
11364
11348
|
}
|
|
@@ -11450,6 +11434,31 @@
|
|
|
11450
11434
|
},
|
|
11451
11435
|
__metadata$6 = undefined && undefined.__metadata || function (k, v) {
|
|
11452
11436
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
11437
|
+
},
|
|
11438
|
+
__awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
11439
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
11440
|
+
function fulfilled(value) {
|
|
11441
|
+
try {
|
|
11442
|
+
step(generator.next(value));
|
|
11443
|
+
} catch (e) {
|
|
11444
|
+
reject(e);
|
|
11445
|
+
}
|
|
11446
|
+
}
|
|
11447
|
+
function rejected(value) {
|
|
11448
|
+
try {
|
|
11449
|
+
step(generator.throw(value));
|
|
11450
|
+
} catch (e) {
|
|
11451
|
+
reject(e);
|
|
11452
|
+
}
|
|
11453
|
+
}
|
|
11454
|
+
function step(result) {
|
|
11455
|
+
var value;
|
|
11456
|
+
result.done ? resolve(result.value) : (value = result.value, value instanceof P ? value : new P(function (resolve) {
|
|
11457
|
+
resolve(value);
|
|
11458
|
+
})).then(fulfilled, rejected);
|
|
11459
|
+
}
|
|
11460
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11461
|
+
});
|
|
11453
11462
|
};
|
|
11454
11463
|
class DynamicB {
|
|
11455
11464
|
get x1() {
|
|
@@ -11645,6 +11654,19 @@
|
|
|
11645
11654
|
left: actualLeft
|
|
11646
11655
|
};
|
|
11647
11656
|
}
|
|
11657
|
+
loadFont(font, source, descriptors) {
|
|
11658
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11659
|
+
return new FontFace(font, isString$1(source) ? `url(${source})` : source, descriptors).load().then(function (loadedFont) {
|
|
11660
|
+
return document.fonts.add(loadedFont), {
|
|
11661
|
+
loadState: "success"
|
|
11662
|
+
};
|
|
11663
|
+
}).catch(function (error) {
|
|
11664
|
+
return {
|
|
11665
|
+
loadState: "fail"
|
|
11666
|
+
};
|
|
11667
|
+
});
|
|
11668
|
+
});
|
|
11669
|
+
}
|
|
11648
11670
|
};
|
|
11649
11671
|
BrowserEnvContribution = __decorate$9([injectable(), __metadata$6("design:paramtypes", [])], BrowserEnvContribution);
|
|
11650
11672
|
|
|
@@ -19580,7 +19602,7 @@
|
|
|
19580
19602
|
const Checkbox = React.forwardRef(CheckboxComponent);
|
|
19581
19603
|
Checkbox.displayName = 'Checkbox';
|
|
19582
19604
|
|
|
19583
|
-
const version = "1.14.
|
|
19605
|
+
const version = "1.14.3";
|
|
19584
19606
|
|
|
19585
19607
|
Object.defineProperty(exports, 'register', {
|
|
19586
19608
|
enumerable: true,
|