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 🙏

© 2026 – Pkg Stats / Ryan Hefner

at-three.js

v2.2.1

Published

三维可视化库

Readme

AtThree 组件 1.0

AtThree组件本质就是对iframe进行封装。用于打开三维地图数据,并且能够进行数据交互。

安装

# 安装 1.0.63 以上版本
npm i at-three
# 或
yarn add at-three # 推荐使用

使用

import { AtThree } from 'at-three'

// 全局组件注册
Vue.use(AtThree)

// 局部组件注册 vue组件中添加 components
export default {
 components: {
    AtThree
  }
}

Vue组件

<template>
  <div class="demo-container">
    <!--嵌入at-three"-->
    <at-three :param="param"  ref="atThree" @three-call="threeCall" />
  </div>
</template>

<script>
export default {
  name: "Demo",
  data() {
    return {
        param: {
          url: 'http://192.168.0.240:8166/'
        }
    }
  },
  methods: {
    /**
     * 监听事件
     * msg: {"code":200,"message":"移除图表","result":{"type":"AtScene.ChartLayer.Chart.Remove",param":{"data":true}}}
     *
     * code: 200 正常, 500 异常
     * result: 返回结果 {type: 接口名 ,param: 响应参数}
     */
    threeCall(msg) {
        console.log(msg)
    },
    /**
     *调用图形接口
      */
    callThree() {
        let obj = {}
        // 接口名
        obj.type = 'AtScene.ChartLayer.Chart.Add'
        obj.param = {
            // 请求参数
            data: null,
            type: '2'
        }
        this.$refs.atThree.callThree(obj)
    },
  }
}
</script>

Events

| 事件名称 | 说明 | 回调参数 | |---------- |-------- |---------- | | three-call | 图形系统抛出事件的唯一出口 | { type:'接口名',param:'返回参数' } |

Methods

| 方法名 | 说明 | 参数 | |---------- |-------- |---------- | | callThree | 调用图形系统接口的统一入口 | { type:'接口名',param:'请求参数' } |

Author

gaozhiqian