Giter VIP home page Giter VIP logo

arie.js's Introduction

ARIE®

connectkit

A small component for displaying different data based on user scroll and pointer position.

v0.0.4-beta.1

Start

yarn add arie-js
pnpm install --save arie-js
npm install --save arie-js

Usage

default arie

import React from 'react'
import {useArie} from 'arie-js'

export const DefaultExample = () => {
  const {
    position: {client},
  } = useArie()
  return (
    <>
      <div>
        <div>X.{client.x && client.x.toExponential(2)}</div>
        <div>Y.{client.y && client.y.toPrecision(6)}</div>
      </div>
    </>
  )
}

arie angle

import React from 'react'
import {useArie} from 'arie-js'

export const AngleExample = () => {
  const {
    selectedElement: {
      position: {angle},
    },
  } = useArie(true, 'trackElement')
  return (
    <>
      <div className="row">{angle ? <div>{angle.toFixed(0)}°</div> : <div></div>}</div>

      <div id="trackElement" />
    </>
  )
}

A type-check script is also added to package.json, which runs TypeScript's tsc CLI in noEmit mode to run type-checking separately. You can then include this, for example, in your test scripts.

© MIT CHANDLER CHAPPELL

arie.js's People

Contributors

chvndler avatar renovate[bot] avatar

Watchers

 avatar

arie.js's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency @changesets/cli to v2.27.8
  • Update dependency @types/node to v20.16.10
  • Update dependency @vitejs/plugin-react to v4.3.1
  • Update dependency dts-bundle-generator to v8.1.2
  • Update dependency eslint to v8.57.1
  • Update dependency next-themes to ^0.3.0
  • Update dependency prettier to v3.3.3
  • Update dependency sass to v1.79.3
  • Update dependency tslib to v2.7.0
  • Update dependency turbo to v1.13.4
  • Update dependency typescript to v5.6.2
  • Update dependency vite-plugin-dts to v3.9.1
  • Update dependency zustand to v4.5.5
  • Update react monorepo (@types/react, @types/react-dom, react, react-dom)
  • Update typescript-eslint monorepo to v5.62.0 (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • Update dependency eslint to v9
  • Update dependency turbo to v2
  • Update dependency vite-plugin-dts to v4
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
apps/website/package.json
  • @atlrdsgn/kit ^0.3.0
  • arie-js *
  • clsx ^1.2.1
  • inter-ui ^3.19.3
  • next ^13.4.4
  • next-themes ^0.2.1
  • react ^18.2.0
  • react-dom ^18.2.0
  • sass ^1.62.1
  • zustand ^4.3.8
  • @types/node ^20.3.2
  • @types/react ^18.2.12
  • @types/react-dom ^18.2.4
  • prettier ^3.0.0
  • typescript ^5.1.3
package.json
  • @changesets/cli ^2.26.1
  • eslint ^8.42.0
  • eslint-config-atlrdsgn *
  • prettier ^2.8.8
  • turbo ^1.8.8
package/arie-react/package.json
  • @changesets/cli ^2.26.2
  • @types/node ^20.3.2
  • @types/react ^18.2.12
  • @typescript-eslint/eslint-plugin ^5.60.1
  • @typescript-eslint/parser ^5.60.1
  • @vitejs/plugin-react ^4.0.2
  • dts-bundle-generator ^8.0.1
  • eslint ^8.44.0
  • prettier ^3.0.0
  • react ^18.2.0
  • tslib ^2.6.0
  • turbo ^1.10.7
  • typescript ^5.1.3
  • vite ^4.4.1
  • vite-plugin-dts ^3.1.1
  • vitest ^0.33.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.