Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vx/group

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vx/group

vx group

  • 0.0.182
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is @vx/group?

@vx/group is a part of the vx (now known as visx) collection of low-level visualization components for React. It provides a way to group multiple SVG elements together, making it easier to manage and transform them as a single unit. This is particularly useful in creating complex visualizations where you need to apply transformations or styles to a collection of elements.

What are @vx/group's main functionalities?

Grouping SVG Elements

This feature allows you to group multiple SVG elements together and apply transformations such as translation. In this example, a circle and a rectangle are grouped together and translated 100 units down and 50 units to the right.

const Group = require('@vx/group').Group;

<Group top={100} left={50}>
  <circle cx={0} cy={0} r={20} fill="blue" />
  <rect x={-10} y={-10} width={20} height={20} fill="red" />
</Group>

Applying Transformations

This feature allows you to apply transformations like rotation to a group of SVG elements. In this example, a circle and a rectangle are grouped together and rotated by 45 degrees.

const Group = require('@vx/group').Group;

<Group transform="rotate(45)">
  <circle cx={50} cy={50} r={20} fill="green" />
  <rect x={40} y={40} width={20} height={20} fill="yellow" />
</Group>

Other packages similar to @vx/group

Keywords

FAQs

Package last updated on 12 Dec 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc