Installations
npm install @antv/layout
Developer
antvis
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
Yes
Node Version
20.13.1
NPM Version
10.8.2
Statistics
207 Stars
193 Commits
55 Forks
12 Watching
13 Branches
65 Contributors
Updated on 25 Nov 2024
Bundle Size
271.01 kB
Minified
77.92 kB
Minified + Gzipped
Languages
TypeScript (77.37%)
Rust (18.41%)
HTML (2.4%)
JavaScript (1.81%)
Shell (0.01%)
Total Downloads
Cumulative downloads
Total Downloads
15,934,649
Last day
-8.3%
22,400
Compared to previous day
Last week
8.9%
123,558
Compared to previous week
Last month
12.7%
452,045
Compared to previous month
Last year
-6%
5,672,535
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
12
@antv/layout
This is a collection of basic layout algorithms. We provide the following packages to support different runtime environments:
- @antv/layout Implemented with TypeScript. Online Demo
- @antv/layout-rust Implemented with Rust.
- @antv/layout-wasm Provide a WASM binding of
@antv/layout-rust
. Online Demo - @antv/layout-gpu Accelerate some parallelizable algorithms such as Fruchterman with WebGPU which has a better performance under large amount of data.
Online benchmarks: https://antv.vision/layout/index.html
Development
We use Vite to start a dev server:
1$ pnpm dev
Test
1$ pnpm test
Publish
Using Changesets with pnpm: https://pnpm.io/next/using-changesets
The generated markdown files in the .changeset directory should be committed to the repository.
1pnpm changeset
This will bump the versions of the packages previously specified with pnpm changeset (and any dependents of those) and update the changelog files.
1pnpm changeset version
Commit the changes. This command will publish all packages that have bumped versions not yet present in the registry.
1pnpm publish -r
If you want to publish versions for test:
1pnpm changeset pre enter alpha # 发布 alpha 版本 2pnpm changeset pre enter beta # 发布 beta 版本 3pnpm changeset pre enter rc # 发布 rc 版本
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
1 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: RUSTSEC-2022-0054 / GHSA-rc23-xxgq-x27g
Reason
10 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 8
Reason
Found 14/30 approved changesets -- score normalized to 4
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/build.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/layout/build.yml/v5?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/layout/build.yml/v5?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/antvis/layout/build.yml/v5?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 29 are checked with a SAST tool
Score
4.6
/10
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More