@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
28 lines • 2.4 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
/*
* 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.
*/
import * as React from "react";
import { IconSize } from "../../iconTypes";
import { SVGIconContainer } from "../../svgIconContainer";
export const Heatmap = React.forwardRef((props, ref) => {
const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE;
const pixelGridSize = isLarge ? IconSize.LARGE : IconSize.STANDARD;
const translation = `${-1 * pixelGridSize / 0.05 / 2}`;
const style = { transformOrigin: "center" };
return (_jsx(SVGIconContainer, { iconName: "heatmap", ref: ref, ...props, children: _jsx("path", { d: isLarge ? "M360 80A40 40 0 1 0 360 0A40 40 0 0 0 360 80M50 120A50 50 0 1 0 50 20A50 50 0 0 0 50 120M120 400A120 120 0 0 0 232.12 237.26A90 90 0 0 0 266.68 219.9A70 70 0 1 0 330 120C318.2 120 307.06 122.96 297.3 128.12A90 90 0 0 0 120.56 160.0200000000001L120 160A120 120 0 1 0 120 400M330 400A50 50 0 1 0 330 300A50 50 0 0 0 330 400" : "M40 100C18 100 0 82 0 60S18 20 40 20S80 38 80 60S62 100 40 100M260 240C282 240 300 258 300 280S282 320 260 320S220 302 220 280S238 240 260 240M320 150A50 50 0 0 1 270 200C250.4 200 233.6 188.6 225.4 172.2C213.4 187.8 195.2 198.2 174.2 199.4C177.8 209.2 180 219.2 180 230C180 279.8 139.8 320 90 320S0 279.8 0 230S40.2 140 90 140C93.8 140 97.4 140.6 101.2 141.2C100.6 137.4 100 133.8 100 130C100 91.4 131.4 60 170 60C202.6 60 229.6 82.2 237.4000000000001 112.4C246.2 104.8 257.4000000000001 100 270 100A50 50 0 0 1 320 150M290 60C273.4 60 260 46.6 260 30S273.4 0 290 0S320 13.4 320 30S306.6 60 290 60", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }) }));
});
Heatmap.displayName = `Blueprint6.Icon.Heatmap`;
export default Heatmap;
//# sourceMappingURL=heatmap.js.map