From 6d4c2fe849e41c8f071e4f4ec8738045ff3df254 Mon Sep 17 00:00:00 2001 From: Sander Moolin Date: Fri, 26 Mar 2021 13:37:53 -0400 Subject: [PATCH] remove extra docs --- src/core/README.md | 48 ---------------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 src/core/README.md diff --git a/src/core/README.md b/src/core/README.md deleted file mode 100644 index ba82129..0000000 --- a/src/core/README.md +++ /dev/null @@ -1,48 +0,0 @@ -## TODO -- [X] Document raycaster component -- [X] Document new events/props on Object3D -- [X] Click events on Raycaster -- [X] Click events on Object3D - -## Changelog - -### Raycaster component - -See [here](https://troisjs-instancedcolors.netlify.app/) for an example ([source](https://github.com/SaFrMo/trois-examples/blob/instanced-colors-standalone-demo/src/components/InstancedColors/InstancedColors.vue)). - -```html - - - - -``` - -### Object3D additions - -See [here](https://troisjs-pointer-tester-demo.netlify.app/) for an example ([source](https://github.com/SaFrMo/trois-examples/blob/pointer-tester-demo/src/components/PointerTester.vue)). New Object3D props (all optional): - -* `onPointerEnter`: Function, accepts an object with properties `{ object, intersect }`, containing the object being hovered and the actual intersection. -* `onPointerOver`: Function, accepts an object with properties `{ object, intersect }`, containing the object being hovered and the actual intersection. -* `onPointerLeave`: : Function, accepts an object with properties `{ object }`, containing the object no longer being hovered. -* `onClick`: Function, accepts an object with properties `{ object, intersect }`, containing the object being clicked and the actual intersection. -* `usePointerEvents`: Boolean, default false. If set to `true`, this object will emit `pointerEnter`, `pointerOver`, `pointerLeave`, and `click` events, all with the same arguments as the props. Function props are preferred over events to avoid the extra overhead of event emitting, but this option is provided if the user prefers events. -* `pointerObjects`: Array of objects to cast against. Defaults to just the given object. Set to `true` (ie, ``) to cast against all scene children. - -### Deprecations and Other Notes - -* `mouseMove`, `mouseRaycast`, `mouseOver`, and `click` are all no longer used on the renderer. -* `usePointer` on the `Renderer` is `true` by default. Switch to `false` to prevent mouse event handling on the renderer element. Example: - ```html - - - ``` \ No newline at end of file