Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lgl
SmartVillages2
Commits
a067234c
Commit
a067234c
authored
Jul 10, 2025
by
Riegel
Browse files
Add model placing to context menu
parent
b0f5a114
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/index.js
View file @
a067234c
...
...
@@ -417,6 +417,15 @@ export default function smartVillagesPlugin(config, baseUrl) {
const
pick
=
vcsApp
.
maps
.
activeMap
.
getScene
().
pick
(
event
.
windowPosition
);
if
(
pick
!==
undefined
&&
pick
.
primitive
!==
undefined
&&
pick
.
primitive
.
id
!==
undefined
)
{
model
=
pick
.
primitive
.
id
actions
.
push
({
id
:
'
move
'
,
name
:
'
Objekt platzieren
'
,
callback
()
{
const
interaction
=
new
PickPlaceInteraction
();
interaction
.
setActive
(
EventType
.
CLICKMOVE
);
activeMouseEvent
=
vcsApp
.
maps
.
eventHandler
.
addExclusiveInteraction
(
interaction
,
()
=>
{
console
.
log
(
"
removed
"
)
});
},
});
actions
.
push
({
id
:
'
move
'
,
name
:
'
Objekt verschieben
'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment