🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

hy-print

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hy-print

print for table

latest
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

前端打印

目前支持原生css非第三方引入css.后续会引入h2c来支持第三样式打印 配置选项
//element和id二选一必选一个。
interface printType {
    id? : string|undefined|null
    //dom元素
    element?: Element | undefined | null,
    //开启样式克隆,会克隆大部分样式到iframe
    clone: boolean,
    //类型,目前支持normal
    type: "hyOnlyTable" | "canvas" | "print.js" | "normal" ;
    markWater?: {
        //文字
        text:string
        //x轴间距
        gapX:number
        //y轴间距
        gapY:number
    }
    //目前不支持引入css
    css?: any
}

Keywords

print

FAQs

Package last updated on 11 Jul 2025

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