Commit 1951db0f authored by chris's avatar chris
Browse files

add full screen files

parent 0da6252e
import React from 'react';
import { isEmpty } from 'lodash';
import { injectable } from 'inversify';
import Tools from '../lib/Tools';
export default
@injectable()
class FullScreen extends Tools {
title = 'full screen';
icon = 'image';
name = 'FullScreen';
get run() {
return () => true;
}
select = (state, activeViewId) => {};
get enable() {
return state => {};
}
renderTool(view) {
if (isEmpty(view)) return null;
return this._isDisplayed ? <span> full</span> : null;
}
}
import Service from '../Service';
import FullScreen from './FullScreen';
class FullScreenService extends Service {
name = 'FullScreenService';
register() {
this.container.bind('FullScreen').to(FullScreen);
}
}
export default FullScreenService;
import { injectable, inject } from 'inversify';
import ToolGroup from '../../lib/ToolGroup';
@injectable()
class FullScreenTool extends ToolGroup {
tools = [];
constructor(@inject('FullScreen') fullScreen) {
super();
this.tools = [fullScreen];
}
}
export default FullScreenTool;
import Service from '../../Service';
import FullScreenTool from './FullScreenTool';
class FullScreenToolGroupService extends Service {
register() {
this.container.bind('FullScreenTool').to(FullScreenTool);
}
}
export default FullScreenToolGroupService;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment