Giter VIP home page Giter VIP logo

my_seal's Introduction

my_seal

介绍

  • 包含两个功能对象:1. 公司公章; 2. 个人公章

使用方法

  1. 公司公章:
var seal = new CompanySeal(id, option) {
  ...
}

id: canvas的id
option: 配置对象{
  radius: number(半径,默认值75),
  color: String(颜色,关键字或十六进制颜色字符,默认 红色),
  fontFamily: String(字体,默认宋体),
  companyName: String(公司名称,默认为 青岛国富金融资产交易中心),
  typeName: String(印章类型,可选),
  hasInnerLine: Boolean(内边框,可选),
  securityCode: String(防伪码,可选)
}
seal.saveSealImg(): 将图片转化成 base64
  1. 个人印章
var seal = new PersonSeal(id, option) {
  ...
}

id: canvas的id
option: 配置对象{
  color: String(颜色,关键字或十六进制颜色字符,默认 红色),
  fontFamily: String(字体,默认宋体),
  personName: String(名称,默认为 张三),
  type: Number(类型(1: 正方形,2: 长方形),默认为 1)
}
seal.saveSealImg(): 将图片转化成 base64

更新

  1. 添加保存功能
  2. 公司公章可以调整半径大小,可添加防伪码
  3. 个人印章可以设置类型
  4. 提炼代码,通过对象继承提取公共代码

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.