965d23be50
- splitted clos-slide and clos-overlay. - Synchronize to server, more little changes
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import { Displayable } from 'app/shared/models/base/displayable';
|
|
import { IdentifiableProjectorElement } from 'app/shared/models/core/projector';
|
|
import { SlideOptions } from './slide-options';
|
|
|
|
export function isProjectorElementBuildDeskriptor(obj: any): obj is ProjectorElementBuildDeskriptor {
|
|
const deskriptor = <ProjectorElementBuildDeskriptor>obj;
|
|
return (
|
|
deskriptor.slideOptions !== undefined &&
|
|
deskriptor.getBasicProjectorElement !== undefined &&
|
|
deskriptor.getTitle !== undefined
|
|
);
|
|
}
|
|
|
|
export interface ProjectorElementBuildDeskriptor {
|
|
slideOptions: SlideOptions;
|
|
projectionDefaultName?: string;
|
|
getBasicProjectorElement(): IdentifiableProjectorElement;
|
|
|
|
/**
|
|
* The title to show in the projection dialog
|
|
*/
|
|
getTitle(): string;
|
|
}
|
|
|
|
export function isProjectable(obj: any): obj is Projectable {
|
|
return (<Projectable>obj).getSlide !== undefined;
|
|
}
|
|
|
|
/**
|
|
* Interface for every model, that should be projectable.
|
|
*/
|
|
export interface Projectable extends Displayable {
|
|
getSlide(): ProjectorElementBuildDeskriptor;
|
|
}
|