UNPKG

@antv/util

Version:

> AntV 底层依赖的工具库,不建议在自己业务中使用。

234 lines 22.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.has = exports.forIn = exports.toRadian = exports.toInteger = exports.toDegree = exports.mod = exports.minBy = exports.min = exports.maxBy = exports.max = exports.isPositive = exports.isOdd = exports.isNumberEqual = exports.isNegative = exports.isInteger = exports.isEven = exports.isDecimal = exports.fixedBase = exports.clamp = exports.parseRadius = exports.number2color = exports.wrapBehavior = exports.getWrapBehavior = exports.groupToMap = exports.groupBy = exports.group = exports.some = exports.every = exports.filter = exports.endsWith = exports.startsWith = exports.last = exports.head = exports.valuesOfKey = exports.uniq = exports.union = exports.sortBy = exports.remove = exports.reduce = exports.pullAt = exports.pull = exports.getRange = exports.flattenDeep = exports.flatten = exports.firstValue = exports.findIndex = exports.find = exports.difference = exports.includes = exports.contains = void 0; exports.set = exports.get = exports.assign = exports.mix = exports.mapValues = exports.map = exports.isEqualWith = exports.isEqual = exports.isEmpty = exports.indexOf = exports.extend = exports.each = exports.deepMix = exports.memoize = exports.debounce = exports.clone = exports.augment = exports.clearAnimationFrame = exports.requestAnimationFrame = exports.isElement = exports.isUndefined = exports.isType = exports.isString = exports.isRegExp = exports.isPrototype = exports.isPlainObject = exports.isObjectLike = exports.isObject = exports.isNumber = exports.isNull = exports.isNil = exports.isFinite = exports.isFunction = exports.isError = exports.isDate = exports.isBoolean = exports.isArrayLike = exports.isArray = exports.isArguments = exports.getType = exports.upperFirst = exports.upperCase = exports.substitute = exports.lowerFirst = exports.lowerCase = exports.values = exports.isMatch = exports.keys = exports.hasValue = exports.hasKey = void 0; exports.Cache = exports.size = exports.identity = exports.noop = exports.uniqueId = exports.toString = exports.toArray = exports.throttle = exports.omit = exports.pick = void 0; var tslib_1 = require("tslib"); // array var contains_1 = require("./contains"); Object.defineProperty(exports, "contains", { enumerable: true, get: function () { return tslib_1.__importDefault(contains_1).default; } }); Object.defineProperty(exports, "includes", { enumerable: true, get: function () { return tslib_1.__importDefault(contains_1).default; } }); var difference_1 = require("./difference"); Object.defineProperty(exports, "difference", { enumerable: true, get: function () { return tslib_1.__importDefault(difference_1).default; } }); var find_1 = require("./find"); Object.defineProperty(exports, "find", { enumerable: true, get: function () { return tslib_1.__importDefault(find_1).default; } }); var find_index_1 = require("./find-index"); Object.defineProperty(exports, "findIndex", { enumerable: true, get: function () { return tslib_1.__importDefault(find_index_1).default; } }); var first_value_1 = require("./first-value"); Object.defineProperty(exports, "firstValue", { enumerable: true, get: function () { return tslib_1.__importDefault(first_value_1).default; } }); var flatten_1 = require("./flatten"); Object.defineProperty(exports, "flatten", { enumerable: true, get: function () { return tslib_1.__importDefault(flatten_1).default; } }); var flatten_deep_1 = require("./flatten-deep"); Object.defineProperty(exports, "flattenDeep", { enumerable: true, get: function () { return tslib_1.__importDefault(flatten_deep_1).default; } }); var get_range_1 = require("./get-range"); Object.defineProperty(exports, "getRange", { enumerable: true, get: function () { return tslib_1.__importDefault(get_range_1).default; } }); var pull_1 = require("./pull"); Object.defineProperty(exports, "pull", { enumerable: true, get: function () { return tslib_1.__importDefault(pull_1).default; } }); var pull_at_1 = require("./pull-at"); Object.defineProperty(exports, "pullAt", { enumerable: true, get: function () { return tslib_1.__importDefault(pull_at_1).default; } }); var reduce_1 = require("./reduce"); Object.defineProperty(exports, "reduce", { enumerable: true, get: function () { return tslib_1.__importDefault(reduce_1).default; } }); var remove_1 = require("./remove"); Object.defineProperty(exports, "remove", { enumerable: true, get: function () { return tslib_1.__importDefault(remove_1).default; } }); var sort_by_1 = require("./sort-by"); Object.defineProperty(exports, "sortBy", { enumerable: true, get: function () { return tslib_1.__importDefault(sort_by_1).default; } }); var union_1 = require("./union"); Object.defineProperty(exports, "union", { enumerable: true, get: function () { return tslib_1.__importDefault(union_1).default; } }); var uniq_1 = require("./uniq"); Object.defineProperty(exports, "uniq", { enumerable: true, get: function () { return tslib_1.__importDefault(uniq_1).default; } }); var values_of_key_1 = require("./values-of-key"); Object.defineProperty(exports, "valuesOfKey", { enumerable: true, get: function () { return tslib_1.__importDefault(values_of_key_1).default; } }); var head_1 = require("./head"); Object.defineProperty(exports, "head", { enumerable: true, get: function () { return tslib_1.__importDefault(head_1).default; } }); var last_1 = require("./last"); Object.defineProperty(exports, "last", { enumerable: true, get: function () { return tslib_1.__importDefault(last_1).default; } }); var starts_with_1 = require("./starts-with"); Object.defineProperty(exports, "startsWith", { enumerable: true, get: function () { return tslib_1.__importDefault(starts_with_1).default; } }); var ends_with_1 = require("./ends-with"); Object.defineProperty(exports, "endsWith", { enumerable: true, get: function () { return tslib_1.__importDefault(ends_with_1).default; } }); var filter_1 = require("./filter"); Object.defineProperty(exports, "filter", { enumerable: true, get: function () { return tslib_1.__importDefault(filter_1).default; } }); var every_1 = require("./every"); Object.defineProperty(exports, "every", { enumerable: true, get: function () { return tslib_1.__importDefault(every_1).default; } }); var some_1 = require("./some"); Object.defineProperty(exports, "some", { enumerable: true, get: function () { return tslib_1.__importDefault(some_1).default; } }); var group_1 = require("./group"); Object.defineProperty(exports, "group", { enumerable: true, get: function () { return tslib_1.__importDefault(group_1).default; } }); var group_by_1 = require("./group-by"); Object.defineProperty(exports, "groupBy", { enumerable: true, get: function () { return tslib_1.__importDefault(group_by_1).default; } }); var group_to_map_1 = require("./group-to-map"); Object.defineProperty(exports, "groupToMap", { enumerable: true, get: function () { return tslib_1.__importDefault(group_to_map_1).default; } }); // event var get_wrap_behavior_1 = require("./get-wrap-behavior"); Object.defineProperty(exports, "getWrapBehavior", { enumerable: true, get: function () { return tslib_1.__importDefault(get_wrap_behavior_1).default; } }); var wrap_behavior_1 = require("./wrap-behavior"); Object.defineProperty(exports, "wrapBehavior", { enumerable: true, get: function () { return tslib_1.__importDefault(wrap_behavior_1).default; } }); // format var number2color_1 = require("./number2color"); Object.defineProperty(exports, "number2color", { enumerable: true, get: function () { return tslib_1.__importDefault(number2color_1).default; } }); var parse_radius_1 = require("./parse-radius"); Object.defineProperty(exports, "parseRadius", { enumerable: true, get: function () { return tslib_1.__importDefault(parse_radius_1).default; } }); // math var clamp_1 = require("./clamp"); Object.defineProperty(exports, "clamp", { enumerable: true, get: function () { return tslib_1.__importDefault(clamp_1).default; } }); var fixed_base_1 = require("./fixed-base"); Object.defineProperty(exports, "fixedBase", { enumerable: true, get: function () { return tslib_1.__importDefault(fixed_base_1).default; } }); var is_decimal_1 = require("./is-decimal"); Object.defineProperty(exports, "isDecimal", { enumerable: true, get: function () { return tslib_1.__importDefault(is_decimal_1).default; } }); var is_even_1 = require("./is-even"); Object.defineProperty(exports, "isEven", { enumerable: true, get: function () { return tslib_1.__importDefault(is_even_1).default; } }); var is_integer_1 = require("./is-integer"); Object.defineProperty(exports, "isInteger", { enumerable: true, get: function () { return tslib_1.__importDefault(is_integer_1).default; } }); var is_negative_1 = require("./is-negative"); Object.defineProperty(exports, "isNegative", { enumerable: true, get: function () { return tslib_1.__importDefault(is_negative_1).default; } }); var is_number_equal_1 = require("./is-number-equal"); Object.defineProperty(exports, "isNumberEqual", { enumerable: true, get: function () { return tslib_1.__importDefault(is_number_equal_1).default; } }); var is_odd_1 = require("./is-odd"); Object.defineProperty(exports, "isOdd", { enumerable: true, get: function () { return tslib_1.__importDefault(is_odd_1).default; } }); var is_positive_1 = require("./is-positive"); Object.defineProperty(exports, "isPositive", { enumerable: true, get: function () { return tslib_1.__importDefault(is_positive_1).default; } }); var max_1 = require("./max"); Object.defineProperty(exports, "max", { enumerable: true, get: function () { return tslib_1.__importDefault(max_1).default; } }); var max_by_1 = require("./max-by"); Object.defineProperty(exports, "maxBy", { enumerable: true, get: function () { return tslib_1.__importDefault(max_by_1).default; } }); var min_1 = require("./min"); Object.defineProperty(exports, "min", { enumerable: true, get: function () { return tslib_1.__importDefault(min_1).default; } }); var min_by_1 = require("./min-by"); Object.defineProperty(exports, "minBy", { enumerable: true, get: function () { return tslib_1.__importDefault(min_by_1).default; } }); var mod_1 = require("./mod"); Object.defineProperty(exports, "mod", { enumerable: true, get: function () { return tslib_1.__importDefault(mod_1).default; } }); var to_degree_1 = require("./to-degree"); Object.defineProperty(exports, "toDegree", { enumerable: true, get: function () { return tslib_1.__importDefault(to_degree_1).default; } }); var to_integer_1 = require("./to-integer"); Object.defineProperty(exports, "toInteger", { enumerable: true, get: function () { return tslib_1.__importDefault(to_integer_1).default; } }); var to_radian_1 = require("./to-radian"); Object.defineProperty(exports, "toRadian", { enumerable: true, get: function () { return tslib_1.__importDefault(to_radian_1).default; } }); // object var for_in_1 = require("./for-in"); Object.defineProperty(exports, "forIn", { enumerable: true, get: function () { return tslib_1.__importDefault(for_in_1).default; } }); var has_1 = require("./has"); Object.defineProperty(exports, "has", { enumerable: true, get: function () { return tslib_1.__importDefault(has_1).default; } }); var has_key_1 = require("./has-key"); Object.defineProperty(exports, "hasKey", { enumerable: true, get: function () { return tslib_1.__importDefault(has_key_1).default; } }); var has_value_1 = require("./has-value"); Object.defineProperty(exports, "hasValue", { enumerable: true, get: function () { return tslib_1.__importDefault(has_value_1).default; } }); var keys_1 = require("./keys"); Object.defineProperty(exports, "keys", { enumerable: true, get: function () { return tslib_1.__importDefault(keys_1).default; } }); var is_match_1 = require("./is-match"); Object.defineProperty(exports, "isMatch", { enumerable: true, get: function () { return tslib_1.__importDefault(is_match_1).default; } }); var values_1 = require("./values"); Object.defineProperty(exports, "values", { enumerable: true, get: function () { return tslib_1.__importDefault(values_1).default; } }); // string var lower_case_1 = require("./lower-case"); Object.defineProperty(exports, "lowerCase", { enumerable: true, get: function () { return tslib_1.__importDefault(lower_case_1).default; } }); var lower_first_1 = require("./lower-first"); Object.defineProperty(exports, "lowerFirst", { enumerable: true, get: function () { return tslib_1.__importDefault(lower_first_1).default; } }); var substitute_1 = require("./substitute"); Object.defineProperty(exports, "substitute", { enumerable: true, get: function () { return tslib_1.__importDefault(substitute_1).default; } }); var upper_case_1 = require("./upper-case"); Object.defineProperty(exports, "upperCase", { enumerable: true, get: function () { return tslib_1.__importDefault(upper_case_1).default; } }); var upper_first_1 = require("./upper-first"); Object.defineProperty(exports, "upperFirst", { enumerable: true, get: function () { return tslib_1.__importDefault(upper_first_1).default; } }); // type var get_type_1 = require("./get-type"); Object.defineProperty(exports, "getType", { enumerable: true, get: function () { return tslib_1.__importDefault(get_type_1).default; } }); var is_arguments_1 = require("./is-arguments"); Object.defineProperty(exports, "isArguments", { enumerable: true, get: function () { return tslib_1.__importDefault(is_arguments_1).default; } }); var is_array_1 = require("./is-array"); Object.defineProperty(exports, "isArray", { enumerable: true, get: function () { return tslib_1.__importDefault(is_array_1).default; } }); var is_array_like_1 = require("./is-array-like"); Object.defineProperty(exports, "isArrayLike", { enumerable: true, get: function () { return tslib_1.__importDefault(is_array_like_1).default; } }); var is_boolean_1 = require("./is-boolean"); Object.defineProperty(exports, "isBoolean", { enumerable: true, get: function () { return tslib_1.__importDefault(is_boolean_1).default; } }); var is_date_1 = require("./is-date"); Object.defineProperty(exports, "isDate", { enumerable: true, get: function () { return tslib_1.__importDefault(is_date_1).default; } }); var is_error_1 = require("./is-error"); Object.defineProperty(exports, "isError", { enumerable: true, get: function () { return tslib_1.__importDefault(is_error_1).default; } }); var is_function_1 = require("./is-function"); Object.defineProperty(exports, "isFunction", { enumerable: true, get: function () { return tslib_1.__importDefault(is_function_1).default; } }); var is_finite_1 = require("./is-finite"); Object.defineProperty(exports, "isFinite", { enumerable: true, get: function () { return tslib_1.__importDefault(is_finite_1).default; } }); var is_nil_1 = require("./is-nil"); Object.defineProperty(exports, "isNil", { enumerable: true, get: function () { return tslib_1.__importDefault(is_nil_1).default; } }); var is_null_1 = require("./is-null"); Object.defineProperty(exports, "isNull", { enumerable: true, get: function () { return tslib_1.__importDefault(is_null_1).default; } }); var is_number_1 = require("./is-number"); Object.defineProperty(exports, "isNumber", { enumerable: true, get: function () { return tslib_1.__importDefault(is_number_1).default; } }); var is_object_1 = require("./is-object"); Object.defineProperty(exports, "isObject", { enumerable: true, get: function () { return tslib_1.__importDefault(is_object_1).default; } }); var is_object_like_1 = require("./is-object-like"); Object.defineProperty(exports, "isObjectLike", { enumerable: true, get: function () { return tslib_1.__importDefault(is_object_like_1).default; } }); var is_plain_object_1 = require("./is-plain-object"); Object.defineProperty(exports, "isPlainObject", { enumerable: true, get: function () { return tslib_1.__importDefault(is_plain_object_1).default; } }); var is_prototype_1 = require("./is-prototype"); Object.defineProperty(exports, "isPrototype", { enumerable: true, get: function () { return tslib_1.__importDefault(is_prototype_1).default; } }); var is_reg_exp_1 = require("./is-reg-exp"); Object.defineProperty(exports, "isRegExp", { enumerable: true, get: function () { return tslib_1.__importDefault(is_reg_exp_1).default; } }); var is_string_1 = require("./is-string"); Object.defineProperty(exports, "isString", { enumerable: true, get: function () { return tslib_1.__importDefault(is_string_1).default; } }); var is_type_1 = require("./is-type"); Object.defineProperty(exports, "isType", { enumerable: true, get: function () { return tslib_1.__importDefault(is_type_1).default; } }); var is_undefined_1 = require("./is-undefined"); Object.defineProperty(exports, "isUndefined", { enumerable: true, get: function () { return tslib_1.__importDefault(is_undefined_1).default; } }); var is_element_1 = require("./is-element"); Object.defineProperty(exports, "isElement", { enumerable: true, get: function () { return tslib_1.__importDefault(is_element_1).default; } }); var request_animation_frame_1 = require("./request-animation-frame"); Object.defineProperty(exports, "requestAnimationFrame", { enumerable: true, get: function () { return tslib_1.__importDefault(request_animation_frame_1).default; } }); var clear_animation_frame_1 = require("./clear-animation-frame"); Object.defineProperty(exports, "clearAnimationFrame", { enumerable: true, get: function () { return tslib_1.__importDefault(clear_animation_frame_1).default; } }); // other var augment_1 = require("./augment"); Object.defineProperty(exports, "augment", { enumerable: true, get: function () { return tslib_1.__importDefault(augment_1).default; } }); var clone_1 = require("./clone"); Object.defineProperty(exports, "clone", { enumerable: true, get: function () { return tslib_1.__importDefault(clone_1).default; } }); var debounce_1 = require("./debounce"); Object.defineProperty(exports, "debounce", { enumerable: true, get: function () { return tslib_1.__importDefault(debounce_1).default; } }); var memoize_1 = require("./memoize"); Object.defineProperty(exports, "memoize", { enumerable: true, get: function () { return tslib_1.__importDefault(memoize_1).default; } }); var deep_mix_1 = require("./deep-mix"); Object.defineProperty(exports, "deepMix", { enumerable: true, get: function () { return tslib_1.__importDefault(deep_mix_1).default; } }); var each_1 = require("./each"); Object.defineProperty(exports, "each", { enumerable: true, get: function () { return tslib_1.__importDefault(each_1).default; } }); var extend_1 = require("./extend"); Object.defineProperty(exports, "extend", { enumerable: true, get: function () { return tslib_1.__importDefault(extend_1).default; } }); var index_of_1 = require("./index-of"); Object.defineProperty(exports, "indexOf", { enumerable: true, get: function () { return tslib_1.__importDefault(index_of_1).default; } }); var is_empty_1 = require("./is-empty"); Object.defineProperty(exports, "isEmpty", { enumerable: true, get: function () { return tslib_1.__importDefault(is_empty_1).default; } }); var is_equal_1 = require("./is-equal"); Object.defineProperty(exports, "isEqual", { enumerable: true, get: function () { return tslib_1.__importDefault(is_equal_1).default; } }); var is_equal_with_1 = require("./is-equal-with"); Object.defineProperty(exports, "isEqualWith", { enumerable: true, get: function () { return tslib_1.__importDefault(is_equal_with_1).default; } }); var map_1 = require("./map"); Object.defineProperty(exports, "map", { enumerable: true, get: function () { return tslib_1.__importDefault(map_1).default; } }); var map_values_1 = require("./map-values"); Object.defineProperty(exports, "mapValues", { enumerable: true, get: function () { return tslib_1.__importDefault(map_values_1).default; } }); var mix_1 = require("./mix"); Object.defineProperty(exports, "mix", { enumerable: true, get: function () { return tslib_1.__importDefault(mix_1).default; } }); Object.defineProperty(exports, "assign", { enumerable: true, get: function () { return tslib_1.__importDefault(mix_1).default; } }); var get_1 = require("./get"); Object.defineProperty(exports, "get", { enumerable: true, get: function () { return tslib_1.__importDefault(get_1).default; } }); var set_1 = require("./set"); Object.defineProperty(exports, "set", { enumerable: true, get: function () { return tslib_1.__importDefault(set_1).default; } }); var pick_1 = require("./pick"); Object.defineProperty(exports, "pick", { enumerable: true, get: function () { return tslib_1.__importDefault(pick_1).default; } }); var omit_1 = require("./omit"); Object.defineProperty(exports, "omit", { enumerable: true, get: function () { return tslib_1.__importDefault(omit_1).default; } }); var throttle_1 = require("./throttle"); Object.defineProperty(exports, "throttle", { enumerable: true, get: function () { return tslib_1.__importDefault(throttle_1).default; } }); var to_array_1 = require("./to-array"); Object.defineProperty(exports, "toArray", { enumerable: true, get: function () { return tslib_1.__importDefault(to_array_1).default; } }); var to_string_1 = require("./to-string"); Object.defineProperty(exports, "toString", { enumerable: true, get: function () { return tslib_1.__importDefault(to_string_1).default; } }); var unique_id_1 = require("./unique-id"); Object.defineProperty(exports, "uniqueId", { enumerable: true, get: function () { return tslib_1.__importDefault(unique_id_1).default; } }); var noop_1 = require("./noop"); Object.defineProperty(exports, "noop", { enumerable: true, get: function () { return tslib_1.__importDefault(noop_1).default; } }); var identity_1 = require("./identity"); Object.defineProperty(exports, "identity", { enumerable: true, get: function () { return tslib_1.__importDefault(identity_1).default; } }); var size_1 = require("./size"); Object.defineProperty(exports, "size", { enumerable: true, get: function () { return tslib_1.__importDefault(size_1).default; } }); // 不知道为什么,需要把这个 export,不然 ts 会报类型错误 var cache_1 = require("./cache"); Object.defineProperty(exports, "Cache", { enumerable: true, get: function () { return tslib_1.__importDefault(cache_1).default; } }); //# sourceMappingURL=index.js.map