🗻
Norska
  • 🗻Welcome !
  • 🛣️Roadmap
  • 🔥Getting Started
    • Installation
    • Introduction
    • Quick Start
  • 🧊Core
    • Canvas
    • Objects
    • Properties
    • Attach
    • Three
    • Primitive
  • ✨Magic properties
    • $i
    • $three
    • $frame
    • $3
    • $math
    • $irefs
    • $load
      • $loaders
  • 🏗️Features
    • Reactivity
    • Conditional rendering
    • Loop
    • Events
  • ⚙️Advanced
    • Configuration
    • Extending Norska
    • Known issues
Powered by GitBook
On this page
  1. Features

Events

Norska lets you interact with any Object3D that has a raycast, using the same events as in the DOM.

<div 
    x-3.mesh
    @click="() => console.log('click')"
    @contextMenu="() => console.log('context menu')"
    @dblClick="() => console.log('double click')"
    @wheel="() => console.log('wheel spins')"
    @pointerUp="() => console.log('up')"
    @pointerDown="() => console.log('down')"
    @pointerOver="() => console.log('over')"
    @pointerIn="() => console.log('in')"
    @pointerOut="() => console.log('out'"
    @pointerMove="() => console.log('move')"
>
<!-- ... -->
</div>
PreviousLoopNextConfiguration

Last updated 1 year ago

🏗️