var CryptoApi=function(t){var e={};function s(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,s),r.l=!0,r.exports}return s.m=t,s.c=e,s.d=function(t,e,n){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)s.d(n,r,function(e){return t[e]}.bind(null,r));return n},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=29)}([function(t,e,s){"use strict";function n(t,e){return t<<e|t>>>32-e|0}function r(t,e){return t>>>e|t<<32-e|0}function a(t,e,s){return 32===s?e:32<s?a(e,t,s-32):4294967295&(t>>>s|e<<32-s)}function o(t,e,s){return 32===s?t:32<s?o(e,t,s-32):4294967295&(e>>>s|t<<32-s)}s.d(e,"a",function(){return n}),s.d(e,"b",function(){return r}),s.d(e,"d",function(){return o}),s.d(e,"c",function(){return a})},function(t,e,s){"use strict";function n(t){for(var e="",s=0,n=t.length;s<n;s++){var r=t.charCodeAt(s);r<128?e+=String.fromCharCode(r):(r<2048?e+=String.fromCharCode(192|r>>6):(r<55296||57344<=r?e+=String.fromCharCode(224|r>>12):(s++,r=65536+((1023&r)<<10|1023&t.charCodeAt(s)),e+=String.fromCharCode(240|r>>18),e+=String.fromCharCode(128|r>>12&63)),e+=String.fromCharCode(128|r>>6&63)),e+=String.fromCharCode(128|63&r))}return e}s.d(e,"a",function(){return n})},function(t,e,s){"use strict";function n(t){for(var e="",s=0,n=t.length;s<n;s++)e+=(t.charCodeAt(s)<16?"0":"")+t.charCodeAt(s).toString(16);return e}s.d(e,"a",function(){return n})},function(t,e,s){"use strict";var n=s(4);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var s=0;s<e.length;s++){var n=e[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h=function(){function t(e){var s;return function(e,s){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),(s=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,o(t).call(this,e))).unitOrder=1,s.blockUnits=[],s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(t,n.a),function(t,e,s){e&&a(t.prototype,e)}(t,[{key:"process",value:function(){for(;this.state.message.length>=this.blockSizeInBytes;){this.blockUnits=[];for(var t=0;t<this.blockSizeInBytes;t+=4)this.blockUnits.push(this.state.message.charCodeAt(t)<<24|this.state.message.charCodeAt(t+1)<<16|this.state.message.charCodeAt(t+2)<<8|this.state.message.charCodeAt(t+3));this.state.message=this.state.message.substr(this.blockSizeInBytes),this.processBlock(this.blockUnits)}}},{key:"processBlock",value:function(t){}},{key:"getStateHash",value:function(t){t=t||this.state.hash.length;for(var e="",s=0;s<t;s++)e+=String.fromCharCode(this.state.hash[s]>>24&255)+String.fromCharCode(this.state.hash[s]>>16&255)+String.fromCharCode(this.state.hash[s]>>8&255)+String.fromCharCode(255&this.state.hash[s]);return e}},{key:"addLengthBits",value:function(){this.state.message+="\0\0\0"+String.fromCharCode(this.state.length>>29&255)+String.fromCharCode(this.state.length>>21&255)+String.fromCharCode(this.state.length>>13&255)+String.fromCharCode(this.state.length>>5&255)+String.fromCharCode(this.state.length<<3&255)}}]),t}();e.a=h},function(t,e,s){"use strict";function n(t,e){for(var s=0;s<e.length;s++){var n=e[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.unitSize=4,this.unitOrder=0,this.blockSize=16,this.blockSizeInBytes=this.blockSize*this.unitSize,this.options=e||{},this.reset()}return function(t,e,s){e&&n(t.prototype,e)}(t,[{key:"reset",value:function(){this.state={},this.state.message="",this.state.length=0}},{key:"getState",value:function(){return JSON.parse(JSON.stringify(this.state))}},{key:"setState",value:function(t){this.state=t}},{key:"update",value:function(t){this.state.message+=t,this.state.length+=t.length,this.process()}},{key:"process",value:function(){}},{key:"finalize",value:function(){return""}},{key:"getStateHash",value:function(t){return""}},{key:"addPaddingPKCS7",value:function(t){this.state.message+=new Array(t+1).join(String.fromCharCode(t))}},{key:"addPaddingISO7816",value:function(t){this.state.message+=""+new Array(t).join("\0")}},{key:"addPaddingZero",value:function(t){this.state.message+=new Array(t+1).join("\0")}}]),t}();e.a=r},function(t,e,s){"use strict";var n=s(4);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var s=0;s<e.length;s++){var n=e[s];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var h=function(){function t(e){var s;return function(e,s){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),(s=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,o(t).call(this,e))).blockUnits=[],s}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(t,n.a),function(t,e,s){e&&a(t.prototype,e)}(t,[{key:"process",value:function(){for(;this.state.message.length>=this.blockSizeInBytes;){this.blockUnits=[];for(var t=0;t<this.blockSizeInBytes;t+=4)this.blockUnits.push(this.state.message.charCodeAt(t)|this.state.message.charCodeAt(t+1)<<8|this.state.message.charCodeAt(t+2)<<16|this.state.message.charCodeAt(t+3)<<24);this.state.message=this.state.message.substr(this.blockSizeInBytes),this.processBlock(this.blockUnits)}}},{key:"processBlock",value:function(t){}},{key:"getStateHash",value:function(t){t=t||this.state.hash.length;for(var e="",s=0;s<t;s++)e+=String.fromCharCode(255&this.state.hash[s])+String.fromCharCode(this.state.hash[s]>>8&255)+String.fromCharCode(this.state.hash[s]>>16&255)+String.fromCharCode(this.state.hash[s]>>24&255);return e}},{key:"addLengthBits",value:function(){this.state.message+=String.fromCharCode(this.state.length<<3&255)+String.fromCharCode(this.state.length>>5&255)+String.fromCharCode(this.state.length>>13&255)+String.fromCharCode(this.state.length>>21&255)+String.fromCharCode(this.state.length>>29&255)+"\0\0\0"}}]
luckysheet-plugins.rar
需积分: 0 105 浏览量
更新于2023-09-26
收藏 254KB RAR 举报
《Luckysheet 插件详解及其资源应用》
Luckysheet 是一款强大的在线电子表格组件,它具有丰富的功能,能够满足用户在数据编辑、展示和分析方面的需求。在这个名为 "luckysheet-plugins.rar" 的压缩包中,包含了 Luckysheet 的部分资源文件,特别是插件(plugins)的相关内容。这些资源对于深入理解和定制 Luckysheet 的功能至关重要。下面将对 Luckysheet 插件及其资源文件进行详细解析。
我们要了解什么是 Luckysheet 插件。在软件开发中,插件是一种可扩展性的机制,允许开发者通过添加额外的功能模块来增强原有软件的能力。对于 Luckysheet 而言,插件是实现特定功能或定制化需求的关键元素。例如,有的插件可能用于数据过滤、图表生成,或者提供自定义的交互方式等。
压缩包中的 "luckysheet-plugins_need" 文件夹很可能包含了 Luckysheet 运行所必需的一些插件代码和配置文件。这些文件可能包括 JavaScript 或 CSS 文件,它们在 Luckysheet 初始化时会被加载,以扩展其核心功能。具体来说,JavaScript 文件通常包含插件的逻辑代码,而 CSS 文件则负责定义插件的样式。
深入研究 Luckysheet 插件的开发,我们需要关注以下几个关键点:
1. **插件注册**:在 Luckysheet 中,每个插件都需要进行注册,这通常是通过调用 `luckysheet.plugins.register` 方法完成的。注册时,需要提供插件的名称、处理函数以及相关的配置项。
2. **事件监听**:插件往往需要监听 Luckysheet 的某些事件,比如单元格的点击、数据的改变等,通过这些事件,插件可以适时地执行相应的操作。
3. **自定义功能**:插件的核心是其提供的自定义功能。这可能是新的工具栏按钮、菜单项,或者是与用户交互的新方式。开发者可以根据需求编写相应的处理函数,实现特定的功能。
4. **配置项**:每个插件可能有自己的配置项,允许用户根据实际需求调整插件的行为。这些配置项通常可以在初始化 Luckysheet 时通过 `options` 参数传递。
5. **插件更新与维护**:随着 Luckysheet 的版本升级,插件也需要保持更新以确保兼容性。开发者应关注 Luckysheet 的更新日志,并及时调整插件代码以适应新版本。
通过分析和理解 "luckysheet-plugins.rar" 中的资源文件,开发者可以更深入地掌握 Luckysheet 的工作原理,为自己的项目添加更多个性化的功能,提升用户体验。同时,理解并利用这些资源文件也有助于优化性能,减少不必要的计算和渲染,提高应用的整体效率。
Luckysheet 插件系统提供了强大的灵活性和可扩展性,使得开发者能够轻松地定制自己的在线电子表格解决方案。通过深入研究和实践,我们可以充分利用这些插件资源,让 Luckysheet 成为我们数据管理、分析的得力助手。