Skip to content

Commit

Permalink
Updates with storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewJSchoen committed Aug 27, 2021
1 parent 67928c7 commit 22b52fa
Show file tree
Hide file tree
Showing 39 changed files with 11,301 additions and 12,521 deletions.
54 changes: 0 additions & 54 deletions .storybook/index.css

This file was deleted.

12 changes: 8 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import './index.css'

export const parameters = {
layout: 'fullscreen',
}
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}
7 changes: 5 additions & 2 deletions dist/Util/TransformControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ var _SceneStore = _interopRequireDefault(require("../SceneStore"));

var _lodash = _interopRequireDefault(require("lodash.pick"));

var _excluded = ["children"],
_excluded2 = ["camera", "itemKey", "highlightColor"];

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
Expand All @@ -47,14 +50,14 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r

var TransformControls = function TransformControls(_ref) {
var children = _ref.children,
props = _objectWithoutProperties(_ref, ["children"]);
props = _objectWithoutProperties(_ref, _excluded);

var transformOnlyPropNames = ['enabled', 'axis', 'mode', 'translationSnap', 'rotationSnap', 'scaleSnap', 'space', 'size', 'showX', 'showY', 'showZ'];

var camera = props.camera,
itemKey = props.itemKey,
highlightColor = props.highlightColor,
rest = _objectWithoutProperties(props, ["camera", "itemKey", "highlightColor"]);
rest = _objectWithoutProperties(props, _excluded2);

var transforms = (0, _SceneStore.default)((0, _react.useCallback)(function (state) {
var transforms = [];
Expand Down
Loading

0 comments on commit 22b52fa

Please sign in to comment.