Files
ai-course/node_modules/.cache/babel-loader/128bfe9b073c5e41b5d75b71b9265da43419fb2ccaed209d9c3fa0e065b11449.json

1 line
1.3 KiB
JSON
Raw Permalink Normal View History

{"ast":null,"code":"const distance = (a, b) => Math.abs(a - b);\nfunction distance2D(a, b) {\n // Multi-dimensional\n const xDelta = distance(a.x, b.x);\n const yDelta = distance(a.y, b.y);\n return Math.sqrt(xDelta ** 2 + yDelta ** 2);\n}\nexport { distance, distance2D };","map":{"version":3,"names":["distance","a","b","Math","abs","distance2D","xDelta","x","yDelta","y","sqrt"],"sources":["/Users/apple/Documents/cursor/Web课件/AI课/education_web_多Agent协作系统/node_modules/framer-motion/dist/es/utils/distance.mjs"],"sourcesContent":["const distance = (a, b) => Math.abs(a - b);\nfunction distance2D(a, b) {\n // Multi-dimensional\n const xDelta = distance(a.x, b.x);\n const yDelta = distance(a.y, b.y);\n return Math.sqrt(xDelta ** 2 + yDelta ** 2);\n}\n\nexport { distance, distance2D };\n"],"mappings":"AAAA,MAAMA,QAAQ,GAAGA,CAACC,CAAC,EAAEC,CAAC,KAAKC,IAAI,CAACC,GAAG,CAACH,CAAC,GAAGC,CAAC,CAAC;AAC1C,SAASG,UAAUA,CAACJ,CAAC,EAAEC,CAAC,EAAE;EACtB;EACA,MAAMI,MAAM,GAAGN,QAAQ,CAACC,CAAC,CAACM,CAAC,EAAEL,CAAC,CAACK,CAAC,CAAC;EACjC,MAAMC,MAAM,GAAGR,QAAQ,CAACC,CAAC,CAACQ,CAAC,EAAEP,CAAC,CAACO,CAAC,CAAC;EACjC,OAAON,IAAI,CAACO,IAAI,CAACJ,MAAM,IAAI,CAAC,GAAGE,MAAM,IAAI,CAAC,CAAC;AAC/C;AAEA,SAASR,QAAQ,EAAEK,UAAU","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}