@antv/util 2.0.16 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +15 -241
- package/dist/util.min.js +1 -0
- package/esm/color/arr2rgb.d.ts +12 -0
- package/esm/color/arr2rgb.js +18 -0
- package/esm/color/arr2rgb.js.map +1 -0
- package/esm/color/gradient.d.ts +6 -0
- package/esm/color/gradient.js +45 -0
- package/esm/color/gradient.js.map +1 -0
- package/esm/color/index.d.ts +4 -0
- package/esm/color/index.js +6 -0
- package/esm/color/index.js.map +1 -0
- package/esm/color/rgb2arr.d.ts +6 -0
- package/esm/color/rgb2arr.js +9 -0
- package/esm/color/rgb2arr.js.map +1 -0
- package/esm/color/tocssgradient.d.ts +1 -0
- package/esm/color/tocssgradient.js +37 -0
- package/esm/color/tocssgradient.js.map +1 -0
- package/esm/color/torgb.d.ts +6 -0
- package/esm/color/torgb.js +36 -0
- package/esm/color/torgb.js.map +1 -0
- package/esm/helper/index.d.ts +2 -0
- package/esm/helper/index.js +3 -0
- package/esm/helper/index.js.map +1 -0
- package/esm/helper/mod.d.ts +1 -0
- package/esm/helper/mod.js +4 -0
- package/esm/helper/mod.js.map +1 -0
- package/esm/helper/to-radian.d.ts +1 -0
- package/esm/helper/to-radian.js +5 -0
- package/esm/helper/to-radian.js.map +1 -0
- package/esm/index.d.ts +3 -110
- package/esm/index.js +3 -120
- package/esm/index.js.map +1 -1
- package/esm/matrix/index.d.ts +27 -0
- package/esm/matrix/index.js +97 -0
- package/esm/matrix/index.js.map +1 -0
- package/esm/path/catmull-rom-2-bezier.d.ts +10 -0
- package/esm/path/catmull-rom-2-bezier.js +115 -0
- package/esm/path/catmull-rom-2-bezier.js.map +1 -0
- package/esm/path/fill-path-by-diff.d.ts +5 -0
- package/esm/path/fill-path-by-diff.js +110 -0
- package/esm/path/fill-path-by-diff.js.map +1 -0
- package/esm/path/fill-path.d.ts +1 -0
- package/esm/path/fill-path.js +129 -0
- package/esm/path/fill-path.js.map +1 -0
- package/esm/path/format-path.d.ts +1 -0
- package/esm/path/format-path.js +139 -0
- package/esm/path/format-path.js.map +1 -0
- package/esm/path/get-arc-params.d.ts +17 -0
- package/esm/path/get-arc-params.js +90 -0
- package/esm/path/get-arc-params.js.map +1 -0
- package/esm/path/get-line-intersect.d.ts +14 -0
- package/esm/path/get-line-intersect.js +33 -0
- package/esm/path/get-line-intersect.js.map +1 -0
- package/esm/path/index.d.ts +16 -0
- package/esm/path/index.js +17 -0
- package/esm/path/index.js.map +1 -0
- package/esm/path/is-polygons-intersect.d.ts +1 -0
- package/esm/path/is-polygons-intersect.js +81 -0
- package/esm/path/is-polygons-intersect.js.map +1 -0
- package/esm/path/parse-path-array.d.ts +1 -0
- package/esm/path/parse-path-array.js +5 -0
- package/esm/path/parse-path-array.js.map +1 -0
- package/esm/path/parse-path-string.d.ts +1 -0
- package/esm/path/parse-path-string.js +57 -0
- package/esm/path/parse-path-string.js.map +1 -0
- package/esm/path/parse-path.d.ts +1 -0
- package/esm/path/parse-path.js +33 -0
- package/esm/path/parse-path.js.map +1 -0
- package/esm/path/path-2-absolute.d.ts +1 -0
- package/esm/path/path-2-absolute.js +124 -0
- package/esm/path/path-2-absolute.js.map +1 -0
- package/esm/path/path-2-curve.d.ts +2 -0
- package/esm/path/path-2-curve.js +63 -0
- package/esm/path/path-2-curve.js.map +1 -0
- package/esm/path/path-2-segments.d.ts +1 -0
- package/esm/path/path-2-segments.js +138 -0
- package/esm/path/path-2-segments.js.map +1 -0
- package/esm/path/path-intersection.d.ts +9 -0
- package/esm/path/path-intersection.js +366 -0
- package/esm/path/path-intersection.js.map +1 -0
- package/esm/path/point-in-polygon.d.ts +5 -0
- package/esm/path/point-in-polygon.js +49 -0
- package/esm/path/point-in-polygon.js.map +1 -0
- package/esm/path/process/arc-2-cubic.d.ts +1 -0
- package/esm/path/process/arc-2-cubic.js +140 -0
- package/esm/path/process/arc-2-cubic.js.map +1 -0
- package/esm/path/process/line-2-cubic.d.ts +1 -0
- package/esm/path/process/line-2-cubic.js +35 -0
- package/esm/path/process/line-2-cubic.js.map +1 -0
- package/esm/path/process/quad-2-cubic.d.ts +1 -0
- package/esm/path/process/quad-2-cubic.js +13 -0
- package/esm/path/process/quad-2-cubic.js.map +1 -0
- package/esm/path/process/segment-2-cubic.d.ts +2 -0
- package/esm/path/process/segment-2-cubic.js +37 -0
- package/esm/path/process/segment-2-cubic.js.map +1 -0
- package/esm/path/rect-path.d.ts +4 -0
- package/esm/path/rect-path.js +19 -0
- package/esm/path/rect-path.js.map +1 -0
- package/esm/path/types.d.ts +25 -0
- package/esm/path/types.js +2 -0
- package/esm/path/types.js.map +1 -0
- package/lib/color/arr2rgb.d.ts +12 -0
- package/lib/color/arr2rgb.js +23 -0
- package/lib/color/arr2rgb.js.map +1 -0
- package/lib/color/gradient.d.ts +6 -0
- package/lib/color/gradient.js +49 -0
- package/lib/color/gradient.js.map +1 -0
- package/lib/color/index.d.ts +4 -0
- package/lib/color/index.js +13 -0
- package/lib/color/index.js.map +1 -0
- package/lib/color/rgb2arr.d.ts +6 -0
- package/lib/color/rgb2arr.js +13 -0
- package/lib/color/rgb2arr.js.map +1 -0
- package/lib/color/tocssgradient.d.ts +1 -0
- package/lib/color/tocssgradient.js +41 -0
- package/lib/color/tocssgradient.js.map +1 -0
- package/lib/color/torgb.d.ts +6 -0
- package/lib/color/torgb.js +40 -0
- package/lib/color/torgb.js.map +1 -0
- package/lib/helper/index.d.ts +2 -0
- package/lib/helper/index.js +8 -0
- package/lib/helper/index.js.map +1 -0
- package/lib/helper/mod.d.ts +1 -0
- package/lib/helper/mod.js +8 -0
- package/lib/helper/mod.js.map +1 -0
- package/lib/helper/to-radian.d.ts +1 -0
- package/lib/helper/to-radian.js +9 -0
- package/lib/helper/to-radian.js.map +1 -0
- package/lib/index.d.ts +3 -110
- package/lib/index.js +13 -232
- package/lib/index.js.map +1 -1
- package/lib/matrix/index.d.ts +27 -0
- package/lib/matrix/index.js +104 -0
- package/lib/matrix/index.js.map +1 -0
- package/lib/path/catmull-rom-2-bezier.d.ts +10 -0
- package/lib/path/catmull-rom-2-bezier.js +119 -0
- package/lib/path/catmull-rom-2-bezier.js.map +1 -0
- package/lib/path/fill-path-by-diff.d.ts +5 -0
- package/lib/path/fill-path-by-diff.js +117 -0
- package/lib/path/fill-path-by-diff.js.map +1 -0
- package/lib/path/fill-path.d.ts +1 -0
- package/lib/path/fill-path.js +133 -0
- package/lib/path/fill-path.js.map +1 -0
- package/lib/path/format-path.d.ts +1 -0
- package/lib/path/format-path.js +143 -0
- package/lib/path/format-path.js.map +1 -0
- package/lib/path/get-arc-params.d.ts +17 -0
- package/lib/path/get-arc-params.js +95 -0
- package/lib/path/get-arc-params.js.map +1 -0
- package/lib/path/get-line-intersect.d.ts +14 -0
- package/lib/path/get-line-intersect.js +37 -0
- package/lib/path/get-line-intersect.js.map +1 -0
- package/lib/path/index.d.ts +16 -0
- package/lib/path/index.js +36 -0
- package/lib/path/index.js.map +1 -0
- package/lib/path/is-polygons-intersect.d.ts +1 -0
- package/lib/path/is-polygons-intersect.js +85 -0
- package/lib/path/is-polygons-intersect.js.map +1 -0
- package/lib/path/parse-path-array.d.ts +1 -0
- package/lib/path/parse-path-array.js +9 -0
- package/lib/path/parse-path-array.js.map +1 -0
- package/lib/path/parse-path-string.d.ts +1 -0
- package/lib/path/parse-path-string.js +61 -0
- package/lib/path/parse-path-string.js.map +1 -0
- package/lib/path/parse-path.d.ts +1 -0
- package/lib/path/parse-path.js +37 -0
- package/lib/path/parse-path.js.map +1 -0
- package/lib/path/path-2-absolute.d.ts +1 -0
- package/lib/path/path-2-absolute.js +128 -0
- package/lib/path/path-2-absolute.js.map +1 -0
- package/lib/path/path-2-curve.d.ts +2 -0
- package/lib/path/path-2-curve.js +67 -0
- package/lib/path/path-2-curve.js.map +1 -0
- package/lib/path/path-2-segments.d.ts +1 -0
- package/lib/path/path-2-segments.js +142 -0
- package/lib/path/path-2-segments.js.map +1 -0
- package/lib/path/path-intersection.d.ts +9 -0
- package/lib/path/path-intersection.js +370 -0
- package/lib/path/path-intersection.js.map +1 -0
- package/lib/path/point-in-polygon.d.ts +5 -0
- package/lib/path/point-in-polygon.js +53 -0
- package/lib/path/point-in-polygon.js.map +1 -0
- package/lib/path/process/arc-2-cubic.d.ts +1 -0
- package/lib/path/process/arc-2-cubic.js +144 -0
- package/lib/path/process/arc-2-cubic.js.map +1 -0
- package/lib/path/process/line-2-cubic.d.ts +1 -0
- package/lib/path/process/line-2-cubic.js +39 -0
- package/lib/path/process/line-2-cubic.js.map +1 -0
- package/lib/path/process/quad-2-cubic.d.ts +1 -0
- package/lib/path/process/quad-2-cubic.js +17 -0
- package/lib/path/process/quad-2-cubic.js.map +1 -0
- package/lib/path/process/segment-2-cubic.d.ts +2 -0
- package/lib/path/process/segment-2-cubic.js +41 -0
- package/lib/path/process/segment-2-cubic.js.map +1 -0
- package/lib/path/rect-path.d.ts +4 -0
- package/lib/path/rect-path.js +23 -0
- package/lib/path/rect-path.js.map +1 -0
- package/lib/path/types.d.ts +25 -0
- package/lib/path/types.js +3 -0
- package/lib/path/types.js.map +1 -0
- package/package.json +77 -36
- package/src/color/arr2rgb.ts +19 -0
- package/src/color/gradient.ts +55 -0
- package/src/color/index.ts +5 -0
- package/src/color/rgb2arr.ts +8 -0
- package/src/color/tocssgradient.ts +43 -0
- package/src/color/torgb.ts +45 -0
- package/src/helper/index.ts +2 -0
- package/src/helper/mod.ts +3 -0
- package/src/helper/to-radian.ts +5 -0
- package/src/index.ts +3 -130
- package/src/matrix/index.ts +108 -0
- package/src/path/catmull-rom-2-bezier.ts +141 -0
- package/src/path/fill-path-by-diff.ts +116 -0
- package/src/path/fill-path.ts +129 -0
- package/src/path/format-path.ts +142 -0
- package/src/path/get-arc-params.ts +102 -0
- package/src/path/get-line-intersect.ts +46 -0
- package/src/path/index.ts +16 -0
- package/src/path/is-polygons-intersect.ts +95 -0
- package/src/path/parse-path-array.ts +5 -0
- package/src/path/parse-path-string.ts +63 -0
- package/src/path/parse-path.ts +34 -0
- package/src/path/path-2-absolute.ts +132 -0
- package/src/path/path-2-curve.ts +69 -0
- package/src/path/path-2-segments.ts +142 -0
- package/src/path/path-intersection.ts +419 -0
- package/src/path/point-in-polygon.ts +56 -0
- package/src/path/process/arc-2-cubic.ts +221 -0
- package/src/path/process/line-2-cubic.ts +37 -0
- package/src/path/process/quad-2-cubic.ts +12 -0
- package/src/path/process/segment-2-cubic.ts +44 -0
- package/src/path/rect-path.ts +22 -0
- package/src/path/types.ts +25 -0
- package/esm/augment.d.ts +0 -2
- package/esm/augment.js +0 -18
- package/esm/augment.js.map +0 -1
- package/esm/cache.d.ts +0 -14
- package/esm/cache.js +0 -30
- package/esm/cache.js.map +0 -1
- package/esm/clamp.d.ts +0 -2
- package/esm/clamp.js +0 -11
- package/esm/clamp.js.map +0 -1
- package/esm/clear-animation-frame.d.ts +0 -1
- package/esm/clear-animation-frame.js +0 -12
- package/esm/clear-animation-frame.js.map +0 -1
- package/esm/clone.d.ts +0 -2
- package/esm/clone.js +0 -32
- package/esm/clone.js.map +0 -1
- package/esm/contains.d.ts +0 -2
- package/esm/contains.js +0 -9
- package/esm/contains.js.map +0 -1
- package/esm/debounce.d.ts +0 -2
- package/esm/debounce.js +0 -20
- package/esm/debounce.js.map +0 -1
- package/esm/deep-mix.d.ts +0 -2
- package/esm/deep-mix.js +0 -43
- package/esm/deep-mix.js.map +0 -1
- package/esm/difference.d.ts +0 -11
- package/esm/difference.js +0 -17
- package/esm/difference.js.map +0 -1
- package/esm/each.d.ts +0 -2
- package/esm/each.js +0 -28
- package/esm/each.js.map +0 -1
- package/esm/ends-with.d.ts +0 -3
- package/esm/ends-with.js +0 -7
- package/esm/ends-with.js.map +0 -1
- package/esm/every.d.ts +0 -7
- package/esm/every.js +0 -14
- package/esm/every.js.map +0 -1
- package/esm/extend.d.ts +0 -2
- package/esm/extend.js +0 -33
- package/esm/extend.js.map +0 -1
- package/esm/filter.d.ts +0 -2
- package/esm/filter.js +0 -16
- package/esm/filter.js.map +0 -1
- package/esm/find-index.d.ts +0 -2
- package/esm/find-index.js +0 -12
- package/esm/find-index.js.map +0 -1
- package/esm/find.d.ts +0 -3
- package/esm/find.js +0 -25
- package/esm/find.js.map +0 -1
- package/esm/first-value.d.ts +0 -2
- package/esm/first-value.js +0 -21
- package/esm/first-value.js.map +0 -1
- package/esm/fixed-base.d.ts +0 -2
- package/esm/fixed-base.js +0 -14
- package/esm/fixed-base.js.map +0 -1
- package/esm/flatten-deep.d.ts +0 -12
- package/esm/flatten-deep.js +0 -25
- package/esm/flatten-deep.js.map +0 -1
- package/esm/flatten.d.ts +0 -11
- package/esm/flatten.js +0 -22
- package/esm/flatten.js.map +0 -1
- package/esm/for-in.d.ts +0 -2
- package/esm/for-in.js +0 -3
- package/esm/for-in.js.map +0 -1
- package/esm/get-ellipsis-text.d.ts +0 -13
- package/esm/get-ellipsis-text.js +0 -69
- package/esm/get-ellipsis-text.js.map +0 -1
- package/esm/get-range.d.ts +0 -6
- package/esm/get-range.js +0 -29
- package/esm/get-range.js.map +0 -1
- package/esm/get-type.d.ts +0 -2
- package/esm/get-type.js +0 -6
- package/esm/get-type.js.map +0 -1
- package/esm/get-wrap-behavior.d.ts +0 -9
- package/esm/get-wrap-behavior.js +0 -12
- package/esm/get-wrap-behavior.js.map +0 -1
- package/esm/get.d.ts +0 -8
- package/esm/get.js +0 -16
- package/esm/get.js.map +0 -1
- package/esm/group-by.d.ts +0 -6
- package/esm/group-by.js +0 -25
- package/esm/group-by.js.map +0 -1
- package/esm/group-to-map.d.ts +0 -8
- package/esm/group-to-map.js +0 -29
- package/esm/group-to-map.js.map +0 -1
- package/esm/group.d.ts +0 -2
- package/esm/group.js +0 -14
- package/esm/group.js.map +0 -1
- package/esm/has-key.d.ts +0 -2
- package/esm/has-key.js +0 -3
- package/esm/has-key.js.map +0 -1
- package/esm/has-value.d.ts +0 -2
- package/esm/has-value.js +0 -4
- package/esm/has-value.js.map +0 -1
- package/esm/has.d.ts +0 -2
- package/esm/has.js +0 -2
- package/esm/has.js.map +0 -1
- package/esm/head.d.ts +0 -1
- package/esm/head.js +0 -8
- package/esm/head.js.map +0 -1
- package/esm/identity.d.ts +0 -2
- package/esm/identity.js +0 -2
- package/esm/identity.js.map +0 -1
- package/esm/index-of.d.ts +0 -2
- package/esm/index-of.js +0 -20
- package/esm/index-of.js.map +0 -1
- package/esm/is-arguments.d.ts +0 -2
- package/esm/is-arguments.js +0 -12
- package/esm/is-arguments.js.map +0 -1
- package/esm/is-array-like.d.ts +0 -2
- package/esm/is-array-like.js +0 -11
- package/esm/is-array-like.js.map +0 -1
- package/esm/is-array.d.ts +0 -2
- package/esm/is-array.js +0 -7
- package/esm/is-array.js.map +0 -1
- package/esm/is-boolean.d.ts +0 -2
- package/esm/is-boolean.js +0 -12
- package/esm/is-boolean.js.map +0 -1
- package/esm/is-date.d.ts +0 -2
- package/esm/is-date.js +0 -6
- package/esm/is-date.js.map +0 -1
- package/esm/is-decimal.d.ts +0 -2
- package/esm/is-decimal.js +0 -6
- package/esm/is-decimal.js.map +0 -1
- package/esm/is-element.d.ts +0 -6
- package/esm/is-element.js +0 -9
- package/esm/is-element.js.map +0 -1
- package/esm/is-empty.d.ts +0 -2
- package/esm/is-empty.js +0 -37
- package/esm/is-empty.js.map +0 -1
- package/esm/is-equal-with.d.ts +0 -24
- package/esm/is-equal-with.js +0 -31
- package/esm/is-equal-with.js.map +0 -1
- package/esm/is-equal.d.ts +0 -2
- package/esm/is-equal.js +0 -45
- package/esm/is-equal.js.map +0 -1
- package/esm/is-error.d.ts +0 -2
- package/esm/is-error.js +0 -12
- package/esm/is-error.js.map +0 -1
- package/esm/is-even.d.ts +0 -2
- package/esm/is-even.js +0 -6
- package/esm/is-even.js.map +0 -1
- package/esm/is-finite.d.ts +0 -1
- package/esm/is-finite.js +0 -9
- package/esm/is-finite.js.map +0 -1
- package/esm/is-function.d.ts +0 -2
- package/esm/is-function.js +0 -10
- package/esm/is-function.js.map +0 -1
- package/esm/is-integer.d.ts +0 -2
- package/esm/is-integer.js +0 -6
- package/esm/is-integer.js.map +0 -1
- package/esm/is-match.d.ts +0 -2
- package/esm/is-match.js +0 -17
- package/esm/is-match.js.map +0 -1
- package/esm/is-negative.d.ts +0 -2
- package/esm/is-negative.js +0 -6
- package/esm/is-negative.js.map +0 -1
- package/esm/is-nil.d.ts +0 -2
- package/esm/is-nil.js +0 -10
- package/esm/is-nil.js.map +0 -1
- package/esm/is-null.d.ts +0 -2
- package/esm/is-null.js +0 -5
- package/esm/is-null.js.map +0 -1
- package/esm/is-number-equal.d.ts +0 -1
- package/esm/is-number-equal.js +0 -7
- package/esm/is-number-equal.js.map +0 -1
- package/esm/is-number.d.ts +0 -2
- package/esm/is-number.js +0 -10
- package/esm/is-number.js.map +0 -1
- package/esm/is-object-like.d.ts +0 -2
- package/esm/is-object-like.js +0 -11
- package/esm/is-object-like.js.map +0 -1
- package/esm/is-object.d.ts +0 -2
- package/esm/is-object.js +0 -11
- package/esm/is-object.js.map +0 -1
- package/esm/is-odd.d.ts +0 -2
- package/esm/is-odd.js +0 -6
- package/esm/is-odd.js.map +0 -1
- package/esm/is-plain-object.d.ts +0 -2
- package/esm/is-plain-object.js +0 -23
- package/esm/is-plain-object.js.map +0 -1
- package/esm/is-positive.d.ts +0 -2
- package/esm/is-positive.js +0 -6
- package/esm/is-positive.js.map +0 -1
- package/esm/is-prototype.d.ts +0 -2
- package/esm/is-prototype.js +0 -8
- package/esm/is-prototype.js.map +0 -1
- package/esm/is-reg-exp.d.ts +0 -2
- package/esm/is-reg-exp.js +0 -6
- package/esm/is-reg-exp.js.map +0 -1
- package/esm/is-segment-equal.d.ts +0 -2
- package/esm/is-segment-equal.js +0 -15
- package/esm/is-segment-equal.js.map +0 -1
- package/esm/is-string.d.ts +0 -2
- package/esm/is-string.js +0 -5
- package/esm/is-string.js.map +0 -1
- package/esm/is-type.d.ts +0 -2
- package/esm/is-type.js +0 -4
- package/esm/is-type.js.map +0 -1
- package/esm/is-undefined.d.ts +0 -2
- package/esm/is-undefined.js +0 -5
- package/esm/is-undefined.js.map +0 -1
- package/esm/keys.d.ts +0 -2
- package/esm/keys.js +0 -13
- package/esm/keys.js.map +0 -1
- package/esm/last.d.ts +0 -1
- package/esm/last.js +0 -9
- package/esm/last.js.map +0 -1
- package/esm/lower-case.d.ts +0 -2
- package/esm/lower-case.js +0 -6
- package/esm/lower-case.js.map +0 -1
- package/esm/lower-first.d.ts +0 -2
- package/esm/lower-first.js +0 -7
- package/esm/lower-first.js.map +0 -1
- package/esm/map-values.d.ts +0 -6
- package/esm/map-values.js +0 -15
- package/esm/map-values.js.map +0 -1
- package/esm/map.d.ts +0 -2
- package/esm/map.js +0 -15
- package/esm/map.js.map +0 -1
- package/esm/max-by.d.ts +0 -16
- package/esm/max-by.js +0 -33
- package/esm/max-by.js.map +0 -1
- package/esm/max.d.ts +0 -19
- package/esm/max.js +0 -27
- package/esm/max.js.map +0 -1
- package/esm/measure-text-width.d.ts +0 -12
- package/esm/measure-text-width.js +0 -21
- package/esm/measure-text-width.js.map +0 -1
- package/esm/memoize.d.ts +0 -11
- package/esm/memoize.js +0 -31
- package/esm/memoize.js.map +0 -1
- package/esm/merge.d.ts +0 -7
- package/esm/merge.js +0 -13
- package/esm/merge.js.map +0 -1
- package/esm/min-by.d.ts +0 -16
- package/esm/min-by.js +0 -33
- package/esm/min-by.js.map +0 -1
- package/esm/min.d.ts +0 -19
- package/esm/min.js +0 -27
- package/esm/min.js.map +0 -1
- package/esm/mix.d.ts +0 -1
- package/esm/mix.js +0 -18
- package/esm/mix.js.map +0 -1
- package/esm/mod.d.ts +0 -2
- package/esm/mod.js +0 -5
- package/esm/mod.js.map +0 -1
- package/esm/noop.d.ts +0 -2
- package/esm/noop.js +0 -2
- package/esm/noop.js.map +0 -1
- package/esm/number2color.d.ts +0 -2
- package/esm/number2color.js +0 -16
- package/esm/number2color.js.map +0 -1
- package/esm/omit.d.ts +0 -3
- package/esm/omit.js +0 -10
- package/esm/omit.js.map +0 -1
- package/esm/parse-radius.d.ts +0 -9
- package/esm/parse-radius.js +0 -35
- package/esm/parse-radius.js.map +0 -1
- package/esm/pick.d.ts +0 -16
- package/esm/pick.js +0 -16
- package/esm/pick.js.map +0 -1
- package/esm/pull-at.d.ts +0 -2
- package/esm/pull-at.js +0 -20
- package/esm/pull-at.js.map +0 -1
- package/esm/pull.d.ts +0 -2
- package/esm/pull.js +0 -19
- package/esm/pull.js.map +0 -1
- package/esm/reduce.d.ts +0 -3
- package/esm/reduce.js +0 -15
- package/esm/reduce.js.map +0 -1
- package/esm/remove.d.ts +0 -2
- package/esm/remove.js +0 -28
- package/esm/remove.js.map +0 -1
- package/esm/request-animation-frame.d.ts +0 -1
- package/esm/request-animation-frame.js +0 -14
- package/esm/request-animation-frame.js.map +0 -1
- package/esm/set.d.ts +0 -8
- package/esm/set.js +0 -27
- package/esm/set.js.map +0 -1
- package/esm/size.d.ts +0 -1
- package/esm/size.js +0 -12
- package/esm/size.js.map +0 -1
- package/esm/some.d.ts +0 -7
- package/esm/some.js +0 -14
- package/esm/some.js.map +0 -1
- package/esm/sort-by.d.ts +0 -7
- package/esm/sort-by.js +0 -34
- package/esm/sort-by.js.map +0 -1
- package/esm/starts-with.d.ts +0 -3
- package/esm/starts-with.js +0 -7
- package/esm/starts-with.js.map +0 -1
- package/esm/substitute.d.ts +0 -5
- package/esm/substitute.js +0 -13
- package/esm/substitute.js.map +0 -1
- package/esm/throttle.d.ts +0 -6
- package/esm/throttle.js +0 -42
- package/esm/throttle.js.map +0 -1
- package/esm/to-array.d.ts +0 -2
- package/esm/to-array.js +0 -5
- package/esm/to-array.js.map +0 -1
- package/esm/to-degree.d.ts +0 -2
- package/esm/to-degree.js +0 -6
- package/esm/to-degree.js.map +0 -1
- package/esm/to-integer.d.ts +0 -1
- package/esm/to-integer.js +0 -2
- package/esm/to-integer.js.map +0 -1
- package/esm/to-radian.d.ts +0 -2
- package/esm/to-radian.js +0 -6
- package/esm/to-radian.js.map +0 -1
- package/esm/to-string.d.ts +0 -2
- package/esm/to-string.js +0 -7
- package/esm/to-string.js.map +0 -1
- package/esm/types/index.d.ts +0 -3
- package/esm/types/index.js +0 -1
- package/esm/types/index.js.map +0 -1
- package/esm/union.d.ts +0 -2
- package/esm/union.js +0 -10
- package/esm/union.js.map +0 -1
- package/esm/uniq.d.ts +0 -1
- package/esm/uniq.js +0 -16
- package/esm/uniq.js.map +0 -1
- package/esm/unique-id.d.ts +0 -2
- package/esm/unique-id.js +0 -12
- package/esm/unique-id.js.map +0 -1
- package/esm/upper-case.d.ts +0 -2
- package/esm/upper-case.js +0 -6
- package/esm/upper-case.js.map +0 -1
- package/esm/upper-first.d.ts +0 -2
- package/esm/upper-first.js +0 -7
- package/esm/upper-first.js.map +0 -1
- package/esm/values-of-key.d.ts +0 -2
- package/esm/values-of-key.js +0 -26
- package/esm/values-of-key.js.map +0 -1
- package/esm/values.d.ts +0 -2
- package/esm/values.js +0 -14
- package/esm/values.js.map +0 -1
- package/esm/wrap-behavior.d.ts +0 -9
- package/esm/wrap-behavior.js +0 -19
- package/esm/wrap-behavior.js.map +0 -1
- package/lib/augment.d.ts +0 -2
- package/lib/augment.js +0 -20
- package/lib/augment.js.map +0 -1
- package/lib/cache.d.ts +0 -14
- package/lib/cache.js +0 -32
- package/lib/cache.js.map +0 -1
- package/lib/clamp.d.ts +0 -2
- package/lib/clamp.js +0 -13
- package/lib/clamp.js.map +0 -1
- package/lib/clear-animation-frame.d.ts +0 -1
- package/lib/clear-animation-frame.js +0 -15
- package/lib/clear-animation-frame.js.map +0 -1
- package/lib/clone.d.ts +0 -2
- package/lib/clone.js +0 -34
- package/lib/clone.js.map +0 -1
- package/lib/contains.d.ts +0 -2
- package/lib/contains.js +0 -11
- package/lib/contains.js.map +0 -1
- package/lib/debounce.d.ts +0 -2
- package/lib/debounce.js +0 -22
- package/lib/debounce.js.map +0 -1
- package/lib/deep-mix.d.ts +0 -2
- package/lib/deep-mix.js +0 -45
- package/lib/deep-mix.js.map +0 -1
- package/lib/difference.d.ts +0 -11
- package/lib/difference.js +0 -19
- package/lib/difference.js.map +0 -1
- package/lib/each.d.ts +0 -2
- package/lib/each.js +0 -30
- package/lib/each.js.map +0 -1
- package/lib/ends-with.d.ts +0 -3
- package/lib/ends-with.js +0 -9
- package/lib/ends-with.js.map +0 -1
- package/lib/every.d.ts +0 -7
- package/lib/every.js +0 -16
- package/lib/every.js.map +0 -1
- package/lib/extend.d.ts +0 -2
- package/lib/extend.js +0 -35
- package/lib/extend.js.map +0 -1
- package/lib/filter.d.ts +0 -2
- package/lib/filter.js +0 -18
- package/lib/filter.js.map +0 -1
- package/lib/find-index.d.ts +0 -2
- package/lib/find-index.js +0 -14
- package/lib/find-index.js.map +0 -1
- package/lib/find.d.ts +0 -3
- package/lib/find.js +0 -27
- package/lib/find.js.map +0 -1
- package/lib/first-value.d.ts +0 -2
- package/lib/first-value.js +0 -23
- package/lib/first-value.js.map +0 -1
- package/lib/fixed-base.d.ts +0 -2
- package/lib/fixed-base.js +0 -16
- package/lib/fixed-base.js.map +0 -1
- package/lib/flatten-deep.d.ts +0 -12
- package/lib/flatten-deep.js +0 -27
- package/lib/flatten-deep.js.map +0 -1
- package/lib/flatten.d.ts +0 -11
- package/lib/flatten.js +0 -24
- package/lib/flatten.js.map +0 -1
- package/lib/for-in.d.ts +0 -2
- package/lib/for-in.js +0 -5
- package/lib/for-in.js.map +0 -1
- package/lib/get-ellipsis-text.d.ts +0 -13
- package/lib/get-ellipsis-text.js +0 -71
- package/lib/get-ellipsis-text.js.map +0 -1
- package/lib/get-range.d.ts +0 -6
- package/lib/get-range.js +0 -31
- package/lib/get-range.js.map +0 -1
- package/lib/get-type.d.ts +0 -2
- package/lib/get-type.js +0 -8
- package/lib/get-type.js.map +0 -1
- package/lib/get-wrap-behavior.d.ts +0 -9
- package/lib/get-wrap-behavior.js +0 -14
- package/lib/get-wrap-behavior.js.map +0 -1
- package/lib/get.d.ts +0 -8
- package/lib/get.js +0 -18
- package/lib/get.js.map +0 -1
- package/lib/group-by.d.ts +0 -6
- package/lib/group-by.js +0 -27
- package/lib/group-by.js.map +0 -1
- package/lib/group-to-map.d.ts +0 -8
- package/lib/group-to-map.js +0 -32
- package/lib/group-to-map.js.map +0 -1
- package/lib/group.d.ts +0 -2
- package/lib/group.js +0 -16
- package/lib/group.js.map +0 -1
- package/lib/has-key.d.ts +0 -2
- package/lib/has-key.js +0 -5
- package/lib/has-key.js.map +0 -1
- package/lib/has-value.d.ts +0 -2
- package/lib/has-value.js +0 -6
- package/lib/has-value.js.map +0 -1
- package/lib/has.d.ts +0 -2
- package/lib/has.js +0 -4
- package/lib/has.js.map +0 -1
- package/lib/head.d.ts +0 -1
- package/lib/head.js +0 -11
- package/lib/head.js.map +0 -1
- package/lib/identity.d.ts +0 -2
- package/lib/identity.js +0 -4
- package/lib/identity.js.map +0 -1
- package/lib/index-of.d.ts +0 -2
- package/lib/index-of.js +0 -22
- package/lib/index-of.js.map +0 -1
- package/lib/is-arguments.d.ts +0 -2
- package/lib/is-arguments.js +0 -14
- package/lib/is-arguments.js.map +0 -1
- package/lib/is-array-like.d.ts +0 -2
- package/lib/is-array-like.js +0 -13
- package/lib/is-array-like.js.map +0 -1
- package/lib/is-array.d.ts +0 -2
- package/lib/is-array.js +0 -9
- package/lib/is-array.js.map +0 -1
- package/lib/is-boolean.d.ts +0 -2
- package/lib/is-boolean.js +0 -14
- package/lib/is-boolean.js.map +0 -1
- package/lib/is-date.d.ts +0 -2
- package/lib/is-date.js +0 -8
- package/lib/is-date.js.map +0 -1
- package/lib/is-decimal.d.ts +0 -2
- package/lib/is-decimal.js +0 -8
- package/lib/is-decimal.js.map +0 -1
- package/lib/is-element.d.ts +0 -6
- package/lib/is-element.js +0 -11
- package/lib/is-element.js.map +0 -1
- package/lib/is-empty.d.ts +0 -2
- package/lib/is-empty.js +0 -39
- package/lib/is-empty.js.map +0 -1
- package/lib/is-equal-with.d.ts +0 -24
- package/lib/is-equal-with.js +0 -33
- package/lib/is-equal-with.js.map +0 -1
- package/lib/is-equal.d.ts +0 -2
- package/lib/is-equal.js +0 -47
- package/lib/is-equal.js.map +0 -1
- package/lib/is-error.d.ts +0 -2
- package/lib/is-error.js +0 -14
- package/lib/is-error.js.map +0 -1
- package/lib/is-even.d.ts +0 -2
- package/lib/is-even.js +0 -8
- package/lib/is-even.js.map +0 -1
- package/lib/is-finite.d.ts +0 -1
- package/lib/is-finite.js +0 -12
- package/lib/is-finite.js.map +0 -1
- package/lib/is-function.d.ts +0 -2
- package/lib/is-function.js +0 -12
- package/lib/is-function.js.map +0 -1
- package/lib/is-integer.d.ts +0 -2
- package/lib/is-integer.js +0 -8
- package/lib/is-integer.js.map +0 -1
- package/lib/is-match.d.ts +0 -2
- package/lib/is-match.js +0 -19
- package/lib/is-match.js.map +0 -1
- package/lib/is-negative.d.ts +0 -2
- package/lib/is-negative.js +0 -8
- package/lib/is-negative.js.map +0 -1
- package/lib/is-nil.d.ts +0 -2
- package/lib/is-nil.js +0 -12
- package/lib/is-nil.js.map +0 -1
- package/lib/is-null.d.ts +0 -2
- package/lib/is-null.js +0 -7
- package/lib/is-null.js.map +0 -1
- package/lib/is-number-equal.d.ts +0 -1
- package/lib/is-number-equal.js +0 -10
- package/lib/is-number-equal.js.map +0 -1
- package/lib/is-number.d.ts +0 -2
- package/lib/is-number.js +0 -12
- package/lib/is-number.js.map +0 -1
- package/lib/is-object-like.d.ts +0 -2
- package/lib/is-object-like.js +0 -13
- package/lib/is-object-like.js.map +0 -1
- package/lib/is-object.d.ts +0 -2
- package/lib/is-object.js +0 -13
- package/lib/is-object.js.map +0 -1
- package/lib/is-odd.d.ts +0 -2
- package/lib/is-odd.js +0 -8
- package/lib/is-odd.js.map +0 -1
- package/lib/is-plain-object.d.ts +0 -2
- package/lib/is-plain-object.js +0 -25
- package/lib/is-plain-object.js.map +0 -1
- package/lib/is-positive.d.ts +0 -2
- package/lib/is-positive.js +0 -8
- package/lib/is-positive.js.map +0 -1
- package/lib/is-prototype.d.ts +0 -2
- package/lib/is-prototype.js +0 -10
- package/lib/is-prototype.js.map +0 -1
- package/lib/is-reg-exp.d.ts +0 -2
- package/lib/is-reg-exp.js +0 -8
- package/lib/is-reg-exp.js.map +0 -1
- package/lib/is-segment-equal.d.ts +0 -2
- package/lib/is-segment-equal.js +0 -17
- package/lib/is-segment-equal.js.map +0 -1
- package/lib/is-string.d.ts +0 -2
- package/lib/is-string.js +0 -7
- package/lib/is-string.js.map +0 -1
- package/lib/is-type.d.ts +0 -2
- package/lib/is-type.js +0 -6
- package/lib/is-type.js.map +0 -1
- package/lib/is-undefined.d.ts +0 -2
- package/lib/is-undefined.js +0 -7
- package/lib/is-undefined.js.map +0 -1
- package/lib/keys.d.ts +0 -2
- package/lib/keys.js +0 -15
- package/lib/keys.js.map +0 -1
- package/lib/last.d.ts +0 -1
- package/lib/last.js +0 -12
- package/lib/last.js.map +0 -1
- package/lib/lower-case.d.ts +0 -2
- package/lib/lower-case.js +0 -8
- package/lib/lower-case.js.map +0 -1
- package/lib/lower-first.d.ts +0 -2
- package/lib/lower-first.js +0 -9
- package/lib/lower-first.js.map +0 -1
- package/lib/map-values.d.ts +0 -6
- package/lib/map-values.js +0 -17
- package/lib/map-values.js.map +0 -1
- package/lib/map.d.ts +0 -2
- package/lib/map.js +0 -17
- package/lib/map.js.map +0 -1
- package/lib/max-by.d.ts +0 -16
- package/lib/max-by.js +0 -35
- package/lib/max-by.js.map +0 -1
- package/lib/max.d.ts +0 -19
- package/lib/max.js +0 -29
- package/lib/max.js.map +0 -1
- package/lib/measure-text-width.d.ts +0 -12
- package/lib/measure-text-width.js +0 -23
- package/lib/measure-text-width.js.map +0 -1
- package/lib/memoize.d.ts +0 -11
- package/lib/memoize.js +0 -33
- package/lib/memoize.js.map +0 -1
- package/lib/merge.d.ts +0 -7
- package/lib/merge.js +0 -15
- package/lib/merge.js.map +0 -1
- package/lib/min-by.d.ts +0 -16
- package/lib/min-by.js +0 -35
- package/lib/min-by.js.map +0 -1
- package/lib/min.d.ts +0 -19
- package/lib/min.js +0 -29
- package/lib/min.js.map +0 -1
- package/lib/mix.d.ts +0 -1
- package/lib/mix.js +0 -21
- package/lib/mix.js.map +0 -1
- package/lib/mod.d.ts +0 -2
- package/lib/mod.js +0 -7
- package/lib/mod.js.map +0 -1
- package/lib/noop.d.ts +0 -2
- package/lib/noop.js +0 -4
- package/lib/noop.js.map +0 -1
- package/lib/number2color.d.ts +0 -2
- package/lib/number2color.js +0 -18
- package/lib/number2color.js.map +0 -1
- package/lib/omit.d.ts +0 -3
- package/lib/omit.js +0 -12
- package/lib/omit.js.map +0 -1
- package/lib/parse-radius.d.ts +0 -9
- package/lib/parse-radius.js +0 -37
- package/lib/parse-radius.js.map +0 -1
- package/lib/pick.d.ts +0 -16
- package/lib/pick.js +0 -18
- package/lib/pick.js.map +0 -1
- package/lib/pull-at.d.ts +0 -2
- package/lib/pull-at.js +0 -22
- package/lib/pull-at.js.map +0 -1
- package/lib/pull.d.ts +0 -2
- package/lib/pull.js +0 -21
- package/lib/pull.js.map +0 -1
- package/lib/reduce.d.ts +0 -3
- package/lib/reduce.js +0 -17
- package/lib/reduce.js.map +0 -1
- package/lib/remove.d.ts +0 -2
- package/lib/remove.js +0 -30
- package/lib/remove.js.map +0 -1
- package/lib/request-animation-frame.d.ts +0 -1
- package/lib/request-animation-frame.js +0 -17
- package/lib/request-animation-frame.js.map +0 -1
- package/lib/set.d.ts +0 -8
- package/lib/set.js +0 -29
- package/lib/set.js.map +0 -1
- package/lib/size.d.ts +0 -1
- package/lib/size.js +0 -15
- package/lib/size.js.map +0 -1
- package/lib/some.d.ts +0 -7
- package/lib/some.js +0 -16
- package/lib/some.js.map +0 -1
- package/lib/sort-by.d.ts +0 -7
- package/lib/sort-by.js +0 -36
- package/lib/sort-by.js.map +0 -1
- package/lib/starts-with.d.ts +0 -3
- package/lib/starts-with.js +0 -9
- package/lib/starts-with.js.map +0 -1
- package/lib/substitute.d.ts +0 -5
- package/lib/substitute.js +0 -15
- package/lib/substitute.js.map +0 -1
- package/lib/throttle.d.ts +0 -6
- package/lib/throttle.js +0 -44
- package/lib/throttle.js.map +0 -1
- package/lib/to-array.d.ts +0 -2
- package/lib/to-array.js +0 -7
- package/lib/to-array.js.map +0 -1
- package/lib/to-degree.d.ts +0 -2
- package/lib/to-degree.js +0 -8
- package/lib/to-degree.js.map +0 -1
- package/lib/to-integer.d.ts +0 -1
- package/lib/to-integer.js +0 -4
- package/lib/to-integer.js.map +0 -1
- package/lib/to-radian.d.ts +0 -2
- package/lib/to-radian.js +0 -8
- package/lib/to-radian.js.map +0 -1
- package/lib/to-string.d.ts +0 -2
- package/lib/to-string.js +0 -9
- package/lib/to-string.js.map +0 -1
- package/lib/types/index.d.ts +0 -3
- package/lib/types/index.js +0 -3
- package/lib/types/index.js.map +0 -1
- package/lib/union.d.ts +0 -2
- package/lib/union.js +0 -12
- package/lib/union.js.map +0 -1
- package/lib/uniq.d.ts +0 -1
- package/lib/uniq.js +0 -19
- package/lib/uniq.js.map +0 -1
- package/lib/unique-id.d.ts +0 -2
- package/lib/unique-id.js +0 -14
- package/lib/unique-id.js.map +0 -1
- package/lib/upper-case.d.ts +0 -2
- package/lib/upper-case.js +0 -8
- package/lib/upper-case.js.map +0 -1
- package/lib/upper-first.d.ts +0 -2
- package/lib/upper-first.js +0 -9
- package/lib/upper-first.js.map +0 -1
- package/lib/values-of-key.d.ts +0 -2
- package/lib/values-of-key.js +0 -28
- package/lib/values-of-key.js.map +0 -1
- package/lib/values.d.ts +0 -2
- package/lib/values.js +0 -16
- package/lib/values.js.map +0 -1
- package/lib/wrap-behavior.d.ts +0 -9
- package/lib/wrap-behavior.js +0 -21
- package/lib/wrap-behavior.js.map +0 -1
- package/src/augment.ts +0 -16
- package/src/cache.ts +0 -31
- package/src/clamp.ts +0 -10
- package/src/clear-animation-frame.ts +0 -11
- package/src/clone.ts +0 -31
- package/src/contains.ts +0 -10
- package/src/debounce.ts +0 -22
- package/src/deep-mix.ts +0 -39
- package/src/difference.ts +0 -17
- package/src/each.ts +0 -28
- package/src/ends-with.ts +0 -10
- package/src/every.ts +0 -14
- package/src/extend.ts +0 -36
- package/src/filter.ts +0 -18
- package/src/find-index.ts +0 -12
- package/src/find.ts +0 -29
- package/src/first-value.ts +0 -21
- package/src/fixed-base.ts +0 -14
- package/src/flatten-deep.ts +0 -24
- package/src/flatten.ts +0 -23
- package/src/for-in.ts +0 -3
- package/src/get-ellipsis-text.ts +0 -75
- package/src/get-range.ts +0 -35
- package/src/get-type.ts +0 -7
- package/src/get-wrap-behavior.ts +0 -13
- package/src/get.ts +0 -18
- package/src/group-by.ts +0 -35
- package/src/group-to-map.ts +0 -30
- package/src/group.ts +0 -14
- package/src/has-key.ts +0 -2
- package/src/has-value.ts +0 -4
- package/src/has.ts +0 -1
- package/src/head.ts +0 -8
- package/src/identity.ts +0 -1
- package/src/index-of.ts +0 -22
- package/src/is-arguments.ts +0 -13
- package/src/is-array-like.ts +0 -11
- package/src/is-array.ts +0 -7
- package/src/is-boolean.ts +0 -13
- package/src/is-date.ts +0 -7
- package/src/is-decimal.ts +0 -7
- package/src/is-element.ts +0 -8
- package/src/is-empty.ts +0 -39
- package/src/is-equal-with.ts +0 -31
- package/src/is-equal.ts +0 -46
- package/src/is-error.ts +0 -13
- package/src/is-even.ts +0 -7
- package/src/is-finite.ts +0 -11
- package/src/is-function.ts +0 -10
- package/src/is-integer.ts +0 -7
- package/src/is-match.ts +0 -17
- package/src/is-negative.ts +0 -7
- package/src/is-nil.ts +0 -10
- package/src/is-null.ts +0 -5
- package/src/is-number-equal.ts +0 -5
- package/src/is-number.ts +0 -10
- package/src/is-object-like.ts +0 -11
- package/src/is-object.ts +0 -10
- package/src/is-odd.ts +0 -7
- package/src/is-plain-object.ts +0 -24
- package/src/is-positive.ts +0 -7
- package/src/is-prototype.ts +0 -9
- package/src/is-reg-exp.ts +0 -7
- package/src/is-segment-equal.ts +0 -15
- package/src/is-string.ts +0 -5
- package/src/is-type.ts +0 -5
- package/src/is-undefined.ts +0 -5
- package/src/keys.ts +0 -14
- package/src/last.ts +0 -9
- package/src/lower-case.ts +0 -7
- package/src/lower-first.ts +0 -8
- package/src/map-values.ts +0 -19
- package/src/map.ts +0 -17
- package/src/max-by.ts +0 -37
- package/src/max.ts +0 -28
- package/src/measure-text-width.ts +0 -25
- package/src/memoize.ts +0 -31
- package/src/merge.ts +0 -12
- package/src/min-by.ts +0 -38
- package/src/min.ts +0 -28
- package/src/mix.ts +0 -15
- package/src/mod.ts +0 -5
- package/src/noop.ts +0 -1
- package/src/number2color.ts +0 -17
- package/src/omit.ts +0 -15
- package/src/parse-radius.ts +0 -45
- package/src/pick.ts +0 -32
- package/src/pull-at.ts +0 -23
- package/src/pull.ts +0 -16
- package/src/reduce.ts +0 -17
- package/src/remove.ts +0 -30
- package/src/request-animation-frame.ts +0 -13
- package/src/set.ts +0 -29
- package/src/size.ts +0 -12
- package/src/some.ts +0 -14
- package/src/sort-by.ts +0 -42
- package/src/starts-with.ts +0 -10
- package/src/substitute.ts +0 -17
- package/src/throttle.ts +0 -48
- package/src/to-array.ts +0 -5
- package/src/to-degree.ts +0 -7
- package/src/to-integer.ts +0 -1
- package/src/to-radian.ts +0 -7
- package/src/to-string.ts +0 -6
- package/src/types/index.ts +0 -3
- package/src/union.ts +0 -7
- package/src/uniq.ts +0 -15
- package/src/unique-id.ts +0 -11
- package/src/upper-case.ts +0 -7
- package/src/upper-first.ts +0 -8
- package/src/values-of-key.ts +0 -29
- package/src/values.ts +0 -15
- package/src/wrap-behavior.ts +0 -20
package/lib/index.js
CHANGED
|
@@ -1,235 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
2
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
Object.defineProperty(exports, "includes", { enumerable: true, get: function () { return contains_1.default; } });
|
|
7
|
-
var difference_1 = require("./difference");
|
|
8
|
-
Object.defineProperty(exports, "difference", { enumerable: true, get: function () { return difference_1.default; } });
|
|
9
|
-
var find_1 = require("./find");
|
|
10
|
-
Object.defineProperty(exports, "find", { enumerable: true, get: function () { return find_1.default; } });
|
|
11
|
-
var find_index_1 = require("./find-index");
|
|
12
|
-
Object.defineProperty(exports, "findIndex", { enumerable: true, get: function () { return find_index_1.default; } });
|
|
13
|
-
var first_value_1 = require("./first-value");
|
|
14
|
-
Object.defineProperty(exports, "firstValue", { enumerable: true, get: function () { return first_value_1.default; } });
|
|
15
|
-
var flatten_1 = require("./flatten");
|
|
16
|
-
Object.defineProperty(exports, "flatten", { enumerable: true, get: function () { return flatten_1.default; } });
|
|
17
|
-
var flatten_deep_1 = require("./flatten-deep");
|
|
18
|
-
Object.defineProperty(exports, "flattenDeep", { enumerable: true, get: function () { return flatten_deep_1.default; } });
|
|
19
|
-
var get_range_1 = require("./get-range");
|
|
20
|
-
Object.defineProperty(exports, "getRange", { enumerable: true, get: function () { return get_range_1.default; } });
|
|
21
|
-
var pull_1 = require("./pull");
|
|
22
|
-
Object.defineProperty(exports, "pull", { enumerable: true, get: function () { return pull_1.default; } });
|
|
23
|
-
var pull_at_1 = require("./pull-at");
|
|
24
|
-
Object.defineProperty(exports, "pullAt", { enumerable: true, get: function () { return pull_at_1.default; } });
|
|
25
|
-
var reduce_1 = require("./reduce");
|
|
26
|
-
Object.defineProperty(exports, "reduce", { enumerable: true, get: function () { return reduce_1.default; } });
|
|
27
|
-
var remove_1 = require("./remove");
|
|
28
|
-
Object.defineProperty(exports, "remove", { enumerable: true, get: function () { return remove_1.default; } });
|
|
29
|
-
var sort_by_1 = require("./sort-by");
|
|
30
|
-
Object.defineProperty(exports, "sortBy", { enumerable: true, get: function () { return sort_by_1.default; } });
|
|
31
|
-
var union_1 = require("./union");
|
|
32
|
-
Object.defineProperty(exports, "union", { enumerable: true, get: function () { return union_1.default; } });
|
|
33
|
-
var uniq_1 = require("./uniq");
|
|
34
|
-
Object.defineProperty(exports, "uniq", { enumerable: true, get: function () { return uniq_1.default; } });
|
|
35
|
-
var values_of_key_1 = require("./values-of-key");
|
|
36
|
-
Object.defineProperty(exports, "valuesOfKey", { enumerable: true, get: function () { return values_of_key_1.default; } });
|
|
37
|
-
var head_1 = require("./head");
|
|
38
|
-
Object.defineProperty(exports, "head", { enumerable: true, get: function () { return head_1.default; } });
|
|
39
|
-
var last_1 = require("./last");
|
|
40
|
-
Object.defineProperty(exports, "last", { enumerable: true, get: function () { return last_1.default; } });
|
|
41
|
-
var starts_with_1 = require("./starts-with");
|
|
42
|
-
Object.defineProperty(exports, "startsWith", { enumerable: true, get: function () { return starts_with_1.default; } });
|
|
43
|
-
var ends_with_1 = require("./ends-with");
|
|
44
|
-
Object.defineProperty(exports, "endsWith", { enumerable: true, get: function () { return ends_with_1.default; } });
|
|
45
|
-
var filter_1 = require("./filter");
|
|
46
|
-
Object.defineProperty(exports, "filter", { enumerable: true, get: function () { return filter_1.default; } });
|
|
47
|
-
var every_1 = require("./every");
|
|
48
|
-
Object.defineProperty(exports, "every", { enumerable: true, get: function () { return every_1.default; } });
|
|
49
|
-
var some_1 = require("./some");
|
|
50
|
-
Object.defineProperty(exports, "some", { enumerable: true, get: function () { return some_1.default; } });
|
|
51
|
-
var group_1 = require("./group");
|
|
52
|
-
Object.defineProperty(exports, "group", { enumerable: true, get: function () { return group_1.default; } });
|
|
53
|
-
var group_by_1 = require("./group-by");
|
|
54
|
-
Object.defineProperty(exports, "groupBy", { enumerable: true, get: function () { return group_by_1.default; } });
|
|
55
|
-
var group_to_map_1 = require("./group-to-map");
|
|
56
|
-
Object.defineProperty(exports, "groupToMap", { enumerable: true, get: function () { return group_to_map_1.default; } });
|
|
57
|
-
// event
|
|
58
|
-
var get_wrap_behavior_1 = require("./get-wrap-behavior");
|
|
59
|
-
Object.defineProperty(exports, "getWrapBehavior", { enumerable: true, get: function () { return get_wrap_behavior_1.default; } });
|
|
60
|
-
var wrap_behavior_1 = require("./wrap-behavior");
|
|
61
|
-
Object.defineProperty(exports, "wrapBehavior", { enumerable: true, get: function () { return wrap_behavior_1.default; } });
|
|
62
|
-
// format
|
|
63
|
-
var number2color_1 = require("./number2color");
|
|
64
|
-
Object.defineProperty(exports, "number2color", { enumerable: true, get: function () { return number2color_1.default; } });
|
|
65
|
-
var parse_radius_1 = require("./parse-radius");
|
|
66
|
-
Object.defineProperty(exports, "parseRadius", { enumerable: true, get: function () { return parse_radius_1.default; } });
|
|
67
|
-
// math
|
|
68
|
-
var clamp_1 = require("./clamp");
|
|
69
|
-
Object.defineProperty(exports, "clamp", { enumerable: true, get: function () { return clamp_1.default; } });
|
|
70
|
-
var fixed_base_1 = require("./fixed-base");
|
|
71
|
-
Object.defineProperty(exports, "fixedBase", { enumerable: true, get: function () { return fixed_base_1.default; } });
|
|
72
|
-
var is_decimal_1 = require("./is-decimal");
|
|
73
|
-
Object.defineProperty(exports, "isDecimal", { enumerable: true, get: function () { return is_decimal_1.default; } });
|
|
74
|
-
var is_even_1 = require("./is-even");
|
|
75
|
-
Object.defineProperty(exports, "isEven", { enumerable: true, get: function () { return is_even_1.default; } });
|
|
76
|
-
var is_integer_1 = require("./is-integer");
|
|
77
|
-
Object.defineProperty(exports, "isInteger", { enumerable: true, get: function () { return is_integer_1.default; } });
|
|
78
|
-
var is_negative_1 = require("./is-negative");
|
|
79
|
-
Object.defineProperty(exports, "isNegative", { enumerable: true, get: function () { return is_negative_1.default; } });
|
|
80
|
-
var is_number_equal_1 = require("./is-number-equal");
|
|
81
|
-
Object.defineProperty(exports, "isNumberEqual", { enumerable: true, get: function () { return is_number_equal_1.default; } });
|
|
82
|
-
var is_odd_1 = require("./is-odd");
|
|
83
|
-
Object.defineProperty(exports, "isOdd", { enumerable: true, get: function () { return is_odd_1.default; } });
|
|
84
|
-
var is_positive_1 = require("./is-positive");
|
|
85
|
-
Object.defineProperty(exports, "isPositive", { enumerable: true, get: function () { return is_positive_1.default; } });
|
|
86
|
-
var max_1 = require("./max");
|
|
87
|
-
Object.defineProperty(exports, "max", { enumerable: true, get: function () { return max_1.default; } });
|
|
88
|
-
var max_by_1 = require("./max-by");
|
|
89
|
-
Object.defineProperty(exports, "maxBy", { enumerable: true, get: function () { return max_by_1.default; } });
|
|
90
|
-
var min_1 = require("./min");
|
|
91
|
-
Object.defineProperty(exports, "min", { enumerable: true, get: function () { return min_1.default; } });
|
|
92
|
-
var min_by_1 = require("./min-by");
|
|
93
|
-
Object.defineProperty(exports, "minBy", { enumerable: true, get: function () { return min_by_1.default; } });
|
|
94
|
-
var mod_1 = require("./mod");
|
|
95
|
-
Object.defineProperty(exports, "mod", { enumerable: true, get: function () { return mod_1.default; } });
|
|
96
|
-
var to_degree_1 = require("./to-degree");
|
|
97
|
-
Object.defineProperty(exports, "toDegree", { enumerable: true, get: function () { return to_degree_1.default; } });
|
|
98
|
-
var to_integer_1 = require("./to-integer");
|
|
99
|
-
Object.defineProperty(exports, "toInteger", { enumerable: true, get: function () { return to_integer_1.default; } });
|
|
100
|
-
var to_radian_1 = require("./to-radian");
|
|
101
|
-
Object.defineProperty(exports, "toRadian", { enumerable: true, get: function () { return to_radian_1.default; } });
|
|
102
|
-
// object
|
|
103
|
-
var for_in_1 = require("./for-in");
|
|
104
|
-
Object.defineProperty(exports, "forIn", { enumerable: true, get: function () { return for_in_1.default; } });
|
|
105
|
-
var has_1 = require("./has");
|
|
106
|
-
Object.defineProperty(exports, "has", { enumerable: true, get: function () { return has_1.default; } });
|
|
107
|
-
var has_key_1 = require("./has-key");
|
|
108
|
-
Object.defineProperty(exports, "hasKey", { enumerable: true, get: function () { return has_key_1.default; } });
|
|
109
|
-
var has_value_1 = require("./has-value");
|
|
110
|
-
Object.defineProperty(exports, "hasValue", { enumerable: true, get: function () { return has_value_1.default; } });
|
|
111
|
-
var keys_1 = require("./keys");
|
|
112
|
-
Object.defineProperty(exports, "keys", { enumerable: true, get: function () { return keys_1.default; } });
|
|
113
|
-
var is_match_1 = require("./is-match");
|
|
114
|
-
Object.defineProperty(exports, "isMatch", { enumerable: true, get: function () { return is_match_1.default; } });
|
|
115
|
-
var values_1 = require("./values");
|
|
116
|
-
Object.defineProperty(exports, "values", { enumerable: true, get: function () { return values_1.default; } });
|
|
117
|
-
// string
|
|
118
|
-
var lower_case_1 = require("./lower-case");
|
|
119
|
-
Object.defineProperty(exports, "lowerCase", { enumerable: true, get: function () { return lower_case_1.default; } });
|
|
120
|
-
var lower_first_1 = require("./lower-first");
|
|
121
|
-
Object.defineProperty(exports, "lowerFirst", { enumerable: true, get: function () { return lower_first_1.default; } });
|
|
122
|
-
var substitute_1 = require("./substitute");
|
|
123
|
-
Object.defineProperty(exports, "substitute", { enumerable: true, get: function () { return substitute_1.default; } });
|
|
124
|
-
var upper_case_1 = require("./upper-case");
|
|
125
|
-
Object.defineProperty(exports, "upperCase", { enumerable: true, get: function () { return upper_case_1.default; } });
|
|
126
|
-
var upper_first_1 = require("./upper-first");
|
|
127
|
-
Object.defineProperty(exports, "upperFirst", { enumerable: true, get: function () { return upper_first_1.default; } });
|
|
128
|
-
// type
|
|
129
|
-
var get_type_1 = require("./get-type");
|
|
130
|
-
Object.defineProperty(exports, "getType", { enumerable: true, get: function () { return get_type_1.default; } });
|
|
131
|
-
var is_arguments_1 = require("./is-arguments");
|
|
132
|
-
Object.defineProperty(exports, "isArguments", { enumerable: true, get: function () { return is_arguments_1.default; } });
|
|
133
|
-
var is_array_1 = require("./is-array");
|
|
134
|
-
Object.defineProperty(exports, "isArray", { enumerable: true, get: function () { return is_array_1.default; } });
|
|
135
|
-
var is_array_like_1 = require("./is-array-like");
|
|
136
|
-
Object.defineProperty(exports, "isArrayLike", { enumerable: true, get: function () { return is_array_like_1.default; } });
|
|
137
|
-
var is_boolean_1 = require("./is-boolean");
|
|
138
|
-
Object.defineProperty(exports, "isBoolean", { enumerable: true, get: function () { return is_boolean_1.default; } });
|
|
139
|
-
var is_date_1 = require("./is-date");
|
|
140
|
-
Object.defineProperty(exports, "isDate", { enumerable: true, get: function () { return is_date_1.default; } });
|
|
141
|
-
var is_error_1 = require("./is-error");
|
|
142
|
-
Object.defineProperty(exports, "isError", { enumerable: true, get: function () { return is_error_1.default; } });
|
|
143
|
-
var is_function_1 = require("./is-function");
|
|
144
|
-
Object.defineProperty(exports, "isFunction", { enumerable: true, get: function () { return is_function_1.default; } });
|
|
145
|
-
var is_finite_1 = require("./is-finite");
|
|
146
|
-
Object.defineProperty(exports, "isFinite", { enumerable: true, get: function () { return is_finite_1.default; } });
|
|
147
|
-
var is_nil_1 = require("./is-nil");
|
|
148
|
-
Object.defineProperty(exports, "isNil", { enumerable: true, get: function () { return is_nil_1.default; } });
|
|
149
|
-
var is_null_1 = require("./is-null");
|
|
150
|
-
Object.defineProperty(exports, "isNull", { enumerable: true, get: function () { return is_null_1.default; } });
|
|
151
|
-
var is_number_1 = require("./is-number");
|
|
152
|
-
Object.defineProperty(exports, "isNumber", { enumerable: true, get: function () { return is_number_1.default; } });
|
|
153
|
-
var is_object_1 = require("./is-object");
|
|
154
|
-
Object.defineProperty(exports, "isObject", { enumerable: true, get: function () { return is_object_1.default; } });
|
|
155
|
-
var is_object_like_1 = require("./is-object-like");
|
|
156
|
-
Object.defineProperty(exports, "isObjectLike", { enumerable: true, get: function () { return is_object_like_1.default; } });
|
|
157
|
-
var is_plain_object_1 = require("./is-plain-object");
|
|
158
|
-
Object.defineProperty(exports, "isPlainObject", { enumerable: true, get: function () { return is_plain_object_1.default; } });
|
|
159
|
-
var is_prototype_1 = require("./is-prototype");
|
|
160
|
-
Object.defineProperty(exports, "isPrototype", { enumerable: true, get: function () { return is_prototype_1.default; } });
|
|
161
|
-
var is_reg_exp_1 = require("./is-reg-exp");
|
|
162
|
-
Object.defineProperty(exports, "isRegExp", { enumerable: true, get: function () { return is_reg_exp_1.default; } });
|
|
163
|
-
var is_string_1 = require("./is-string");
|
|
164
|
-
Object.defineProperty(exports, "isString", { enumerable: true, get: function () { return is_string_1.default; } });
|
|
165
|
-
var is_type_1 = require("./is-type");
|
|
166
|
-
Object.defineProperty(exports, "isType", { enumerable: true, get: function () { return is_type_1.default; } });
|
|
167
|
-
var is_undefined_1 = require("./is-undefined");
|
|
168
|
-
Object.defineProperty(exports, "isUndefined", { enumerable: true, get: function () { return is_undefined_1.default; } });
|
|
169
|
-
var is_element_1 = require("./is-element");
|
|
170
|
-
Object.defineProperty(exports, "isElement", { enumerable: true, get: function () { return is_element_1.default; } });
|
|
171
|
-
var request_animation_frame_1 = require("./request-animation-frame");
|
|
172
|
-
Object.defineProperty(exports, "requestAnimationFrame", { enumerable: true, get: function () { return request_animation_frame_1.default; } });
|
|
173
|
-
var clear_animation_frame_1 = require("./clear-animation-frame");
|
|
174
|
-
Object.defineProperty(exports, "clearAnimationFrame", { enumerable: true, get: function () { return clear_animation_frame_1.default; } });
|
|
175
|
-
// other
|
|
176
|
-
var augment_1 = require("./augment");
|
|
177
|
-
Object.defineProperty(exports, "augment", { enumerable: true, get: function () { return augment_1.default; } });
|
|
178
|
-
var clone_1 = require("./clone");
|
|
179
|
-
Object.defineProperty(exports, "clone", { enumerable: true, get: function () { return clone_1.default; } });
|
|
180
|
-
var debounce_1 = require("./debounce");
|
|
181
|
-
Object.defineProperty(exports, "debounce", { enumerable: true, get: function () { return debounce_1.default; } });
|
|
182
|
-
var memoize_1 = require("./memoize");
|
|
183
|
-
Object.defineProperty(exports, "memoize", { enumerable: true, get: function () { return memoize_1.default; } });
|
|
184
|
-
var deep_mix_1 = require("./deep-mix");
|
|
185
|
-
Object.defineProperty(exports, "deepMix", { enumerable: true, get: function () { return deep_mix_1.default; } });
|
|
186
|
-
var each_1 = require("./each");
|
|
187
|
-
Object.defineProperty(exports, "each", { enumerable: true, get: function () { return each_1.default; } });
|
|
188
|
-
var extend_1 = require("./extend");
|
|
189
|
-
Object.defineProperty(exports, "extend", { enumerable: true, get: function () { return extend_1.default; } });
|
|
190
|
-
var index_of_1 = require("./index-of");
|
|
191
|
-
Object.defineProperty(exports, "indexOf", { enumerable: true, get: function () { return index_of_1.default; } });
|
|
192
|
-
var is_empty_1 = require("./is-empty");
|
|
193
|
-
Object.defineProperty(exports, "isEmpty", { enumerable: true, get: function () { return is_empty_1.default; } });
|
|
194
|
-
var is_equal_1 = require("./is-equal");
|
|
195
|
-
Object.defineProperty(exports, "isEqual", { enumerable: true, get: function () { return is_equal_1.default; } });
|
|
196
|
-
var is_equal_with_1 = require("./is-equal-with");
|
|
197
|
-
Object.defineProperty(exports, "isEqualWith", { enumerable: true, get: function () { return is_equal_with_1.default; } });
|
|
198
|
-
var map_1 = require("./map");
|
|
199
|
-
Object.defineProperty(exports, "map", { enumerable: true, get: function () { return map_1.default; } });
|
|
200
|
-
var map_values_1 = require("./map-values");
|
|
201
|
-
Object.defineProperty(exports, "mapValues", { enumerable: true, get: function () { return map_values_1.default; } });
|
|
202
|
-
var mix_1 = require("./mix");
|
|
203
|
-
Object.defineProperty(exports, "mix", { enumerable: true, get: function () { return mix_1.default; } });
|
|
204
|
-
Object.defineProperty(exports, "assign", { enumerable: true, get: function () { return mix_1.default; } });
|
|
205
|
-
var get_1 = require("./get");
|
|
206
|
-
Object.defineProperty(exports, "get", { enumerable: true, get: function () { return get_1.default; } });
|
|
207
|
-
var set_1 = require("./set");
|
|
208
|
-
Object.defineProperty(exports, "set", { enumerable: true, get: function () { return set_1.default; } });
|
|
209
|
-
var pick_1 = require("./pick");
|
|
210
|
-
Object.defineProperty(exports, "pick", { enumerable: true, get: function () { return pick_1.default; } });
|
|
211
|
-
var omit_1 = require("./omit");
|
|
212
|
-
Object.defineProperty(exports, "omit", { enumerable: true, get: function () { return omit_1.default; } });
|
|
213
|
-
var throttle_1 = require("./throttle");
|
|
214
|
-
Object.defineProperty(exports, "throttle", { enumerable: true, get: function () { return throttle_1.default; } });
|
|
215
|
-
var to_array_1 = require("./to-array");
|
|
216
|
-
Object.defineProperty(exports, "toArray", { enumerable: true, get: function () { return to_array_1.default; } });
|
|
217
|
-
var to_string_1 = require("./to-string");
|
|
218
|
-
Object.defineProperty(exports, "toString", { enumerable: true, get: function () { return to_string_1.default; } });
|
|
219
|
-
var unique_id_1 = require("./unique-id");
|
|
220
|
-
Object.defineProperty(exports, "uniqueId", { enumerable: true, get: function () { return unique_id_1.default; } });
|
|
221
|
-
var noop_1 = require("./noop");
|
|
222
|
-
Object.defineProperty(exports, "noop", { enumerable: true, get: function () { return noop_1.default; } });
|
|
223
|
-
var identity_1 = require("./identity");
|
|
224
|
-
Object.defineProperty(exports, "identity", { enumerable: true, get: function () { return identity_1.default; } });
|
|
225
|
-
var size_1 = require("./size");
|
|
226
|
-
Object.defineProperty(exports, "size", { enumerable: true, get: function () { return size_1.default; } });
|
|
227
|
-
// text
|
|
228
|
-
var measure_text_width_1 = require("./measure-text-width");
|
|
229
|
-
Object.defineProperty(exports, "measureTextWidth", { enumerable: true, get: function () { return measure_text_width_1.default; } });
|
|
230
|
-
var get_ellipsis_text_1 = require("./get-ellipsis-text");
|
|
231
|
-
Object.defineProperty(exports, "getEllipsisText", { enumerable: true, get: function () { return get_ellipsis_text_1.default; } });
|
|
232
|
-
// 不知道为什么,需要把这个 export,不然 ts 会报类型错误
|
|
233
|
-
var cache_1 = require("./cache");
|
|
234
|
-
Object.defineProperty(exports, "Cache", { enumerable: true, get: function () { return cache_1.default; } });
|
|
13
|
+
__exportStar(require("./color"), exports);
|
|
14
|
+
__exportStar(require("./matrix"), exports);
|
|
15
|
+
__exportStar(require("./path"), exports);
|
|
235
16
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,yCAAuB"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 根据 actions 来做 transform
|
|
3
|
+
* @param m
|
|
4
|
+
* @param actions
|
|
5
|
+
*/
|
|
6
|
+
export declare function transform(m: number[], actions: any[][]): any[];
|
|
7
|
+
/**
|
|
8
|
+
* 向量 v1 到 向量 v2 夹角的方向
|
|
9
|
+
* @param {Array} v1 向量
|
|
10
|
+
* @param {Array} v2 向量
|
|
11
|
+
* @return {Boolean} >= 0 顺时针 < 0 逆时针
|
|
12
|
+
*/
|
|
13
|
+
export declare function direction(v1: number[], v2: number[]): number;
|
|
14
|
+
/**
|
|
15
|
+
* 二维向量 v1 到 v2 的夹角
|
|
16
|
+
* @param v1
|
|
17
|
+
* @param v2
|
|
18
|
+
* @param direct
|
|
19
|
+
*/
|
|
20
|
+
export declare function angleTo(v1: [number, number], v2: [number, number], direct?: boolean): number;
|
|
21
|
+
/**
|
|
22
|
+
* 计算二维向量的垂直向量
|
|
23
|
+
* @param out
|
|
24
|
+
* @param v
|
|
25
|
+
* @param flag
|
|
26
|
+
*/
|
|
27
|
+
export declare function vertical(out: number[], v: number[], flag: boolean): number[];
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.vertical = exports.angleTo = exports.direction = exports.transform = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @description 扩展方法,提供 gl-matrix 为提供的方法
|
|
6
|
+
* */
|
|
7
|
+
var gl_matrix_1 = require("gl-matrix");
|
|
8
|
+
function leftTranslate(out, a, v) {
|
|
9
|
+
var transMat = [0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
10
|
+
gl_matrix_1.mat3.fromTranslation(transMat, v);
|
|
11
|
+
return gl_matrix_1.mat3.multiply(out, transMat, a);
|
|
12
|
+
}
|
|
13
|
+
function leftRotate(out, a, rad) {
|
|
14
|
+
var rotateMat = [0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
15
|
+
gl_matrix_1.mat3.fromRotation(rotateMat, rad);
|
|
16
|
+
return gl_matrix_1.mat3.multiply(out, rotateMat, a);
|
|
17
|
+
}
|
|
18
|
+
function leftScale(out, a, v) {
|
|
19
|
+
var scaleMat = [0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
20
|
+
gl_matrix_1.mat3.fromScaling(scaleMat, v);
|
|
21
|
+
return gl_matrix_1.mat3.multiply(out, scaleMat, a);
|
|
22
|
+
}
|
|
23
|
+
function leftMultiply(out, a, a1) {
|
|
24
|
+
return gl_matrix_1.mat3.multiply(out, a1, a);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 根据 actions 来做 transform
|
|
28
|
+
* @param m
|
|
29
|
+
* @param actions
|
|
30
|
+
*/
|
|
31
|
+
function transform(m, actions) {
|
|
32
|
+
var matrix = m ? [].concat(m) : [1, 0, 0, 0, 1, 0, 0, 0, 1];
|
|
33
|
+
for (var i = 0, len = actions.length; i < len; i++) {
|
|
34
|
+
var action = actions[i];
|
|
35
|
+
switch (action[0]) {
|
|
36
|
+
case 't':
|
|
37
|
+
leftTranslate(matrix, matrix, [action[1], action[2]]);
|
|
38
|
+
break;
|
|
39
|
+
case 's':
|
|
40
|
+
leftScale(matrix, matrix, [action[1], action[2]]);
|
|
41
|
+
break;
|
|
42
|
+
case 'r':
|
|
43
|
+
leftRotate(matrix, matrix, action[1]);
|
|
44
|
+
break;
|
|
45
|
+
case 'm':
|
|
46
|
+
leftMultiply(matrix, matrix, action[1]);
|
|
47
|
+
break;
|
|
48
|
+
default:
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return matrix;
|
|
53
|
+
}
|
|
54
|
+
exports.transform = transform;
|
|
55
|
+
/**
|
|
56
|
+
* 向量 v1 到 向量 v2 夹角的方向
|
|
57
|
+
* @param {Array} v1 向量
|
|
58
|
+
* @param {Array} v2 向量
|
|
59
|
+
* @return {Boolean} >= 0 顺时针 < 0 逆时针
|
|
60
|
+
*/
|
|
61
|
+
function direction(v1, v2) {
|
|
62
|
+
return v1[0] * v2[1] - v2[0] * v1[1];
|
|
63
|
+
}
|
|
64
|
+
exports.direction = direction;
|
|
65
|
+
/**
|
|
66
|
+
* 二维向量 v1 到 v2 的夹角
|
|
67
|
+
* @param v1
|
|
68
|
+
* @param v2
|
|
69
|
+
* @param direct
|
|
70
|
+
*/
|
|
71
|
+
function angleTo(v1, v2, direct) {
|
|
72
|
+
var ang = gl_matrix_1.vec2.angle(v1, v2);
|
|
73
|
+
var angleLargeThanPI = direction(v1, v2) >= 0;
|
|
74
|
+
if (direct) {
|
|
75
|
+
if (angleLargeThanPI) {
|
|
76
|
+
return Math.PI * 2 - ang;
|
|
77
|
+
}
|
|
78
|
+
return ang;
|
|
79
|
+
}
|
|
80
|
+
if (angleLargeThanPI) {
|
|
81
|
+
return ang;
|
|
82
|
+
}
|
|
83
|
+
return Math.PI * 2 - ang;
|
|
84
|
+
}
|
|
85
|
+
exports.angleTo = angleTo;
|
|
86
|
+
/**
|
|
87
|
+
* 计算二维向量的垂直向量
|
|
88
|
+
* @param out
|
|
89
|
+
* @param v
|
|
90
|
+
* @param flag
|
|
91
|
+
*/
|
|
92
|
+
function vertical(out, v, flag) {
|
|
93
|
+
if (flag) {
|
|
94
|
+
out[0] = v[1];
|
|
95
|
+
out[1] = -1 * v[0];
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
out[0] = -1 * v[1];
|
|
99
|
+
out[1] = v[0];
|
|
100
|
+
}
|
|
101
|
+
return out;
|
|
102
|
+
}
|
|
103
|
+
exports.vertical = vertical;
|
|
104
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["matrix/index.ts"],"names":[],"mappings":";;;AAAA;;KAEK;AACL,uCAAuC;AAIvC,SAAS,aAAa,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;IAC9B,IAAM,QAAQ,GAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACvD,gBAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAClC,OAAO,gBAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC;AACzC,CAAC;AAED,SAAS,UAAU,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG;IAC7B,IAAM,SAAS,GAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACxD,gBAAI,CAAC,YAAY,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;IAClC,OAAO,gBAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;AAC1C,CAAC;AAED,SAAS,SAAS,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;IAC1B,IAAM,QAAQ,GAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACvD,gBAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC9B,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,CAAC;KACf;IAED,OAAO,GAAG,CAAC;AACb,CAAC;AAVD,4BAUC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PathCommand } from './types';
|
|
2
|
+
declare type Pos = [number, number];
|
|
3
|
+
/**
|
|
4
|
+
* create bezier spline from catmull rom spline
|
|
5
|
+
* @param {Array} crp Catmull Rom Points
|
|
6
|
+
* @param {boolean} z Spline is loop
|
|
7
|
+
* @param {Array} constraint Constraint
|
|
8
|
+
*/
|
|
9
|
+
export declare function catmullRom2Bezier(crp: number[], z?: boolean, constraint?: Pos[]): PathCommand[];
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.catmullRom2Bezier = void 0;
|
|
4
|
+
var gl_matrix_1 = require("gl-matrix");
|
|
5
|
+
function smoothBezier(points, smooth, isLoop, constraint) {
|
|
6
|
+
var cps = [];
|
|
7
|
+
var hasConstraint = !!constraint;
|
|
8
|
+
var prevPoint;
|
|
9
|
+
var nextPoint;
|
|
10
|
+
var min;
|
|
11
|
+
var max;
|
|
12
|
+
var nextCp0;
|
|
13
|
+
var cp1;
|
|
14
|
+
var cp0;
|
|
15
|
+
if (hasConstraint) {
|
|
16
|
+
min = constraint[0], max = constraint[1];
|
|
17
|
+
for (var i = 0, l = points.length; i < l; i += 1) {
|
|
18
|
+
var point = points[i];
|
|
19
|
+
min = gl_matrix_1.vec2.min([0, 0], min, point);
|
|
20
|
+
max = gl_matrix_1.vec2.max([0, 0], max, point);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
for (var i = 0, len = points.length; i < len; i += 1) {
|
|
24
|
+
var point = points[i];
|
|
25
|
+
if (i === 0 && !isLoop) {
|
|
26
|
+
cp0 = point;
|
|
27
|
+
}
|
|
28
|
+
else if (i === len - 1 && !isLoop) {
|
|
29
|
+
cp1 = point;
|
|
30
|
+
cps.push(cp0);
|
|
31
|
+
cps.push(cp1);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
var prevIdx = [i ? i - 1 : len - 1, i - 1][isLoop ? 0 : 1];
|
|
35
|
+
prevPoint = points[prevIdx];
|
|
36
|
+
nextPoint = points[isLoop ? (i + 1) % len : i + 1];
|
|
37
|
+
var v = [0, 0];
|
|
38
|
+
v = gl_matrix_1.vec2.sub(v, nextPoint, prevPoint);
|
|
39
|
+
v = gl_matrix_1.vec2.scale(v, v, smooth);
|
|
40
|
+
var d0 = gl_matrix_1.vec2.distance(point, prevPoint);
|
|
41
|
+
var d1 = gl_matrix_1.vec2.distance(point, nextPoint);
|
|
42
|
+
var sum = d0 + d1;
|
|
43
|
+
if (sum !== 0) {
|
|
44
|
+
d0 /= sum;
|
|
45
|
+
d1 /= sum;
|
|
46
|
+
}
|
|
47
|
+
var v1 = gl_matrix_1.vec2.scale([0, 0], v, -d0);
|
|
48
|
+
var v2 = gl_matrix_1.vec2.scale([0, 0], v, d1);
|
|
49
|
+
cp1 = gl_matrix_1.vec2.add([0, 0], point, v1);
|
|
50
|
+
nextCp0 = gl_matrix_1.vec2.add([0, 0], point, v2);
|
|
51
|
+
// 下一个控制点必须在这个点和下一个点之间
|
|
52
|
+
nextCp0 = gl_matrix_1.vec2.min([0, 0], nextCp0, gl_matrix_1.vec2.max([0, 0], nextPoint, point));
|
|
53
|
+
nextCp0 = gl_matrix_1.vec2.max([0, 0], nextCp0, gl_matrix_1.vec2.min([0, 0], nextPoint, point));
|
|
54
|
+
// 重新计算 cp1 的值
|
|
55
|
+
v1 = gl_matrix_1.vec2.sub([0, 0], nextCp0, point);
|
|
56
|
+
v1 = gl_matrix_1.vec2.scale([0, 0], v1, -d0 / d1);
|
|
57
|
+
cp1 = gl_matrix_1.vec2.add([0, 0], point, v1);
|
|
58
|
+
// 上一个控制点必须要在上一个点和这一个点之间
|
|
59
|
+
cp1 = gl_matrix_1.vec2.min([0, 0], cp1, gl_matrix_1.vec2.max([0, 0], prevPoint, point));
|
|
60
|
+
cp1 = gl_matrix_1.vec2.max([0, 0], cp1, gl_matrix_1.vec2.min([0, 0], prevPoint, point));
|
|
61
|
+
// 重新计算 nextCp0 的值
|
|
62
|
+
v2 = gl_matrix_1.vec2.sub([0, 0], point, cp1);
|
|
63
|
+
v2 = gl_matrix_1.vec2.scale([0, 0], v2, d1 / d0);
|
|
64
|
+
nextCp0 = gl_matrix_1.vec2.add([0, 0], point, v2);
|
|
65
|
+
if (hasConstraint) {
|
|
66
|
+
cp1 = gl_matrix_1.vec2.max([0, 0], cp1, min);
|
|
67
|
+
cp1 = gl_matrix_1.vec2.min([0, 0], cp1, max);
|
|
68
|
+
nextCp0 = gl_matrix_1.vec2.max([0, 0], nextCp0, min);
|
|
69
|
+
nextCp0 = gl_matrix_1.vec2.min([0, 0], nextCp0, max);
|
|
70
|
+
}
|
|
71
|
+
cps.push(cp0);
|
|
72
|
+
cps.push(cp1);
|
|
73
|
+
cp0 = nextCp0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (isLoop) {
|
|
77
|
+
cps.push(cps.shift());
|
|
78
|
+
}
|
|
79
|
+
return cps;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* create bezier spline from catmull rom spline
|
|
83
|
+
* @param {Array} crp Catmull Rom Points
|
|
84
|
+
* @param {boolean} z Spline is loop
|
|
85
|
+
* @param {Array} constraint Constraint
|
|
86
|
+
*/
|
|
87
|
+
function catmullRom2Bezier(crp, z, constraint) {
|
|
88
|
+
if (z === void 0) { z = false; }
|
|
89
|
+
if (constraint === void 0) { constraint = [
|
|
90
|
+
[0, 0],
|
|
91
|
+
[1, 1],
|
|
92
|
+
]; }
|
|
93
|
+
var isLoop = !!z;
|
|
94
|
+
var pointList = [];
|
|
95
|
+
for (var i = 0, l = crp.length; i < l; i += 2) {
|
|
96
|
+
pointList.push([crp[i], crp[i + 1]]);
|
|
97
|
+
}
|
|
98
|
+
var controlPointList = smoothBezier(pointList, 0.4, isLoop, constraint);
|
|
99
|
+
var len = pointList.length;
|
|
100
|
+
var d1 = [];
|
|
101
|
+
var cp1;
|
|
102
|
+
var cp2;
|
|
103
|
+
var p;
|
|
104
|
+
for (var i = 0; i < len - 1; i += 1) {
|
|
105
|
+
cp1 = controlPointList[i * 2];
|
|
106
|
+
cp2 = controlPointList[i * 2 + 1];
|
|
107
|
+
p = pointList[i + 1];
|
|
108
|
+
d1.push(['C', cp1[0], cp1[1], cp2[0], cp2[1], p[0], p[1]]);
|
|
109
|
+
}
|
|
110
|
+
if (isLoop) {
|
|
111
|
+
cp1 = controlPointList[len];
|
|
112
|
+
cp2 = controlPointList[len + 1];
|
|
113
|
+
p = pointList[0];
|
|
114
|
+
d1.push(['C', cp1[0], cp1[1], cp2[0], cp2[1], p[0], p[1]]);
|
|
115
|
+
}
|
|
116
|
+
return d1;
|
|
117
|
+
}
|
|
118
|
+
exports.catmullRom2Bezier = catmullRom2Bezier;
|
|
119
|
+
//# sourceMappingURL=catmull-rom-2-bezier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catmull-rom-2-bezier.js","sourceRoot":"src/","sources":["path/catmull-rom-2-bezier.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAKjC,SAAS,YAAY,CAAC,MAAa,EAAE,MAAc,EAAE,MAAe,EAAE,UAAiB;IACrF,IAAM,GAAG,GAAW,EAAE,CAAC;IACvB,IAAM,aAAa,GAAG,CAAC,CAAC,UAAU,CAAC;IAEnC,IAAI,SAAc,CAAC;IACnB,IAAI,SAAc,CAAC;IACnB,IAAI,GAAS,CAAC;IACd,IAAI,GAAS,CAAC;IACd,IAAI,OAAa,CAAC;IAClB,IAAI,GAAS,CAAC;IACd,IAAI,GAAS,CAAC;IAEd,IAAI,aAAa,EAAE;QAChB,GAAG,GAAS,UAAU,GAAnB,EAAE,GAAG,GAAI,UAAU,GAAd,CAAe;QACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,G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