npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@realsee/dnalogel

v3.59.6

Published

如视 VR 看房插件合集

Downloads

38,946

Readme

👀 Overview

@realsee/dnalogel 将 如视(realsee.com) VR 空间交互 常用能力沉淀,并以 Five Plugins 形式进行抽象。 结合如视三维空间重建渲染引擎 Five如视开放 API ,可以制作出丰富多彩的三维空间应用。不论是经过线上环境千锤百炼的刚需功能,还是灵感一现的炫酷尝试,所有已经落地的功能我们均毫无保留的开源至github realsee-developer/dnalogel

🔨 Usage

1、安装

npm install @realsee/dnalogel
yarn add @realsee/dnalogel

2、插件注册

import { Five } from '@realsee/five'
import { Plugin } from '@realsee/dnalogel'
const five = new Five({
  plugins: [[Plugin, 'PluginName', initOptions]],
})

3、插件方法使用

// 不同插件提供的方法可能存在差异,请参考各插件 API 文档
five.plugins.PluginName.load(data)
five.plugins.PluginName.enable()
five.plugins.PluginName.disable()
five.plugins.PluginName.dispose()

4、插件依赖数据获取

您可以通过 open API 查看数据获取方式及相关 open API 。

📖 Documents

💡 Preview

我们为每个插件书写了简单的效果示例,您可点击预览: @realsee/dnalogel showcase

🧾 Lists

  • 🔌 ModelViewPlugin:模型小窗插件
  • 🔌 PanoFloorplanRadarPlugin:全景户型雷达图插件
  • 🔌 ModelRoomLabelPlugin:模型态房屋标签插件
  • 🔌 TopviewFloorplanPlugin:俯视模型户型图插件
  • 🔌 ModelChassisCompassPlugin:模型底盘指南针插件
  • 🔌 ModelEntryDoorGuidePlugin:模型入户门引导插件
  • 🔌 CSS3DRenderPlugin:CSS3D渲染插件
  • 🔌 CameraMovementPlugin:相机运镜插件
  • 🔌 ModelFloorplanPlugin:模型户型图插件
  • 🔌 PanoRulerPlugin:全景标尺插件
  • 🔌 PanoCompassPlugin:全景指南针插件
  • 其他插件持续更新中...

可能遇到的问题

  1. webpack打包出现以下错误
Module not found: Error: Can't resolve '@realsee/five/line' in 'xxx/node_modules/@realsee/dnalogel/libs'
Did you mean 'index.js'?
BREAKING CHANGE: The request '@realsee/five/line' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

解决方案:在webpack配置里加以下rule 参考:resolvefullyspecified

{
  test: /\.m?js$/,
  resolve: {
    fullySpecified: false, // disable the behaviour
  },
},

License

TERMS