@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
35 lines • 5.45 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.BinaryNumber = 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.BinaryNumber = 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: "binary-number", ref: ref }, props),
React.createElement("path", { d: isLarge ? "M160.2258 290.3846C151.5984 296.7948 140.401 300 126.6336 300C112.8664 300 101.5772 296.7948 92.7662 290.3846C84.1386 284.1576 77.3468 276.0988 72.3906 266.2088C67.6178 256.5018 64.3138 245.7876 62.4782 234.066C60.826 222.3444 60 210.989 60 200C60 189.01 60.826 177.656 62.4782 165.934C64.3138 154.212 67.6178 143.406 72.3906 133.516C77.3468 123.81 84.1386 115.75 92.7662 109.34C101.5772 103.114 112.8664 100 126.6336 100C140.401 100 151.5984 103.114 160.2258 109.34C169.0368 115.75 175.8288 123.81 180.6014 133.516C185.5576 143.406 188.8618 154.212 190.5138 165.934C192.3494 177.656 193.2672 189.01 193.2672 200C193.2672 210.989 192.3494 222.3444 190.5138 234.066C188.8618 245.7876 185.5576 256.5018 180.6014 266.2088C175.8288 276.0988 169.0368 284.1576 160.2258 290.3846zM143.705 131.868C139.116 128.022 133.4254 126.098 126.6336 126.098C119.6582 126.098 113.876 128.022 109.2868 131.868C104.8814 135.898 101.3018 141.208 98.5484 147.802C95.9784 154.578 94.1428 162.454 93.0414 171.428C91.94 180.402 91.3894 189.926 91.3894 200C91.3894 210.0732 91.94 219.5056 93.0414 228.2966C94.1428 237.271 95.9784 245.1466 98.5484 251.923C101.3018 258.6996000000001 104.8814 264.011 109.2868 267.8572000000001C113.876 271.8864 119.6582 273.901 126.6336 273.901C133.4254 273.901 139.116 271.8864 143.705 267.8572000000001C148.2942 264.011 151.8736 258.6996000000001 154.4436 251.923C157.197 245.1466 159.1244 237.271 160.2258 228.2966C161.3272 219.5056 161.8778 210.0732 161.8778 200C161.8778 189.926 161.3272 180.402 160.2258 171.428C159.1244 162.454 157.197 154.578 154.4436 147.802C151.8736 141.208 148.2942 135.898 143.705 131.868zM260.046 268.5714C253.554 267.4286 246.872 266.8572000000001 240 266.8572000000001V241.1428H289.254V100H325.048V300H298.418C297.272 293.9048 294.79 288.762 290.972 284.5714000000001C287.344 280.381 282.858 276.9524 277.514 274.2858C272.358 271.6190000000001 266.536 269.7142 260.046 268.5714z" : "M140.08 232.3076C133.1866 237.4358 124.24 240 113.24 240C102.24 240 93.22 237.4358 86.18 232.3076C79.2866 227.326 73.86 220.8792 69.9 212.967C66.0866 205.2014 63.4466 196.63 61.98 187.2528C60.66 177.8754 60 168.7912 60 160C60 151.2088 60.66 142.1246 61.98 132.7472C63.4466 123.37 66.0866 114.726 69.9 106.814C73.86 99.048 79.2866 92.6 86.18 87.472C93.22 82.49 102.24 80 113.24 80C124.24 80 133.1866 82.49 140.08 87.472C147.12 92.6 152.5466 99.048 156.36 106.814C160.32 114.726 162.96 123.37 164.28 132.7472C165.7466 142.1246 166.48 151.2088 166.48 160C166.48 168.7912 165.7466 177.8754 164.28 187.2528C162.96 196.63 160.32 205.2014 156.36 212.967C152.5466 220.8792 147.12 227.326 140.08 232.3076zM126.88 105.494C123.2134 102.418 118.6666 100.88 113.24 100.88C107.6666 100.88 103.0466 102.418 99.38 105.494C95.86 108.718 93 112.968 90.8 118.242C88.7466 123.663 87.28 129.9634 86.4 137.1428C85.52 144.3224 85.08 151.9414 85.08 160C85.08 168.0586 85.52 175.6044 86.4 182.6374C87.28 189.8168 88.7466 196.1172 90.8 201.5384C93 206.9598 95.86 211.2088 99.38 214.2858C103.0466 217.5092 107.6666 219.1208 113.24 219.1208C118.6666 219.1208 123.2134 217.5092 126.88 214.2858C130.5466 211.2088 133.4066 206.9598 135.46 201.5384C137.66 196.1172 139.2 189.8168 140.08 182.6374C140.96 175.6044 141.4 168.0586 141.4 160C141.4 151.9414 140.96 144.3224 140.08 137.1428C139.2 129.9634 137.66 123.663 135.46 118.242C133.4066 112.968 130.5466 108.718 126.88 105.494zM216.016 214.8572C210.83 213.9428 205.492 213.4858 200 213.4858V192.9142H239.354V80H267.954V240H246.676C245.76 235.1238 243.778 231.0096 240.726 227.6572C237.8280000000001 224.3048 234.244 221.5618 229.972 219.4286C225.854 217.2952 221.202 215.7714 216.016 214.8572z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style })));
});
exports.BinaryNumber.defaultProps = {
size: iconTypes_1.IconSize.STANDARD,
};
exports.BinaryNumber.displayName = "Blueprint5.Icon.BinaryNumber";
exports.default = exports.BinaryNumber;
//# sourceMappingURL=binary-number.js.map
;