Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-progress

Package Overview
Dependencies
Maintainers
7
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-progress - npm Package Compare versions

Comparing version 3.4.0 to 3.4.1

81

es/Circle.js

@@ -9,7 +9,5 @@ import _extends from "@babel/runtime/helpers/esm/extends";

import useId from './hooks/useId';
function stripPercentToNumber(percent) {
return +percent.replace('%', '');
}
function toArray(value) {

@@ -19,5 +17,3 @@ var mergedValue = value !== null && value !== void 0 ? value : [];

}
var VIEW_BOX_SIZE = 100;
var getCircleStyle = function getCircleStyle(perimeter, perimeterWithoutGap, offset, percent, rotateDeg, gapDegree, gapPosition, strokeColor, strokeLinecap, strokeWidth) {

@@ -32,8 +28,8 @@ var stepSpace = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : 0;

}[gapPosition];
var strokeDashoffset = (100 - percent) / 100 * perimeterWithoutGap; // Fix percent accuracy when strokeLinecap is round
var strokeDashoffset = (100 - percent) / 100 * perimeterWithoutGap;
// Fix percent accuracy when strokeLinecap is round
// https://github.com/ant-design/ant-design/issues/35009
if (strokeLinecap === 'round' && percent !== 100) {
strokeDashoffset += strokeWidth / 2; // when percent is small enough (<= 1%), keep smallest value to avoid it's disappearance
strokeDashoffset += strokeWidth / 2;
// when percent is small enough (<= 1%), keep smallest value to avoid it's disappearance
if (strokeDashoffset >= perimeterWithoutGap) {

@@ -43,3 +39,2 @@ strokeDashoffset = perimeterWithoutGap - 0.01;

}
return {

@@ -50,3 +45,3 @@ stroke: typeof strokeColor === 'string' ? strokeColor : undefined,

transform: "rotate(".concat(rotateDeg + offsetDeg + positionDeg, "deg)"),
transformOrigin: '50% 50%',
transformOrigin: '0 0',
transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s',

@@ -56,20 +51,18 @@ fillOpacity: 0

};
var Circle = function Circle(_ref) {
var id = _ref.id,
prefixCls = _ref.prefixCls,
steps = _ref.steps,
strokeWidth = _ref.strokeWidth,
trailWidth = _ref.trailWidth,
_ref$gapDegree = _ref.gapDegree,
gapDegree = _ref$gapDegree === void 0 ? 0 : _ref$gapDegree,
gapPosition = _ref.gapPosition,
trailColor = _ref.trailColor,
strokeLinecap = _ref.strokeLinecap,
style = _ref.style,
className = _ref.className,
strokeColor = _ref.strokeColor,
percent = _ref.percent,
restProps = _objectWithoutProperties(_ref, _excluded);
prefixCls = _ref.prefixCls,
steps = _ref.steps,
strokeWidth = _ref.strokeWidth,
trailWidth = _ref.trailWidth,
_ref$gapDegree = _ref.gapDegree,
gapDegree = _ref$gapDegree === void 0 ? 0 : _ref$gapDegree,
gapPosition = _ref.gapPosition,
trailColor = _ref.trailColor,
strokeLinecap = _ref.strokeLinecap,
style = _ref.style,
className = _ref.className,
strokeColor = _ref.strokeColor,
percent = _ref.percent,
restProps = _objectWithoutProperties(_ref, _excluded);
var mergedId = useId(id);

@@ -81,10 +74,8 @@ var gradientId = "".concat(mergedId, "-gradient");

var perimeterWithoutGap = perimeter * ((360 - gapDegree) / 360);
var _ref2 = _typeof(steps) === 'object' ? steps : {
count: steps,
space: 2
},
stepCount = _ref2.count,
stepSpace = _ref2.space;
count: steps,
space: 2
},
stepCount = _ref2.count,
stepSpace = _ref2.space;
var circleStyle = getCircleStyle(perimeter, perimeterWithoutGap, 0, 100, rotateDeg, gapDegree, gapPosition, trailColor, strokeLinecap, strokeWidth);

@@ -97,3 +88,2 @@ var percentList = toArray(percent);

var paths = useTransitionDuration();
var getStokeList = function getStokeList() {

@@ -110,4 +100,4 @@ var stackPtg = 0;

r: radius,
cx: VIEW_BOX_SIZE / 2,
cy: VIEW_BOX_SIZE / 2,
cx: 0,
cy: 0,
stroke: stroke,

@@ -128,3 +118,2 @@ strokeLinecap: strokeLinecap,

};
var getStepStokeList = function getStepStokeList() {

@@ -144,5 +133,6 @@ // only show the first percent when pass steps

r: radius,
cx: VIEW_BOX_SIZE / 2,
cy: VIEW_BOX_SIZE / 2,
stroke: stroke // strokeLinecap={strokeLinecap}
cx: 0,
cy: 0,
stroke: stroke
// strokeLinecap={strokeLinecap}
,

@@ -158,8 +148,8 @@ strokeWidth: strokeWidth,

};
return /*#__PURE__*/React.createElement("svg", _extends({
className: classNames("".concat(prefixCls, "-circle"), className),
viewBox: "0 0 ".concat(VIEW_BOX_SIZE, " ").concat(VIEW_BOX_SIZE),
viewBox: "".concat(-VIEW_BOX_SIZE / 2, " ").concat(-VIEW_BOX_SIZE / 2, " ").concat(VIEW_BOX_SIZE, " ").concat(VIEW_BOX_SIZE),
style: style,
id: id
id: id,
role: "presentation"
}, restProps), gradient && /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {

@@ -182,4 +172,4 @@ id: gradientId,

r: radius,
cx: VIEW_BOX_SIZE / 2,
cy: VIEW_BOX_SIZE / 2,
cx: 0,
cy: 0,
stroke: trailColor,

@@ -191,5 +181,4 @@ strokeLinecap: strokeLinecap,

};
Circle.defaultProps = defaultProps;
Circle.displayName = 'Circle';
export default Circle;

@@ -24,7 +24,5 @@ import { useRef, useEffect } from 'react';

}
updated = true;
var pathStyle = path.style;
pathStyle.transitionDuration = '.3s, .3s, .3s, .06s';
if (prevTimeStamp.current && now - prevTimeStamp.current < 100) {

@@ -34,3 +32,2 @@ pathStyle.transitionDuration = '0s, 0s';

});
if (updated) {

@@ -37,0 +34,0 @@ prevTimeStamp.current = Date.now();

@@ -6,11 +6,8 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";

/** Is client side and not jsdom */
export var isBrowserClient = process.env.NODE_ENV !== 'test' && canUseDom();
/** Get unique id for accessibility usage */
function getUUID() {
var retId; // Test never reach
var retId;
// Test never reach
/* istanbul ignore if */
if (isBrowserClient) {

@@ -22,13 +19,10 @@ retId = uuid;

}
return retId;
}
export default (function (id) {
// Inner id for accessibility usage. Only work in client side
var _React$useState = React.useState(),
_React$useState2 = _slicedToArray(_React$useState, 2),
innerId = _React$useState2[0],
setInnerId = _React$useState2[1];
_React$useState2 = _slicedToArray(_React$useState, 2),
innerId = _React$useState2[0],
setInnerId = _React$useState2[1];
React.useEffect(function () {

@@ -35,0 +29,0 @@ setInnerId("rc_progress_".concat(getUUID()));

@@ -7,16 +7,14 @@ import _extends from "@babel/runtime/helpers/esm/extends";

import { useTransitionDuration, defaultProps } from './common';
var Line = function Line(_ref) {
var className = _ref.className,
percent = _ref.percent,
prefixCls = _ref.prefixCls,
strokeColor = _ref.strokeColor,
strokeLinecap = _ref.strokeLinecap,
strokeWidth = _ref.strokeWidth,
style = _ref.style,
trailColor = _ref.trailColor,
trailWidth = _ref.trailWidth,
transition = _ref.transition,
restProps = _objectWithoutProperties(_ref, _excluded);
percent = _ref.percent,
prefixCls = _ref.prefixCls,
strokeColor = _ref.strokeColor,
strokeLinecap = _ref.strokeLinecap,
strokeWidth = _ref.strokeWidth,
style = _ref.style,
trailColor = _ref.trailColor,
trailWidth = _ref.trailWidth,
transition = _ref.transition,
restProps = _objectWithoutProperties(_ref, _excluded);
// eslint-disable-next-line no-param-reassign

@@ -46,3 +44,2 @@ delete restProps.gapPosition;

var dashPercent = 1;
switch (strokeLinecap) {

@@ -52,7 +49,5 @@ case 'round':

break;
case 'square':
dashPercent = 1 - strokeWidth / 2 / 100;
break;
default:

@@ -62,3 +57,2 @@ dashPercent = 1;

}
var pathStyle = {

@@ -90,5 +84,4 @@ strokeDasharray: "".concat(ptg * dashPercent, "px, 100px"),

};
Line.defaultProps = defaultProps;
Line.displayName = 'Line';
export default Line;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _typeof3 = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {

@@ -11,23 +9,15 @@ value: true

exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
var React = _interopRequireWildcard(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _common = require("./common");
var _useId = _interopRequireDefault(require("./hooks/useId"));
var _excluded = ["id", "prefixCls", "steps", "strokeWidth", "trailWidth", "gapDegree", "gapPosition", "trailColor", "strokeLinecap", "style", "className", "strokeColor", "percent"];
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function stripPercentToNumber(percent) {
return +percent.replace('%', '');
}
function toArray(value) {

@@ -37,5 +27,3 @@ var mergedValue = value !== null && value !== void 0 ? value : [];

}
var VIEW_BOX_SIZE = 100;
var getCircleStyle = function getCircleStyle(perimeter, perimeterWithoutGap, offset, percent, rotateDeg, gapDegree, gapPosition, strokeColor, strokeLinecap, strokeWidth) {

@@ -50,8 +38,8 @@ var stepSpace = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : 0;

}[gapPosition];
var strokeDashoffset = (100 - percent) / 100 * perimeterWithoutGap; // Fix percent accuracy when strokeLinecap is round
var strokeDashoffset = (100 - percent) / 100 * perimeterWithoutGap;
// Fix percent accuracy when strokeLinecap is round
// https://github.com/ant-design/ant-design/issues/35009
if (strokeLinecap === 'round' && percent !== 100) {
strokeDashoffset += strokeWidth / 2; // when percent is small enough (<= 1%), keep smallest value to avoid it's disappearance
strokeDashoffset += strokeWidth / 2;
// when percent is small enough (<= 1%), keep smallest value to avoid it's disappearance
if (strokeDashoffset >= perimeterWithoutGap) {

@@ -61,3 +49,2 @@ strokeDashoffset = perimeterWithoutGap - 0.01;

}
return {

@@ -68,3 +55,3 @@ stroke: typeof strokeColor === 'string' ? strokeColor : undefined,

transform: "rotate(".concat(rotateDeg + offsetDeg + positionDeg, "deg)"),
transformOrigin: '50% 50%',
transformOrigin: '0 0',
transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s',

@@ -74,19 +61,18 @@ fillOpacity: 0

};
var Circle = function Circle(_ref) {
var id = _ref.id,
prefixCls = _ref.prefixCls,
steps = _ref.steps,
strokeWidth = _ref.strokeWidth,
trailWidth = _ref.trailWidth,
_ref$gapDegree = _ref.gapDegree,
gapDegree = _ref$gapDegree === void 0 ? 0 : _ref$gapDegree,
gapPosition = _ref.gapPosition,
trailColor = _ref.trailColor,
strokeLinecap = _ref.strokeLinecap,
style = _ref.style,
className = _ref.className,
strokeColor = _ref.strokeColor,
percent = _ref.percent,
restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
prefixCls = _ref.prefixCls,
steps = _ref.steps,
strokeWidth = _ref.strokeWidth,
trailWidth = _ref.trailWidth,
_ref$gapDegree = _ref.gapDegree,
gapDegree = _ref$gapDegree === void 0 ? 0 : _ref$gapDegree,
gapPosition = _ref.gapPosition,
trailColor = _ref.trailColor,
strokeLinecap = _ref.strokeLinecap,
style = _ref.style,
className = _ref.className,
strokeColor = _ref.strokeColor,
percent = _ref.percent,
restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
var mergedId = (0, _useId.default)(id);

@@ -98,10 +84,8 @@ var gradientId = "".concat(mergedId, "-gradient");

var perimeterWithoutGap = perimeter * ((360 - gapDegree) / 360);
var _ref2 = (0, _typeof2.default)(steps) === 'object' ? steps : {
count: steps,
space: 2
},
stepCount = _ref2.count,
stepSpace = _ref2.space;
count: steps,
space: 2
},
stepCount = _ref2.count,
stepSpace = _ref2.space;
var circleStyle = getCircleStyle(perimeter, perimeterWithoutGap, 0, 100, rotateDeg, gapDegree, gapPosition, trailColor, strokeLinecap, strokeWidth);

@@ -114,3 +98,2 @@ var percentList = toArray(percent);

var paths = (0, _common.useTransitionDuration)();
var getStokeList = function getStokeList() {

@@ -127,4 +110,4 @@ var stackPtg = 0;

r: radius,
cx: VIEW_BOX_SIZE / 2,
cy: VIEW_BOX_SIZE / 2,
cx: 0,
cy: 0,
stroke: stroke,

@@ -145,3 +128,2 @@ strokeLinecap: strokeLinecap,

};
var getStepStokeList = function getStepStokeList() {

@@ -161,5 +143,6 @@ // only show the first percent when pass steps

r: radius,
cx: VIEW_BOX_SIZE / 2,
cy: VIEW_BOX_SIZE / 2,
stroke: stroke // strokeLinecap={strokeLinecap}
cx: 0,
cy: 0,
stroke: stroke
// strokeLinecap={strokeLinecap}
,

@@ -175,8 +158,8 @@ strokeWidth: strokeWidth,

};
return /*#__PURE__*/React.createElement("svg", (0, _extends2.default)({
className: (0, _classnames.default)("".concat(prefixCls, "-circle"), className),
viewBox: "0 0 ".concat(VIEW_BOX_SIZE, " ").concat(VIEW_BOX_SIZE),
viewBox: "".concat(-VIEW_BOX_SIZE / 2, " ").concat(-VIEW_BOX_SIZE / 2, " ").concat(VIEW_BOX_SIZE, " ").concat(VIEW_BOX_SIZE),
style: style,
id: id
id: id,
role: "presentation"
}, restProps), gradient && /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {

@@ -199,4 +182,4 @@ id: gradientId,

r: radius,
cx: VIEW_BOX_SIZE / 2,
cy: VIEW_BOX_SIZE / 2,
cx: 0,
cy: 0,
stroke: trailColor,

@@ -208,3 +191,2 @@ strokeLinecap: strokeLinecap,

};
Circle.defaultProps = _common.defaultProps;

@@ -211,0 +193,0 @@ Circle.displayName = 'Circle';

@@ -7,5 +7,3 @@ "use strict";

exports.useTransitionDuration = exports.defaultProps = void 0;
var _react = require("react");
var defaultProps = {

@@ -24,3 +22,2 @@ className: '',

exports.defaultProps = defaultProps;
var useTransitionDuration = function useTransitionDuration() {

@@ -36,7 +33,5 @@ var pathsRef = (0, _react.useRef)([]);

}
updated = true;
var pathStyle = path.style;
pathStyle.transitionDuration = '.3s, .3s, .3s, .06s';
if (prevTimeStamp.current && now - prevTimeStamp.current < 100) {

@@ -46,3 +41,2 @@ pathStyle.transitionDuration = '0s, 0s';

});
if (updated) {

@@ -54,3 +48,2 @@ prevTimeStamp.current = Date.now();

};
exports.useTransitionDuration = useTransitionDuration;
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {

@@ -11,22 +9,16 @@ value: true

exports.isBrowserClient = exports.default = void 0;
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
var React = _interopRequireWildcard(require("react"));
var _canUseDom = _interopRequireDefault(require("rc-util/lib/Dom/canUseDom"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var uuid = 0;
/** Is client side and not jsdom */
var isBrowserClient = process.env.NODE_ENV !== 'test' && (0, _canUseDom.default)();
/** Get unique id for accessibility usage */
exports.isBrowserClient = isBrowserClient;
function getUUID() {
var retId; // Test never reach
var retId;
// Test never reach
/* istanbul ignore if */
if (isBrowserClient) {

@@ -38,13 +30,10 @@ retId = uuid;

}
return retId;
}
var _default = function _default(id) {
// Inner id for accessibility usage. Only work in client side
var _React$useState = React.useState(),
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
innerId = _React$useState2[0],
setInnerId = _React$useState2[1];
_React$useState2 = (0, _slicedToArray2.default)(_React$useState, 2),
innerId = _React$useState2[0],
setInnerId = _React$useState2[1];
React.useEffect(function () {

@@ -55,3 +44,2 @@ setInnerId("rc_progress_".concat(getUUID()));

};
exports.default = _default;
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {

@@ -21,7 +20,4 @@ value: true

exports.default = void 0;
var _Line = _interopRequireDefault(require("./Line"));
var _Circle = _interopRequireDefault(require("./Circle"));
var _default = {

@@ -28,0 +24,0 @@ Line: _Line.default,

"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {

@@ -11,27 +9,22 @@ value: true

exports.default = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
var React = _interopRequireWildcard(require("react"));
var _classnames = _interopRequireDefault(require("classnames"));
var _common = require("./common");
var _excluded = ["className", "percent", "prefixCls", "strokeColor", "strokeLinecap", "strokeWidth", "style", "trailColor", "trailWidth", "transition"];
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
var Line = function Line(_ref) {
var className = _ref.className,
percent = _ref.percent,
prefixCls = _ref.prefixCls,
strokeColor = _ref.strokeColor,
strokeLinecap = _ref.strokeLinecap,
strokeWidth = _ref.strokeWidth,
style = _ref.style,
trailColor = _ref.trailColor,
trailWidth = _ref.trailWidth,
transition = _ref.transition,
restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
percent = _ref.percent,
prefixCls = _ref.prefixCls,
strokeColor = _ref.strokeColor,
strokeLinecap = _ref.strokeLinecap,
strokeWidth = _ref.strokeWidth,
style = _ref.style,
trailColor = _ref.trailColor,
trailWidth = _ref.trailWidth,
transition = _ref.transition,
restProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
// eslint-disable-next-line no-param-reassign

@@ -61,3 +54,2 @@ delete restProps.gapPosition;

var dashPercent = 1;
switch (strokeLinecap) {

@@ -67,7 +59,5 @@ case 'round':

break;
case 'square':
dashPercent = 1 - strokeWidth / 2 / 100;
break;
default:

@@ -77,3 +67,2 @@ dashPercent = 1;

}
var pathStyle = {

@@ -105,3 +94,2 @@ strokeDasharray: "".concat(ptg * dashPercent, "px, 100px"),

};
Line.defaultProps = _common.defaultProps;

@@ -108,0 +96,0 @@ Line.displayName = 'Line';

{
"name": "rc-progress",
"version": "3.4.0",
"version": "3.4.1",
"description": "progress ui component for react",

@@ -52,2 +52,3 @@ "keywords": [

"@types/jest": "^27.5.0",
"@types/keyv": "3.1.4",
"@types/react": "^18.0.9",

@@ -54,0 +55,0 @@ "@types/react-dom": "^18.0.3",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc