configure.md 1001 B

配置选项

场景

  • 点位
new KanKan({
    scene: {
        // 点位透明度
        markerOpacity: 1,
        // 自定义点位图标
        markerURL: 'https://xxxx.com/xx.png',
    },
})

VR

  • marker 高度配置
new KanKan({
    vr: {
        markerHeight: 1,
    },
})

热点

  • 模式显示
new KanKan({
    tag: {
        // 所有模式下显示
        showIn: 'all',
        // 只在平面图下显示
        showIn: 'floorplan',
        // 漫游模式和平面图中都显示
        showIn: 'panorama,floorplan',
        // 等同于all
        showIn: 'panorama,floorplan,dollhouse',
    },
})

?> 默认在只在漫游模式下显示

应用模式

new KanKan({
    view: true,
})

?> 模式分为展示模式和编辑模式,默认为展示模式

快捷键

new KanKan({
    useShortcutKeys: true,
})

?> 默认值:false