Comparing version 9.2.3 to 9.3.0
@@ -19,3 +19,3 @@ "use strict"; | ||
_global: exports.glob, | ||
version: '9.2.3', | ||
version: '9.3.0', | ||
isBrowser: detectBrowser(), | ||
@@ -22,0 +22,0 @@ isUnminified: /param/.test(function (param) { }.toString()), |
@@ -42,2 +42,3 @@ // the purpose of that file is very stupid | ||
export const isDragReady: () => boolean; | ||
export const getAngle: (angle: number) => number; | ||
@@ -50,12 +51,9 @@ export type Vector2d = import('./types.js').Vector2d; | ||
export type KonvaEventObject< | ||
EventType | ||
> = import('./Node.js').KonvaEventObject<EventType>; | ||
export type KonvaEventObject<EventType> = | ||
import('./Node.js').KonvaEventObject<EventType>; | ||
export type KonvaPointerEvent = import('./PointerEvents.js').KonvaPointerEvent; | ||
export type KonvaEventListener< | ||
This, | ||
EventType | ||
> = import('./Node.js').KonvaEventListener<This, EventType>; | ||
export type KonvaEventListener<This, EventType> = | ||
import('./Node.js').KonvaEventListener<This, EventType>; | ||
@@ -137,3 +135,4 @@ export const Container: typeof import('./Container.js').Container; | ||
export type RegularPolygon = import('./shapes/RegularPolygon.js').RegularPolygon; | ||
export type RegularPolygonConfig = import('./shapes/RegularPolygon.js').RegularPolygonConfig; | ||
export type RegularPolygonConfig = | ||
import('./shapes/RegularPolygon.js').RegularPolygonConfig; | ||
export const Ring: typeof import('./shapes/Ring.js').Ring; | ||
@@ -156,3 +155,4 @@ export type Ring = import('./shapes/Ring.js').Ring; | ||
export type Transformer = import('./shapes/Transformer.js').Transformer; | ||
export type TransformerConfig = import('./shapes/Transformer.js').TransformerConfig; | ||
export type TransformerConfig = | ||
import('./shapes/Transformer.js').TransformerConfig; | ||
export const Wedge: typeof import('./shapes/Wedge.js').Wedge; | ||
@@ -159,0 +159,0 @@ export type Wedge = import('./shapes/Wedge.js').Wedge; |
@@ -1000,3 +1000,3 @@ "use strict"; | ||
callback === null || callback === void 0 ? void 0 : callback(blob); | ||
}); | ||
}, config === null || config === void 0 ? void 0 : config.mimeType, config === null || config === void 0 ? void 0 : config.quality); | ||
} | ||
@@ -1003,0 +1003,0 @@ catch (err) { |
@@ -13,2 +13,3 @@ import { Transform } from '../Util.js'; | ||
rotateEnabled?: boolean; | ||
rotateLineVisible?: boolean; | ||
rotationSnaps?: Array<number>; | ||
@@ -100,2 +101,3 @@ rotationSnapTolerance?: number; | ||
rotateEnabled: GetSet<boolean, this>; | ||
rotateLineVisible: GetSet<boolean, this>; | ||
rotateAnchorOffset: GetSet<number, this>; | ||
@@ -102,0 +104,0 @@ rotationSnapTolerance: GetSet<number, this>; |
@@ -415,3 +415,3 @@ "use strict"; | ||
ctx.moveTo(shape.width() / 2, -padding); | ||
if (tr.rotateEnabled()) { | ||
if (tr.rotateEnabled() && tr.rotateLineVisible()) { | ||
ctx.lineTo(shape.width() / 2, -tr.rotateAnchorOffset() * Util_1.Util._sign(shape.height()) - padding); | ||
@@ -964,2 +964,3 @@ } | ||
Factory_1.Factory.addGetterSetter(Transformer, 'rotateEnabled', true); | ||
Factory_1.Factory.addGetterSetter(Transformer, 'rotateLineVisible', true); | ||
Factory_1.Factory.addGetterSetter(Transformer, 'rotationSnaps', []); | ||
@@ -966,0 +967,0 @@ Factory_1.Factory.addGetterSetter(Transformer, 'rotateAnchorOffset', 50, (0, Validators_1.getNumberValidator)()); |
{ | ||
"name": "konva", | ||
"version": "9.2.3", | ||
"version": "9.3.0", | ||
"author": "Anton Lavrenov", | ||
@@ -63,4 +63,4 @@ "files": [ | ||
"@parcel/transformer-image": "2.10.1", | ||
"@size-limit/preset-big-lib": "^10.0.1", | ||
"@types/mocha": "^10.0.3", | ||
"@size-limit/preset-big-lib": "^11.0.1", | ||
"@types/mocha": "^10.0.6", | ||
"canvas": "^2.11.2", | ||
@@ -84,3 +84,3 @@ "chai": "4.3.10", | ||
"process": "^0.11.10", | ||
"rollup": "^4.2.0", | ||
"rollup": "^4.9.1", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
@@ -90,6 +90,6 @@ "rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-typescript2": "^0.36.0", | ||
"size-limit": "^10.0.1", | ||
"size-limit": "^11.0.1", | ||
"ts-mocha": "^10.0.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.2.2" | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.3.3" | ||
}, | ||
@@ -96,0 +96,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1394487
32496