Options
All
  • Public
  • Public/Protected
  • All
Menu

This class is a subclass of QRCode and is used to generate a MeCard QR-code element

Hierarchy

Index

Constructors

constructor

  • new MeCardQRCode(name: string, firstName: string, lastName?: string, nickname?: string, email?: string, contactPrimary?: string, contactSecondary?: string, contactTertiary?: string, website?: string, birthday?: string, notes?: string): MeCardQRCode
  • Parameters

    • name: string

      The name for this Code object (Cloud Office Print tag).

    • firstName: string

      The first name.

    • Optional lastName: string

      The last name. Optional.

    • Optional nickname: string

      The nickname. Optional.

    • Optional email: string

      The email. Optional.

    • Optional contactPrimary: string

      The primary contact. Optional.

    • Optional contactSecondary: string

      The secondary contact. Optional.

    • Optional contactTertiary: string

      The tertiary contact. Optional.

    • Optional website: string

      The website. Optional.

    • Optional birthday: string

      The birthday. Optional.

    • Optional notes: string

      The notes. Optional.

    Returns MeCardQRCode

Properties

autoColor

autoColor: undefined | boolean

autoColorDark

autoColorDark: undefined | string

autoColorLight

autoColorLight: undefined | string

backgroundImage

backgroundImage: undefined | string

backgroundImageAlpha

backgroundImageAlpha: undefined | number

birthday

birthday: undefined | string

colorDark

colorDark: undefined | string

colorLight

colorLight: undefined | string

contactPrimary

contactPrimary: undefined | string

contactSecondary

contactSecondary: undefined | string

contactTertiary

contactTertiary: undefined | string

data

data: string

dotscale

dotscale: undefined | number

email

email: undefined | string

lastName

lastName: undefined | string

logo

logo: undefined | string

logoBackgroundColor

logoBackgroundColor: undefined | string

logoHeight

logoHeight: undefined | string | number

logoWidth

logoWidth: undefined | string | number

name

name: string

nickname

nickname: undefined | string

notes

notes: undefined | string

piBlColor

piBlColor: undefined | string

piColor

piColor: undefined | string

piTlColor

piTlColor: undefined | string

piTrColor

piTrColor: undefined | string

poBlColor

poBlColor: undefined | string

poColor

poColor: undefined | string

poTlColor

poTlColor: undefined | string

poTrColor

poTrColor: undefined | string

quietZone

quietZone: undefined | number

quietZoneColor

quietZoneColor: undefined | string

timingColor

timingColor: undefined | string

timingHColor

timingHColor: undefined | string

timingVColor

timingVColor: undefined | string

type

type: string

website

website: undefined | string

Methods

asDict

  • asDict(): {}
  • The dict representation of this object

    Returns {}

    dict representation of this object

    • [key: string]: string | number | boolean

asDictSuffixes

  • asDictSuffixes(): {}
  • Get the suffixes that need to be appended to the keys of the dict representation of this Code object.

    Returns {}

    the suffixes that need to be appended to the keys of the dict representation of this Code object

    • [key: string]: string | number | boolean

availableTags

  • availableTags(): Set<string>

setAutoColor

  • setAutoColor(autoColor: boolean): void

setAutoColorDark

  • setAutoColorDark(autoColorDark: string): void
  • Parameters

    • autoColorDark: string

      Automatic color: dark CSS color (only required when qr_auto_color is set true) (dark color prefered, otherwise may lead to undetectable QR)

    Returns void

setAutoColorLight

  • setAutoColorLight(autoColorLight: string): void

setBackgroundImage

  • setBackgroundImage(backgroundImage: string): void

setBackgroundImageAlpha

  • setBackgroundImageAlpha(backgroundImageAlpha: number): void

setColorDark

  • setColorDark(colorDark: string): void

setColorLight

  • setColorLight(colorLight: string): void

setDotscale

  • setDotscale(dotscale: number): void

setLogo

  • setLogo(logo: string): void

setLogoBackgroundColor

  • setLogoBackgroundColor(logoBackgroundColor: string): void

setLogoHeight

  • setLogoHeight(logoHeight: string | number): void

setLogoWidth

  • setLogoWidth(logoWidth: string | number): void

setPiBlColor

  • setPiBlColor(piBlColor: string): void

setPiColor

  • setPiColor(piColor: string): void

setPiTlColor

  • setPiTlColor(piTlColor: string): void

setPiTrColor

  • setPiTrColor(piTrColor: string): void

setPoBlColor

  • setPoBlColor(poBlColor: string): void

setPoColor

  • setPoColor(poColor: string): void

setPoTlColor

  • setPoTlColor(poTlColor: string): void

setPoTrColor

  • setPoTrColor(poTrColor: string): void

setQuietZone

  • setQuietZone(quietZone: number): void

setQuietZoneColor

  • setQuietZoneColor(quietZoneColor: string): void

setTimingColor

  • setTimingColor(timingColor: string): void

setTimingHColor

  • setTimingHColor(timingHColor: string): void

setTimingVColor

  • setTimingVColor(timingVColor: string): void

Generated using TypeDoc