# @babyuewjs/core

> Vue3 componets for create 3D Scenes using Babylon.js

Latest version **1.0.0-alpha.1** (published 2023-10-26) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @babyuewjs/core
pnpm add @babyuewjs/core
yarn add @babyuewjs/core
bun add @babyuewjs/core
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-alpha.1 |
| Published | 2023-10-26 |
| First published | 2023-10-25 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 51.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | drumath2237 |
| Maintainers | drumath |
| Keywords | babylonjs, vue, vue3, webgl, typescript |

## Links

- npm: https://www.npmjs.com/package/@babyuewjs/core
- Repository: https://github.com/drumath2237/BabyuewJS
- Homepage: https://github.com/drumath2237/BabyuewJS#readme
- Issues: https://github.com/drumath2237/BabyuewJS/issues
- npm.io page: https://npm.io/package/@babyuewjs/core

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^3.3.6
- [@babylonjs/core](https://npm.io/package/@babylonjs/core.md) ^6.25.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0-alpha.1 (latest) — 2023-10-26
- 1.0.0-alpha.0 — 2023-10-25

## README

# BabyuewJS

English | [日本語](./README.ja.md)

![npm](https://img.shields.io/npm/v/%40babyuewjs%2Fcore) ![NPM](https://img.shields.io/npm/l/%40babyuewjs%2Fcore)

## About

BabyuewJS is a library for developing Web 3D applications using Babylon.js and Vue3.
It provides a better developer experience by combining Babylon.js' capabilities for building and rendering 3D scenes with Vue3's powerful features such as SFC and reactivity.

## Enviroment

- Babylon.js 6.x
- Vue3
- TypeScript
- Vite 4.x

## Install

```bash
# npm
npm install -D @babyuewjs/core

# yarn
yarn add -D @babyuewjs/core

# pnpm
pnpm add -D @babyuewjs/core
```

## Usage

In an existing project using Vue3, a canvas for rendering the Babylon.js scene is placed by placing a `BabyuewScene` component,
The components for Babylon.js objects will be placed in its slots.

```html
<script setup lang="ts">
  import {
    BabyuewScene,
    ArcRotateCamera,
    DirectionalLight,
    Box,
  } from "@babyuewjs/core";
</script>

<template>
  <BabyuewScene antialias>
    <ArcRotateCamera
      name="camera"
      :alpha="Math.PI / 3"
      :beta="Math.PI / 3"
      :radius="0.5"
      :target="[0, 0.05, 0]"
    >
    </ArcRotateCamera>

    <DirectionalLight
      name="light"
      :direction="[0.25, -1, -0.6]"
      :intensity="1"
    ></DirectionalLight>

    <Box name="my-box" :position="[0, 0.05, 0]" :size="0.1"> </Box>
  </BabyuewScene>
</template>
```

## Author

[@drumath2237](https://github.com/drumath2237)

---
_Source: https://npm.io/package/@babyuewjs/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
