Giter Club home page Giter Club logo

Comments (8)

kener avatar kener commented on May 12, 2024

1、需要一个http模块,放在zrender/tool 下?
2、是否需要一个 promise 模块?
http模块和promise模块都用外部依赖吧,e系内应该很多现成的,都放到lib里?把lib改名为dep?

3、Group 模块从 shape 目录移出来放到一个 container 目录下?
container不太合适,这里面放的都是容器?这个目录的目标是什么?

from zrender.

pissang avatar pissang commented on May 12, 2024

嗯我看下现成的。

以后都会放容器,原来和所有shape放一个目录下应该是没问题的,但是现在那个目录名字是shape,而且有个Base类,很容易误解这个Group是Base的子类(刚开始实现Group的时候也犹豫过是否从Base扩展,但是很多方法都不会用到所以放弃了)。现在把 Group 移出来主要是想强调这个和Base是同一层级的,而并不是一个shape。

from zrender.

pissang avatar pissang commented on May 12, 2024

http我还是直接写个简单的,etpl 这样的,只是请求xml和json文件用。

promise 用 ecomfe/promise 不知道是否合适,不过这个可以先放着。

from zrender.

pissang avatar pissang commented on May 12, 2024

svg加载放入根目录下的extension里作为一个插件,示例是doc/example.html

目前完成的:
  • 保留原始的层级关系
  • attributes和style里的绘制样式,样式的继承
  • transform属性的解析,支持translate, rotate, scale, transform, 不支持skew
  • defs的引用,目前支持gradient
  • 支持图形rect, circle, line, ellipse, polygon, polyline, pathtextimage稍后加入
tool目录下加入http模块
Group模块从shape目录移到src目录下

from zrender.

nanfb avatar nanfb commented on May 12, 2024

9年了,这个功能完成了吗?并没有找到对应的演示文件

from zrender.

pissang avatar pissang commented on May 12, 2024

@nanfb https://github.com/ecomfe/zrender/blob/master/src/tool/parseSVG.ts

from zrender.

nanfb avatar nanfb commented on May 12, 2024

@nanfb https://github.com/ecomfe/zrender/blob/master/src/tool/parseSVG.ts

导出的方法是这个吗?parseXML,怪不得找不到,靴靴

from zrender.

nanfb avatar nanfb commented on May 12, 2024

@nanfb https://github.com/ecomfe/zrender/blob/master/src/tool/parseSVG.ts

导出的方法是这个吗?parseXML,怪不得找不到,靴靴

这个方法对于defs中引入的样式不支持,只能显示标签中的属性,

from zrender.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.