@egjs/flicking
Advanced tools
Comparing version 4.2.2 to 4.2.3
declare class FlickingError extends Error { | ||
message: string; | ||
code: number; | ||
@@ -4,0 +3,0 @@ constructor(message: string, code: number); |
@@ -32,1 +32,2 @@ import Flicking, { FlickingOptions } from "./Flicking"; | ||
export declare const circulateIndex: (index: number, max: number) => number; | ||
export declare const setPrototypeOf: (o: any, proto: object) => any; |
{ | ||
"name": "@egjs/flicking", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"description": "Everyday 30 million people experience. It's reliable, flexible and extendable carousel.", | ||
@@ -107,3 +107,3 @@ "main": "dist/flicking.js", | ||
"husky": "^1.3.1", | ||
"jsdoc-to-mdx": "^1.0.3", | ||
"jsdoc-to-mdx": "^1.0.5", | ||
"karma": "^3.1.4", | ||
@@ -110,0 +110,0 @@ "karma-chai": "^0.1.0", |
@@ -6,2 +6,4 @@ /* | ||
import { setPrototypeOf } from "../utils"; | ||
/** | ||
@@ -26,2 +28,4 @@ * Special type of known error that {@link Flicking} throws. | ||
class FlickingError extends Error { | ||
public code: number; | ||
/** | ||
@@ -31,8 +35,8 @@ * @param message Error message<ko>에러 메시지</ko> | ||
*/ | ||
public constructor( | ||
public message: string, | ||
public code: number) { | ||
public constructor(message: string, code: number) { | ||
super(message); | ||
Object.setPrototypeOf(this, FlickingError.prototype); | ||
setPrototypeOf(this, FlickingError.prototype); | ||
this.name = "FlickingError"; | ||
this.code = code; | ||
} | ||
@@ -39,0 +43,0 @@ } |
@@ -1107,6 +1107,6 @@ /* | ||
renderer.updatePanelSize(); | ||
await renderer.render(); | ||
camera.updateAlignPos(); | ||
camera.updateRange(); | ||
camera.updateAnchors(); | ||
await renderer.render(); | ||
@@ -1113,0 +1113,0 @@ if (control.animating) { |
@@ -268,1 +268,6 @@ /* | ||
}; | ||
export const setPrototypeOf = Object.setPrototypeOf || ((obj, proto) => { | ||
obj.__proto__ = proto; | ||
return obj; | ||
}); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3263096
33154