GithubHelp home page GithubHelp logo

工程改进建议 about layout HOT 3 CLOSED

hustcc avatar hustcc commented on August 23, 2024 1
工程改进建议

from layout.

Comments (3)

jtsang4 avatar jtsang4 commented on August 23, 2024 1

这个代码的设计上是否可以去掉 register 和 unregister 的概念,全部保持是纯函数的代码片段,并设置 sideEffects: false

这个包体积还是挺大的,强烈支持最后一点,方便使用者可以 tree shaking 掉没有使用的特性。

from layout.

mxz96102 avatar mxz96102 commented on August 23, 2024
  • register 和 unregister 是原来G6原有的概念,所以应该可以拆除
  • 关于 g-webgpu 的话,可以考虑维护 layout 和 layout-gpu两个包,按需引用
  • 因为是个break change,不如直接来维护成 1.0.0

from layout.

hustcc avatar hustcc commented on August 23, 2024

可以的,layout 就组成各种图布局算法的函数库。另外,类似的 graphlib 在工程上也注意些类似的问题~~

from layout.

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.