This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { FlowRouter } from 'meteor/ostrio:flow-router-extra'; | |
import { FastRender } from 'meteor/staringatlights:fast-render'; | |
import { InjectData } from 'meteor/staringatlights:inject-data'; | |
import { Random } from 'meteor/random'; | |
import { renderToString } from 'react-dom/server'; | |
import React from 'react'; | |
import Radium from 'radium'; | |
import { Helmet } from 'react-helmet'; | |
import Loadable from 'react-loadable'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { compose } from 'recompose' | |
import { connect } from 'react-redux' | |
import { withNavigationFocus } from 'react-navigation' | |
import { graphql } from 'react-apollo' | |
import { isFunction } from 'lodash' | |
import type { State } from '../../../redux/rootReducer' | |
export const defaultOptions = polling => ({ | |
pollInterval: polling ? DEFAULT_POLL_INTERVAL : 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
// TODO: use proper vector library | |
import type { Plane, Ray, Vector3 } from '../../types' | |
export const UP = { | |
x: 0, | |
y: 1, | |
z: 0, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
import { ARKit } from 'react-native-arkit' | |
import React, { Component } from 'react' | |
import type { Vector3 } from '../../../types' | |
import { center, diff, distance, add } from '../../../libs/math/vectorUtils' | |
type Props = { | |
from: Vector3, | |
to: Vector3, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ARKit } from 'react-native-arkit' | |
import React from 'react' | |
import type { Point3D } from '../../../types' | |
import { length, center, diff, distance } from '../libs/vectorUtils' | |
const PI_2 = Math.PI / 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
import { ARKit } from '@panter/react-native-arkit' | |
import { branch, compose, lifecycle, renderComponent } from 'recompose' | |
import { unzip } from 'react-native-zip-archive' | |
import RNFetchBlob from 'react-native-fetch-blob' | |
import React from 'react' | |
const getModelPath = modelId => ( | |
`${RNFetchBlob.fs.dirs.CacheDir}/models/${modelId}/` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
import { css } from 'styled-components' | |
export default { | |
colors: { | |
greyDark: '#515151', | |
greySemiDark: '#7D7D7D', | |
grey: '#A4A4A4', | |
greySemiLight: '#C6C6C6', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tabSize: 2 | |
storybook: true | |
generateComponentTests: false | |
generateContainerTests: false | |
modulesPath: src/modules | |
snakeCaseFileNames: false | |
templates: | |
- name: 'storybook' | |
text: | | |
// @flow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import withTheme from '/lib/withTheme'; | |
import { withUploader } from '@panter/manul-files'; | |
import { useDeps, composeAll } from 'mantra-core'; | |
import BoxedImage from '/client/modules/core/components/boxed_image'; | |
import { connectField } from 'uniforms'; | |
import DropZone from 'react-dropzone'; | |
import { Styles } from './TextField'; | |
import formCol from './FormCol'; | |
import _ from 'lodash'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Scene } from 'react-three'; | |
import THREE from 'three'; | |
import _ from 'lodash'; | |
/** | |
we extend the react-three-scene with support for more properties: | |
- onOrbit: will be called when orbitcontrols are changed. It will pass the current camera | |
- onClickRay: will be called on a click on the scene with arguments: | |
event, the current ray from the camera to the mousePosition and the mousePosition | |
- onMouseMoveRay: same as above, but on every mousemove | |
**/ |
NewerOlder