@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
35 lines • 4.67 kB
JavaScript
/*
* Copyright 2024 Palantir Technologies, Inc. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ManyToOne = void 0;
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var iconTypes_1 = require("../../iconTypes");
var svgIconContainer_1 = require("../../svgIconContainer");
exports.ManyToOne = React.forwardRef(function (props, ref) {
var isLarge = props.size >= iconTypes_1.IconSize.LARGE;
var pixelGridSize = isLarge ? iconTypes_1.IconSize.LARGE : iconTypes_1.IconSize.STANDARD;
var translation = "".concat(-1 * pixelGridSize / 0.05 / 2);
var style = { transformOrigin: "center" };
return (React.createElement(svgIconContainer_1.SVGIconContainer, tslib_1.__assign({ iconName: "many-to-one", ref: ref }, props),
React.createElement("path", { d: isLarge ? "M60 360C48.9544 360 40 351.0456 40 340C40 328.9544 48.9544 320 60 320C71.0456 320 80 328.9544 80 340C80 351.0456 71.0456 360 60 360zM60 280C85.9136 280 107.9904 296.428 116.3838 319.4374000000001C126.1326 318.666 138.1134 316.838 149.7374 312.508C168.6742 305.454 185.1998 292.492 190.375 266.145C196.8354 233.2560000000001 215.064 212.6364 235.654 200C215.064 187.364 196.8354 166.744 190.375 133.854C185.1998 107.508 168.6742 94.546 149.7374 87.492C138.1134 83.162 126.1326 81.334 116.3838 80.562C107.9904 103.572 85.9136 120 60 120C26.863 120 0 93.138 0 60C0 26.862 26.863 0 60 0C86.3026 0 108.6522 16.924 116.7524 40.478C129.4234 41.318 146.5832 43.632 163.7002 50.008C191.7426 60.454 221.05 82.492 229.624 126.146C234.8 152.492 251.326 165.454 270.262 172.508C275.072 174.3 279.944 175.664 284.692 176.7C293.788 155.136 315.126 140 340 140C373.1380000000001 140 400 166.862 400 200C400 233.137 373.1380000000001 260 340 260C315.126 260 293.788 244.8638 284.692 223.2996C279.944 224.337 275.072 225.7002 270.262 227.4918C251.326 234.546 234.8 247.5078 229.624 273.8548C221.05 317.5078 191.7426 339.546 163.7002 349.9918C146.5832 356.368 129.4236 358.6824000000001 116.7524 359.5222C108.6522 383.07528 86.3026 400 60 400C26.863 400 0 373.137 0 340C0 306.863 26.863 280 60 280zM320 200C320 188.954 328.954 180 340 180C351.046 180 360 188.954 360 200C360 211.0456 351.046 220 340 220C328.954 220 320 211.0456 320 200zM40 60C40 71.046 48.9544 80 60 80C71.0456 80 80 71.046 80 60C80 48.954 71.0456 40 60 40C48.9544 40 40 48.954 40 60z" : "M60 280C48.9544 280 40 271.0456 40 260C40 248.9544 48.9544 240 60 240C71.0456 240 80 248.9544 80 260C80 271.0456 71.0456 280 60 280zM60 320C87.7076 320 111.0286 301.21884 117.927 275.6926C121.2824 274.8254 124.7012 273.7838 128.1216 272.5324C149.6428 264.6588 172.8556 247.7026 179.6116 213.9222C182.8434 197.7636 192.9002 189.7192 205.48 185.0846C214.978 205.6944 235.818 220 260 220C293.1380000000001 220 320 193.137 320 160C320 126.863 293.1380000000001 100 260 100C235.818 100 214.978 114.306 205.48 134.9154C192.9002 130.2808 182.8434 122.2364 179.6116 106.078C172.8556 72.298 149.6428 55.342 128.1216 47.468C124.7012 46.216 121.2822 45.174 117.927 44.308C111.0286 18.782 87.7076 0 60 0C26.863 0 0 26.862 0 60C0 93.138 26.863 120 60 120C84.1818 120 105.0224 105.694 114.5206 85.084C127.0996 89.72 137.1566 97.764 140.3884 113.922C144.6924 135.4424 155.675 150.1344 168.6444 160C155.675 169.8656 144.6924 184.5576 140.3884 206.0776C137.1566 222.2364 127.0998 230.2806 114.5206 234.9152C105.0224 214.3054 84.1818 200 60 200C26.863 200 0 226.863 0 260C0 293.137 26.863 320 60 320zM80 60C80 71.046 71.0456 80 60 80C48.9544 80 40 71.046 40 60C40 48.954 48.9544 40 60 40C71.0456 40 80 48.954 80 60zM240 160C240 148.9544 248.954 140 260 140C271.046 140 280 148.9544 280 160C280 171.0456 271.046 180 260 180C248.954 180 240 171.0456 240 160z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style })));
});
exports.ManyToOne.defaultProps = {
size: iconTypes_1.IconSize.STANDARD,
};
exports.ManyToOne.displayName = "Blueprint5.Icon.ManyToOne";
exports.default = exports.ManyToOne;
//# sourceMappingURL=many-to-one.js.map
;