Comments (8)
1、需要一个http模块,放在zrender/tool 下?
2、是否需要一个 promise 模块?
http模块和promise模块都用外部依赖吧,e系内应该很多现成的,都放到lib里?把lib改名为dep?
3、Group 模块从 shape 目录移出来放到一个 container 目录下?
container不太合适,这里面放的都是容器?这个目录的目标是什么?
from zrender.
嗯我看下现成的。
以后都会放容器,原来和所有shape放一个目录下应该是没问题的,但是现在那个目录名字是shape,而且有个Base类,很容易误解这个Group是Base的子类(刚开始实现Group的时候也犹豫过是否从Base扩展,但是很多方法都不会用到所以放弃了)。现在把 Group 移出来主要是想强调这个和Base是同一层级的,而并不是一个shape。
from zrender.
http我还是直接写个简单的,etpl 这样的,只是请求xml和json文件用。
promise 用 ecomfe/promise 不知道是否合适,不过这个可以先放着。
from zrender.
svg加载放入根目录下的extension里作为一个插件,示例是doc/example.html
目前完成的:
- 保留原始的层级关系
- attributes和style里的绘制样式,样式的继承
- transform属性的解析,支持translate, rotate, scale, transform, 不支持skew
- defs的引用,目前支持gradient
- 支持图形
rect
,circle
,line
,ellipse
,polygon
,polyline
,path
。text
和image
稍后加入
tool目录下加入http模块
Group模块从shape目录移到src目录下
from zrender.
9年了,这个功能完成了吗?并没有找到对应的演示文件
from zrender.
@nanfb https://github.com/ecomfe/zrender/blob/master/src/tool/parseSVG.ts
from zrender.
@nanfb https://github.com/ecomfe/zrender/blob/master/src/tool/parseSVG.ts
导出的方法是这个吗?parseXML,怪不得找不到,靴靴
from zrender.
@nanfb https://github.com/ecomfe/zrender/blob/master/src/tool/parseSVG.ts
导出的方法是这个吗?parseXML,怪不得找不到,靴靴
这个方法对于defs中引入的样式不支持,只能显示标签中的属性,
from zrender.
Related Issues (20)
- 两个非闭合线性图形,每个都有多个线段组成,且两个线段数量不固定,怎么求这两个图形的闭合区域 HOT 1
- 对于svg渲染器,有没有内置的方法将dom转化为zrenderJSON格式
- zrender更改坐标系的问题
- animator.js bug when building vite HOT 1
- Bug: uniapp 环境打包 h5。会注入 wx 全局变量。导致zrender 判断认为微信环境,从而引起echarts 功能异常 HOT 3
- 如何使用zrender绘制Canvas中的ellipse(椭圆弧)
- dispose/mouseup races cause NPE in Handler.isOutsideBoundary() HOT 1
- TS报错了 HOT 1
- [Feature] Support rotation relative to a point other than the origin
- 鼠标从元素上直接移出画布时,从鼠标移出位置进入画布并hover元素时,没有触发元素的mouseover事件。 HOT 3
- 文档问题 HOT 1
- 网络安全漏洞修复
- 网络安全漏洞修复
- 元素拖动后,如果获取新的x,y坐标,而不是position里面的
- 元素上的dragstart事件有问题 HOT 1
- 在触屏设备中,('mouseover')空白处(即无目标区域)是无法触发鼠标事件,click事件是可以触发的
- [vite:reporter] chunk.moduleIds is not iterable
- 导入报错 HOT 2
- SSR broken when Navigator object is defined. Node JS 21.
- decomposeTransform函数调用时parent.invTransform可能为null
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zrender.