@react-spring/konva
Advanced tools
Comparing version 0.0.1-alpha.0 to 0.0.1-alpha.1
@@ -1,2 +0,2 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@react-spring/core"),animated$1=require("@react-spring/animated"),shared=require("@react-spring/shared"),stringInterpolation=require("@react-spring/shared/stringInterpolation"),colorNames=_interopDefault(require("@react-spring/shared/colors"));const elements=["Arc","Arrow","Circle","Ellipse","FastLayer","Group","Image","Label","Layer","Line","Path","Rect","RegularPolygon","Ring","Shape","Sprite","Star","Tag","Text","TextPath","Transformer","Wedge"],animated=animated$1.withExtend(animated$1.createAnimatedComponent).extend(elements);shared.Globals.assign({defaultElement:"Group",createStringInterpolator:stringInterpolation.createStringInterpolator,colorNames:colorNames,applyAnimatedValues(e,r){if(!e.nodeType)return!1;e._applyProps(e,r)}}),Object.keys(core).forEach(function(e){Object.defineProperty(exports,e,{enumerable:!0,get:function(){return core[e]}})}),Object.defineProperty(exports,"Globals",{enumerable:!0,get:function(){return core.Globals}}),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return core.a}}),Object.defineProperty(exports,"animated",{enumerable:!0,get:function(){return core.animated}}); | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var shared=require("@react-spring/shared"),stringInterpolation=require("@react-spring/shared/stringInterpolation"),colorNames=_interopDefault(require("@react-spring/shared/colors")),animated$1=require("@react-spring/animated"),core=require("@react-spring/core");shared.Globals.assign({defaultElement:"Group",createStringInterpolator:stringInterpolation.createStringInterpolator,colorNames:colorNames,applyAnimatedValues(e,r){if(!e.nodeType)return!1;e._applyProps(e,r)}});const elements=["Arc","Arrow","Circle","Ellipse","FastLayer","Group","Image","Label","Layer","Line","Path","Rect","RegularPolygon","Ring","Shape","Sprite","Star","Tag","Text","TextPath","Transformer","Wedge"],animated=animated$1.withExtend(animated$1.createAnimatedComponent).extend(elements);Object.keys(core).forEach(function(e){Object.defineProperty(exports,e,{enumerable:!0,get:function(){return core[e]}})}),Object.defineProperty(exports,"Globals",{enumerable:!0,get:function(){return shared.Globals}}),exports.a=animated,exports.animated=animated; | ||
//# sourceMappingURL=index.cjs.js.map |
@@ -0,9 +1,33 @@ | ||
import { AssignableKeys, SpringValue } from '@react-spring/shared'; | ||
export { Globals } from '@react-spring/shared'; | ||
import * as konva from 'react-konva'; | ||
import { WithExtend } from '@react-spring/animated'; | ||
import { ElementType, ForwardRefExoticComponent, ComponentPropsWithRef, CSSProperties } from 'react'; | ||
// FILE GENERATED BY `rollup-plugin-dts@0.15.1` | ||
// https://github.com/Swatinem/rollup-plugin-dts | ||
declare type KonvaExports = typeof konva; | ||
declare type KonvaElements = { | ||
[P in keyof KonvaExports]: KonvaExports[P] extends ElementType ? P : never; | ||
}[keyof KonvaExports]; | ||
declare type KonvaComponents = { | ||
[Tag in KonvaElements]: AnimatedComponent<KonvaExports[Tag]>; | ||
}; | ||
declare type CreateAnimated = <T extends ElementType>(wrappedComponent: T) => AnimatedComponent<T>; | ||
declare const animated: WithExtend<CreateAnimated & KonvaComponents>; | ||
/** The type of an `animated()` component */ | ||
declare type AnimatedComponent<T extends ElementType> = ForwardRefExoticComponent<AnimatedProps<ComponentPropsWithRef<T>>>; | ||
/** The props of an `animated()` component */ | ||
declare type AnimatedProps<Props extends object> = { | ||
[P in keyof Props]: (P extends 'ref' ? Props[P] : AnimatedProp<Props[P]>); | ||
}; | ||
declare type AnimatedProp<T> = [T, T] extends [infer T, infer DT] ? [DT] extends [never] ? never : DT extends void ? undefined : DT extends object ? [AssignableKeys<DT, CSSProperties>] extends [never] ? DT extends ReadonlyArray<any> ? AnimatedStyles<DT> : DT : AnimatedStyle<T> : DT | AnimatedLeaf<T> : never; | ||
declare type AnimatedStyles<T extends ReadonlyArray<any>> = { | ||
[P in keyof T]: [T[P]] extends [infer DT] ? DT extends object ? [AssignableKeys<DT, CSSProperties>] extends [never] ? DT extends ReadonlyArray<any> ? AnimatedStyles<DT> : DT : { | ||
[P in keyof DT]: AnimatedProp<DT[P]>; | ||
} : DT : never; | ||
}; | ||
declare type AnimatedStyle<T> = [T, T] extends [infer T, infer DT] ? DT extends void ? undefined : [DT] extends [never] ? never : DT extends object ? { | ||
[P in keyof DT]: AnimatedStyle<DT[P]>; | ||
} : DT | AnimatedLeaf<T> : never; | ||
declare type AnimatedLeaf<T> = [T] extends [object] ? never : SpringValue<Exclude<T, object | void>>; | ||
export * from '@react-spring/core'; | ||
export { AnimatedComponent, AnimatedProps, Globals, a, animated } from '@react-spring/core'; | ||
import 'react-konva'; | ||
import '@react-spring/shared'; | ||
import 'react'; | ||
export { AnimatedComponent, AnimatedProps, animated as a, animated }; |
@@ -1,2 +0,2 @@ | ||
export*from"@react-spring/core";export{Globals,a,animated}from"@react-spring/core";import{withExtend as r,createAnimatedComponent as e}from"@react-spring/animated";import{Globals as t}from"@react-spring/shared";import{createStringInterpolator as o}from"@react-spring/shared/stringInterpolation";import p from"@react-spring/shared/colors";r(e).extend(["Arc","Arrow","Circle","Ellipse","FastLayer","Group","Image","Label","Layer","Line","Path","Rect","RegularPolygon","Ring","Shape","Sprite","Star","Tag","Text","TextPath","Transformer","Wedge"]);t.assign({defaultElement:"Group",createStringInterpolator:o,colorNames:p,applyAnimatedValues(r,e){if(!r.nodeType)return!1;r._applyProps(r,e)}}); | ||
import{Globals as r}from"@react-spring/shared";export{Globals}from"@react-spring/shared";import{createStringInterpolator as e}from"@react-spring/shared/stringInterpolation";import a from"@react-spring/shared/colors";import{withExtend as t,createAnimatedComponent as o}from"@react-spring/animated";export*from"@react-spring/core";r.assign({defaultElement:"Group",createStringInterpolator:e,colorNames:a,applyAnimatedValues(r,e){if(!r.nodeType)return!1;r._applyProps(r,e)}});const p=t(o).extend(["Arc","Arrow","Circle","Ellipse","FastLayer","Group","Image","Label","Layer","Line","Path","Rect","RegularPolygon","Ring","Shape","Sprite","Star","Tag","Text","TextPath","Transformer","Wedge"]);export{p as a,p as animated}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@react-spring/konva", | ||
"version": "0.0.1-alpha.0", | ||
"version": "0.0.1-alpha.1", | ||
"description": "Cross-platform animation engine", | ||
@@ -16,3 +16,3 @@ "keywords": [ | ||
], | ||
"homepage": "https://github.com/react-spring/react-spring/packages/konva#readme", | ||
"homepage": "https://github.com/react-spring/react-spring/tree/master/targets/konva#readme", | ||
"bugs": { | ||
@@ -31,11 +31,11 @@ "url": "https://github.com/react-spring/react-spring/issues" | ||
"@babel/runtime": "^7.3.1", | ||
"@react-spring/animated": "^0.0.1-alpha.0", | ||
"@react-spring/core": "^0.0.1-alpha.0", | ||
"@react-spring/shared": "^0.0.1-alpha.0", | ||
"@react-spring/animated": "^0.0.1-alpha.1", | ||
"@react-spring/core": "^0.0.1-alpha.1", | ||
"@react-spring/shared": "^0.0.1-alpha.1", | ||
"tslib": "^1.9.3" | ||
}, | ||
"peerDependencies": { | ||
"konva": ">= 2.6.0", | ||
"react": ">= 16.8.0", | ||
"react-konva": ">= 16.8.0" | ||
"konva": ">=2.6", | ||
"react": ">=16.8", | ||
"react-konva": ">=16.8" | ||
}, | ||
@@ -42,0 +42,0 @@ "publishConfig": { |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6470
42
2