@visactor/vrender 0.19.7-alpha.1 → 0.19.7
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 +10 -11
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +90 -74
- package/dist/index.js +91 -73
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +3 -3
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -21,14 +21,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
21
21
|
|
|
22
22
|
const vrender_core_1 = require("@visactor/vrender-core"), vrender_kits_1 = require("@visactor/vrender-kits"), vrender_kits_2 = require("@visactor/vrender-kits");
|
|
23
23
|
|
|
24
|
-
exports.version = "0.19.7
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(0, vrender_kits_2.
|
|
28
|
-
(0, vrender_kits_2.
|
|
29
|
-
(0, vrender_kits_2.
|
|
30
|
-
(0, vrender_kits_2.
|
|
31
|
-
|
|
32
|
-
(0, vrender_kits_2.
|
|
33
|
-
(
|
|
34
|
-
__exportStar(require("@visactor/vrender-kits"), exports);
|
|
24
|
+
exports.version = "0.19.7", (0, vrender_core_1.preLoadAllModule)(), (0, vrender_core_1.isBrowserEnv)() ? (0,
|
|
25
|
+
vrender_kits_1.loadBrowserEnv)(vrender_core_1.container) : (0, vrender_core_1.isNodeEnv)() && (0,
|
|
26
|
+
vrender_kits_1.loadNodeEnv)(vrender_core_1.container), (0, vrender_kits_2.registerArc)(),
|
|
27
|
+
(0, vrender_kits_2.registerArc3d)(), (0, vrender_kits_2.registerArea)(), (0, vrender_kits_2.registerCircle)(),
|
|
28
|
+
(0, vrender_kits_2.registerGlyph)(), (0, vrender_kits_2.registerGroup)(), (0, vrender_kits_2.registerImage)(),
|
|
29
|
+
(0, vrender_kits_2.registerLine)(), (0, vrender_kits_2.registerPath)(), (0, vrender_kits_2.registerPolygon)(),
|
|
30
|
+
(0, vrender_kits_2.registerPyramid3d)(), (0, vrender_kits_2.registerRect)(), (0,
|
|
31
|
+
vrender_kits_2.registerRect3d)(), (0, vrender_kits_2.registerRichtext)(), (0, vrender_kits_2.registerShadowRoot)(),
|
|
32
|
+
(0, vrender_kits_2.registerSymbol)(), (0, vrender_kits_2.registerText)(), (0, vrender_kits_2.registerWrapText)(),
|
|
33
|
+
__exportStar(require("@visactor/vrender-core"), exports), __exportStar(require("@visactor/vrender-kits"), exports);
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAA8F;AAC9F,yDAAqE;AACrE,yDAmBgC;AAEnB,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAA8F;AAC9F,yDAAqE;AACrE,yDAmBgC;AAEnB,QAAA,OAAO,GAAG,QAAQ,CAAC;AAEhC,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AACnB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport { container, isBrowserEnv, isNodeEnv, preLoadAllModule } from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\nexport const version = \"0.19.7\";\n\npreLoadAllModule();\n\nif (isBrowserEnv()) {\n loadBrowserEnv(container);\n} else if (isNodeEnv()) {\n loadNodeEnv(container);\n}\nregisterArc();\nregisterArc3d();\nregisterArea();\nregisterCircle();\nregisterGlyph();\nregisterGroup();\nregisterImage();\nregisterLine();\nregisterPath();\nregisterPolygon();\nregisterPyramid3d();\nregisterRect();\nregisterRect3d();\nregisterRichtext();\nregisterShadowRoot();\nregisterSymbol();\nregisterText();\nregisterWrapText();\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
|
package/dist/index.es.js
CHANGED
|
@@ -12257,6 +12257,7 @@ class Glyph extends Graphic {
|
|
|
12257
12257
|
var _a;
|
|
12258
12258
|
if (!states.length) return void this.clearStates(hasAnimation);
|
|
12259
12259
|
if (!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) !== states.length || states.some((stateName, index) => this.currentStates[index] !== stateName))) return;
|
|
12260
|
+
this.stopStateAnimates();
|
|
12260
12261
|
const stateAttrs = {},
|
|
12261
12262
|
subAttrs = this.subGraphic.map(() => ({}));
|
|
12262
12263
|
states.forEach(stateName => {
|
|
@@ -12270,9 +12271,9 @@ class Glyph extends Graphic {
|
|
|
12270
12271
|
}), this.updateNormalAttrs(stateAttrs), this.currentStates = states, this.applyStateAttrs(stateAttrs, states, hasAnimation);
|
|
12271
12272
|
}
|
|
12272
12273
|
clearStates(hasAnimation) {
|
|
12273
|
-
this.hasState() && this.normalAttrs
|
|
12274
|
+
this.stopStateAnimates(), this.hasState() && this.normalAttrs ? (this.currentStates = [], this.subGraphic.forEach(graphic => {
|
|
12274
12275
|
graphic.applyStateAttrs(graphic.normalAttrs, this.currentStates, hasAnimation, !0), graphic.normalAttrs = null;
|
|
12275
|
-
}), this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)
|
|
12276
|
+
}), this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [], this.normalAttrs = null;
|
|
12276
12277
|
}
|
|
12277
12278
|
clone() {
|
|
12278
12279
|
const glyph = new Glyph(Object.assign({}, this.attribute));
|
|
@@ -13844,7 +13845,7 @@ let DefaultGraphicService = class {
|
|
|
13844
13845
|
onClearIncremental: new SyncHook(["graphic", "group", "stage"]),
|
|
13845
13846
|
beforeUpdateAABBBounds: new SyncHook(["graphic", "stage", "willUpdate", "aabbBounds"]),
|
|
13846
13847
|
afterUpdateAABBBounds: new SyncHook(["graphic", "stage", "aabbBounds", "globalAABBBounds", "selfChange"])
|
|
13847
|
-
}, this.tempAABBBounds1 = new AABBBounds(), this.tempAABBBounds2 = new AABBBounds(), this._rectBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._symbolBoundsContribitions = [new DefaultSymbolOuterBorderBoundsContribution()], this._circleBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._arcBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._pathBoundsContribitions = [new DefaultOuterBorderBoundsContribution()];
|
|
13848
|
+
}, this.tempAABBBounds1 = new AABBBounds(), this.tempAABBBounds2 = new AABBBounds(), this._rectBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._symbolBoundsContribitions = [new DefaultSymbolOuterBorderBoundsContribution()], this._imageBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._circleBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._arcBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._pathBoundsContribitions = [new DefaultOuterBorderBoundsContribution()];
|
|
13848
13849
|
}
|
|
13849
13850
|
onAttributeUpdate(graphic) {
|
|
13850
13851
|
this.hooks.onAttributeUpdate.taps.length && this.hooks.onAttributeUpdate.call(graphic);
|
|
@@ -14245,7 +14246,9 @@ let DefaultGraphicService = class {
|
|
|
14245
14246
|
}
|
|
14246
14247
|
const tb1 = this.tempAABBBounds1,
|
|
14247
14248
|
tb2 = this.tempAABBBounds2;
|
|
14248
|
-
return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.
|
|
14249
|
+
return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._imageBoundsContribitions.length && this._imageBoundsContribitions.forEach(c => {
|
|
14250
|
+
c.updateBounds(attribute, imageTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
|
|
14251
|
+
}), this.transformAABBBounds(attribute, aabbBounds, imageTheme, !1, graphic), aabbBounds;
|
|
14249
14252
|
}
|
|
14250
14253
|
combindShadowAABBBounds(bounds, graphic) {
|
|
14251
14254
|
if (graphic && graphic.shadowRoot) {
|
|
@@ -15176,70 +15179,6 @@ function createRectPath(path, x, y, width, height, rectCornerRadius) {
|
|
|
15176
15179
|
return path.closePath(), path;
|
|
15177
15180
|
}
|
|
15178
15181
|
|
|
15179
|
-
class DefaultImageBackgroundRenderContribution extends DefaultBaseBackgroundRenderContribution {
|
|
15180
|
-
constructor() {
|
|
15181
|
-
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
15182
|
-
}
|
|
15183
|
-
drawShape(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb) {
|
|
15184
|
-
const {
|
|
15185
|
-
background: background,
|
|
15186
|
-
backgroundMode = graphicAttribute.backgroundMode,
|
|
15187
|
-
backgroundFit = graphicAttribute.backgroundFit
|
|
15188
|
-
} = graphic.attribute;
|
|
15189
|
-
if (background) if (graphic.backgroundImg) {
|
|
15190
|
-
const res = graphic.resources.get(background);
|
|
15191
|
-
if ("success" !== res.state || !res.data) return;
|
|
15192
|
-
if (context.save(), graphic.parent && !graphic.transMatrix.onlyTranslate()) {
|
|
15193
|
-
const groupAttribute = getTheme(graphic.parent).group,
|
|
15194
|
-
{
|
|
15195
|
-
scrollX = groupAttribute.scrollX,
|
|
15196
|
-
scrollY = groupAttribute.scrollY
|
|
15197
|
-
} = graphic.parent.attribute;
|
|
15198
|
-
context.setTransformFromMatrix(graphic.parent.globalTransMatrix, !0), context.translate(scrollX, scrollY);
|
|
15199
|
-
}
|
|
15200
|
-
const b = graphic.AABBBounds;
|
|
15201
|
-
this.doDrawImage(context, res.data, b, backgroundMode, backgroundFit), context.restore(), graphic.transMatrix.onlyTranslate() || context.setTransformForCurrent();
|
|
15202
|
-
} else if (isObject$1(background)) {
|
|
15203
|
-
const {
|
|
15204
|
-
stroke: stroke,
|
|
15205
|
-
fill: fill,
|
|
15206
|
-
lineWidth = 1,
|
|
15207
|
-
cornerRadius = 0,
|
|
15208
|
-
expandX = 0,
|
|
15209
|
-
expandY = 0
|
|
15210
|
-
} = background;
|
|
15211
|
-
if (!stroke && !fill) return;
|
|
15212
|
-
context.beginPath();
|
|
15213
|
-
const {
|
|
15214
|
-
x: x,
|
|
15215
|
-
y: y,
|
|
15216
|
-
width: width,
|
|
15217
|
-
height: height
|
|
15218
|
-
} = getActualPosition(graphic);
|
|
15219
|
-
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());
|
|
15220
|
-
} else {
|
|
15221
|
-
context.beginPath();
|
|
15222
|
-
const b = graphic.AABBBounds;
|
|
15223
|
-
context.rect(x, y, b.width(), b.height()), context.fillStyle = background, context.globalAlpha = 1, context.fill();
|
|
15224
|
-
}
|
|
15225
|
-
}
|
|
15226
|
-
}
|
|
15227
|
-
function getActualPosition(graphic) {
|
|
15228
|
-
const boundsPadding = parsePadding(graphic.attribute.boundsPadding),
|
|
15229
|
-
bounds = graphic.AABBBounds;
|
|
15230
|
-
let x = bounds.x1,
|
|
15231
|
-
y = bounds.y1,
|
|
15232
|
-
width = bounds.width(),
|
|
15233
|
-
height = bounds.height();
|
|
15234
|
-
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]), {
|
|
15235
|
-
x: x,
|
|
15236
|
-
y: y,
|
|
15237
|
-
width: width,
|
|
15238
|
-
height: height
|
|
15239
|
-
};
|
|
15240
|
-
}
|
|
15241
|
-
const defaultImageBackgroundRenderContribution = new DefaultImageBackgroundRenderContribution();
|
|
15242
|
-
|
|
15243
15182
|
var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15244
15183
|
var d,
|
|
15245
15184
|
c = arguments.length,
|
|
@@ -15346,6 +15285,79 @@ const defaultRectRenderContribution = new DefaultRectRenderContribution();
|
|
|
15346
15285
|
const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
15347
15286
|
const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
15348
15287
|
|
|
15288
|
+
class DefaultImageBackgroundRenderContribution extends DefaultBaseBackgroundRenderContribution {
|
|
15289
|
+
constructor() {
|
|
15290
|
+
super(...arguments), this.time = BaseRenderContributionTime.beforeFillStroke;
|
|
15291
|
+
}
|
|
15292
|
+
drawShape(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb) {
|
|
15293
|
+
const {
|
|
15294
|
+
background: background,
|
|
15295
|
+
backgroundMode = graphicAttribute.backgroundMode,
|
|
15296
|
+
backgroundFit = graphicAttribute.backgroundFit
|
|
15297
|
+
} = graphic.attribute;
|
|
15298
|
+
if (background) if (graphic.backgroundImg) {
|
|
15299
|
+
const res = graphic.resources.get(background);
|
|
15300
|
+
if ("success" !== res.state || !res.data) return;
|
|
15301
|
+
if (context.save(), graphic.parent && !graphic.transMatrix.onlyTranslate()) {
|
|
15302
|
+
const groupAttribute = getTheme(graphic.parent).group,
|
|
15303
|
+
{
|
|
15304
|
+
scrollX = groupAttribute.scrollX,
|
|
15305
|
+
scrollY = groupAttribute.scrollY
|
|
15306
|
+
} = graphic.parent.attribute;
|
|
15307
|
+
context.setTransformFromMatrix(graphic.parent.globalTransMatrix, !0), context.translate(scrollX, scrollY);
|
|
15308
|
+
}
|
|
15309
|
+
const b = graphic.AABBBounds;
|
|
15310
|
+
this.doDrawImage(context, res.data, b, backgroundMode, backgroundFit), context.restore(), graphic.transMatrix.onlyTranslate() || context.setTransformForCurrent();
|
|
15311
|
+
} else if (isObject$1(background)) {
|
|
15312
|
+
const {
|
|
15313
|
+
stroke: stroke,
|
|
15314
|
+
fill: fill,
|
|
15315
|
+
lineWidth = 1,
|
|
15316
|
+
cornerRadius = 0,
|
|
15317
|
+
expandX = 0,
|
|
15318
|
+
expandY = 0
|
|
15319
|
+
} = background;
|
|
15320
|
+
if (!stroke && !fill) return;
|
|
15321
|
+
context.beginPath();
|
|
15322
|
+
const {
|
|
15323
|
+
x: x,
|
|
15324
|
+
y: y,
|
|
15325
|
+
width: width,
|
|
15326
|
+
height: height
|
|
15327
|
+
} = getActualPosition(graphic);
|
|
15328
|
+
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());
|
|
15329
|
+
} else {
|
|
15330
|
+
context.beginPath();
|
|
15331
|
+
const b = graphic.AABBBounds;
|
|
15332
|
+
context.rect(x, y, b.width(), b.height()), context.fillStyle = background, context.globalAlpha = 1, context.fill();
|
|
15333
|
+
}
|
|
15334
|
+
}
|
|
15335
|
+
}
|
|
15336
|
+
function getActualPosition(graphic) {
|
|
15337
|
+
const boundsPadding = parsePadding(graphic.attribute.boundsPadding),
|
|
15338
|
+
bounds = graphic.AABBBounds;
|
|
15339
|
+
let x = bounds.x1,
|
|
15340
|
+
y = bounds.y1,
|
|
15341
|
+
width = bounds.width(),
|
|
15342
|
+
height = bounds.height();
|
|
15343
|
+
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]), {
|
|
15344
|
+
x: x,
|
|
15345
|
+
y: y,
|
|
15346
|
+
width: width,
|
|
15347
|
+
height: height
|
|
15348
|
+
};
|
|
15349
|
+
}
|
|
15350
|
+
class DefaultImageRenderContribution extends DefaultRectRenderContribution {
|
|
15351
|
+
constructor() {
|
|
15352
|
+
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
15353
|
+
}
|
|
15354
|
+
drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
|
|
15355
|
+
return super.drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
|
|
15356
|
+
}
|
|
15357
|
+
}
|
|
15358
|
+
const defaultImageRenderContribution = new DefaultImageRenderContribution();
|
|
15359
|
+
const defaultImageBackgroundRenderContribution = new DefaultImageBackgroundRenderContribution();
|
|
15360
|
+
|
|
15349
15361
|
class DefaultSymbolRenderContribution {
|
|
15350
15362
|
constructor() {
|
|
15351
15363
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -16925,15 +16937,17 @@ var __decorate$1s = undefined && undefined.__decorate || function (decorators, t
|
|
|
16925
16937
|
const repeatStr = ["", "repeat-x", "repeat-y", "repeat"];
|
|
16926
16938
|
let DefaultCanvasImageRender = class extends BaseRender {
|
|
16927
16939
|
constructor(imageRenderContribitions) {
|
|
16928
|
-
super(), this.imageRenderContribitions = imageRenderContribitions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageBackgroundRenderContribution], this.init(imageRenderContribitions);
|
|
16940
|
+
super(), this.imageRenderContribitions = imageRenderContribitions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageRenderContribution, defaultImageBackgroundRenderContribution], this.init(imageRenderContribitions);
|
|
16929
16941
|
}
|
|
16930
|
-
drawShape(image, context, x, y, drawContext, params, fillCb) {
|
|
16942
|
+
drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
16931
16943
|
const imageAttribute = getTheme(image).image,
|
|
16932
16944
|
{
|
|
16933
16945
|
width = imageAttribute.width,
|
|
16934
16946
|
height = imageAttribute.height,
|
|
16935
16947
|
repeatX = imageAttribute.repeatX,
|
|
16936
16948
|
repeatY = imageAttribute.repeatY,
|
|
16949
|
+
x: originX = imageAttribute.x,
|
|
16950
|
+
y: originY = imageAttribute.y,
|
|
16937
16951
|
cornerRadius = imageAttribute.cornerRadius,
|
|
16938
16952
|
image: url
|
|
16939
16953
|
} = image.attribute,
|
|
@@ -16958,7 +16972,7 @@ let DefaultCanvasImageRender = class extends BaseRender {
|
|
|
16958
16972
|
} else context.drawImage(res.data, x, y, width, height);
|
|
16959
16973
|
needRestore && context.restore();
|
|
16960
16974
|
}
|
|
16961
|
-
this.afterRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb);
|
|
16975
|
+
doStroke && (strokeCb ? strokeCb(context, image.attribute, imageAttribute) : sVisible && (context.setStrokeStyle(image, image.attribute, originX - x, originY - y, imageAttribute), context.stroke())), this.afterRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb);
|
|
16962
16976
|
}
|
|
16963
16977
|
draw(image, renderService, drawContext) {
|
|
16964
16978
|
const {
|
|
@@ -18994,7 +19008,9 @@ class OrthoCamera {
|
|
|
18994
19008
|
let _isBrowserEnv;
|
|
18995
19009
|
function initIsBrowserEnv() {
|
|
18996
19010
|
if (null == _isBrowserEnv) try {
|
|
18997
|
-
|
|
19011
|
+
const canvas = document.createElement("canvas"),
|
|
19012
|
+
ctx = canvas.getContext("2d");
|
|
19013
|
+
_isBrowserEnv = !!(window && canvas.getBoundingClientRect && requestAnimationFrame && window.devicePixelRatio && ctx && ctx.isPointInPath && ctx.isPointInStroke), _isBrowserEnv && (_isBrowserEnv = !!document.createElement);
|
|
18998
19014
|
} catch (err) {
|
|
18999
19015
|
_isBrowserEnv = !1;
|
|
19000
19016
|
}
|
|
@@ -28538,7 +28554,7 @@ const registerWrapText = _registerWrapText;
|
|
|
28538
28554
|
|
|
28539
28555
|
const roughModule = _roughModule;
|
|
28540
28556
|
|
|
28541
|
-
const version = "0.19.7
|
|
28557
|
+
const version = "0.19.7";
|
|
28542
28558
|
preLoadAllModule();
|
|
28543
28559
|
if (isBrowserEnv()) {
|
|
28544
28560
|
loadBrowserEnv(container);
|
|
@@ -28565,4 +28581,4 @@ registerSymbol();
|
|
|
28565
28581
|
registerText();
|
|
28566
28582
|
registerWrapText();
|
|
28567
28583
|
|
|
28568
|
-
export { ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateGroup, AnimateGroup1, AnimateMode, AnimateStatus, AnimateStepType, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, AttributeAnimate, AttributeUpdateType, AutoEnablePlugins, BaseCanvas, BaseEnvContribution, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CbAnimate, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, Container, ContainerModule, Context2dFactory, ContributionProvider, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageBackgroundRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultMorphingAnimateConfig, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStateAnimateConfig, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction$1 as Direction, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Edge, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FadeInPlus, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, Fragment, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, Gesture, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicAnimate, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, IContainPointMode, IMAGE_NUMBER_TYPE, Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, ManualTickHandler, ManualTicker, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, Meteor, MonotoneX, MonotoneY, MorphingPath, MotionPath, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PickItemInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, Pyramid3d, Pyramid3dRender, RAFTickHandler, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RafBasedSTO, Rect, Rect3DRender, Rect3d, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, ResourceLoader, RichText, RichTextRender, RotateBySphereAnimate, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, SegContext, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, StaticLayerHandlerContribution, Step$1 as Step, StreamLight, SubAnimate, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TimeOutTickHandler, TransformUtil, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VText, VWindow, VirtualLayerHandlerContribution, WILDCARD, WindowHandlerContribution, WrapText, XMLParser, _registerArc, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, application, applyTransformOnBezierCurves, arc3dCanvasPickModule, arc3dModule, arcCanvasPickModule, arcMathPickModule, arcModule, areaCanvasPickModule, areaMathPickModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindContributionProvider, bindContributionProviderNoSingletonScope, boundStroke, browserEnvModule, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache$1 as calcLineCache, calculateLineHeight, canvasAllocate, centroidOfSubpath, circleBounds, circleCanvasPickModule, circleMathPickModule, circleModule, clock, cloneGraphic, colorEqual, colorStringInterpolationToStr, container, cornerTangents, createArc, createArc3d, createArea, createCircle, createColor, createConicalGradient, createGlyph, createGroup, createImage, createLine, createMat4, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createSymbol, createText, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawIncrementalAreaSegments, drawIncrementalSegments, drawPathProxy, drawSegments, enumCommandMap, feishuEnvModule, fillVisible, findBestMorphingRotation, findNextGraphic, flatten_simplify, foreach, foreachAsync, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepSegments, genStepTypeSegments, getAttributeFromDefaultAttrList, getConicGradientAt, getContextFont, getCurrentEnv, getExtraModelMatrix, getModelMatrix, getRichTextBounds, getScaledStroke, getTextBounds, getTheme, getThemeFromGroup, globalTheme, glyphCanvasPickModule, glyphMathPickModule, glyphModule, graphicCreator, graphicService, graphicUtil, harmonyEnvModule, imageCanvasPickModule, imageMathPickModule, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initWxEnv, inject, injectable, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, intersect, isBrowserEnv, isNodeEnv, isSvg, isTransformKey, isXML, jsx, layerService, lineCanvasPickModule, lineMathPickModule, lineModule, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadNodeEnv, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, lynxEnvModule, mat3Tomat4, mat4Allocate, matrixAllocate, morphPath, multiInject, multiToOneMorph, multiply, multiplyMat4Mat3, multiplyMat4Mat4, named, newThemeObj, nodeEnvModule, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, pathCanvasPickModule, pathMathPickModule, pathModule, pathToBezierCurves, point$2 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polygonCanvasPickModule, polygonMathPickModule, polygonModule, preLoadAllModule, pyramid3dCanvasPickModule, pyramid3dModule, rafBasedSto, rect3dCanvasPickModule, rect3dModule, rectCanvasPickModule, rectFillVisible, rectMathPickModule, rectModule, rectStrokeVisible, recursiveCallBinarySplit, registerArc, registerArc3d, registerArc3dGraphic, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerGlyph, registerGlyphGraphic, registerGroup, registerGroupGraphic, registerImage, registerImageGraphic, registerLine, registerLineGraphic, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerRect, registerRect3d, registerRect3dGraphic, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerSymbol, registerSymbolGraphic, registerText, registerTextGraphic, registerWrapText, registerWrapTextGraphic, renderCommandList, rewriteProto, richTextMathPickModule, richtextCanvasPickModule, richtextModule, rotateX, rotateY, roughModule, runFill, runStroke, segments, shouldUseMat4, snapLength, splitArc, splitArea, splitCircle, splitGraphic, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, strCommandMap, strokeVisible, symbolCanvasPickModule, symbolMathPickModule, symbolModule, taroEnvModule, textAttributesToStyle, textCanvasPickModule, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textMathPickModule, textModule, transformKeys, transformMat4, transformUtil, translate, ttEnvModule, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, wxEnvModule, xul };
|
|
28584
|
+
export { ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateGroup, AnimateGroup1, AnimateMode, AnimateStatus, AnimateStepType, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, AttributeAnimate, AttributeUpdateType, AutoEnablePlugins, BaseCanvas, BaseEnvContribution, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CbAnimate, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, Container, ContainerModule, Context2dFactory, ContributionProvider, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageBackgroundRenderContribution, DefaultImageRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultMorphingAnimateConfig, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStateAnimateConfig, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction$1 as Direction, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Edge, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FadeInPlus, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, Fragment, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, Gesture, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicAnimate, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, IContainPointMode, IMAGE_NUMBER_TYPE, Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, ManualTickHandler, ManualTicker, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, Meteor, MonotoneX, MonotoneY, MorphingPath, MotionPath, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PickItemInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, Pyramid3d, Pyramid3dRender, RAFTickHandler, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RafBasedSTO, Rect, Rect3DRender, Rect3d, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, ResourceLoader, RichText, RichTextRender, RotateBySphereAnimate, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, SegContext, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, StaticLayerHandlerContribution, Step$1 as Step, StreamLight, SubAnimate, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TimeOutTickHandler, TransformUtil, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VText, VWindow, VirtualLayerHandlerContribution, WILDCARD, WindowHandlerContribution, WrapText, XMLParser, _registerArc, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, application, applyTransformOnBezierCurves, arc3dCanvasPickModule, arc3dModule, arcCanvasPickModule, arcMathPickModule, arcModule, areaCanvasPickModule, areaMathPickModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindContributionProvider, bindContributionProviderNoSingletonScope, boundStroke, browserEnvModule, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache$1 as calcLineCache, calculateLineHeight, canvasAllocate, centroidOfSubpath, circleBounds, circleCanvasPickModule, circleMathPickModule, circleModule, clock, cloneGraphic, colorEqual, colorStringInterpolationToStr, container, cornerTangents, createArc, createArc3d, createArea, createCircle, createColor, createConicalGradient, createGlyph, createGroup, createImage, createLine, createMat4, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createSymbol, createText, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawIncrementalAreaSegments, drawIncrementalSegments, drawPathProxy, drawSegments, enumCommandMap, feishuEnvModule, fillVisible, findBestMorphingRotation, findNextGraphic, flatten_simplify, foreach, foreachAsync, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepSegments, genStepTypeSegments, getAttributeFromDefaultAttrList, getConicGradientAt, getContextFont, getCurrentEnv, getExtraModelMatrix, getModelMatrix, getRichTextBounds, getScaledStroke, getTextBounds, getTheme, getThemeFromGroup, globalTheme, glyphCanvasPickModule, glyphMathPickModule, glyphModule, graphicCreator, graphicService, graphicUtil, harmonyEnvModule, imageCanvasPickModule, imageMathPickModule, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initWxEnv, inject, injectable, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, intersect, isBrowserEnv, isNodeEnv, isSvg, isTransformKey, isXML, jsx, layerService, lineCanvasPickModule, lineMathPickModule, lineModule, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadNodeEnv, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, lynxEnvModule, mat3Tomat4, mat4Allocate, matrixAllocate, morphPath, multiInject, multiToOneMorph, multiply, multiplyMat4Mat3, multiplyMat4Mat4, named, newThemeObj, nodeEnvModule, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, pathCanvasPickModule, pathMathPickModule, pathModule, pathToBezierCurves, point$2 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polygonCanvasPickModule, polygonMathPickModule, polygonModule, preLoadAllModule, pyramid3dCanvasPickModule, pyramid3dModule, rafBasedSto, rect3dCanvasPickModule, rect3dModule, rectCanvasPickModule, rectFillVisible, rectMathPickModule, rectModule, rectStrokeVisible, recursiveCallBinarySplit, registerArc, registerArc3d, registerArc3dGraphic, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerGlyph, registerGlyphGraphic, registerGroup, registerGroupGraphic, registerImage, registerImageGraphic, registerLine, registerLineGraphic, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerRect, registerRect3d, registerRect3dGraphic, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerSymbol, registerSymbolGraphic, registerText, registerTextGraphic, registerWrapText, registerWrapTextGraphic, renderCommandList, rewriteProto, richTextMathPickModule, richtextCanvasPickModule, richtextModule, rotateX, rotateY, roughModule, runFill, runStroke, segments, shouldUseMat4, snapLength, splitArc, splitArea, splitCircle, splitGraphic, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, strCommandMap, strokeVisible, symbolCanvasPickModule, symbolMathPickModule, symbolModule, taroEnvModule, textAttributesToStyle, textCanvasPickModule, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textMathPickModule, textModule, transformKeys, transformMat4, transformUtil, translate, ttEnvModule, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, wxEnvModule, xul };
|
package/dist/index.js
CHANGED
|
@@ -12263,6 +12263,7 @@
|
|
|
12263
12263
|
var _a;
|
|
12264
12264
|
if (!states.length) return void this.clearStates(hasAnimation);
|
|
12265
12265
|
if (!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) !== states.length || states.some((stateName, index) => this.currentStates[index] !== stateName))) return;
|
|
12266
|
+
this.stopStateAnimates();
|
|
12266
12267
|
const stateAttrs = {},
|
|
12267
12268
|
subAttrs = this.subGraphic.map(() => ({}));
|
|
12268
12269
|
states.forEach(stateName => {
|
|
@@ -12276,9 +12277,9 @@
|
|
|
12276
12277
|
}), this.updateNormalAttrs(stateAttrs), this.currentStates = states, this.applyStateAttrs(stateAttrs, states, hasAnimation);
|
|
12277
12278
|
}
|
|
12278
12279
|
clearStates(hasAnimation) {
|
|
12279
|
-
this.hasState() && this.normalAttrs
|
|
12280
|
+
this.stopStateAnimates(), this.hasState() && this.normalAttrs ? (this.currentStates = [], this.subGraphic.forEach(graphic => {
|
|
12280
12281
|
graphic.applyStateAttrs(graphic.normalAttrs, this.currentStates, hasAnimation, !0), graphic.normalAttrs = null;
|
|
12281
|
-
}), this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)
|
|
12282
|
+
}), this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [], this.normalAttrs = null;
|
|
12282
12283
|
}
|
|
12283
12284
|
clone() {
|
|
12284
12285
|
const glyph = new Glyph(Object.assign({}, this.attribute));
|
|
@@ -13850,7 +13851,7 @@
|
|
|
13850
13851
|
onClearIncremental: new SyncHook(["graphic", "group", "stage"]),
|
|
13851
13852
|
beforeUpdateAABBBounds: new SyncHook(["graphic", "stage", "willUpdate", "aabbBounds"]),
|
|
13852
13853
|
afterUpdateAABBBounds: new SyncHook(["graphic", "stage", "aabbBounds", "globalAABBBounds", "selfChange"])
|
|
13853
|
-
}, this.tempAABBBounds1 = new AABBBounds(), this.tempAABBBounds2 = new AABBBounds(), this._rectBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._symbolBoundsContribitions = [new DefaultSymbolOuterBorderBoundsContribution()], this._circleBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._arcBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._pathBoundsContribitions = [new DefaultOuterBorderBoundsContribution()];
|
|
13854
|
+
}, this.tempAABBBounds1 = new AABBBounds(), this.tempAABBBounds2 = new AABBBounds(), this._rectBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._symbolBoundsContribitions = [new DefaultSymbolOuterBorderBoundsContribution()], this._imageBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._circleBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._arcBoundsContribitions = [new DefaultOuterBorderBoundsContribution()], this._pathBoundsContribitions = [new DefaultOuterBorderBoundsContribution()];
|
|
13854
13855
|
}
|
|
13855
13856
|
onAttributeUpdate(graphic) {
|
|
13856
13857
|
this.hooks.onAttributeUpdate.taps.length && this.hooks.onAttributeUpdate.call(graphic);
|
|
@@ -14251,7 +14252,9 @@
|
|
|
14251
14252
|
}
|
|
14252
14253
|
const tb1 = this.tempAABBBounds1,
|
|
14253
14254
|
tb2 = this.tempAABBBounds2;
|
|
14254
|
-
return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this.
|
|
14255
|
+
return tb1.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), tb2.setValue(aabbBounds.x1, aabbBounds.y1, aabbBounds.x2, aabbBounds.y2), this._imageBoundsContribitions.length && this._imageBoundsContribitions.forEach(c => {
|
|
14256
|
+
c.updateBounds(attribute, imageTheme, tb1, graphic), aabbBounds.union(tb1), tb1.setValue(tb2.x1, tb2.y1, tb2.x2, tb2.y2);
|
|
14257
|
+
}), this.transformAABBBounds(attribute, aabbBounds, imageTheme, !1, graphic), aabbBounds;
|
|
14255
14258
|
}
|
|
14256
14259
|
combindShadowAABBBounds(bounds, graphic) {
|
|
14257
14260
|
if (graphic && graphic.shadowRoot) {
|
|
@@ -15182,70 +15185,6 @@
|
|
|
15182
15185
|
return path.closePath(), path;
|
|
15183
15186
|
}
|
|
15184
15187
|
|
|
15185
|
-
class DefaultImageBackgroundRenderContribution extends DefaultBaseBackgroundRenderContribution {
|
|
15186
|
-
constructor() {
|
|
15187
|
-
super(...arguments), this.time = exports.BaseRenderContributionTime.beforeFillStroke;
|
|
15188
|
-
}
|
|
15189
|
-
drawShape(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb) {
|
|
15190
|
-
const {
|
|
15191
|
-
background: background,
|
|
15192
|
-
backgroundMode = graphicAttribute.backgroundMode,
|
|
15193
|
-
backgroundFit = graphicAttribute.backgroundFit
|
|
15194
|
-
} = graphic.attribute;
|
|
15195
|
-
if (background) if (graphic.backgroundImg) {
|
|
15196
|
-
const res = graphic.resources.get(background);
|
|
15197
|
-
if ("success" !== res.state || !res.data) return;
|
|
15198
|
-
if (context.save(), graphic.parent && !graphic.transMatrix.onlyTranslate()) {
|
|
15199
|
-
const groupAttribute = getTheme(graphic.parent).group,
|
|
15200
|
-
{
|
|
15201
|
-
scrollX = groupAttribute.scrollX,
|
|
15202
|
-
scrollY = groupAttribute.scrollY
|
|
15203
|
-
} = graphic.parent.attribute;
|
|
15204
|
-
context.setTransformFromMatrix(graphic.parent.globalTransMatrix, !0), context.translate(scrollX, scrollY);
|
|
15205
|
-
}
|
|
15206
|
-
const b = graphic.AABBBounds;
|
|
15207
|
-
this.doDrawImage(context, res.data, b, backgroundMode, backgroundFit), context.restore(), graphic.transMatrix.onlyTranslate() || context.setTransformForCurrent();
|
|
15208
|
-
} else if (isObject$1(background)) {
|
|
15209
|
-
const {
|
|
15210
|
-
stroke: stroke,
|
|
15211
|
-
fill: fill,
|
|
15212
|
-
lineWidth = 1,
|
|
15213
|
-
cornerRadius = 0,
|
|
15214
|
-
expandX = 0,
|
|
15215
|
-
expandY = 0
|
|
15216
|
-
} = background;
|
|
15217
|
-
if (!stroke && !fill) return;
|
|
15218
|
-
context.beginPath();
|
|
15219
|
-
const {
|
|
15220
|
-
x: x,
|
|
15221
|
-
y: y,
|
|
15222
|
-
width: width,
|
|
15223
|
-
height: height
|
|
15224
|
-
} = getActualPosition(graphic);
|
|
15225
|
-
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());
|
|
15226
|
-
} else {
|
|
15227
|
-
context.beginPath();
|
|
15228
|
-
const b = graphic.AABBBounds;
|
|
15229
|
-
context.rect(x, y, b.width(), b.height()), context.fillStyle = background, context.globalAlpha = 1, context.fill();
|
|
15230
|
-
}
|
|
15231
|
-
}
|
|
15232
|
-
}
|
|
15233
|
-
function getActualPosition(graphic) {
|
|
15234
|
-
const boundsPadding = parsePadding(graphic.attribute.boundsPadding),
|
|
15235
|
-
bounds = graphic.AABBBounds;
|
|
15236
|
-
let x = bounds.x1,
|
|
15237
|
-
y = bounds.y1,
|
|
15238
|
-
width = bounds.width(),
|
|
15239
|
-
height = bounds.height();
|
|
15240
|
-
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]), {
|
|
15241
|
-
x: x,
|
|
15242
|
-
y: y,
|
|
15243
|
-
width: width,
|
|
15244
|
-
height: height
|
|
15245
|
-
};
|
|
15246
|
-
}
|
|
15247
|
-
const defaultImageBackgroundRenderContribution = new DefaultImageBackgroundRenderContribution();
|
|
15248
|
-
|
|
15249
15188
|
var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15250
15189
|
var d,
|
|
15251
15190
|
c = arguments.length,
|
|
@@ -15352,6 +15291,79 @@
|
|
|
15352
15291
|
const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
15353
15292
|
const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
15354
15293
|
|
|
15294
|
+
class DefaultImageBackgroundRenderContribution extends DefaultBaseBackgroundRenderContribution {
|
|
15295
|
+
constructor() {
|
|
15296
|
+
super(...arguments), this.time = exports.BaseRenderContributionTime.beforeFillStroke;
|
|
15297
|
+
}
|
|
15298
|
+
drawShape(graphic, context, x, y, doFill, doStroke, fVisible, sVisible, graphicAttribute, drawContext, fillCb, strokeCb) {
|
|
15299
|
+
const {
|
|
15300
|
+
background: background,
|
|
15301
|
+
backgroundMode = graphicAttribute.backgroundMode,
|
|
15302
|
+
backgroundFit = graphicAttribute.backgroundFit
|
|
15303
|
+
} = graphic.attribute;
|
|
15304
|
+
if (background) if (graphic.backgroundImg) {
|
|
15305
|
+
const res = graphic.resources.get(background);
|
|
15306
|
+
if ("success" !== res.state || !res.data) return;
|
|
15307
|
+
if (context.save(), graphic.parent && !graphic.transMatrix.onlyTranslate()) {
|
|
15308
|
+
const groupAttribute = getTheme(graphic.parent).group,
|
|
15309
|
+
{
|
|
15310
|
+
scrollX = groupAttribute.scrollX,
|
|
15311
|
+
scrollY = groupAttribute.scrollY
|
|
15312
|
+
} = graphic.parent.attribute;
|
|
15313
|
+
context.setTransformFromMatrix(graphic.parent.globalTransMatrix, !0), context.translate(scrollX, scrollY);
|
|
15314
|
+
}
|
|
15315
|
+
const b = graphic.AABBBounds;
|
|
15316
|
+
this.doDrawImage(context, res.data, b, backgroundMode, backgroundFit), context.restore(), graphic.transMatrix.onlyTranslate() || context.setTransformForCurrent();
|
|
15317
|
+
} else if (isObject$1(background)) {
|
|
15318
|
+
const {
|
|
15319
|
+
stroke: stroke,
|
|
15320
|
+
fill: fill,
|
|
15321
|
+
lineWidth = 1,
|
|
15322
|
+
cornerRadius = 0,
|
|
15323
|
+
expandX = 0,
|
|
15324
|
+
expandY = 0
|
|
15325
|
+
} = background;
|
|
15326
|
+
if (!stroke && !fill) return;
|
|
15327
|
+
context.beginPath();
|
|
15328
|
+
const {
|
|
15329
|
+
x: x,
|
|
15330
|
+
y: y,
|
|
15331
|
+
width: width,
|
|
15332
|
+
height: height
|
|
15333
|
+
} = getActualPosition(graphic);
|
|
15334
|
+
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());
|
|
15335
|
+
} else {
|
|
15336
|
+
context.beginPath();
|
|
15337
|
+
const b = graphic.AABBBounds;
|
|
15338
|
+
context.rect(x, y, b.width(), b.height()), context.fillStyle = background, context.globalAlpha = 1, context.fill();
|
|
15339
|
+
}
|
|
15340
|
+
}
|
|
15341
|
+
}
|
|
15342
|
+
function getActualPosition(graphic) {
|
|
15343
|
+
const boundsPadding = parsePadding(graphic.attribute.boundsPadding),
|
|
15344
|
+
bounds = graphic.AABBBounds;
|
|
15345
|
+
let x = bounds.x1,
|
|
15346
|
+
y = bounds.y1,
|
|
15347
|
+
width = bounds.width(),
|
|
15348
|
+
height = bounds.height();
|
|
15349
|
+
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]), {
|
|
15350
|
+
x: x,
|
|
15351
|
+
y: y,
|
|
15352
|
+
width: width,
|
|
15353
|
+
height: height
|
|
15354
|
+
};
|
|
15355
|
+
}
|
|
15356
|
+
class DefaultImageRenderContribution extends DefaultRectRenderContribution {
|
|
15357
|
+
constructor() {
|
|
15358
|
+
super(...arguments), this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
15359
|
+
}
|
|
15360
|
+
drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
|
|
15361
|
+
return super.drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
|
|
15362
|
+
}
|
|
15363
|
+
}
|
|
15364
|
+
const defaultImageRenderContribution = new DefaultImageRenderContribution();
|
|
15365
|
+
const defaultImageBackgroundRenderContribution = new DefaultImageBackgroundRenderContribution();
|
|
15366
|
+
|
|
15355
15367
|
class DefaultSymbolRenderContribution {
|
|
15356
15368
|
constructor() {
|
|
15357
15369
|
this.time = exports.BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -16931,15 +16943,17 @@
|
|
|
16931
16943
|
const repeatStr = ["", "repeat-x", "repeat-y", "repeat"];
|
|
16932
16944
|
exports.DefaultCanvasImageRender = class DefaultCanvasImageRender extends BaseRender {
|
|
16933
16945
|
constructor(imageRenderContribitions) {
|
|
16934
|
-
super(), this.imageRenderContribitions = imageRenderContribitions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageBackgroundRenderContribution], this.init(imageRenderContribitions);
|
|
16946
|
+
super(), this.imageRenderContribitions = imageRenderContribitions, this.numberType = IMAGE_NUMBER_TYPE, this.builtinContributions = [defaultImageRenderContribution, defaultImageBackgroundRenderContribution], this.init(imageRenderContribitions);
|
|
16935
16947
|
}
|
|
16936
|
-
drawShape(image, context, x, y, drawContext, params, fillCb) {
|
|
16948
|
+
drawShape(image, context, x, y, drawContext, params, fillCb, strokeCb) {
|
|
16937
16949
|
const imageAttribute = getTheme(image).image,
|
|
16938
16950
|
{
|
|
16939
16951
|
width = imageAttribute.width,
|
|
16940
16952
|
height = imageAttribute.height,
|
|
16941
16953
|
repeatX = imageAttribute.repeatX,
|
|
16942
16954
|
repeatY = imageAttribute.repeatY,
|
|
16955
|
+
x: originX = imageAttribute.x,
|
|
16956
|
+
y: originY = imageAttribute.y,
|
|
16943
16957
|
cornerRadius = imageAttribute.cornerRadius,
|
|
16944
16958
|
image: url
|
|
16945
16959
|
} = image.attribute,
|
|
@@ -16964,7 +16978,7 @@
|
|
|
16964
16978
|
} else context.drawImage(res.data, x, y, width, height);
|
|
16965
16979
|
needRestore && context.restore();
|
|
16966
16980
|
}
|
|
16967
|
-
this.afterRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb);
|
|
16981
|
+
doStroke && (strokeCb ? strokeCb(context, image.attribute, imageAttribute) : sVisible && (context.setStrokeStyle(image, image.attribute, originX - x, originY - y, imageAttribute), context.stroke())), this.afterRenderStep(image, context, x, y, doFill, !1, fVisible, !1, imageAttribute, drawContext, fillCb);
|
|
16968
16982
|
}
|
|
16969
16983
|
draw(image, renderService, drawContext) {
|
|
16970
16984
|
const {
|
|
@@ -19000,7 +19014,9 @@
|
|
|
19000
19014
|
let _isBrowserEnv;
|
|
19001
19015
|
function initIsBrowserEnv() {
|
|
19002
19016
|
if (null == _isBrowserEnv) try {
|
|
19003
|
-
|
|
19017
|
+
const canvas = document.createElement("canvas"),
|
|
19018
|
+
ctx = canvas.getContext("2d");
|
|
19019
|
+
_isBrowserEnv = !!(window && canvas.getBoundingClientRect && requestAnimationFrame && window.devicePixelRatio && ctx && ctx.isPointInPath && ctx.isPointInStroke), _isBrowserEnv && (_isBrowserEnv = !!document.createElement);
|
|
19004
19020
|
} catch (err) {
|
|
19005
19021
|
_isBrowserEnv = !1;
|
|
19006
19022
|
}
|
|
@@ -28544,7 +28560,7 @@
|
|
|
28544
28560
|
|
|
28545
28561
|
const roughModule = _roughModule;
|
|
28546
28562
|
|
|
28547
|
-
const version = "0.19.7
|
|
28563
|
+
const version = "0.19.7";
|
|
28548
28564
|
preLoadAllModule();
|
|
28549
28565
|
if (isBrowserEnv()) {
|
|
28550
28566
|
loadBrowserEnv(container);
|
|
@@ -28658,6 +28674,7 @@
|
|
|
28658
28674
|
exports.DefaultGroupBackgroundRenderContribution = DefaultGroupBackgroundRenderContribution;
|
|
28659
28675
|
exports.DefaultImageAttribute = DefaultImageAttribute;
|
|
28660
28676
|
exports.DefaultImageBackgroundRenderContribution = DefaultImageBackgroundRenderContribution;
|
|
28677
|
+
exports.DefaultImageRenderContribution = DefaultImageRenderContribution;
|
|
28661
28678
|
exports.DefaultLayout = DefaultLayout;
|
|
28662
28679
|
exports.DefaultLineAllocate = DefaultLineAllocate;
|
|
28663
28680
|
exports.DefaultLineAttribute = DefaultLineAttribute;
|
|
@@ -28923,6 +28940,7 @@
|
|
|
28923
28940
|
exports.defaultGraphicMemoryManager = defaultGraphicMemoryManager;
|
|
28924
28941
|
exports.defaultGroupBackgroundRenderContribution = defaultGroupBackgroundRenderContribution;
|
|
28925
28942
|
exports.defaultImageBackgroundRenderContribution = defaultImageBackgroundRenderContribution;
|
|
28943
|
+
exports.defaultImageRenderContribution = defaultImageRenderContribution;
|
|
28926
28944
|
exports.defaultLineAllocate = defaultLineAllocate;
|
|
28927
28945
|
exports.defaultPathAllocate = defaultPathAllocate;
|
|
28928
28946
|
exports.defaultRectAllocate = defaultRectAllocate;
|