Add Path Booting
GuideLinePlugin
Function Description
GuideLinePlugin provides the ability to render action paths in a panorama mode.
Effect Display
Drag VR, rotate the angle to see the path bootstrap effect.
Install reference
import { GuideLinePlugin } from "@realsee/dnalogel"
Development Guides
Initialize
When initializing the Five
instance, configure GuideLinePlugin
in the initialization plug-in parameters.
import { Five } from '@realsee/five'
import { GuideLinePlugin } from "@realsee/dnalogel";
const five = new Five({
plugins: [
[
GuideLinePlugin,
'guideLinePlugin', // Custom plugin name
]
]
})
React initialization
When creating FiveProvider
, configure GuideLinePlugin
in the initialization plug-in parameters.
import { GuideLinePlugin } from "@realsee/dnalogel";
import { createFiveProvider, FiveCanvas } from "@realsee/five/react";
const FiveProvider = createFiveProvider({
plugins: [
[
GuideLinePlugin,
'guideLinePlugin', // Custom plugin name
]
]
});
Vue initialization
When FiveProvider
, configure GuideLinePlugin
in the initialization plug-in parameters.
<template>
<FiveProvider :fiveInitArgs="fiveInitArgs">
</FiveProvider>
</template>
<script setup>
import GuideLinePlugin from "@realsee/dnalogel/libs/GuideLinePlugin";
import { FiveProvider, FiveCanvas } from "@realsee/five/vue";
const fiveInitArgs = {
plugins: [
[
GuideLinePlugin ,
'guideLinePlugin', // custom plugin name
]
]
}
</script>
Load data
You needto load path planning datato see the correct effect:
// Custom path data
const guideLineServerData = [{
panoIndexList: [0, 1, 2, 3, 4, 5],
//arrowTextUrl: '', // Custom Path arrow on
}]
// Load path data
five.plugins.guideLinePlugin.load({ routes: guideLineServerData }, { visible: true })
Core approach
load(serverData: PluginServerData | PluginData)
Loading plugin data
You need to manually load the plug-in data, please readRealsee Open Platform APIfor the data source.
show: (options?: { userAction?: boolean }) => void
display pathhide: (options?: { userAction?: boolean }) => void
hidden pathenable: (options?: { userAction?: boolean }) => void
enable pluginsdisable: (options?: { userAction?: boolean }) => void
Disable plugindispose: () => void
destroyed plugin