90 | );
91 | }
92 | }
93 |
--------------------------------------------------------------------------------
/src/ui/OverlayVariables.tsx:
--------------------------------------------------------------------------------
1 | /** @license
2 | * Copyright 2016 Google Inc. All Rights Reserved.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 | * use this file except in compliance with the License. You may obtain a copy
6 | * of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 | * License for the specific language governing permissions and limitations
14 | * under the License.
15 | */
16 |
17 | import * as React from 'react';
18 |
19 | import { StringVariable } from '../core/variables/StringVariable';
20 | import { Variable } from '../core/variables/Variable';
21 | import { ControlType, CSS } from '../lib/Constants';
22 | import { ColorSwatchControl } from './controls/ColorSwatchControl';
23 | import { IControlUpdateProps } from './controls/controlProps';
24 | import { DropdownControl } from './controls/DropdownControl';
25 | import { RadioListControl } from './controls/RadioListControl';
26 | import { SliderControl } from './controls/SliderControl';
27 | import { SwitchControl } from './controls/SwitchControl';
28 | import { TextFieldControl } from './controls/TextFieldControl';
29 |
30 | /**
31 | * Interface for a React class that requires an array of Variables.
32 | * @interface
33 | * @extends IControlUpdateProps
34 | */
35 | export interface IOverlayVariableProps extends IControlUpdateProps {
36 | variables: Variable[];
37 | }
38 |
39 | /**
40 | * Renders a list of remixer controls for each variable.
41 | *
42 | * @class
43 | * @extends React.Component
44 | */
45 | export class OverlayVariables extends React.Component {
46 |
47 | /** @override */
48 | render() {
49 | return (
50 |