Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This library has dependencies to the following libs:
npm i videx-3d
```

You also need to install the peer-dependicies:
You also need to install the peer-dependencies:
```
// react
npm i react@18 react-dom@18
Expand Down Expand Up @@ -100,7 +100,7 @@ const ExampleApp = () => (
```
If instead you want to run the data store and/or registry on the main thread, simply create and pass an instance directly to the provider.

For more information see the API docs.
For more information see the documentation section below.

## Documentation
- [Getting Started](https://github.com/equinor/videx-3d/blob/main/documents/getting-started.md)
Expand Down
Binary file modified documents/architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions documents/generators.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export async function myGeneratorFunction(this: ReadonlyStore, id: string) {
// return processed data
}
```
Have a look in the [source code](https://github.com/equinor/videx-3d/tree/main/src/generators) to see examples of how generator functions can be implemented.

Note that if the generators are run in a web worker context, you need to be aware of how data is moved from one thread to another (see [The structured clone algorithm](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm)).

As data is serialized and copied when passed across threads, you should take advantage of data types that are [_transferable_](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Transferable_objects). This can be done using the [`transfer`](https://github.com/GoogleChromeLabs/comlink?tab=readme-ov-file#comlinktransfervalue-transferables-and-comlinkproxyvalue) function with `comlink` in the return statement:
Expand Down
4 changes: 0 additions & 4 deletions src/sdk/data/types/Casing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,3 @@ export type CasingItem = {

}

export type CasingSection = CasingItem & {
shoe: CasingItem | null,
}

23 changes: 16 additions & 7 deletions src/sdk/data/types/PositionLog.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
// export type PositionlogEntry = {
// easting: number,
// northing: number,
// tvd: number,
// md: number,
// }

/**
* Position log are expected to be a strided array of values including:
* - dx: UTM easting offset relative to the head position
* - dy: The TVD depth relative to mean sea level (Msl)
* - dz: UTM northing offset relative to the head position
* - md: Measured depth relative to mean sea level (Msl)
*
* The stride is then 4 values per log entry:
* [dx0, dy0, dz0, md0, dx1, dy1, dz1, md1, ..., dx(n - 1), dy(n-1), dz(n-1), md(n-1)]
*
* The measured top is then positionlog[3]
* The measured bottom is then positionlog[positionlog.length - 1]
*
* The position log is represented in this way for optimimalization reasons.
*
*/
export type PositionLog = Float32Array
3 changes: 2 additions & 1 deletion typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"excludeExternals": true,
"exclude": ["node_modules"],
"projectDocuments": ["documents/architecture.md", "documents/data.md", "documents/generators.md", "documents/index.md"],
"out": "./static/docs"
"out": "./static/docs",
"visibilityFilters": {}
}