@bettermedicine/imeasure 0.0.1
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/.github/workflows/test-build-imeasure-package.yml +30 -0
- package/Makefile +21 -0
- package/README.md +31 -0
- package/dist/affines/from-cs-volume.d.ts +2 -0
- package/dist/affines/from-cs-volume.js +12 -0
- package/dist/affines/from-primitives.d.ts +8 -0
- package/dist/affines/from-primitives.js +24 -0
- package/dist/affines/from-vtk-image-data.d.ts +2 -0
- package/dist/affines/from-vtk-image-data.js +13 -0
- package/dist/affines/index.d.ts +5 -0
- package/dist/affines/index.js +5 -0
- package/dist/affines/invert.d.ts +2 -0
- package/dist/affines/invert.js +6 -0
- package/dist/affines/serialize.d.ts +2 -0
- package/dist/affines/serialize.js +12 -0
- package/dist/affines/translate.d.ts +3 -0
- package/dist/affines/translate.js +10 -0
- package/dist/constants.d.ts +10 -0
- package/dist/constants.js +10 -0
- package/dist/cropping/index.d.ts +24 -0
- package/dist/cropping/index.js +52 -0
- package/dist/formatting/index.d.ts +3 -0
- package/dist/formatting/index.js +3 -0
- package/dist/formatting/interactive.d.ts +7 -0
- package/dist/formatting/interactive.js +39 -0
- package/dist/formatting/static.d.ts +7 -0
- package/dist/formatting/static.js +33 -0
- package/dist/formatting/utils.d.ts +4 -0
- package/dist/formatting/utils.js +20 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +15 -0
- package/dist/math/affines/from-cs-volume.d.ts +8 -0
- package/dist/math/affines/from-cs-volume.js +18 -0
- package/dist/math/affines/from-primitives.d.ts +12 -0
- package/dist/math/affines/from-primitives.js +28 -0
- package/dist/math/affines/from-vtk-image-data.d.ts +5 -0
- package/dist/math/affines/from-vtk-image-data.js +8 -0
- package/dist/math/affines/from-vtk-image-data.test.d.ts +1 -0
- package/dist/math/affines/from-vtk-image-data.test.js +15 -0
- package/dist/math/affines/index.d.ts +6 -0
- package/dist/math/affines/index.js +6 -0
- package/dist/math/affines/invert.d.ts +2 -0
- package/dist/math/affines/invert.js +6 -0
- package/dist/math/affines/serialize.d.ts +2 -0
- package/dist/math/affines/serialize.js +12 -0
- package/dist/math/affines/translate-and-invert.test.d.ts +1 -0
- package/dist/math/affines/translate-and-invert.test.js +40 -0
- package/dist/math/affines/translate.d.ts +3 -0
- package/dist/math/affines/translate.js +10 -0
- package/dist/math/cropping.d.ts +23 -0
- package/dist/math/cropping.js +142 -0
- package/dist/math/index.d.ts +4 -0
- package/dist/math/index.js +4 -0
- package/dist/math/utility.d.ts +4 -0
- package/dist/math/utility.js +19 -0
- package/dist/metadata/world.d.ts +10 -0
- package/dist/metadata/world.js +25 -0
- package/dist/test/testdata.d.ts +2 -0
- package/dist/test/testdata.js +2 -0
- package/dist/types/arrays.d.ts +1 -0
- package/dist/types/arrays.js +1 -0
- package/dist/types/cornerstone.d.ts +3 -0
- package/dist/types/cornerstone.js +1 -0
- package/dist/types/crop.d.ts +16 -0
- package/dist/types/crop.js +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.js +3 -0
- package/dist/types/io.d.ts +52 -0
- package/dist/types/io.js +1 -0
- package/dist/types/metadata.d.ts +19 -0
- package/dist/types/metadata.js +1 -0
- package/dist/types/ohif.d.ts +10 -0
- package/dist/types/ohif.js +1 -0
- package/dist/types/series-metadata.d.ts +19 -0
- package/dist/types/series-metadata.js +1 -0
- package/dist/volumes/crop.d.ts +24 -0
- package/dist/volumes/crop.js +52 -0
- package/docs/README.md +26 -0
- package/docs/docs/api.md +5 -0
- package/docs/docusaurus.config.ts +134 -0
- package/docs/package-lock.json +17698 -0
- package/docs/package.json +54 -0
- package/docs/sidebars.ts +33 -0
- package/docs/src/components/HomepageFeatures/index.tsx +71 -0
- package/docs/src/components/HomepageFeatures/styles.module.css +11 -0
- package/docs/src/css/custom.css +30 -0
- package/docs/src/pages/index.module.css +23 -0
- package/docs/src/pages/index.tsx +44 -0
- package/docs/src/pages/markdown-page.md +7 -0
- package/docs/static/.nojekyll +0 -0
- package/docs/static/img/favicon.ico +0 -0
- package/docs/static/img/logo.png +0 -0
- package/docs/tsconfig.json +8 -0
- package/eslint.config.mjs +11 -0
- package/package.json +34 -0
- package/src/constants.ts +12 -0
- package/src/cropping/index.ts +82 -0
- package/src/formatting/index.ts +3 -0
- package/src/formatting/interactive.ts +60 -0
- package/src/formatting/static.ts +49 -0
- package/src/formatting/utils.ts +31 -0
- package/src/index.ts +17 -0
- package/src/math/affines/from-cs-volume.ts +24 -0
- package/src/math/affines/from-primitives.ts +43 -0
- package/src/math/affines/from-vtk-image-data.test.ts +17 -0
- package/src/math/affines/from-vtk-image-data.ts +13 -0
- package/src/math/affines/index.ts +6 -0
- package/src/math/affines/invert.ts +7 -0
- package/src/math/affines/serialize.ts +14 -0
- package/src/math/affines/translate-and-invert.test.ts +78 -0
- package/src/math/affines/translate.ts +21 -0
- package/src/math/cropping.ts +219 -0
- package/src/math/index.ts +4 -0
- package/src/math/utility.ts +30 -0
- package/src/metadata/world.ts +35 -0
- package/src/test/testdata.ts +20 -0
- package/src/types/arrays.ts +1 -0
- package/src/types/cornerstone.ts +4 -0
- package/src/types/crop.ts +16 -0
- package/src/types/index.ts +3 -0
- package/src/types/io.ts +62 -0
- package/src/types/metadata.ts +26 -0
- package/src/types/ohif.ts +14 -0
- package/tsconfig.json +15 -0
- package/vitest.config.ts +7 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { themes as prismThemes } from "prism-react-renderer";
|
|
2
|
+
import type { Config } from "@docusaurus/types";
|
|
3
|
+
import type * as Preset from "@docusaurus/preset-classic";
|
|
4
|
+
|
|
5
|
+
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
|
|
6
|
+
|
|
7
|
+
const config: Config = {
|
|
8
|
+
title: "Better Medicine iMeasure documentation",
|
|
9
|
+
tagline: "Replace this",
|
|
10
|
+
favicon: "img/favicon.ico",
|
|
11
|
+
|
|
12
|
+
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
|
|
13
|
+
future: {
|
|
14
|
+
v4: true, // Improve compatibility with the upcoming Docusaurus v4
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
// Set the production url of your site here
|
|
18
|
+
url: "https://your-docusaurus-site.example.com",
|
|
19
|
+
// Set the /<baseUrl>/ pathname under which your site is served
|
|
20
|
+
// For GitHub pages deployment, it is often '/<projectName>/'
|
|
21
|
+
baseUrl: "/",
|
|
22
|
+
|
|
23
|
+
// GitHub pages deployment config.
|
|
24
|
+
// If you aren't using GitHub pages, you don't need these.
|
|
25
|
+
organizationName: "@bettermedicine", // Usually your GitHub org/user name.
|
|
26
|
+
projectName: "@bettermedicine/imeasure", // Usually your repo name.
|
|
27
|
+
|
|
28
|
+
onBrokenLinks: "throw",
|
|
29
|
+
onBrokenMarkdownLinks: "warn",
|
|
30
|
+
|
|
31
|
+
// Even if you don't use internationalization, you can use this field to set
|
|
32
|
+
// useful metadata like html lang. For example, if your site is Chinese, you
|
|
33
|
+
// may want to replace "en" with "zh-Hans".
|
|
34
|
+
i18n: {
|
|
35
|
+
defaultLocale: "en",
|
|
36
|
+
locales: ["en"],
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
presets: [
|
|
40
|
+
[
|
|
41
|
+
"classic",
|
|
42
|
+
{
|
|
43
|
+
docs: {
|
|
44
|
+
sidebarPath: "./sidebars.ts",
|
|
45
|
+
// Please change this to your repo.
|
|
46
|
+
// Remove this to remove the "edit this page" links.
|
|
47
|
+
editUrl: "https://github.com/bettermedicine/imeasure-docs",
|
|
48
|
+
},
|
|
49
|
+
theme: {
|
|
50
|
+
customCss: "./src/css/custom.css",
|
|
51
|
+
},
|
|
52
|
+
} satisfies Preset.Options,
|
|
53
|
+
],
|
|
54
|
+
],
|
|
55
|
+
|
|
56
|
+
themeConfig: {
|
|
57
|
+
// Replace with your project's social card
|
|
58
|
+
image: "img/docusaurus-social-card.jpg",
|
|
59
|
+
navbar: {
|
|
60
|
+
title: "Better Medicine iMeasure documentation",
|
|
61
|
+
logo: {
|
|
62
|
+
alt: "Better Medicine Logo",
|
|
63
|
+
src: "img/logo.png",
|
|
64
|
+
},
|
|
65
|
+
items: [
|
|
66
|
+
{
|
|
67
|
+
href: "https://github.com/bettermedicine/imeasure-docs",
|
|
68
|
+
label: "GitHub",
|
|
69
|
+
position: "right",
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
footer: {
|
|
74
|
+
style: "dark",
|
|
75
|
+
links: [
|
|
76
|
+
{
|
|
77
|
+
title: "Docs",
|
|
78
|
+
items: [
|
|
79
|
+
{
|
|
80
|
+
label: "API documentation",
|
|
81
|
+
to: "/docs/api",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: "SDK documentation",
|
|
85
|
+
to: "/docs/sdk",
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
title: "Community",
|
|
91
|
+
items: [
|
|
92
|
+
{
|
|
93
|
+
label: "Webpage",
|
|
94
|
+
href: "https://bettermedicine.ai",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
label: "LinkedIn",
|
|
98
|
+
href: "https://www.linkedin.com/company/better-medicine-ai/",
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
title: "More",
|
|
104
|
+
items: [
|
|
105
|
+
{
|
|
106
|
+
label: "Better Medicine on GitHub",
|
|
107
|
+
href: "https://github.com/bettermedicine",
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
copyright: `Better Medicine ${new Date().getFullYear()}. Built with Docusaurus.`,
|
|
113
|
+
},
|
|
114
|
+
prism: {
|
|
115
|
+
theme: prismThemes.github,
|
|
116
|
+
darkTheme: prismThemes.dracula,
|
|
117
|
+
},
|
|
118
|
+
} satisfies Preset.ThemeConfig,
|
|
119
|
+
plugins: [
|
|
120
|
+
[
|
|
121
|
+
"docusaurus-plugin-typedoc",
|
|
122
|
+
{
|
|
123
|
+
entryPoints: ["../src/index.ts"],
|
|
124
|
+
tsconfig: "../tsconfig.json",
|
|
125
|
+
out: "docs/sdk",
|
|
126
|
+
sidebar: {
|
|
127
|
+
autoConfiguration: false,
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
],
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export default config;
|