zextra
Version:
***Zextra*** stands for "Ziko Extra" is an extension package that enhances [ZikoJS](https://github.com/zakarialaoui10/ziko.js) by providing additional utilities and UI elements. It expands ZikoJS with extra features, making it easier to work with custom U
9 lines • 324 B
JavaScript
import { svgPath } from "../basic/path.js"
const svgGrid=(w,h,r=10,c=10)=>{
let path=svgPath().fill("none").stroke("coral").strokeWidth(0.6)
console.log({x:w/r,y:h/c})
for(let i=0;i<w;i++) path.moveTo(0,i*w/r).hr(w)
for(let j=0;j<h;j++) path.moveTo(j*h/c,0).vr(h)
return path
}
export{ svgGrid };