Package Exports
- @antv/g-plugin-html-renderer
- @antv/g-plugin-html-renderer/dist/index.esm.js
- @antv/g-plugin-html-renderer/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@antv/g-plugin-html-renderer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@antv/g-plugin-html-renderer
Render HTML for g-canvas/svg/webgl.
const p1 = new HTML({
style: {
x: 200,
y: 100,
html: 'p1',
},
});
const p2 = new HTML({
style: {
x: 400,
y: 100,
html: 'p2',
},
});
// 修改属性
p1.style.x = x1;
p1.style.filter = 'blur(5px)';
// 变换
p1.translate(100, 0);
p1.scale(2);