Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Viewer v2.6.1 release notes #88

Merged
merged 1 commit into from
Dec 17, 2024
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
2 changes: 1 addition & 1 deletion src/.vuepress/viewer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const configs = new Map([
]);

async function makeViewer(config, id) {
await import(/* webpackIgnore: true */ "https://cdn.jsdelivr.net/npm/@bimdata/viewer@2.5.0");
await import(/* webpackIgnore: true */ "https://cdn.jsdelivr.net/npm/@bimdata/viewer@2.6.1");
if (configs.has(config)) {
return configs.get(config)(id);
} else {
Expand Down
4 changes: 3 additions & 1 deletion src/viewer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ You can directly download the BIMDataViewer from a **CDN** or you can install th
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>BIMDataViewer - Quick start</title>
</head>

Expand All @@ -41,7 +42,7 @@ You can directly download the BIMDataViewer from a **CDN** or you can install th
</div>

<script type="module">
import makeBIMDataViewer from "https://cdn.jsdelivr.net/npm/@bimdata/viewer@2.5.0";
import makeBIMDataViewer from "https://cdn.jsdelivr.net/npm/@bimdata/viewer@2.6.1";

const bimdataViewer = makeBIMDataViewer({
api: {
Expand All @@ -67,6 +68,7 @@ You can directly download the BIMDataViewer from a **CDN** or you can install th
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>BIMDataViewer - Quick start</title>
</head>

Expand Down
3 changes: 2 additions & 1 deletion src/viewer/examples/context_plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This example shows how to communicate from different plugins across the BIMDataV

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<style>
html,
body {
Expand All @@ -31,7 +32,7 @@ This example shows how to communicate from different plugins across the BIMDataV
<div id="viewer"></div>
</div>
<script type="module">
import makeBIMDataViewer from "https://cdn.jsdelivr.net/npm/@bimdata/viewer@2.5.0";
import makeBIMDataViewer from "https://cdn.jsdelivr.net/npm/@bimdata/viewer@2.6.1";

const bimdataViewer = makeBIMDataViewer({
// do not display the header, the bimdata logo and the viewer version
Expand Down
3 changes: 2 additions & 1 deletion src/viewer/examples/global_components.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This example shows how to use the BIMDataViewer [global components](../reference

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<style>
html,
body {
Expand All @@ -31,7 +32,7 @@ This example shows how to use the BIMDataViewer [global components](../reference
<div id="viewer"></div>
</div>
<script type="module">
import makeBIMDataViewer from "https://cdn.jsdelivr.net/npm/@bimdata/viewer@2.5.0";
import makeBIMDataViewer from "https://cdn.jsdelivr.net/npm/@bimdata/viewer@2.6.1";

const bimdataViewer = makeBIMDataViewer({
// do not display the header, the bimdata logo and the viewer version
Expand Down
3 changes: 2 additions & 1 deletion src/viewer/examples/gui_layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The plugins are registered first with different display options. Then the window

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<style>
html,
body {
Expand All @@ -33,7 +34,7 @@ The plugins are registered first with different display options. Then the window
<div id="viewer"></div>
</div>
<script type="module">
import makeBIMDataViewer from "https://cdn.jsdelivr.net/npm/@bimdata/viewer@2.5.0";
import makeBIMDataViewer from "https://cdn.jsdelivr.net/npm/@bimdata/viewer@2.6.1";

const bimdataViewer = makeBIMDataViewer({
// do not display the header, the bimdata logo and the viewer version
Expand Down
12 changes: 12 additions & 0 deletions src/viewer/mobile.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,15 @@ const bimdataViewer = makeBIMDataViewer({
},
});
```

## Mobile browsers

If you plan to embed the viewer into a web page that will be accessed on mobile
make sure to add the following `<meta />` tag in the `<head>` of your html document:

```html
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
```

This ensure that the viewer is displayed properly on both desktop and mobile devices
([learn more](https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag)).
9 changes: 9 additions & 0 deletions src/viewer/release_notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Release Notes

## v2.6.1

### Features

* Add "field of view" param to point cloud viewer parameters
* Smartview selection feature
* Smartview show/hide feature
* Edit smartviews feature

## v2.6.0

### Feature
Expand Down