Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* Copyright (c) 2015 NAVER Corp.
* egjs projects are licensed under the MIT license
*/
import Flicking from "@egjs/flicking";
// is to through pass Flicking's utils & constants to plugins
const utils = Flicking.utils;
const consts = utils.extend(utils.extend({}, Flicking.consts), {
DIRECTION_NONE: Flicking.DIRECTION_NONE,
DIRECTION_LEFT: Flicking.DIRECTION_LEFT,
DIRECTION_RIGHT: Flicking.DIRECTION_RIGHT,
DIRECTION_UP: Flicking.DIRECTION_UP,
DIRECTION_DOWN: Flicking.DIRECTION_DOWN,
DIRECTION_HORIZONTAL: Flicking.DIRECTION_HORIZONTAL,
DIRECTION_VERTICAL: Flicking.DIRECTION_VERTICAL,
DIRECTION_ALL: Flicking.DIRECTION_ALL
});
/**
* Base class to generate flicking plugin
* Lifecycle: componentWillMount --> componentMount --> componentDidMount --> componentWillUnmount
* @ko Flicking ํ๋ฌ๊ทธ์ธ์ ์์ฑํ๊ธฐ ์ํ ๊ธฐ๋ณธ ํด๋์ค
* @alias eg.Flicking.plugin
* @private
*/
export default class Plugin {
/**
* Constructor
* @param {Object} options Option object ์ต์
๊ฐ์ฒด
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
/**
* Copyright (c) 2015 NAVER Corp.
* egjs projects are licensed under the MIT license
*/
var utils = Flicking.utils;
var consts = utils.extend(utils.extend({}, Flicking.consts), {
DIRECTION_NONE: Flicking.DIRECTION_NONE,
DIRECTION_LEFT: Flicking.DIRECTION_LEFT,
DIRECTION_RIGHT: Flicking.DIRECTION_RIGHT,
DIRECTION_UP: Flicking.DIRECTION_UP,
DIRECTION_DOWN: Flicking.DIRECTION_DOWN,
DIRECTION_HORIZONTAL: Flicking.DIRECTION_HORIZONTAL,
DIRECTION_VERTICAL: Flicking.DIRECTION_VERTICAL,
DIRECTION_ALL: Flicking.DIRECTION_ALL
});
/**
* Base class to generate flicking plugin
* Lifecycle: componentWillMount --> componentMount --> componentDidMount --> componentWillUnmount
* @ko Flicking ํ๋ฌ๊ทธ์ธ์ ์์ฑํ๊ธฐ ์ํ ๊ธฐ๋ณธ ํด๋์ค
* @alias eg.Flicking.plugin
* @private
*/
var Plugin =
/*#__PURE__*/
function () {
var Plugin =
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
/**
* Copyright (c) 2015 NAVER Corp.
* egjs projects are licensed under the MIT license
*/
var utils = Flicking.utils;
var consts = utils.extend(utils.extend({}, Flicking.consts), {
DIRECTION_NONE: Flicking.DIRECTION_NONE,
DIRECTION_LEFT: Flicking.DIRECTION_LEFT,
DIRECTION_RIGHT: Flicking.DIRECTION_RIGHT,
DIRECTION_UP: Flicking.DIRECTION_UP,
DIRECTION_DOWN: Flicking.DIRECTION_DOWN,
DIRECTION_HORIZONTAL: Flicking.DIRECTION_HORIZONTAL,
DIRECTION_VERTICAL: Flicking.DIRECTION_VERTICAL,
DIRECTION_ALL: Flicking.DIRECTION_ALL
});
/**
* Base class to generate flicking plugin
* Lifecycle: componentWillMount --> componentMount --> componentDidMount --> componentWillUnmount
* @ko Flicking ํ๋ฌ๊ทธ์ธ์ ์์ฑํ๊ธฐ ์ํ ๊ธฐ๋ณธ ํด๋์ค
* @alias eg.Flicking.plugin
* @private
*/
var Plugin =
/*#__PURE__*/
function () {
var Plugin =
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
/**
* Copyright (c) 2015 NAVER Corp.
* egjs projects are licensed under the MIT license
*/
var utils = Flicking.utils;
var consts = utils.extend(utils.extend({}, Flicking.consts), {
DIRECTION_NONE: Flicking.DIRECTION_NONE,
DIRECTION_LEFT: Flicking.DIRECTION_LEFT,
DIRECTION_RIGHT: Flicking.DIRECTION_RIGHT,
DIRECTION_UP: Flicking.DIRECTION_UP,
DIRECTION_DOWN: Flicking.DIRECTION_DOWN,
DIRECTION_HORIZONTAL: Flicking.DIRECTION_HORIZONTAL,
DIRECTION_VERTICAL: Flicking.DIRECTION_VERTICAL,
DIRECTION_ALL: Flicking.DIRECTION_ALL
});
/**
* Base class to generate flicking plugin
* Lifecycle: componentWillMount --> componentMount --> componentDidMount --> componentWillUnmount
* @ko Flicking ํ๋ฌ๊ทธ์ธ์ ์์ฑํ๊ธฐ ์ํ ๊ธฐ๋ณธ ํด๋์ค
* @alias eg.Flicking.plugin
* @private
*/
var Plugin =
/*#__PURE__*/
function () {
var Plugin =