@holoscript/radio-astronomy-plugin 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/LICENSE +21 -0
- package/__tests__/SpectralCubeViewer.test.ts +129 -0
- package/__tests__/plugin.test.ts +21 -0
- package/dist/bridge/python-runner.d.ts +24 -0
- package/dist/bridge/python-runner.d.ts.map +1 -0
- package/dist/bridge/python-runner.js +43 -0
- package/dist/bridge/python-runner.js.map +1 -0
- package/dist/components/SpectralCubeViewer.d.ts +45 -0
- package/dist/components/SpectralCubeViewer.d.ts.map +1 -0
- package/dist/components/SpectralCubeViewer.js +196 -0
- package/dist/components/SpectralCubeViewer.js.map +1 -0
- package/dist/constants/astronomy-traits.d.ts +6 -0
- package/dist/constants/astronomy-traits.d.ts.map +1 -0
- package/dist/constants/astronomy-traits.js +12 -0
- package/dist/constants/astronomy-traits.js.map +1 -0
- package/dist/fits/FITSParser.d.ts +60 -0
- package/dist/fits/FITSParser.d.ts.map +1 -0
- package/dist/fits/FITSParser.js +230 -0
- package/dist/fits/FITSParser.js.map +1 -0
- package/dist/fits/FITSToGrid.d.ts +27 -0
- package/dist/fits/FITSToGrid.d.ts.map +1 -0
- package/dist/fits/FITSToGrid.js +85 -0
- package/dist/fits/FITSToGrid.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/package.json +33 -0
- package/python/astropy_bridge.py +45 -0
- package/src/bridge/python-runner.ts +62 -0
- package/src/components/SpectralCubeViewer.tsx +310 -0
- package/src/constants/astronomy-traits.ts +13 -0
- package/src/fits/FITSParser.ts +289 -0
- package/src/fits/FITSToGrid.ts +95 -0
- package/src/index.ts +32 -0
- package/tsconfig.json +26 -0
- package/vitest.config.ts +10 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { RADIO_ASTRONOMY_TRAITS, RadioAstronomyTraitName } from './constants/astronomy-traits';
|
|
2
|
+
import { PythonAstropyBridge, AstropyResult } from './bridge/python-runner';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @holoscript/radio-astronomy-plugin
|
|
6
|
+
*
|
|
7
|
+
* Domain plugin bridging Radio Astrophysics simulation concepts into the HoloScript Universal pipeline.
|
|
8
|
+
* Extends standard traits without bloating core. Provides an astropy python bridge for logic evaluation.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
// Export vocabulary
|
|
12
|
+
export { RADIO_ASTRONOMY_TRAITS, type RadioAstronomyTraitName };
|
|
13
|
+
|
|
14
|
+
// Export Bridges
|
|
15
|
+
export { PythonAstropyBridge, type AstropyResult };
|
|
16
|
+
|
|
17
|
+
// Export FITS parsing and visualization
|
|
18
|
+
export { parseFITS, buildFITS, type FITSFile, type WCSInfo } from './fits/FITSParser';
|
|
19
|
+
export { fitsToGrid3D, extractChannel, fitsDataRange } from './fits/FITSToGrid';
|
|
20
|
+
export { SpectralCubeViewer, FITSViewerPanel, type SpectralCubeViewerProps, type FITSViewerPanelProps } from './components/SpectralCubeViewer';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Metadata exposing domain capabilities to the Studio / Schema Mapper.
|
|
24
|
+
*/
|
|
25
|
+
export const DOMAIN_MANIFEST = {
|
|
26
|
+
id: 'domain.science.astronomy.radio',
|
|
27
|
+
name: 'Radio Astronomy Plugin',
|
|
28
|
+
version: '1.0.0',
|
|
29
|
+
description: 'Extends HoloScript spatial environments with radio astrophysics primitives.',
|
|
30
|
+
keywords: ['interferometer', 'radio emitting', 'synchrotron radiation', 'pulsar'],
|
|
31
|
+
traits: RADIO_ASTRONOMY_TRAITS,
|
|
32
|
+
};
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"lib": ["ES2020", "DOM"],
|
|
7
|
+
"declaration": true,
|
|
8
|
+
"declarationMap": true,
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"strict": true,
|
|
11
|
+
"noImplicitAny": true,
|
|
12
|
+
"strictNullChecks": true,
|
|
13
|
+
"noUnusedLocals": false,
|
|
14
|
+
"noUnusedParameters": false,
|
|
15
|
+
"resolveJsonModule": true,
|
|
16
|
+
"esModuleInterop": true,
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
"forceConsistentCasingInFileNames": true,
|
|
19
|
+
"outDir": "./dist",
|
|
20
|
+
"rootDir": "./src",
|
|
21
|
+
"experimentalDecorators": true,
|
|
22
|
+
"jsx": "react-jsx"
|
|
23
|
+
},
|
|
24
|
+
"include": ["src/**/*"],
|
|
25
|
+
"exclude": ["node_modules", "dist", "src/**/*.test.ts", "src/**/*.bench.ts", "src/__tests__/**/*"]
|
|
26
|
+
}
|