propertyLedger.ts 1.9 KB

1234567891011121314151617181920212223242526
  1. import { ComponentClass } from 'react';
  2. import { InputPropertyTabComponent } from './properties/inputNodePropertyComponent';
  3. import { IPropertyComponentProps } from './properties/propertyComponentProps';
  4. import { TransformPropertyTabComponent } from './properties/transformNodePropertyComponent';
  5. import { GradientPropertyTabComponent } from './properties/gradientNodePropertyComponent';
  6. import { LightPropertyTabComponent } from './properties/lightPropertyTabComponent';
  7. import { LightInformationPropertyTabComponent } from './properties/lightInformationPropertyTabComponent';
  8. import { TexturePropertyTabComponent } from './properties/texturePropertyTabComponent';
  9. import { TrigonometryPropertyTabComponent } from './properties/trigonometryNodePropertyComponent';
  10. export class PropertyLedger {
  11. public static RegisteredControls: {[key: string] : ComponentClass<IPropertyComponentProps>} = {};
  12. }
  13. PropertyLedger.RegisteredControls["TransformBlock"] = TransformPropertyTabComponent;
  14. PropertyLedger.RegisteredControls["InputBlock"] = InputPropertyTabComponent;
  15. PropertyLedger.RegisteredControls["GradientBlock"] = GradientPropertyTabComponent;
  16. PropertyLedger.RegisteredControls["LightBlock"] = LightPropertyTabComponent;
  17. PropertyLedger.RegisteredControls["LightInformationBlock"] = LightInformationPropertyTabComponent;
  18. PropertyLedger.RegisteredControls["TextureBlock"] = TexturePropertyTabComponent;
  19. PropertyLedger.RegisteredControls["ReflectionTextureBlock"] = TexturePropertyTabComponent;
  20. PropertyLedger.RegisteredControls["ReflectionBlock"] = TexturePropertyTabComponent;
  21. PropertyLedger.RegisteredControls["RefractionBlock"] = TexturePropertyTabComponent;
  22. PropertyLedger.RegisteredControls["CurrentScreenBlock"] = TexturePropertyTabComponent;
  23. PropertyLedger.RegisteredControls["ParticleTextureBlock"] = TexturePropertyTabComponent;
  24. PropertyLedger.RegisteredControls["TrigonometryBlock"] = TrigonometryPropertyTabComponent;