UNPKG

@ekisa-web-sdk/addon-wacom-signature

Version:
174 lines (170 loc) 7.3 kB
/* eslint-disable @typescript-eslint/no-explicit-any */ /* ************************************************************************** SigCaptX-Globals.ts This file contains enumerators, function objects and global variables common to various functions Copyright (c) 2021 Wacom Co. Ltd. All rights reserved. v1.0 ***************************************************************************/ /* Define global variables */ export const wgssSignatureSDK = null; // Signature SDK object export const SOLIDLINE = 1; // Used for drawing lines and rectangles export const OUTLINE = 4; // Ditto export const CHECKBOX_USETICKSYMBOL = 2; // Specifies whether the tick symbol should be used to show that the checkbox has been clicked export const BITMAP_BACKGROUNDCOLOR = 0x00ffffff; export const BITMAP_IMAGEFORMAT = 'bmp'; export const BITMAP_INKCOLOR = 0x00000000; export const BITMAP_INKWIDTH = 0.7; export const BITMAP_PADDING_X = 4; export const BITMAP_PADDING_Y = 4; export const TIMEOUT = 1500; // Timeout value for connecting to the port used for the SigCaptX service export const SERVICEPORT = 8000; // Port used for the SigCaptX service export const LICENCEKEY = 'eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI3YmM5Y2IxYWIxMGE0NmUxODI2N2E5MTJkYTA2ZTI3NiIsImV4cCI6MjE0NzQ4MzY0NywiaWF0IjoxNTYwOTUwMjcyLCJyaWdodHMiOlsiU0lHX1NES19DT1JFIiwiU0lHQ0FQVFhfQUNDRVNTIl0sImRldmljZXMiOlsiV0FDT01fQU5ZIl0sInR5cGUiOiJwcm9kIiwibGljX25hbWUiOiJTaWduYXR1cmUgU0RLIiwid2Fjb21faWQiOiI3YmM5Y2IxYWIxMGE0NmUxODI2N2E5MTJkYTA2ZTI3NiIsImxpY191aWQiOiJiODUyM2ViYi0xOGI3LTQ3OGEtYTlkZS04NDlmZTIyNmIwMDIiLCJhcHBzX3dpbmRvd3MiOltdLCJhcHBzX2lvcyI6W10sImFwcHNfYW5kcm9pZCI6W10sIm1hY2hpbmVfaWRzIjpbXX0.ONy3iYQ7lC6rQhou7rz4iJT_OJ20087gWz7GtCgYX3uNtKjmnEaNuP3QkjgxOK_vgOrTdwzD-nm-ysiTDs2GcPlOdUPErSp_bcX8kFBZVmGLyJtmeInAW6HuSp2-57ngoGFivTH_l1kkQ1KMvzDKHJbRglsPpd4nVHhx9WkvqczXyogldygvl0LRidyPOsS5H2GYmaPiyIp9In6meqeNQ1n9zkxSHo7B11mp_WXJXl0k1pek7py8XYCedCNW5qnLi4UCNlfTd6Mk9qz31arsiWsesPeR9PN121LBJtiPi023yQU8mgb9piw_a-ccciviJuNsEuRDN3sGnqONG3dMSA'; // Licence key used for sigCtl and wizCtl in SigCaptX-SessionControl.js export const PIN_MAXLENGTH = 4; // Max lenght of PIN export const PIN_MINLENGTH = 1; // Min length of PIN export var padRange; (function (padRange) { padRange["STU300"] = "300"; padRange["STU430"] = "430"; padRange["STU500"] = "500"; padRange["STU5X0"] = "5X0"; })(padRange || (padRange = {})); export var padType; (function (padType) { padType["STU300"] = "Wacom STU-300"; padType["STU430"] = "Wacom STU-430"; padType["STU500"] = "Wacom STU-500"; padType["STU5X0"] = "Wacom STU-520, 530, 540 or 541"; })(padType || (padType = {})); export var buttonFunction; (function (buttonFunction) { buttonFunction["PREVIOUS"] = "PREVIOUS"; buttonFunction["CANCEL"] = "CANCEL"; })(buttonFunction || (buttonFunction = {})); export var checkSizeSelection; (function (checkSizeSelection) { checkSizeSelection["LARGE"] = "LARGE"; checkSizeSelection["STANDARD"] = "STANDARD"; })(checkSizeSelection || (checkSizeSelection = {})); export var checkSize; (function (checkSize) { checkSize[checkSize["STU300_Small"] = 12] = "STU300_Small"; checkSize[checkSize["STU300_Large"] = 20] = "STU300_Large"; checkSize[checkSize["STU430_Small"] = 12] = "STU430_Small"; checkSize[checkSize["STU430_Large"] = 30] = "STU430_Large"; checkSize[checkSize["STU500_Small"] = 22] = "STU500_Small"; checkSize[checkSize["STU500_Large"] = 40] = "STU500_Large"; checkSize[checkSize["STU5X0_Small"] = 22] = "STU5X0_Small"; checkSize[checkSize["STU5X0_Large"] = 40] = "STU5X0_Large"; })(checkSize || (checkSize = {})); export var padColors; (function (padColors) { padColors["BLUE"] = "0R 0G 0.8B"; padColors["GREEN"] = "0R 0.8G 0B"; padColors["BLACK"] = "0R 0G 0B"; padColors["WHITE"] = "1R 1G 1B"; padColors["PURPLE"] = "0.7R 0.3G 1B"; padColors["RED"] = "0.6R 0G 0.2B"; })(padColors || (padColors = {})); export var textSource; (function (textSource) { textSource[textSource["LOCAL"] = 1] = "LOCAL"; textSource[textSource["REMOTE"] = 2] = "REMOTE"; textSource[textSource["UTF8"] = 3] = "UTF8"; textSource[textSource["STANDARD"] = 4] = "STANDARD"; })(textSource || (textSource = {})); export var buttonEvent; (function (buttonEvent) { buttonEvent["NEXT"] = "Next"; buttonEvent["CHECK"] = "Check"; buttonEvent["CANCEL"] = "Cancel"; buttonEvent["CLEAR"] = "Clear"; buttonEvent["OK"] = "OK"; })(buttonEvent || (buttonEvent = {})); export var radioSelection; (function (radioSelection) { radioSelection["MALE"] = "Male"; radioSelection["FEMALE"] = "Female"; })(radioSelection || (radioSelection = {})); // Set up the classes used for defining the various objects which are to be displayed on the pad export class TextObject { constructor(textString, xPos, yPos, fontName, fontSize, fontBold, type) { this.textString = textString; this.xPos = xPos; this.yPos = yPos; this.fontName = fontName; this.fontSize = fontSize; if (fontBold) { this.fontBold = fontBold; } if (type) { this.type = type; } else { this.type = 'txt'; } this.fontBackColor = ' '; this.fontForeColor = ' '; } } export class CheckboxObject { constructor(xPos, yPos, fontName, fontSize, options) { this.xPos = xPos; this.yPos = yPos; this.fontName = fontName; this.fontSize = fontSize; this.options = options; this.fontBackColor = ' '; this.fontForeColor = ' '; } } export class RadioObject { constructor(xPos, yPos, label, group, checked) { this.xPos = xPos; this.yPos = yPos; this.buttonLabel = label; this.groupName = group; this.buttonChecked = checked; this.fontBackColor = ' '; this.fontForeColor = ' '; } } export class ButtonObject { constructor(xPos, yPos, buttonSize, buttonWidth, buttonBold, buttonType, buttonText) { this.xPos = xPos; this.yPos = yPos; this.buttonSize = buttonSize; this.buttonWidth = buttonWidth; this.buttonBold = buttonBold; this.buttonType = buttonType; if (buttonText) { this.buttonText = buttonText; } else { this.buttonText = buttonType; } this.fontBackColor = ' '; this.fontForeColor = ' '; this.imageFile = ' '; } } export class RectangleObject { constructor(x1Pos, y1Pos, x2Pos, y2Pos, width, options) { this.x1Pos = x1Pos; this.y1Pos = y1Pos; this.x2Pos = x2Pos; this.y2Pos = y2Pos; this.lineWidth = width; this.options = options; } } export class LineObject { constructor(x1Pos, y1Pos, x2Pos, y2Pos, width, options) { this.x1Pos = x1Pos; this.y1Pos = y1Pos; this.x2Pos = x2Pos; this.y2Pos = y2Pos; this.lineWidth = width; this.options = options; } } //# sourceMappingURL=SigCaptX-Globals.js.map