0.1.11 • Published 6 months ago

three-earth-vue v0.1.11

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

This is a library for implementing 3D earth based on ThreeJs, suitable for Vue3, which contains earth textures, muddy light, animation, background, halo, starry sky, clouds, light source, geojson, map border, beam of light, scatter, flight line etc.

Note: The size of the package itself is not large, mainly caused by geojson and base64, but don't worry, it will not go to jia'zai if it is not used

Installing

# three install
pnpm add three@0.135.0

# npm
npm install three-earth
# yarn
yarn add three-earth
# pnpm
pnpm add three-earth

Quick Start

<script lang="ts" setup>
import { ThEarth } from 'three-earth'
</script>
<template>
  <th-earth style="height: 300px;" />
</template>

Documentation

Examples

Import separately

If you only want to import the components you need, you can use the on-demand import method.

// main.ts
import App from './App.vue'
import { createApp } from 'vue'
import { ThEarth, ThEarthBorder, ThEarthLine, ThEarthBeam } from 'three-earth'

...
0.1.10

6 months ago

0.1.11

6 months ago

0.1.2

6 months ago

0.1.7

6 months ago

0.1.9

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.1

10 months ago

0.1.0

10 months ago

0.0.11

10 months ago

0.0.1

10 months ago

1.0.0

10 months ago