@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
35 lines • 4.66 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.NewLayers = 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.NewLayers = 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: "new-layers", ref: ref }, props),
React.createElement("path", { d: isLarge ? "M340 340L380 340C391.0456940000001 340 400 331.045695 400 320C400 308.954305 391.0456940000001 300 380 300L340 300L340 260C340 248.954305 331.0456940000001 240 320 240C308.9543060000001 240 300 248.954305 300 260L300 300L260 300C248.954306 300 240 308.954305 240 320C240 331.045695 248.954306 340 260 340L300 340L300 380C300 391.045695 308.9543060000001 400 320 400C331.0456940000001 400 340 391.045695 340 380L340 340zM314.964942 220.3138562L210 162C206 160 204 160 200 160C196 160 194 160 190 162L10 262C4 266 0 272 0 280C0 288 4 294 10 298L190 398C194 400 196 400 200 400C204 400 206 400 210 398L278.4 360L260 360C237.90861 360 220 342.09139 220 320C220 297.90861 237.90861 280 260 280L280 280L280 260C280 239.6139944 295.25036 222.789901 314.964942 220.3138562zM356.36382 243.3132332C358.69828 248.3921346 360 254.0440508 360 260L360 280L380 280C387.052218 280 393.678182 281.8250188 399.431362 285.0285302C399.803178 283.4507648 400 281.774588 400 280C400 272 396 266 390 262L356.36382 243.3132332zM380 220C392 220 400 212 400 200C400 192 396 186 390 182L210 82C206 80 204 80 200 80C196 80 194 80 190 82L10 182C4 186 0 192 0 200C0 212 8 220 20 220C24 220 26 220 30 218L200 122L370 218C374 220 376 220 380 220zM380 140C392 140 400 132 400 120C400 112 396 106 390 102L210 2C206 0 204 0 200 0C196 0 194 0 190 2L10 102C4 106 0 112 0 120C0 132 8 140 20 140C24 140 26 140 30 136L200 42L370 138C374 140 376 140 380 140z" : "M260 260L300 260C311.045694 260 320 251.045695 320 240C320 228.954305 311.045694 220 300 220L260 220L260 180C260 168.954305 251.045694 160 240 160C228.954306 160 220 168.954305 220 180L220 220L180 220C168.954305 220 160 228.954305 160 240C160 251.045695 168.954305 260 180 260L220 260L220 300C220 311.045695 228.954306 320 240 320C251.045694 320 260 311.045695 260 300L260 260zM200 299.6660944L200 280L180 280C157.90861 280 140 262.09139 140 240C140 217.90861 157.90861 200 180 200L200 200L200 180C200 174.4268224 201.139782 169.1198548 203.198962 164.2994806L169 147.2C166.2 145.8 163.2 145 160 145C156.8 145 153.8 145.8 151 147.2L11 217.2C4.6 220.4 0 227.2 0 235C0 243.2 5 250.4 12.4 253.4L152.2 313.4C154.6 314.4 157.2 315 160 315C162.8 315 165.4 314.4 168 313.4L200 299.6660944zM218.201234 146.4561882C224.472028 142.3727058 231.958926 140 240 140C261.1712560000001 140 278.5009120000001 156.4478474 279.907786 177.2623608L291 182.8C293.8 184.2 296.8 185 300 185C311 185 320 176 320 165C320 157.2 315.4 150.4 309 147.2L169 77.2C166.2 75.8 163.2 75 160 75C156.8 75 153.8 75.8 151 77.2L11 147.2C4.6 150.4 0 157.2 0 165C0 176 9 185 20 185C23.2 185 26.2 184.2 29 182.8L160 117.4L218.201234 146.4561882zM300 115C311 115 320 106 320 95C320 87.2 315.4 80.4 309 77.2L169 7.2C166.2 5.8 163.2 5 160 5C156.8 5 153.8 5.8 151 7.2L11 77.2C4.6 80.4 0 87.2 0 95C0 106 9 115 20 115C23.2 115 26.2 114.2 29 113L160 47.4L291 112.8C293.8 114.2 296.8 115 300 115z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style })));
});
exports.NewLayers.defaultProps = {
size: iconTypes_1.IconSize.STANDARD,
};
exports.NewLayers.displayName = "Blueprint5.Icon.NewLayers";
exports.default = exports.NewLayers;
//# sourceMappingURL=new-layers.js.map
;