PromoCursed/node_modules/.cache/babel-loader/e7f7c64de3f5894c1a02ac96e394b855c257938e5b1233dde5a5acebb09bedcb.json

1 line
1.2 KiB
JSON
Raw Normal View History

2024-08-20 23:25:37 +04:00
{"ast":null,"code":"const getOffset = radius => {\n if (radius === 0) {\n return 0;\n }\n // 如果要考虑通用性,这里应该用三角函数 Math.sin(45)\n // 但是这个场景比较特殊,始终是等腰直角三角形,所以直接用 Math.sqrt() 开方即可\n return radius - Math.sqrt(Math.pow(radius, 2) / 2);\n};\nexport default getOffset;","map":{"version":3,"names":["getOffset","radius","Math","sqrt","pow"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/float-button/util.js"],"sourcesContent":["const getOffset = radius => {\n if (radius === 0) {\n return 0;\n }\n // 如果要考虑通用性,这里应该用三角函数 Math.sin(45)\n // 但是这个场景比较特殊,始终是等腰直角三角形,所以直接用 Math.sqrt() 开方即可\n return radius - Math.sqrt(Math.pow(radius, 2) / 2);\n};\nexport default getOffset;"],"mappings":"AAAA,MAAMA,SAAS,GAAGC,MAAM,IAAI;EAC1B,IAAIA,MAAM,KAAK,CAAC,EAAE;IAChB,OAAO,CAAC;EACV;EACA;EACA;EACA,OAAOA,MAAM,GAAGC,IAAI,CAACC,IAAI,CAACD,IAAI,CAACE,GAAG,CAACH,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;AACpD,CAAC;AACD,eAAeD,SAAS","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}