Commit 645ee737 authored by Matthias Betz's avatar Matthias Betz
Browse files

change to vcmap 6

parent 510e3c90
No related merge requests found
Showing with 4604 additions and 4048 deletions
+4604 -4048
This diff is collapsed.
......@@ -50,19 +50,21 @@
"three": "^0.169.0"
},
"peerDependencies": {
"@vcmap-cesium/engine": "^4.0.3",
"@vcmap/core": "^5.3.0",
"@vcmap/ui": "^5.2.4",
"ol": "^7.5.2"
"@vcmap-cesium/engine": "^11.0.2",
"@vcmap/core": "^6.1.9",
"@vcmap/ui": "^6.1.11",
"ol": "^10.5.0",
"vue": "~3.4.38",
"vuetify": "^3.7.19"
},
"devDependencies": {
"@vcmap/plugin-cli": "^3.1.2",
"@vcsuite/eslint-config": "^3.0.7",
"@vitest/coverage-v8": "^1.6.0",
"@vcmap/plugin-cli": "^4.1.1",
"@vcsuite/eslint-config": "^4.0.0",
"@vitest/coverage-v8": "^3.1.4",
"jest-canvas-mock": "^2.5.2",
"jsdom": "^24.1.0",
"jsdom": "^26.1.0",
"resize-observer-polyfill": "^1.5.1",
"vitest": "^1.6.0"
"vitest": "^3.1.4"
},
"mapVersion": "^5.0"
"mapVersion": "^6.1"
}
import { ToolboxType, WindowSlot, NotificationType } from '@vcmap/ui';
import { Cesium3DTileStyle, Math as CMath, Cartesian3, ConstantProperty, Transforms, HeadingPitchRoll, Cesium3DTileset, Matrix4 } from '@vcmap-cesium/engine';
import { AbstractInteraction, createTransformationHandler, EventType, ScaleInteraction, TransformationHandler, TransformationMode } from '@vcmap/core';
import { AbstractInteraction, EventType } from '@vcmap/core';
import { name, version, mapVersion } from '../package.json';
import BIMOptions, { bimOptionsId } from './upload.vue';
import objectList, { objectListId } from './objectList.vue';
......
......@@ -73,7 +73,6 @@ import {
VcsTextField,
Icons,
VcsFormSection,
createListItemRenameAction,
NotificationType,
} from '@vcmap/ui';
import {
......@@ -85,7 +84,7 @@ import {
VContainer,
VRow,
VCol,
} from 'vuetify/lib';
} from 'vuetify/components';
import { computed, ref, inject } from 'vue';
import { name } from '../package.json';
import * as THREE from 'three';
......@@ -93,6 +92,7 @@ import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { GLTFExporter } from 'three/addons/exporters/GLTFExporter.js';
import { Cartesian2 } from '@vcmap-cesium/engine';
const defaultItems = [];
const items = ref(defaultItems);
let setupModelFunction = undefined;
......@@ -123,6 +123,9 @@ function uploadModel() {
type: "application/octet-stream",
});
let url = URL.createObjectURL(blob);
const loader = new GLTFLoader();
loader.load(url, function(gltf) {
let bounds = new THREE.Box3().setFromObject(gltf.scene);
......@@ -235,7 +238,6 @@ function uploadModel() {
disabled: false,
visible: true,
icon: 'home-outline',
renameAction: false,
action: false,
clicked: false,
selected: false,
......@@ -277,10 +279,6 @@ function uploadModel() {
item.actions = [];
if (newItem.value.renameAction) {
item.rename = false;
item.actions.push(createListItemRenameAction(item));
}
items.value.push(item);
newItem.value = {
name: 'foo',
......@@ -288,7 +286,6 @@ function uploadModel() {
disabled: false,
visible: true,
icon: false,
renameAction: false,
action: false,
clicked: false,
selected: false,
......
......@@ -41,13 +41,9 @@ function scaleModel() {
<script>
import {
VcsList,
VcsFormButton,
VcsTextField,
Icons,
VcsFormSection,
createListItemRenameAction,
NotificationType,
} from '@vcmap/ui';
import {
VSwitch,
......@@ -58,7 +54,7 @@ import {
VContainer,
VRow,
VCol,
} from 'vuetify/lib';
} from 'vuetify/components';
import { inject, watch } from 'vue';
import { name } from '../package.json';
......
......@@ -37,7 +37,7 @@ import {
VcsTextArea,
VcsSlider,
} from '@vcmap/ui';
import { VContainer, VRow, VForm, VCol } from 'vuetify/lib';
import { VContainer, VRow, VForm, VCol } from 'vuetify/components';
import { name } from '../package.json';
export const bimOptionsId = 'upload_ifc_id';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment