@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
35 lines • 4.18 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.Bullseye = 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.Bullseye = 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: "bullseye", ref: ref }, props),
React.createElement("path", { d: isLarge ? "M394.142 394.14214C401.952 386.33166 401.952 373.6684 394.142 365.8578L214.142 185.858C206.332 178.048 193.6684 178.048 185.8578 185.858C178.0474 193.668 178.0474 206.3316 185.8578 214.1422L365.858 394.14214C373.668 401.952622 386.332 401.952622 394.142 394.14214zM292.512 377.3636C264.848 391.8233 233.378 400 200 400C89.543 400 0 310.457 0 200C0 89.544 89.543 0 200 0C310.456 0 400 89.544 400 200C400 233.3778 391.824 264.8458 377.3640000000001 292.5104L347.3400000000001 262.485C355.49 243.288 360 222.1706 360 200C360 111.634 288.366 40 200 40C111.6344 40 40 111.634 40 200C40 288.3656 111.6344 360 200 360C222.172 360 243.29 355.4904 262.486 347.3384L292.512 377.3636zM231.084 315.9352C221.17 318.5864000000001 210.75 320 200 320C133.7258 320 80 266.2742 80 200C80 133.726 133.7258 80 200 80C266.274 80 320 133.726 320 200C320 210.7492 318.586 221.1682 315.936 231.0816L279.846 194.992C277.26 153.142 242.5 120 200 120C155.8172 120 120 155.818 120 200C120 242.5016 153.1434 277.2622 194.9946 279.846L231.084 315.9352z" : "M315.184 293.0154C322.374 284.629 321.402 272.003 313.016 264.8146L173.0156 144.8146C164.629 137.626 152.003 138.5974 144.8146 146.9838C137.6262 155.3704 138.5974 167.9964 146.984 175.1848L286.984 295.1848C295.37 302.37322 307.9960000000001 301.40198 315.184 293.0154zM160 40C226.274 40 280 93.726 280 160C280 175.2596 277.152 189.854 271.958 203.2804L303.6840000000001 230.4738C314.132 209.2112 320 185.2908 320 160C320 71.634 248.366 0 160 0C71.6344 0 0 71.634 0 160C0 248.3656 71.6344 320 160 320C194.0706 320 225.654 309.3509 251.602 291.1996L219.884 264.0126C202.26 274.1818 181.8098 280 160 280C93.7258 280 40 226.2742 40 160C40 93.726 93.7258 40 160 40zM186.5906 235.4748C178.2712 238.4056 169.3218 240 160 240C115.8172 240 80 204.1828 80 160C80 115.818 115.8172 80 160 80C204.182 80 240 115.818 240 160C240 165.0314 239.536 169.9544 238.648 174.7284L186.1714 129.7492C184.9726 128.7112 183.7114 127.7432 182.3944 126.8516C175.0432 121.8718 166.4856 119.638 158.0698 120.0458C153.045 120.2846 148.2628 121.4504 143.8908 123.3762C138.5648 125.7144 133.6678 129.2558 129.6292 133.9676C129.5558 134.0534 129.4826 134.1394 129.41 134.2256C128.8644 134.8724 128.339 135.5368 127.8346 136.2178C122.2274 143.7852 119.6672 152.7834 120.033 161.6412C120.2478 166.9626 121.5022 172.016 123.5984 176.6042C126.0684 182.0104 129.7072 186.7704 134.1916 190.5614L186.5906 235.4748z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style })));
});
exports.Bullseye.defaultProps = {
size: iconTypes_1.IconSize.STANDARD,
};
exports.Bullseye.displayName = "Blueprint5.Icon.Bullseye";
exports.default = exports.Bullseye;
//# sourceMappingURL=bullseye.js.map
;