-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RaycasterHelper
#30088
base: dev
Are you sure you want to change the base?
RaycasterHelper
#30088
Conversation
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
f55e1e1
to
e5df3b9
Compare
Co-authored-by: abernier <antoine.bernier@gmail.com>
e5df3b9
to
18875d1
Compare
Thinking about this now....what are the benefits of moving this into the main repository? There is already a dedicated package where developers can import the helper. Besides, we want to be more strict in adding modules like In any event, |
I have to say that I also asked myself the same question… I would say (without being 100% sure) that the main benefit would probably being “officially” supported (and therefore maintained) by three.js — since Raycaster is an important class. It also brings discoverability and overall consistency1 i let you decide obviously :)
I had hesitation but because Raycaster is a core class, that's the reason why I've made this choice, but no problen to move to jsm/helpers if we decide to integrate that helper 👍🏻 Footnotes
|
I also want to avoid the situation when developers encounter the same thing in different repositories. In my view, when Besides, we often stated that we can't add "everything" into this repository. I understand it improves discoverability but it is simply not manageable for us. Having third-party repositories is totally fine and search engines makes sure developers find them. We from the core-team should make sure the most common and relevant modules are in the main repo. I don't think that includes |
How about adding the example but importing from import { RaycasterHelper } from "https://cdn.jsdelivr.net/npm/@gsimone/three-raycaster-helper@0.1.0/dist/gsimone-three-raycaster-helper.esm.js"; |
I'm fine with that. Especially since we can tag the example as |
sure, i will ;) |
Related issue: #23877
Description
a raycaster helper, from @gsimone https://github.com/gsimone/things?tab=readme-ov-file#raycasterhelper code