選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

1 行
2.3 KiB

  1. {"ast":null,"code":"import { __decorate } from \"tslib\";\nimport { range, boolean } from './decorators/';\n\nvar Options =\n/** @class */\nfunction () {\n function Options(config) {\n var _this = this;\n\n if (config === void 0) {\n config = {};\n }\n /**\n * Momentum reduction damping factor, a float value between `(0, 1)`.\n * The lower the value is, the more smooth the scrolling will be\n * (also the more paint frames).\n */\n\n\n this.damping = 0.1;\n /**\n * Minimal size for scrollbar thumbs.\n */\n\n this.thumbMinSize = 20;\n /**\n * Render every frame in integer pixel values\n * set to `true` to improve scrolling performance.\n */\n\n this.renderByPixels = true;\n /**\n * Keep scrollbar tracks visible\n */\n\n this.alwaysShowTracks = false;\n /**\n * Set to `true` to allow outer scrollbars continue scrolling\n * when current scrollbar reaches edge.\n */\n\n this.continuousScrolling = true;\n /**\n * Delegate wheel events and touch events to the given element.\n * By default, the container element is used.\n * This option will be useful for dealing with fixed elements.\n */\n\n this.delegateTo = null;\n /**\n * Options for plugins. Syntax:\n * plugins[pluginName] = pluginOptions: any\n */\n\n this.plugins = {};\n Object.keys(config).forEach(function (prop) {\n _this[prop] = config[prop];\n });\n }\n\n Object.defineProperty(Options.prototype, \"wheelEventTarget\", {\n get: function get() {\n return this.delegateTo;\n },\n set: function set(el) {\n console.warn('[smooth-scrollbar]: `options.wheelEventTarget` is deprecated and will be removed in the future, use `options.delegateTo` instead.');\n this.delegateTo = el;\n },\n enumerable: true,\n configurable: true\n });\n\n __decorate([range(0, 1)], Options.prototype, \"damping\", void 0);\n\n __decorate([range(0, Infinity)], Options.prototype, \"thumbMinSize\", void 0);\n\n __decorate([boolean], Options.prototype, \"renderByPixels\", void 0);\n\n __decorate([boolean], Options.prototype, \"alwaysShowTracks\", void 0);\n\n __decorate([boolean], Options.prototype, \"continuousScrolling\", void 0);\n\n return Options;\n}();\n\nexport { Options };","map":null,"metadata":{},"sourceType":"module"}