Skip to content

Commit

Permalink
Types
Browse files Browse the repository at this point in the history
  • Loading branch information
kalyanov committed Sep 27, 2023
1 parent d38a9b5 commit d475d03
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ if (typeof window !== 'undefined') {
}

export { GltfPlugin };
export * from './types';
2 changes: 1 addition & 1 deletion src/types/events.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Id, ModelOptions, PoiOptions } from '../types/plugin';
import type { Id, ModelOptions, PoiOptions } from './plugin';

export type PoiGeoJsonProperties = PoiOptions & {
/**
Expand Down
3 changes: 3 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './events';
export * from './plugin';
export * from './realtyScene';
10 changes: 6 additions & 4 deletions src/types/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ export type Id = string | number;

export type ColorModelString = `${'rgb' | 'hsl'}(${string})`;
export type HexColorString = `#${string}`;

/**
* Color represantation can be rgb(), hsl(), or hex value
* Color representation can be rgb(), hsl(), or hex value
*/
export type ColorRepresentation = ColorModelString | HexColorString | number;

Expand All @@ -20,7 +21,7 @@ export interface AmbientLightOptions {
* Numeric value of the light's strength/intensity.
* @default 3
*/
intencity: number;
intencity: number; // TODO: MAJOR. Исправить опечатку в следующей мажорной версии, должно быть intensity
}

/**
Expand Down Expand Up @@ -64,6 +65,7 @@ export interface ControlOptions {
* Options for the highlight color of hovered models
*/
export interface HightlightOptions {
// TODO: MAJOR. Переименовать в HighlightOptions в следующем мажорном релизе
/**
* Color of the hover
* @default '#ffffff'
Expand All @@ -73,7 +75,7 @@ export interface HightlightOptions {
* Intensity of the color on the hover in the range from 0 to 1
* @default 0.0
*/
intencity: number; // TODO: Исправить опечатку в следующей мажорной версии, должно быть intensity
intencity: number; // TODO: MAJOR. Исправить опечатку в следующей мажорной версии, должно быть intensity
}

/**
Expand Down Expand Up @@ -118,7 +120,7 @@ export interface PluginOptions {
/**
* Settings of the highlighted models
*/
hoverHighlight?: HightlightOptions; // TODO: MAJOR. Переименовать в HighlightOptions в следующем мажорном релизе
hoverHighlight?: HightlightOptions;
}

/**
Expand Down

0 comments on commit d475d03

Please sign in to comment.