Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/konva/lib/Validators.js

    rd565449 r0c6b92a  
    11"use strict";
    22Object.defineProperty(exports, "__esModule", { value: true });
    3 exports.getComponentValidator = exports.getBooleanValidator = exports.getNumberArrayValidator = exports.getFunctionValidator = exports.getStringOrGradientValidator = exports.getStringValidator = exports.getNumberOrAutoValidator = exports.getNumberOrArrayOfNumbersValidator = exports.getNumberValidator = exports.alphaComponent = exports.RGBComponent = void 0;
     3exports.RGBComponent = RGBComponent;
     4exports.alphaComponent = alphaComponent;
     5exports.getNumberValidator = getNumberValidator;
     6exports.getNumberOrArrayOfNumbersValidator = getNumberOrArrayOfNumbersValidator;
     7exports.getNumberOrAutoValidator = getNumberOrAutoValidator;
     8exports.getStringValidator = getStringValidator;
     9exports.getStringOrGradientValidator = getStringOrGradientValidator;
     10exports.getFunctionValidator = getFunctionValidator;
     11exports.getNumberArrayValidator = getNumberArrayValidator;
     12exports.getBooleanValidator = getBooleanValidator;
     13exports.getComponentValidator = getComponentValidator;
    414const Global_1 = require("./Global");
    515const Util_1 = require("./Util");
     
    2535    return Math.round(val);
    2636}
    27 exports.RGBComponent = RGBComponent;
    2837function alphaComponent(val) {
    2938    if (val > 1) {
     
    3544    return val;
    3645}
    37 exports.alphaComponent = alphaComponent;
    3846function getNumberValidator() {
    3947    if (Global_1.Konva.isUnminified) {
     
    4957    }
    5058}
    51 exports.getNumberValidator = getNumberValidator;
    5259function getNumberOrArrayOfNumbersValidator(noOfElements) {
    5360    if (Global_1.Konva.isUnminified) {
    5461        return function (val, attr) {
    55             let isNumber = Util_1.Util._isNumber(val);
    56             let isValidArray = Util_1.Util._isArray(val) && val.length == noOfElements;
     62            const isNumber = Util_1.Util._isNumber(val);
     63            const isValidArray = Util_1.Util._isArray(val) && val.length == noOfElements;
    5764            if (!isNumber && !isValidArray) {
    5865                Util_1.Util.warn(_formatValue(val) +
     
    6774    }
    6875}
    69 exports.getNumberOrArrayOfNumbersValidator = getNumberOrArrayOfNumbersValidator;
    7076function getNumberOrAutoValidator() {
    7177    if (Global_1.Konva.isUnminified) {
    7278        return function (val, attr) {
    73             var isNumber = Util_1.Util._isNumber(val);
    74             var isAuto = val === 'auto';
     79            const isNumber = Util_1.Util._isNumber(val);
     80            const isAuto = val === 'auto';
    7581            if (!(isNumber || isAuto)) {
    7682                Util_1.Util.warn(_formatValue(val) +
     
    8389    }
    8490}
    85 exports.getNumberOrAutoValidator = getNumberOrAutoValidator;
    8691function getStringValidator() {
    8792    if (Global_1.Konva.isUnminified) {
     
    97102    }
    98103}
    99 exports.getStringValidator = getStringValidator;
    100104function getStringOrGradientValidator() {
    101105    if (Global_1.Konva.isUnminified) {
     
    114118    }
    115119}
    116 exports.getStringOrGradientValidator = getStringOrGradientValidator;
    117120function getFunctionValidator() {
    118121    if (Global_1.Konva.isUnminified) {
     
    128131    }
    129132}
    130 exports.getFunctionValidator = getFunctionValidator;
    131133function getNumberArrayValidator() {
    132134    if (Global_1.Konva.isUnminified) {
     
    157159    }
    158160}
    159 exports.getNumberArrayValidator = getNumberArrayValidator;
    160161function getBooleanValidator() {
    161162    if (Global_1.Konva.isUnminified) {
    162163        return function (val, attr) {
    163             var isBool = val === true || val === false;
     164            const isBool = val === true || val === false;
    164165            if (!isBool) {
    165166                Util_1.Util.warn(_formatValue(val) +
     
    172173    }
    173174}
    174 exports.getBooleanValidator = getBooleanValidator;
    175175function getComponentValidator(components) {
    176176    if (Global_1.Konva.isUnminified) {
     
    190190    }
    191191}
    192 exports.getComponentValidator = getComponentValidator;
Note: See TracChangeset for help on using the changeset viewer.