-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
Angular Module #322
Comments
@looading what should it do? |
An angular module? Angular is based on live HTML editing through the change of variables. That should be something done entirely on your side, it's pretty much unrelated to 3D WebGL. DatGUI Does the same thing with a little bit of a twist. I don't understand why you would want an Angular module, please clarify. |
Inspired by the react-whs project, why don`t we integrate Angular and WHS? Then. for example, if we want to create an 3D sence in a Angular Component.
// app.moudls.ts
import { NgWhsModule } from 'ng-whs';
...
@NgModule({
imports: [
NgWhsModule,
...
],
...
})
export class AppModule {}
<!-- app.component.html -->
<whs-container
[scene]='scene'
[camera]='camera'
>
<Sphere
[geometry]='geometry'
...
></Sphere>
<BasicSphere
[position]='position'
...
></BasicSphere>
<Line
[material]='material'
...
></Line>
</whs-container> // app.component.ts
import { Component, OnInit } from '@angular/core';
import { WhsService, Sence } from 'ng-whs';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: './app.component.scss',
})
export class AppComponent implements OnInit {
public scene: Sence;
...
constructor(private whs: WhsService) {
}
ngOnInit() {
this.sence = this.whs.createSence();
...
}
}
At last,ng developers may only need to spend very little time to create an 3D sence which they want. write less, more simple and more intuitive. I think it`s cool. |
@looading I've got the idea now. Yes, that can be done as separate open source project on github. Would you like to start the development? We can guarantee you support during the development |
@sasha240100 Ok, i will start the development a few days later. |
@looading From your issue, I get the impression that you already have whs working within ng. I'm trying to do the same, but am a bit puzzled on how to approach this. Do you have a working example ? |
@meronbrouwer There are no examples available online at the moment.But, you can open a new issue to discuss your puzzles in detaild. |
@looading thanks for the reply. I'll create a new issue if I bump into new problems. |
Describe your issue here.
Do you have any plan to provide a Angular moudle?
Version:
Issue type:
Tested on:
Desktop
Android
IOS
The text was updated successfully, but these errors were encountered: