@visactor/vrender 0.16.17-alpha.4 → 0.16.17
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/index.js +16 -8
- 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 +6 -6
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -21,5 +21,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
21
21
|
|
|
22
22
|
const vrender_core_1 = require("@visactor/vrender-core"), vrender_kits_1 = require("@visactor/vrender-kits");
|
|
23
23
|
|
|
24
|
-
exports.version = "0.16.17
|
|
24
|
+
exports.version = "0.16.17", (0, vrender_kits_1.loadAllModule)(vrender_core_1.container),
|
|
25
25
|
__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,yDAAmD;AACnD,yDAAuD;AAG1C,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAmD;AACnD,yDAAuD;AAG1C,QAAA,OAAO,GAAG,SAAS,CAAC;AAEjC,IAAA,4BAAa,EAAC,wBAAS,CAAC,CAAC;AAEzB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import { container } from '@visactor/vrender-core';\nimport { loadAllModule } from '@visactor/vrender-kits';\n\n// 导出版本号\nexport const version = \"0.16.17\";\n\nloadAllModule(container);\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
|
package/dist/index.js
CHANGED
|
@@ -15997,9 +15997,7 @@
|
|
|
15997
15997
|
cacheList = [];
|
|
15998
15998
|
_path.forEach(function (item) {
|
|
15999
15999
|
var cache = new CustomPath2D().fromString(item.d),
|
|
16000
|
-
attribute = {
|
|
16001
|
-
fill: "black"
|
|
16002
|
-
};
|
|
16000
|
+
attribute = {};
|
|
16003
16001
|
SVG_PARSE_ATTRIBUTE_MAP_KEYS.forEach(function (k) {
|
|
16004
16002
|
item[k] && (attribute[SVG_PARSE_ATTRIBUTE_MAP[k]] = item[k]);
|
|
16005
16003
|
}), cacheList.push({
|
|
@@ -20308,10 +20306,20 @@
|
|
|
20308
20306
|
var p = context.project(x, y, z),
|
|
20309
20307
|
camera = context.camera;
|
|
20310
20308
|
context.camera = null, !1 === parsedPath.draw(context, size, p.x, p.y, void 0, function (p, a) {
|
|
20311
|
-
|
|
20309
|
+
var _a, _b, _c;
|
|
20310
|
+
if (symbol._parsedPath.svgCache) {
|
|
20311
|
+
var obj = Object.assign({}, a);
|
|
20312
|
+
obj.fill = null !== (_a = a.fill) && void 0 !== _a ? _a : symbol.attribute.fill, obj.opacity = null !== (_b = a.fill) && void 0 !== _b ? _b : symbol.attribute.opacity, obj.fillOpacity = symbol.attribute.fillOpacity, obj.stroke = null !== (_c = a.stroke) && void 0 !== _c ? _c : symbol.attribute.stroke, a = obj;
|
|
20313
|
+
}
|
|
20314
|
+
a.fill && (fillCb ? fillCb(context, symbol.attribute, symbolAttribute) : (context.setCommonStyle(symbol, a, originX - x, originY - y, symbolAttribute), context.fill())), a.stroke && (strokeCb ? strokeCb(context, symbol.attribute, symbolAttribute) : (context.setStrokeStyle(symbol, a, (originX - x) / scaleX, (originY - y) / scaleY, symbolAttribute), context.stroke()));
|
|
20312
20315
|
}) && context.closePath(), context.camera = camera;
|
|
20313
20316
|
} else !1 === parsedPath.draw(context, size, x, y, z, function (p, a) {
|
|
20314
|
-
|
|
20317
|
+
var _a, _b, _c;
|
|
20318
|
+
if (symbol._parsedPath.svgCache) {
|
|
20319
|
+
var obj = Object.assign({}, a);
|
|
20320
|
+
obj.fill = null !== (_a = a.fill) && void 0 !== _a ? _a : symbol.attribute.fill, obj.opacity = null !== (_b = a.opacity) && void 0 !== _b ? _b : symbol.attribute.opacity, obj.fillOpacity = symbol.attribute.fillOpacity, obj.stroke = null !== (_c = a.stroke) && void 0 !== _c ? _c : symbol.attribute.stroke, a = obj;
|
|
20321
|
+
}
|
|
20322
|
+
a.fill && (fillCb ? fillCb(context, symbol.attribute, symbolAttribute) : (context.setCommonStyle(symbol, a, originX - x, originY - y, symbolAttribute), context.fill())), a.stroke && (strokeCb ? strokeCb(context, symbol.attribute, symbolAttribute) : (context.setStrokeStyle(symbol, a, (originX - x) / scaleX, (originY - y) / scaleY, symbolAttribute), context.stroke()));
|
|
20315
20323
|
}) && context.closePath();
|
|
20316
20324
|
context.setShadowBlendStyle && context.setShadowBlendStyle(symbol, symbol.attribute, symbolAttribute), this.beforeRenderStep(symbol, context, x, y, doFill, doStroke, fVisible, sVisible, symbolAttribute, drawContext, fillCb, strokeCb), doFill && !parsedPath.isSvg && (fillCb ? fillCb(context, symbol.attribute, symbolAttribute) : fVisible && (context.setCommonStyle(symbol, symbol.attribute, originX - x, originY - y, symbolAttribute), context.fill())), doStroke && !parsedPath.isSvg && (strokeCb ? strokeCb(context, symbol.attribute, symbolAttribute) : sVisible && (context.setStrokeStyle(symbol, symbol.attribute, (originX - x) / scaleX, (originY - y) / scaleY, symbolAttribute), context.stroke())), this.afterRenderStep(symbol, context, x, y, doFill, doStroke, fVisible, sVisible, symbolAttribute, drawContext, fillCb, strokeCb);
|
|
20317
20325
|
}
|
|
@@ -20749,7 +20757,7 @@
|
|
|
20749
20757
|
var repeat = 0;
|
|
20750
20758
|
if ("repeat" === repeatX && (repeat |= 1), "repeat" === repeatY && (repeat |= 2), repeat) {
|
|
20751
20759
|
var pattern = context.createPattern(res.data, repeatStr[repeat]);
|
|
20752
|
-
context.fillStyle = pattern, context.
|
|
20760
|
+
context.fillStyle = pattern, context.translate(x, y, !0), context.fillRect(0, 0, width, height), context.translate(-x, -y, !0);
|
|
20753
20761
|
} else context.drawImage(res.data, x, y, width, height);
|
|
20754
20762
|
needRestore && context.restore();
|
|
20755
20763
|
}
|
|
@@ -21980,7 +21988,7 @@
|
|
|
21980
21988
|
graphic.add(g);
|
|
21981
21989
|
});
|
|
21982
21990
|
} else result = pickerService.pickGroup(graphic, point, params.parentMatrix, pickParams);
|
|
21983
|
-
return context.camera = null, pickParams.in3dInterceptor = !1, result;
|
|
21991
|
+
return context.camera = null, pickParams.in3dInterceptor = !1, context.restore(), result;
|
|
21984
21992
|
}
|
|
21985
21993
|
return context.restore(), null;
|
|
21986
21994
|
}
|
|
@@ -34678,7 +34686,7 @@
|
|
|
34678
34686
|
|
|
34679
34687
|
var roughModule = _roughModule;
|
|
34680
34688
|
|
|
34681
|
-
const version = "0.16.17
|
|
34689
|
+
const version = "0.16.17";
|
|
34682
34690
|
loadAllModule(container);
|
|
34683
34691
|
|
|
34684
34692
|
exports.ACustomAnimate = ACustomAnimate;
|