Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
feat(core): add attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Nov 29, 2021
1 parent cf41a01 commit 7b8b82e
Show file tree
Hide file tree
Showing 18 changed files with 468 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/core/attributes/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @angular-three/core/attributes

Secondary entry point of `@angular-three/core`. It can be used by importing from `@angular-three/core/attributes`.
5 changes: 5 additions & 0 deletions packages/core/attributes/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"lib": {
"entryFile": "src/index.ts"
}
}
14 changes: 14 additions & 0 deletions packages/core/attributes/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//GENERATED
export * from './lib/buffer-attribute/buffer-attribute.directive';
export * from './lib/instanced-buffer-attribute/instanced-buffer-attribute.directive';
export * from './lib/interleaved-buffer-attribute/interleaved-buffer-attribute.directive';
export * from './lib/float16-buffer-attribute/float16-buffer-attribute.directive';
export * from './lib/float32-buffer-attribute/float32-buffer-attribute.directive';
export * from './lib/float64-buffer-attribute/float64-buffer-attribute.directive';
export * from './lib/int8-buffer-attribute/int8-buffer-attribute.directive';
export * from './lib/int16-buffer-attribute/int16-buffer-attribute.directive';
export * from './lib/int32-buffer-attribute/int32-buffer-attribute.directive';
export * from './lib/uint8-buffer-attribute/uint8-buffer-attribute.directive';
export * from './lib/uint16-buffer-attribute/uint16-buffer-attribute.directive';
export * from './lib/uint32-buffer-attribute/uint32-buffer-attribute.directive';
export * from './lib/uint8-clamped-buffer-attribute/uint8-clamped-buffer-attribute.directive';
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// GENERATED
import { NgtAttribute } from '@angular-three/core';
import { NgModule, Directive, Input } from '@angular/core';
import * as THREE from 'three';

@Directive({
selector: 'ngt-buffer-attribute',
exportAs: 'ngtBufferAttribute',
providers: [
{
provide: NgtAttribute,
useExisting: NgtBufferAttribute,
},
],
})
export class NgtBufferAttribute extends NgtAttribute<THREE.BufferAttribute> {
static ngAcceptInputType_args:
| ConstructorParameters<typeof THREE.BufferAttribute>
| undefined;

@Input() set args(v: ConstructorParameters<typeof THREE.BufferAttribute>) {
this.attributeArgs = v;
}

attributeType = THREE.BufferAttribute;
}

@NgModule({
declarations: [NgtBufferAttribute],
exports: [NgtBufferAttribute],
})
export class NgtBufferAttributeModule {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// GENERATED
import { NgtAttribute } from '@angular-three/core';
import { NgModule, Directive, Input } from '@angular/core';
import * as THREE from 'three';

@Directive({
selector: 'ngt-float16-buffer-attribute',
exportAs: 'ngtFloat16BufferAttribute',
providers: [
{
provide: NgtAttribute,
useExisting: NgtFloat16BufferAttribute,
},
],
})
export class NgtFloat16BufferAttribute extends NgtAttribute<THREE.Float16BufferAttribute> {
static ngAcceptInputType_args:
| ConstructorParameters<typeof THREE.Float16BufferAttribute>
| undefined;

@Input() set args(
v: ConstructorParameters<typeof THREE.Float16BufferAttribute>
) {
this.attributeArgs = v;
}

attributeType = THREE.Float16BufferAttribute;
}

@NgModule({
declarations: [NgtFloat16BufferAttribute],
exports: [NgtFloat16BufferAttribute],
})
export class NgtFloat16BufferAttributeModule {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// GENERATED
import { NgtAttribute } from '@angular-three/core';
import { NgModule, Directive, Input } from '@angular/core';
import * as THREE from 'three';

@Directive({
selector: 'ngt-float32-buffer-attribute',
exportAs: 'ngtFloat32BufferAttribute',
providers: [
{
provide: NgtAttribute,
useExisting: NgtFloat32BufferAttribute,
},
],
})
export class NgtFloat32BufferAttribute extends NgtAttribute<THREE.Float32BufferAttribute> {
static ngAcceptInputType_args:
| ConstructorParameters<typeof THREE.Float32BufferAttribute>
| undefined;

@Input() set args(
v: ConstructorParameters<typeof THREE.Float32BufferAttribute>
) {
this.attributeArgs = v;
}

attributeType = THREE.Float32BufferAttribute;
}

@NgModule({
declarations: [NgtFloat32BufferAttribute],
exports: [NgtFloat32BufferAttribute],
})
export class NgtFloat32BufferAttributeModule {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// GENERATED
import { NgtAttribute } from '@angular-three/core';
import { NgModule, Directive, Input } from '@angular/core';
import * as THREE from 'three';

@Directive({
selector: 'ngt-float64-buffer-attribute',
exportAs: 'ngtFloat64BufferAttribute',
providers: [
{
provide: NgtAttribute,
useExisting: NgtFloat64BufferAttribute,
},
],
})
export class NgtFloat64BufferAttribute extends NgtAttribute<THREE.Float64BufferAttribute> {
static ngAcceptInputType_args:
| ConstructorParameters<typeof THREE.Float64BufferAttribute>
| undefined;

@Input() set args(
v: ConstructorParameters<typeof THREE.Float64BufferAttribute>
) {
this.attributeArgs = v;
}

attributeType = THREE.Float64BufferAttribute;
}

@NgModule({
declarations: [NgtFloat64BufferAttribute],
exports: [NgtFloat64BufferAttribute],
})
export class NgtFloat64BufferAttributeModule {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// GENERATED
import { NgtAttribute } from '@angular-three/core';
import { NgModule, Directive, Input } from '@angular/core';
import * as THREE from 'three';

@Directive({
selector: 'ngt-instanced-buffer-attribute',
exportAs: 'ngtInstancedBufferAttribute',
providers: [
{
provide: NgtAttribute,
useExisting: NgtInstancedBufferAttribute,
},
],
})
export class NgtInstancedBufferAttribute extends NgtAttribute<THREE.InstancedBufferAttribute> {
static ngAcceptInputType_args:
| ConstructorParameters<typeof THREE.InstancedBufferAttribute>
| undefined;

@Input() set args(
v: ConstructorParameters<typeof THREE.InstancedBufferAttribute>
) {
this.attributeArgs = v;
}

attributeType = THREE.InstancedBufferAttribute;
}

@NgModule({
declarations: [NgtInstancedBufferAttribute],
exports: [NgtInstancedBufferAttribute],
})
export class NgtInstancedBufferAttributeModule {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// GENERATED
import { NgtAttribute } from '@angular-three/core';
import { NgModule, Directive, Input } from '@angular/core';
import * as THREE from 'three';

@Directive({
selector: 'ngt-int16-buffer-attribute',
exportAs: 'ngtInt16BufferAttribute',
providers: [
{
provide: NgtAttribute,
useExisting: NgtInt16BufferAttribute,
},
],
})
export class NgtInt16BufferAttribute extends NgtAttribute<THREE.Int16BufferAttribute> {
static ngAcceptInputType_args:
| ConstructorParameters<typeof THREE.Int16BufferAttribute>
| undefined;

@Input() set args(
v: ConstructorParameters<typeof THREE.Int16BufferAttribute>
) {
this.attributeArgs = v;
}

attributeType = THREE.Int16BufferAttribute;
}

@NgModule({
declarations: [NgtInt16BufferAttribute],
exports: [NgtInt16BufferAttribute],
})
export class NgtInt16BufferAttributeModule {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// GENERATED
import { NgtAttribute } from '@angular-three/core';
import { NgModule, Directive, Input } from '@angular/core';
import * as THREE from 'three';

@Directive({
selector: 'ngt-int32-buffer-attribute',
exportAs: 'ngtInt32BufferAttribute',
providers: [
{
provide: NgtAttribute,
useExisting: NgtInt32BufferAttribute,
},
],
})
export class NgtInt32BufferAttribute extends NgtAttribute<THREE.Int32BufferAttribute> {
static ngAcceptInputType_args:
| ConstructorParameters<typeof THREE.Int32BufferAttribute>
| undefined;

@Input() set args(
v: ConstructorParameters<typeof THREE.Int32BufferAttribute>
) {
this.attributeArgs = v;
}

attributeType = THREE.Int32BufferAttribute;
}

@NgModule({
declarations: [NgtInt32BufferAttribute],
exports: [NgtInt32BufferAttribute],
})
export class NgtInt32BufferAttributeModule {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// GENERATED
import { NgtAttribute } from '@angular-three/core';
import { NgModule, Directive, Input } from '@angular/core';
import * as THREE from 'three';

@Directive({
selector: 'ngt-int8-buffer-attribute',
exportAs: 'ngtInt8BufferAttribute',
providers: [
{
provide: NgtAttribute,
useExisting: NgtInt8BufferAttribute,
},
],
})
export class NgtInt8BufferAttribute extends NgtAttribute<THREE.Int8BufferAttribute> {
static ngAcceptInputType_args:
| ConstructorParameters<typeof THREE.Int8BufferAttribute>
| undefined;

@Input() set args(
v: ConstructorParameters<typeof THREE.Int8BufferAttribute>
) {
this.attributeArgs = v;
}

attributeType = THREE.Int8BufferAttribute;
}

@NgModule({
declarations: [NgtInt8BufferAttribute],
exports: [NgtInt8BufferAttribute],
})
export class NgtInt8BufferAttributeModule {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// GENERATED
import { NgtAttribute } from '@angular-three/core';
import { NgModule, Directive, Input } from '@angular/core';
import * as THREE from 'three';

@Directive({
selector: 'ngt-interleaved-buffer-attribute',
exportAs: 'ngtInterleavedBufferAttribute',
providers: [
{
provide: NgtAttribute,
useExisting: NgtInterleavedBufferAttribute,
},
],
})
export class NgtInterleavedBufferAttribute extends NgtAttribute<THREE.InterleavedBufferAttribute> {
static ngAcceptInputType_args:
| ConstructorParameters<typeof THREE.InterleavedBufferAttribute>
| undefined;

@Input() set args(
v: ConstructorParameters<typeof THREE.InterleavedBufferAttribute>
) {
this.attributeArgs = v;
}

attributeType = THREE.InterleavedBufferAttribute;
}

@NgModule({
declarations: [NgtInterleavedBufferAttribute],
exports: [NgtInterleavedBufferAttribute],
})
export class NgtInterleavedBufferAttributeModule {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// GENERATED
import { NgtAttribute } from '@angular-three/core';
import { NgModule, Directive, Input } from '@angular/core';
import * as THREE from 'three';

@Directive({
selector: 'ngt-uint16-buffer-attribute',
exportAs: 'ngtUint16BufferAttribute',
providers: [
{
provide: NgtAttribute,
useExisting: NgtUint16BufferAttribute,
},
],
})
export class NgtUint16BufferAttribute extends NgtAttribute<THREE.Uint16BufferAttribute> {
static ngAcceptInputType_args:
| ConstructorParameters<typeof THREE.Uint16BufferAttribute>
| undefined;

@Input() set args(
v: ConstructorParameters<typeof THREE.Uint16BufferAttribute>
) {
this.attributeArgs = v;
}

attributeType = THREE.Uint16BufferAttribute;
}

@NgModule({
declarations: [NgtUint16BufferAttribute],
exports: [NgtUint16BufferAttribute],
})
export class NgtUint16BufferAttributeModule {}
Loading

0 comments on commit 7b8b82e

Please sign in to comment.