mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 05:14:58 +08:00
better production detection, fix version injection
This commit is contained in:
@@ -86,18 +86,10 @@ export const glob: any =
|
||||
? self
|
||||
: {};
|
||||
|
||||
export namespace Konva2 {
|
||||
export const version = '@@version';
|
||||
}
|
||||
|
||||
export const Konva = {
|
||||
version: '@@version',
|
||||
isBrowser: detectBrowser(),
|
||||
isUnminified: /comment/.test(
|
||||
function() {
|
||||
/* comment */
|
||||
}.toString()
|
||||
),
|
||||
isUnminified: /param/.test(function(param) {}.toString()),
|
||||
dblClickWindow: 400,
|
||||
getAngle(angle) {
|
||||
return Konva.angleDeg ? angle * PI_OVER_180 : angle;
|
||||
|
||||
2
src/index-types.d.ts
vendored
2
src/index-types.d.ts
vendored
@@ -36,6 +36,8 @@ declare namespace Konva {
|
||||
export const isDragging: () => boolean;
|
||||
export const isDragReady: () => boolean;
|
||||
|
||||
export type Vector2d = import('./types').Vector2d;
|
||||
|
||||
export const Node: typeof import('./Node').Node;
|
||||
export type Node = import('./Node').Node;
|
||||
export type NodeConfig = import('./Node').NodeConfig;
|
||||
|
||||
Reference in New Issue
Block a user