UNPKG

@blueprintjs/icons

Version:

Components, fonts, icons, and css files for creating and displaying icons.

31 lines 7.79 kB
/* * 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 Function = React.forwardRef((props, ref) => { const isLarge = props.size >= IconSize.LARGE; const pixelGridSize = isLarge ? IconSize.LARGE : IconSize.STANDARD; const translation = `${-1 * pixelGridSize / 0.05 / 2}`; const style = { transformOrigin: "center" }; return (React.createElement(SVGIconContainer, { iconName: "function", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M202.8 283.6H174.6C182.6 316.8 193.4 341 206.6 356.4C214.6 366 222.6 370.8 230.2 370.8C231.8 370.8 233 370.4 234 369.4C235 368.4 235.4 367.4 235.4 365.8C235.4 364.4 234.4 362 232.2 358.4C230 354.8 229 351.2 229 348C229 343.4 230.6 339.4 234 336.2C237.4 333 241.6 331.2 246.8 331.2C252.4 331.2 257 333.2 260.8 337.2C264.6 341.2 266.4 346.6 266.4 353.4C266.4 361.2 263.6 367.4 258 372.2C252.4 377 243.2 379.4 230.8 379.4C211.4 379.4 193.6 373.6 177.8 362C162 350.8 147 331.6 132.6 305C127.8 295.8 123 290 118.6 287.4C114.2 284.8 107.2 283.6 97.4 283.6L91 260.6H118L78.2 103.6C71.6 77.8 67 61.8 64.8 55.8C61.4 46.9999999999999 56.2 39.6 49.4 33.4C46.6 30.9999999999999 43.4 29.5999999999999 39.4 29.5999999999999C38.4 29.5999999999999 37.4 29.9999999999999 36.6 30.6L35.8 32C35.8 32.6 36.8 34.0000000000001 38.8 36C40.8 38.0000000000001 41.8 41.2 41.8 45.4C41.8 50 40.2 53.8 37.2 56.8C34 59.8 29.6 61.4 23.8 61.4C16.8 61.4 11.2 59.4 6.8 55.6C2.6 51.6 0.4 47 0.4 41.6C0.4 35.8000000000001 3 30.8000000000001 8.2 26.6C13.2 22.2 21.2 20 32.2 20C49.8 20 65.4 24.6 78.8 33.8C92.4 43.0000000000001 104.2 57.2 114.4 76.6C124.6 95.8000000000001 135 127 145.6 169.8000000000001L168.4 260.6H196L202.8 283.6zM338.8 244.6C343.8 248.6 349.0000000000001 250.4 354.4000000000001 250.4C356.4000000000001 250.4 360.2000000000001 249.6 365.6 248.2C371 246.6 375.8000000000001 246 380 246C385.8 246 390.4 248 394.4 252C398 255.8 400 261 400 267.4C400 274 398 279.4 394.2000000000001 283.4C390.4 287.4 384.8000000000001 289.2 377.8 289.2C371.4 289.2 365.4 287.6 359.8000000000001 284.6C354.2000000000001 281.6 347 274.8 338.2000000000001 264.6C331.6000000000002 257 322.0000000000001 243.6 309.4000000000001 224.6C304.4000000000001 248 295.6000000000001 269.6 283.2000000000001 289L215.2000000000001 277.2000000000001L213.8000000000001 269.8C218.8000000000001 270.8 223.2000000000001 271.4000000000001 226.6000000000001 271.4000000000001C233.4000000000001 271.4000000000001 239.0000000000001 268.4 243.4000000000001 262.6C250.4000000000001 253.4 260.2000000000001 225.6 272.6 178.8C262.8000000000001 165.6 256.2000000000001 157 252.6000000000001 152.8C246.6 146.2 241.6 142 237.8000000000001 140C234.8000000000001 138.4 231.4000000000001 137.6 227.6000000000001 137.6C224.8000000000001 137.6 220 139.2000000000001 213.6000000000001 142.4C209.2000000000001 144.4 205.2000000000001 145.6 201.8000000000001 145.6C195.2000000000001 145.6 189.8000000000001 143.4 185.4000000000001 139.2000000000001C181.2000000000001 134.8 179.0000000000001 129.4 179.0000000000001 122.6C179.0000000000001 116.4 181.0000000000001 111.2 185.0000000000001 107.2000000000001C189.0000000000001 103.2000000000001 194.4000000000001 101.4 201.0000000000001 101.4C207.4000000000001 101.4 213.6000000000001 102.8000000000001 219.4000000000001 105.6000000000001C225.2000000000001 108.4000000000001 232.2000000000001 114.2000000000001 241.0000000000001 123.2000000000001C249.6000000000001 132.2000000000001 261.6000000000001 146.4000000000001 276.8000000000001 166.0000000000001C282.6 147.4000000000001 287.8000000000001 133.8000000000001 292.0000000000001 125.4000000000001C296.2000000000001 117.0000000000001 301.2000000000001 110.8000000000001 306.8000000000001 107.2000000000001C312.4000000000001 103.4000000000001 319.2000000000001 101.6000000000001 327.6 101.6000000000001C335.6 101.6000000000001 343.8 104.6000000000001 352.2000000000001 110.4000000000001C363.2000000000001 118.0000000000001 374.2000000000001 131.2000000000001 385.8000000000001 149.8000000000001L378.8 154.0000000000001C371 143.0000000000001 365.2000000000001 136.2000000000001 361.4 133.4000000000002C359 131.6000000000001 356 130.8000000000001 352.6 130.8000000000001C348.6 130.8000000000001 344.6 133.4000000000002 340.8 138.4000000000002C334.2000000000001 147.0000000000002 325.4 171.0000000000002 314.2 210.4000000000002C323.6 227.6 332 239.2 338.8 244.6z" : "M162.4 225.2H139.6C146.2 251 154.6 270 165.2 282C171.8 289.4 178 293.2 184.2 293.2C185.4 293.2 186.4 292.8 187.2 292.2C188 291.4 188.4 290.4 188.4 289.2C188.4 288.2 187.6 286.2 185.8 283.4C184 280.6 183.2 277.8 183.2 275.4C183.2 271.8 184.6 268.8 187.2 266.2C190 263.6 193.4 262.4 197.6 262.4C202 262.4 205.8 264 208.8 267C211.8000000000001 270.2 213.4 274.4 213.4 279.6C213.4 285.6 211.2000000000001 290.6 206.6 294.4C202 298.2 194.8 300 184.8 300C169.2 300 155 295.6 142.4 286.6C129.6 277.6 117.6 262.6 106.2 242C102.2 234.8 98.6 230.2 95 228.2C91.4 226.2 85.8 225.2 78 225.2L72.8 207.2H94.4L62.6 84.8C57.2 64.6 53.8 52.2 51.8 47.6C49 40.8 45 34.9999999999999 39.4 30.2C37.2 28.2 34.6 27.2 31.4 27.2C30.6 27.2 29.8 27.4 29.2 28L28.4 29C28.4 29.6 29.2 30.6 30.8 32.2C32.4 33.8 33.2 36.2 33.2 39.4C33.2 43 32 46 29.4 48.2C27 50.6 23.4 51.8 18.6 51.8C13 51.8 8.4 50.1999999999999 5 47.1999999999999C1.8 44.4 0 40.8 0 36.6C0 32.2 2 28.2 6.2 24.8C10.4 21.4 16.8 19.8 25.6 19.8C39.6 19.8 52 23.4 63 30.6C73.8 37.8 83.4 49 91.4 64C99.6 79 107.8 103.2 116.4 136.6L134.6 207.4H156.6L162.4 225.2zM271 194.8C275 197.8 279.2000000000001 199.4 283.4 199.4C285 199.4 288 198.8 292.4 197.6C296.8 196.4 300.6 195.8 303.8 195.8C308.4 195.8 312.2 197.4 315.2 200.4C318.4 203.6 320 207.6 320 212.6C320 217.8 318.4 222 315.4 225C312.4 228 308 229.6 302.2 229.6C297.2 229.6 292.2 228.4000000000001 287.8 226C283.2 223.6 277.6 218.4 270.6 210.4C265.4 204.4 257.8 194.2 247.6 179.4C243.6 197.6 236.6 214.4 226.6 229.6L172.2 220.4L171 214.6C175 215.4 178.4 215.8 181.2 215.8C186.6 215.8 191 213.6 194.6 209C200.2 201.8 208 180 218 143.8C210.2 133.4 204.8 126.8000000000001 202 123.6C197.2 118.4 193.2 115.2000000000001 190.2 113.6C187.8 112.4 185.2 111.8 182 111.8C179.8 111.8 176 113.0000000000001 170.8 115.4C167.2 117 164 117.8 161.2 117.8C155.8 117.8 151.6 116.2 148 112.8C144.6 109.4 142.8 105.2 142.8 100C142.8 95 144.4 91.2 147.6 88C150.8 85 155 83.4 160.4 83.4C165.6 83.4 170.4 84.4 175 86.6C179.6 88.8 185.4 93.4 192.2 100.4C199.2 107.4 208.6 118.4 220.8 133.8C225.4 119.2 229.6 108.8 233 102.2S240.4 90.8 244.8 88C249.2 85 254.8 83.6 261.4 83.6C267.8 83.6 274.4 85.8 281 90.4C289.8 96.4 298.6 106.6 307.8 121L302.6 124C296.4 115.4 291.8 110 288.8 108C286.8 106.6 284.4000000000001 106 281.8 106C278.6 106 275.4000000000001 108 272.2000000000001 112C266.8 118.8 259.8000000000001 137.4 251 168C259 181.6 265.6 190.6 271 194.8z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); Function.defaultProps = { size: IconSize.STANDARD, }; Function.displayName = `Blueprint5.Icon.Function`; export default Function; //# sourceMappingURL=function.js.map