Gathering detailed insights and metrics for croact-guides
Gathering detailed insights and metrics for croact-guides
Gathering detailed insights and metrics for croact-guides
Gathering detailed insights and metrics for croact-guides
A Guides component that can draw ruler and manage guidelines.
npm install croact-guides
Typescript
Module System
Node Version
NPM Version
76.8
Supply Chain
68.9
Quality
75.8
Maintenance
100
Vulnerability
100
License
0.29.2 Release (2023-07-29)
Updated on Jul 29, 2023
0.29.1 Release (2023-07-23)
Updated on Jul 23, 2023
0.29.0 Release (2023-07-23)
Updated on Jul 22, 2023
0.28.0 Release (2023-06-03)
Updated on Jun 02, 2023
0.27.0 Release (2023-06-02)
Updated on Jun 01, 2023
0.26.5 Release (2023-05-16)
Updated on May 16, 2023
TypeScript (44.63%)
HTML (26.94%)
Vue (11.19%)
JavaScript (9.39%)
Svelte (4.59%)
CSS (3.25%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
362 Stars
247 Commits
50 Forks
5 Watchers
2 Branches
7 Contributors
Updated on Jul 02, 2025
Latest Version
0.26.2
Package Id
croact-guides@0.26.2
Unpacked Size
286.93 kB
Size
64.73 kB
File Count
18
NPM Version
8.19.4
Node Version
16.20.0
Published on
Jul 29, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
9
A Guides component that can draw ruler and manage guidelines.
Demo / API / Ruler / Main Project
1$ npm i @scena/guides
1<script src="//daybrush.com/guides/release/latest/dist/guides.min.js"></script>
1
2import Guides from "@scena/guides";
3
4const guides = new Guides(document.body, {
5 type: "horizontal",
6}).on("changeGuides", e => {
7 console.log(e.guides);
8});
9
10
11let scrollX = 0;
12let scrollY = 0;
13window.addEventListener("resize", () => {
14 guides.resize();
15});
16
17window.addEventListener("wheel", e => {
18 scrollX += e.deltaX;
19 scrollY += e.deltaY;
20
21 guides.scrollGuides(scrollY);
22 guides.scroll(scrollX);
23});
24
The default unit is px, and a line is drawn every 50px. If you want to use a different unit instead of the px unit, use it like this:
See:
The guides
repo is managed as a monorepo with yarn
.
1yarn config set registry https://registry.npmjs.org/
Please give a ⭐️ if this project helped you!
If you have any questions or requests or want to contribute to guides
or other packages, please write the issue or give me a Pull Request freely.
If you find a bug, please report to us opening a new Issue on GitHub.
This project is MIT licensed.
MIT License
Copyright (c) 2019 Daybrush
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
99 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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