Skip to content

Commit

Permalink
[_refactored] observables into own folder
Browse files Browse the repository at this point in the history
Reviewers: O3 Material JavaScript platform reviewers, #material_motion, O2 Material Motion, featherless

Reviewed By: #material_motion, O2 Material Motion, featherless

Tags: #material_motion

Differential Revision: http://codereview.cc/D2494
  • Loading branch information
appsforartists committed Jan 12, 2017
1 parent 6682bae commit 6e0b7e0
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/streams/src/MotionRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
import {
MotionObservable,
State,
} from './MotionObservable';
} from './observables/MotionObservable';

import {
MotionObserver,
Expand Down
7 changes: 1 addition & 6 deletions packages/streams/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,7 @@

export * from './types';
export * from './properties';

export * from './IndefiniteSubject';
export { default as IndefiniteSubject } from './IndefiniteSubject';

export * from './MotionObservable';
export { default as MotionObservable } from './MotionObservable';
export * from './observables';

export * from './MotionRuntime';
export { default as MotionRuntime } from './MotionRuntime';
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
MotionObserverOrNext,
NextOperation,
StateChannel,
} from './types';
} from '../types';

export enum State {
AT_REST = 0,
Expand Down
21 changes: 21 additions & 0 deletions packages/streams/src/observables/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/** @license
* Copyright 2016 - present The Material Motion Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/

export * from './IndefiniteSubject';
export { default as IndefiniteSubject } from './IndefiniteSubject';

export * from './MotionObservable';
export { default as MotionObservable } from './MotionObservable';
2 changes: 1 addition & 1 deletion packages/streams/src/properties/ReactiveProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {

import {
IndefiniteSubject,
} from '../IndefiniteSubject';
} from '../observables/IndefiniteSubject';

import {
ScopedReadable,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ require('chai').use(
require('sinon-chai')
);

import MotionObservable from '../../MotionObservable';
import MotionObservable from '../../observables/MotionObservable';
import scrollSource from '../scrollSource';

describe('scrollSource',
Expand Down

0 comments on commit 6e0b7e0

Please sign in to comment.