Socket
Book a DemoInstallSign in
Socket

grid-line-axis

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grid-line-axis

Creates a HTML custom element, that draw grid line numbers for a given grid on all axes. The grid lines are also draw. It is like the grid line view in the google developer tools. In order for everything to be positioned correctly, the custom element an

0.3.9
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

grid-line-axis

Creates a HTML custom element, that draw grid line numbers for a given grid on all axes. The grid lines are also draw. It is like the grid line view in the google developer tools. In order for everything to be positioned correctly, the custom element and the target grid should have a common offsetParent.

Params

sourceId (required)

The ID of the grid whose gridline numbers are to be displayed. You can also use the old parameter name "gridContainerId"

hideTop, hideLeft, hideRight, hideBottom (without value)

Without these parameters, the numbers are displayed on all four axes. You can hide the desired axis with the corresponding parameter. The Parameters have no value.

margin

Margin for the grid to make palce for the numbers. Default is '1em'

fontSize

Font size for the numbers. Default is "smaller"

colorTop, colorLeft, colorRight, colorBottom

Color for the numbers. Default is "darkred" for all axes

hideLines (without value)

By default, vertical and horizontal gird lines are drawn. If you insert the "hideLines" parameter , then the lines are not drawn. The parameter has no value.

hideAxis (without value)

By default, the grid line numbers are displayed on the respective axes. If the "hideAxis" attribute is passed , then these are not displayed. Useful if only the grid lines are needed.

colorGridLines

With this parameter you can set the color of the grid lines. If the parameter is not passed, "lightskyblue" is used.

zIndexLines

The zIndex for the grid lines. Default is 99.

opacityLines

The opacity for the grid lines. Default is 0.8

Keywords

HTML custom element

FAQs

Package last updated on 14 Jun 2023

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.