🚀 DAY 2 OF LAUNCH WEEK: Unify Your Security Stack with Socket Basics.Learn more
Socket
Book a DemoInstallSign in
Socket

moa-roll

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moa-roll

> TODO: description

latest
npmnpm
Version
1.2.67
Version published
Maintainers
1
Created
Source

moa-flow

TODO: description

Usage

// G的api文档:https://g-next.antv.vision/en/docs/api/basic/display-object,G的整体api是和svg一样的

import { Flow } from '@ali/moa-flow';

// 引用
<Flow
  width={800}
  height={800}
  canvasData={{
    scale: 1,
    x: 0,
    y: 0,
    cells: [
      {
        label: 'hello',
        id: 'TEST_NODE',
        component: 'CommonNode',
        cellType: 'node',
        x: 100,
        y: 100,
        ports: []
      },
    ],
  }}
/>

TODO

  • 监听画布是否有除了 x,y 之外的变动 变动了的使用 requestIdleCallback 分片缓存
    • 方案一,定义所有会触发画布变动的行为,并且以事件通知缓存行为
    • 方案二,mobx 深度监听 canvasData 除了 x,y 之外的变动,autorun 缓存行为
  • 大数据量下的多选性能,使用二级分区(空间换时间)
  • Portal 看有无更好的方案支持跨渲染器

FAQs

Package last updated on 14 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts