update slowlyo/owl-admin v3.9.6
parent
916b6bf05d
commit
01f0cc3a67
|
|
@ -3401,16 +3401,16 @@
|
|||
},
|
||||
{
|
||||
"name": "slowlyo/owl-admin",
|
||||
"version": "v3.9.0",
|
||||
"version": "v3.9.6",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/slowlyo/owl-admin.git",
|
||||
"reference": "760513c1db8d3df96d9e1897791d53d7f79dcd5f"
|
||||
"reference": "29d7f7bda800d62c895a0b2fcd5ccc58872948cd"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/slowlyo/owl-admin/zipball/760513c1db8d3df96d9e1897791d53d7f79dcd5f",
|
||||
"reference": "760513c1db8d3df96d9e1897791d53d7f79dcd5f",
|
||||
"url": "https://api.github.com/repos/slowlyo/owl-admin/zipball/29d7f7bda800d62c895a0b2fcd5ccc58872948cd",
|
||||
"reference": "29d7f7bda800d62c895a0b2fcd5ccc58872948cd",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
|
@ -3462,10 +3462,10 @@
|
|||
"email": "slowlyo_email@qq.com",
|
||||
"forum": "https://github.com/orgs/owl-admin/discussions",
|
||||
"issues": "https://github.com/Slowlyo/owl-admin/issues",
|
||||
"source": "https://github.com/slowlyo/owl-admin/tree/v3.9.0",
|
||||
"source": "https://github.com/slowlyo/owl-admin/tree/v3.9.6",
|
||||
"wiki": "https://doc.owladmin.com/"
|
||||
},
|
||||
"time": "2024-07-07T16:34:23+00:00"
|
||||
"time": "2024-08-06T01:26:22+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/clock",
|
||||
|
|
|
|||
|
|
@ -1,16 +1,14 @@
|
|||
<?php
|
||||
|
||||
use App\Http\Middleware\AdminPermission;
|
||||
|
||||
return [
|
||||
// 应用名称
|
||||
'name' => 'Owl Admin',
|
||||
'name' => env('ADMIN_APP_NAME', 'Owl Admin'),
|
||||
|
||||
// 应用 logo
|
||||
'logo' => '/admin-assets/logo.png',
|
||||
'logo' => env('ADMIN_LOGO', '/admin-assets/logo.png'),
|
||||
|
||||
// 默认头像
|
||||
'default_avatar' => '/admin-assets/default-avatar.png',
|
||||
'default_avatar' => env('ADMIN_DEFAULT_AVATAR', '/admin-assets/default-avatar.png'),
|
||||
|
||||
// 应用安装目录
|
||||
'directory' => app_path('Admin'),
|
||||
|
|
@ -20,8 +18,8 @@ return [
|
|||
|
||||
// 应用路由
|
||||
'route' => [
|
||||
'prefix' => 'admin-api',
|
||||
'domain' => null,
|
||||
'prefix' => env('ADMIN_ROUTE_PREFIX', 'admin-api'),
|
||||
'domain' => env('ADMIN_DOMAIN'),
|
||||
'namespace' => 'App\\Admin\\Controllers',
|
||||
'middleware' => ['admin'],
|
||||
// 不包含额外路由, 配置后, 不会追加新增/详情/编辑页面路由
|
||||
|
|
@ -34,11 +32,11 @@ return [
|
|||
// 是否开启验证码
|
||||
'login_captcha' => env('ADMIN_LOGIN_CAPTCHA', true),
|
||||
// 是否开启认证
|
||||
'enable' => true,
|
||||
'enable' => env('ADMIN_ENABLE_AUTH', true),
|
||||
// 是否开启鉴权
|
||||
'permission' => true,
|
||||
'permission' => env('ADMIN_ENABLE_PERMISSION', true),
|
||||
// token 有效期 (分钟), 为空则不会过期
|
||||
'token_expiration' => null,
|
||||
'token_expiration' => env('ADMIN_TOKEN_EXPIRATION'),
|
||||
'guard' => 'admin',
|
||||
'guards' => [
|
||||
'admin' => [
|
||||
|
|
@ -70,10 +68,10 @@ return [
|
|||
'https' => env('ADMIN_HTTPS', false),
|
||||
|
||||
// 是否显示 [开发者工具]
|
||||
'show_development_tools' => env('ADMIN_SHOW_DEVELOPMENT_TOOLS', false),
|
||||
'show_development_tools' => env('ADMIN_SHOW_DEVELOPMENT_TOOLS', true),
|
||||
|
||||
// 是否显示 [权限] 功能中的自动生成按钮
|
||||
'show_auto_generate_permission_button' => env('ADMIN_SHOW_AUTO_GENERATE_PERMISSION_BUTTON', false),
|
||||
'show_auto_generate_permission_button' => env('ADMIN_SHOW_AUTO_GENERATE_PERMISSION_BUTTON', true),
|
||||
|
||||
// 扩展
|
||||
'extension' => [
|
||||
|
|
@ -82,18 +80,18 @@ return [
|
|||
|
||||
'layout' => [
|
||||
// 浏览器标题, 功能名称使用 %title% 代替
|
||||
'title' => '%title% | OwlAdmin',
|
||||
'title' => env('ADMIN_SITE_TITLE', '%title% | OwlAdmin'),
|
||||
'header' => [
|
||||
// 是否显示 [刷新] 按钮
|
||||
'refresh' => true,
|
||||
'refresh' => env('ADMIN_HEADER_REFRESH', true),
|
||||
// 是否显示 [暗色模式] 按钮
|
||||
'dark' => true,
|
||||
'dark' => env('ADMIN_HEADER_DARK', true),
|
||||
// 是否显示 [全屏] 按钮
|
||||
'full_screen' => true,
|
||||
'full_screen' => env('ADMIN_HEADER_FULL_SCREEN', true),
|
||||
// 是否显示 [多语言] 按钮
|
||||
'locale_toggle' => false,
|
||||
'locale_toggle' => env('ADMIN_HEADER_LOCALE_TOGGLE', true),
|
||||
// 是否显示 [主题配置] 按钮
|
||||
'theme_config' => true,
|
||||
'theme_config' => env('ADMIN_HEADER_THEME_CONFIG', true),
|
||||
],
|
||||
// 多语言选项
|
||||
'locale_options' => [
|
||||
|
|
@ -115,7 +113,7 @@ return [
|
|||
],
|
||||
|
||||
'database' => [
|
||||
'connection' => env('DB_CONNECTION'),
|
||||
'connection' => env('ADMIN_DB_CONNECTION') ?? env('DB_CONNECTION', 'mysql'),
|
||||
],
|
||||
|
||||
'models' => [
|
||||
|
|
|
|||
|
|
@ -62,12 +62,14 @@ return [
|
|||
'unauthorized' => 'Unauthorized',
|
||||
'user_disabled' => 'The user has been disabled',
|
||||
'preview' => 'Preview',
|
||||
'more' => 'More',
|
||||
|
||||
'code_generators' => [
|
||||
'remark1' => 'For more parameters, please refer to',
|
||||
'remark2' => 'Database Migration',
|
||||
'remark3' => 'Multiple parameters are separated by English commas',
|
||||
'table_name' => 'Table Name',
|
||||
'new_table_name' => 'New Table Name',
|
||||
'model_name' => 'Model',
|
||||
'controller_name' => 'Controller',
|
||||
'service_name' => 'Service',
|
||||
|
|
@ -80,6 +82,7 @@ return [
|
|||
'create_controller' => 'Create Controller',
|
||||
'create_service' => 'Create Service',
|
||||
'app_title' => 'App Title',
|
||||
'new_app_title' => 'New App Title',
|
||||
'column_name' => 'Column Name',
|
||||
'type' => 'Type',
|
||||
'extra_params' => 'Extra Params',
|
||||
|
|
@ -121,7 +124,6 @@ return [
|
|||
'property_name' => 'Property Name',
|
||||
'value' => 'Value',
|
||||
'dialog_form' => 'Dialog Form',
|
||||
'dialog_size' => 'Dialog Size',
|
||||
'copy_record' => 'Copy Record',
|
||||
'copy_record_description' => 'You can copy and share to <a href="https://github.com/Slowlyo/owl-admin/discussions/categories/%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90%E8%AE%B0%E5%BD%95" target="_blank">Github</a>',
|
||||
'import_record' => 'Import Record',
|
||||
|
|
@ -134,7 +136,7 @@ return [
|
|||
'input_config_name' => 'Please Input Config Name',
|
||||
'same_name_tips' => 'Configurations with the same name will be overwritten',
|
||||
'save_path_dir' => 'Primary application',
|
||||
'save_path_select' => 'Select Directory',
|
||||
'save_path_select' => 'Toggle Directory',
|
||||
'save_path_select_tips' => 'Project root directory or plugin root directory can be selected',
|
||||
'save_path_label_prefix' => 'Plugins -> ',
|
||||
'clear_code' => 'Clear Code',
|
||||
|
|
@ -157,6 +159,12 @@ return [
|
|||
'filter_input_name' => 'Parameter Name',
|
||||
'filter_input_label' => 'Filter Label',
|
||||
'filter_component' => 'Filter Component',
|
||||
'page' => 'Page',
|
||||
'dialog' => 'Dialog',
|
||||
'drawer' => 'Drawer',
|
||||
'dialog_size' => 'Dialog Size',
|
||||
'drawer_size' => 'Drawer Size',
|
||||
'clone_record' => 'Clone Record',
|
||||
],
|
||||
|
||||
'admin_users' => 'Admin Users',
|
||||
|
|
|
|||
|
|
@ -62,12 +62,14 @@ return [
|
|||
'unauthorized' => '无权访问',
|
||||
'user_disabled' => '用户已被禁用',
|
||||
'preview' => '预览',
|
||||
'more' => '更多',
|
||||
|
||||
'code_generators' => [
|
||||
'remark1' => '额外参数请参考',
|
||||
'remark2' => '数据库迁移',
|
||||
'remark3' => '多个参数使用英文逗号分割',
|
||||
'table_name' => '表名',
|
||||
'new_table_name' => '新表名',
|
||||
'model_name' => '模型',
|
||||
'controller_name' => '控制器',
|
||||
'service_name' => 'Service',
|
||||
|
|
@ -80,6 +82,7 @@ return [
|
|||
'create_controller' => '创建控制器',
|
||||
'create_service' => '创建Service',
|
||||
'app_title' => '功能名称',
|
||||
'new_app_title' => '新功能名称',
|
||||
'column_name' => '字段名',
|
||||
'type' => '类型',
|
||||
'extra_params' => '额外参数',
|
||||
|
|
@ -121,7 +124,6 @@ return [
|
|||
'property_name' => '属性名称',
|
||||
'value' => '值',
|
||||
'dialog_form' => '弹窗表单',
|
||||
'dialog_size' => '弹窗大小',
|
||||
'copy_record' => '复制记录',
|
||||
'copy_record_description' => '你可以复制后分享到 <a href="https://github.com/Slowlyo/owl-admin/discussions/categories/%E4%BB%A3%E7%A0%81%E7%94%9F%E6%88%90%E8%AE%B0%E5%BD%95" target="_blank">Github</a>',
|
||||
'import_record' => '导入记录',
|
||||
|
|
@ -134,7 +136,7 @@ return [
|
|||
'input_config_name' => '请填写配置名称',
|
||||
'same_name_tips' => '相同名称的配置将会被覆盖',
|
||||
'save_path_dir' => '主应用',
|
||||
'save_path_select' => '选择目录',
|
||||
'save_path_select' => '切换目录',
|
||||
'save_path_select_tips' => '可选择项目根目录或插件根目录',
|
||||
'save_path_label_prefix' => '插件 -> ',
|
||||
'clear_code' => '清除代码',
|
||||
|
|
@ -157,6 +159,12 @@ return [
|
|||
'filter_input_name' => '参数名称',
|
||||
'filter_input_label' => '筛选项 Label',
|
||||
'filter_component' => '筛选组件',
|
||||
'page' => '页面',
|
||||
'dialog' => '弹窗',
|
||||
'drawer' => '抽屉',
|
||||
'dialog_size' => '弹窗大小',
|
||||
'drawer_size' => '抽屉大小',
|
||||
'clone_record' => '克隆记录',
|
||||
],
|
||||
|
||||
'admin_users' => '管理员',
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
const e={};export{e as default};
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
import{B as b,c as B,b as T,m as E,a as S,e as z,f as x,r as L,g as N}from"./index-D0zDG80U.js";function r(t,n){this._bmap=t,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=n,this._projection=new BMap.MercatorProjection}r.prototype.type="bmap";r.prototype.dimensions=["lng","lat"];r.prototype.setZoom=function(t){this._zoom=t};r.prototype.setCenter=function(t){this._center=this._projection.lngLatToPoint(new BMap.Point(t[0],t[1]))};r.prototype.setMapOffset=function(t){this._mapOffset=t};r.prototype.getBMap=function(){return this._bmap};r.prototype.dataToPoint=function(t){var n=new BMap.Point(t[0],t[1]),e=this._bmap.pointToOverlayPixel(n),a=this._mapOffset;return[e.x-a[0],e.y-a[1]]};r.prototype.pointToData=function(t){var n=this._mapOffset;return t=this._bmap.overlayPixelToPoint({x:t[0]+n[0],y:t[1]+n[1]}),[t.lng,t.lat]};r.prototype.getViewRect=function(){var t=this._api;return new b(0,0,t.getWidth(),t.getHeight())};r.prototype.getRoamTransform=function(){return B()};r.prototype.prepareCustoms=function(){var t=this.getViewRect();return{coordSys:{type:"bmap",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:T(this.dataToPoint,this),size:T(V,this)}}};r.prototype.convertToPixel=function(t,n,e){return this.dataToPoint(e)};r.prototype.convertFromPixel=function(t,n,e){return this.pointToData(e)};function V(t,n){return n=n||[0,0],E([0,1],function(e){var a=n[e],o=t[e]/2,f=[],l=[];return f[e]=a-o,l[e]=a+o,f[1-e]=l[1-e]=n[1-e],Math.abs(this.dataToPoint(f)[e]-this.dataToPoint(l)[e])},this)}var _;r.dimensions=r.prototype.dimensions;function H(){function t(n){this._root=n}return t.prototype=new BMap.Overlay,t.prototype.initialize=function(n){return n.getPanes().labelPane.appendChild(this._root),this._root},t.prototype.draw=function(){},t}r.create=function(t,n){var e,a=n.getDom();return t.eachComponent("bmap",function(o){var f=n.getZr().painter,l=f.getViewportRoot();if(typeof BMap>"u")throw new Error("BMap api is not loaded");if(_=_||H(),e)throw new Error("Only one bmap component can exist");var i;if(!o.__bmap){var p=a.querySelector(".ec-extension-bmap");p&&(l.style.left="0px",l.style.top="0px",a.removeChild(p)),p=document.createElement("div"),p.className="ec-extension-bmap",p.style.cssText="position:absolute;width:100%;height:100%",a.appendChild(p);var s=o.get("mapOptions");s&&(s=S(s),delete s.mapType),i=o.__bmap=new BMap.Map(p,s);var d=new _(l);i.addOverlay(d),f.getViewportRootOffset=function(){return{offsetLeft:0,offsetTop:0}}}i=o.__bmap;var m=o.get("center"),c=o.get("zoom");if(m&&c){var y=i.getCenter(),v=i.getZoom(),u=o.centerOrZoomChanged([y.lng,y.lat],v);if(u){var w=new BMap.Point(m[0],m[1]);i.centerAndZoom(w,c)}}e=new r(i,n),e.setMapOffset(o.__mapOffset||[0,0]),e.setZoom(c),e.setCenter(m),o.coordinateSystem=e}),t.eachSeries(function(o){o.get("coordinateSystem")==="bmap"&&(o.coordinateSystem=e)}),e&&[e]};function R(t,n){return t&&n&&t[0]===n[0]&&t[1]===n[1]}z({type:"bmap",getBMap:function(){return this.__bmap},setCenterAndZoom:function(t,n){this.option.center=t,this.option.zoom=n},centerOrZoomChanged:function(t,n){var e=this.option;return!(R(t,e.center)&&n===e.zoom)},defaultOption:{center:[104.114129,37.550339],zoom:5,mapStyle:{},mapStyleV2:{},mapOptions:{},roam:!1}});function Z(t){for(var n in t)if(t.hasOwnProperty(n))return!1;return!0}x({type:"bmap",render:function(t,n,e){var a=!0,o=t.getBMap(),f=e.getZr().painter.getViewportRoot(),l=t.coordinateSystem,i=function(w,D){if(!a){var O=f.parentNode.parentNode.parentNode,h=[-parseInt(O.style.left,10)||0,-parseInt(O.style.top,10)||0],g=f.style,C=h[0]+"px",P=h[1]+"px";g.left!==C&&(g.left=C),g.top!==P&&(g.top=P),l.setMapOffset(h),t.__mapOffset=h,e.dispatchAction({type:"bmapRoam",animation:{duration:0}})}};function p(){a||e.dispatchAction({type:"bmapRoam",animation:{duration:0}})}o.removeEventListener("moving",this._oldMoveHandler),o.removeEventListener("moveend",this._oldMoveHandler),o.removeEventListener("zoomend",this._oldZoomEndHandler),o.addEventListener("moving",i),o.addEventListener("moveend",i),o.addEventListener("zoomend",p),this._oldMoveHandler=i,this._oldZoomEndHandler=p;var s=t.get("roam");s&&s!=="scale"?o.enableDragging():o.disableDragging(),s&&s!=="move"?(o.enableScrollWheelZoom(),o.enableDoubleClickZoom(),o.enablePinchToZoom()):(o.disableScrollWheelZoom(),o.disableDoubleClickZoom(),o.disablePinchToZoom());var d=t.__mapStyle,m=t.get("mapStyle")||{},c=JSON.stringify(m);JSON.stringify(d)!==c&&(Z(m)||o.setMapStyle(S(m)),t.__mapStyle=JSON.parse(c));var y=t.__mapStyle2,v=t.get("mapStyleV2")||{},u=JSON.stringify(v);JSON.stringify(y)!==u&&(Z(v)||o.setMapStyleV2(S(v)),t.__mapStyle2=JSON.parse(u)),a=!1}});L("bmap",r);N({type:"bmapRoam",event:"bmapRoam",update:"updateLayout"},function(t,n){n.eachComponent("bmap",function(e){var a=e.getBMap(),o=a.getCenter();e.setCenterAndZoom([o.lng,o.lat],a.getZoom())})});var J="1.0.0";export{J as version};
|
||||
import{B as b,c as B,b as T,m as E,a as S,e as z,f as x,r as L,g as N}from"./index-BFaad-7o.js";function r(t,n){this._bmap=t,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=n,this._projection=new BMap.MercatorProjection}r.prototype.type="bmap";r.prototype.dimensions=["lng","lat"];r.prototype.setZoom=function(t){this._zoom=t};r.prototype.setCenter=function(t){this._center=this._projection.lngLatToPoint(new BMap.Point(t[0],t[1]))};r.prototype.setMapOffset=function(t){this._mapOffset=t};r.prototype.getBMap=function(){return this._bmap};r.prototype.dataToPoint=function(t){var n=new BMap.Point(t[0],t[1]),e=this._bmap.pointToOverlayPixel(n),a=this._mapOffset;return[e.x-a[0],e.y-a[1]]};r.prototype.pointToData=function(t){var n=this._mapOffset;return t=this._bmap.overlayPixelToPoint({x:t[0]+n[0],y:t[1]+n[1]}),[t.lng,t.lat]};r.prototype.getViewRect=function(){var t=this._api;return new b(0,0,t.getWidth(),t.getHeight())};r.prototype.getRoamTransform=function(){return B()};r.prototype.prepareCustoms=function(){var t=this.getViewRect();return{coordSys:{type:"bmap",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:T(this.dataToPoint,this),size:T(V,this)}}};r.prototype.convertToPixel=function(t,n,e){return this.dataToPoint(e)};r.prototype.convertFromPixel=function(t,n,e){return this.pointToData(e)};function V(t,n){return n=n||[0,0],E([0,1],function(e){var a=n[e],o=t[e]/2,f=[],l=[];return f[e]=a-o,l[e]=a+o,f[1-e]=l[1-e]=n[1-e],Math.abs(this.dataToPoint(f)[e]-this.dataToPoint(l)[e])},this)}var _;r.dimensions=r.prototype.dimensions;function H(){function t(n){this._root=n}return t.prototype=new BMap.Overlay,t.prototype.initialize=function(n){return n.getPanes().labelPane.appendChild(this._root),this._root},t.prototype.draw=function(){},t}r.create=function(t,n){var e,a=n.getDom();return t.eachComponent("bmap",function(o){var f=n.getZr().painter,l=f.getViewportRoot();if(typeof BMap>"u")throw new Error("BMap api is not loaded");if(_=_||H(),e)throw new Error("Only one bmap component can exist");var i;if(!o.__bmap){var p=a.querySelector(".ec-extension-bmap");p&&(l.style.left="0px",l.style.top="0px",a.removeChild(p)),p=document.createElement("div"),p.className="ec-extension-bmap",p.style.cssText="position:absolute;width:100%;height:100%",a.appendChild(p);var s=o.get("mapOptions");s&&(s=S(s),delete s.mapType),i=o.__bmap=new BMap.Map(p,s);var d=new _(l);i.addOverlay(d),f.getViewportRootOffset=function(){return{offsetLeft:0,offsetTop:0}}}i=o.__bmap;var m=o.get("center"),c=o.get("zoom");if(m&&c){var y=i.getCenter(),v=i.getZoom(),u=o.centerOrZoomChanged([y.lng,y.lat],v);if(u){var w=new BMap.Point(m[0],m[1]);i.centerAndZoom(w,c)}}e=new r(i,n),e.setMapOffset(o.__mapOffset||[0,0]),e.setZoom(c),e.setCenter(m),o.coordinateSystem=e}),t.eachSeries(function(o){o.get("coordinateSystem")==="bmap"&&(o.coordinateSystem=e)}),e&&[e]};function R(t,n){return t&&n&&t[0]===n[0]&&t[1]===n[1]}z({type:"bmap",getBMap:function(){return this.__bmap},setCenterAndZoom:function(t,n){this.option.center=t,this.option.zoom=n},centerOrZoomChanged:function(t,n){var e=this.option;return!(R(t,e.center)&&n===e.zoom)},defaultOption:{center:[104.114129,37.550339],zoom:5,mapStyle:{},mapStyleV2:{},mapOptions:{},roam:!1}});function Z(t){for(var n in t)if(t.hasOwnProperty(n))return!1;return!0}x({type:"bmap",render:function(t,n,e){var a=!0,o=t.getBMap(),f=e.getZr().painter.getViewportRoot(),l=t.coordinateSystem,i=function(w,D){if(!a){var O=f.parentNode.parentNode.parentNode,h=[-parseInt(O.style.left,10)||0,-parseInt(O.style.top,10)||0],g=f.style,C=h[0]+"px",P=h[1]+"px";g.left!==C&&(g.left=C),g.top!==P&&(g.top=P),l.setMapOffset(h),t.__mapOffset=h,e.dispatchAction({type:"bmapRoam",animation:{duration:0}})}};function p(){a||e.dispatchAction({type:"bmapRoam",animation:{duration:0}})}o.removeEventListener("moving",this._oldMoveHandler),o.removeEventListener("moveend",this._oldMoveHandler),o.removeEventListener("zoomend",this._oldZoomEndHandler),o.addEventListener("moving",i),o.addEventListener("moveend",i),o.addEventListener("zoomend",p),this._oldMoveHandler=i,this._oldZoomEndHandler=p;var s=t.get("roam");s&&s!=="scale"?o.enableDragging():o.disableDragging(),s&&s!=="move"?(o.enableScrollWheelZoom(),o.enableDoubleClickZoom(),o.enablePinchToZoom()):(o.disableScrollWheelZoom(),o.disableDoubleClickZoom(),o.disablePinchToZoom());var d=t.__mapStyle,m=t.get("mapStyle")||{},c=JSON.stringify(m);JSON.stringify(d)!==c&&(Z(m)||o.setMapStyle(S(m)),t.__mapStyle=JSON.parse(c));var y=t.__mapStyle2,v=t.get("mapStyleV2")||{},u=JSON.stringify(v);JSON.stringify(y)!==u&&(Z(v)||o.setMapStyleV2(S(v)),t.__mapStyle2=JSON.parse(u)),a=!1}});L("bmap",r);N({type:"bmapRoam",event:"bmapRoam",update:"updateLayout"},function(t,n){n.eachComponent("bmap",function(e){var a=e.getBMap(),o=a.getCenter();e.setCenterAndZoom([o.lng,o.lat],a.getZoom())})});var J="1.0.0";export{J as version};
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,4 +1,4 @@
|
|||
import{V as Rt,p as Lt}from"./index-BnEnDzpZ.js";import{h as Bt}from"./index-D0zDG80U.js";function Xt(J,rt){for(var $=0;$<rt.length;$++){const Y=rt[$];if(typeof Y!="string"&&!Array.isArray(Y)){for(const R in Y)if(R!=="default"&&!(R in J)){const j=Object.getOwnPropertyDescriptor(Y,R);j&&Object.defineProperty(J,R,j.get?j:{enumerable:!0,get:()=>Y[R]})}}}return Object.freeze(Object.defineProperty(J,Symbol.toStringTag,{value:"Module"}))}var Tt={exports:{}};const Yt=Rt(Bt);(function(J,rt){(function(Y,R){J.exports=R(Yt)})(self,function($){return(()=>{var Y={"./index.js":(L,K,mt)=>{mt.r(K);var O=mt("echarts/lib/echarts");O.extendSeriesModel({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(f){return{fill:f.get("color")}},visualDrawType:"fill",optionUpdated:function(){var f=this.option;f.gridSize=Math.max(Math.floor(f.gridSize),4)},getInitialData:function(f,o){var a=O.helper.createDimensions(f.data,{coordDimensions:["value"]}),l=new O.List(a,this);return l.initData(f.data),l},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),O.extendChartView({type:"wordCloud",render:function(f,o,a){var l=this.group;l.removeAll();var t=f.getData(),x=f.get("gridSize");f.layoutInstance.ondraw=function(d,r,T,P){var B=t.getItemModel(T),q=B.getModel("textStyle"),b=new O.graphic.Text({style:O.helper.createTextStyle(q),scaleX:1/P.info.mu,scaleY:1/P.info.mu,x:(P.gx+P.info.gw/2)*x,y:(P.gy+P.info.gh/2)*x,rotation:P.rot});b.setStyle({x:P.info.fillTextOffsetX,y:P.info.fillTextOffsetY+r*.5,text:d,verticalAlign:"middle",fill:t.getItemVisual(T,"style").fill,fontSize:r}),l.add(b),t.setItemGraphicEl(T,b),b.ensureState("emphasis").style=O.helper.createTextStyle(B.getModel(["emphasis","textStyle"]),{state:"emphasis"}),b.ensureState("blur").style=O.helper.createTextStyle(B.getModel(["blur","textStyle"]),{state:"blur"}),O.helper.enableHoverEmphasis(b,B.get(["emphasis","focus"]),B.get(["emphasis","blurScope"])),b.stateTransition={duration:f.get("animation")?f.get(["stateAnimation","duration"]):0,easing:f.get(["stateAnimation","easing"])},b.__highDownDispatcher=!0},this._model=f},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}});/*!
|
||||
import{V as Rt,o as Lt}from"./index-EprzR4DS.js";import{h as Bt}from"./index-BFaad-7o.js";function Xt(J,rt){for(var $=0;$<rt.length;$++){const Y=rt[$];if(typeof Y!="string"&&!Array.isArray(Y)){for(const R in Y)if(R!=="default"&&!(R in J)){const j=Object.getOwnPropertyDescriptor(Y,R);j&&Object.defineProperty(J,R,j.get?j:{enumerable:!0,get:()=>Y[R]})}}}return Object.freeze(Object.defineProperty(J,Symbol.toStringTag,{value:"Module"}))}var Tt={exports:{}};const Yt=Rt(Bt);(function(J,rt){(function(Y,R){J.exports=R(Yt)})(self,function($){return(()=>{var Y={"./index.js":(L,K,mt)=>{mt.r(K);var O=mt("echarts/lib/echarts");O.extendSeriesModel({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(f){return{fill:f.get("color")}},visualDrawType:"fill",optionUpdated:function(){var f=this.option;f.gridSize=Math.max(Math.floor(f.gridSize),4)},getInitialData:function(f,o){var a=O.helper.createDimensions(f.data,{coordDimensions:["value"]}),l=new O.List(a,this);return l.initData(f.data),l},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),O.extendChartView({type:"wordCloud",render:function(f,o,a){var l=this.group;l.removeAll();var t=f.getData(),x=f.get("gridSize");f.layoutInstance.ondraw=function(d,r,T,P){var B=t.getItemModel(T),q=B.getModel("textStyle"),b=new O.graphic.Text({style:O.helper.createTextStyle(q),scaleX:1/P.info.mu,scaleY:1/P.info.mu,x:(P.gx+P.info.gw/2)*x,y:(P.gy+P.info.gh/2)*x,rotation:P.rot});b.setStyle({x:P.info.fillTextOffsetX,y:P.info.fillTextOffsetY+r*.5,text:d,verticalAlign:"middle",fill:t.getItemVisual(T,"style").fill,fontSize:r}),l.add(b),t.setItemGraphicEl(T,b),b.ensureState("emphasis").style=O.helper.createTextStyle(B.getModel(["emphasis","textStyle"]),{state:"emphasis"}),b.ensureState("blur").style=O.helper.createTextStyle(B.getModel(["blur","textStyle"]),{state:"blur"}),O.helper.enableHoverEmphasis(b,B.get(["emphasis","focus"]),B.get(["emphasis","blurScope"])),b.stateTransition={duration:f.get("animation")?f.get(["stateAnimation","duration"]):0,easing:f.get(["stateAnimation","easing"])},b.__highDownDispatcher=!0},this._model=f},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}});/*!
|
||||
* wordcloud2.js
|
||||
* http://timdream.org/wordcloud2.js/
|
||||
*
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
import{l as e}from"./editor.main-RL1so8FJ.js";import"./index-BnEnDzpZ.js";var t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language};
|
||||
import{l as e}from"./editor.main-CA491D4P.js";import"./index-EprzR4DS.js";var t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:"+t.join("|")+"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language};
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
import{r as n,j as t,F as f,n as c}from"./index-BnEnDzpZ.js";function h({currentRoute:o}){const[a,s]=n.useState(!0),r=n.useRef(null),d=()=>{var i;const e=((i=document.querySelector(".ant-layout-content.overflow-hidden"))==null?void 0:i.offsetTop)||65;return`${window.innerHeight-e-75}px`},l=()=>{r.current.src=o.iframe_url};return n.useEffect(()=>{l();const e=()=>{r.current.style.height=d()};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[o.iframe_url]),t(f,{children:t(c,{spinning:a,style:{minHeight:a?"500px":""},children:t("iframe",{className:"owl-iframe",ref:r,title:"Iframe Page",width:"100%",style:{border:"none",order:0,boxSizing:"border-box",overflow:"hidden",minHeight:"500px"},onLoad:()=>{s(!1)}})})})}export{h as default};
|
||||
import{r as t,j as n,F as f,S as c}from"./index-EprzR4DS.js";function h({currentRoute:o}){const[a,s]=t.useState(!0),r=t.useRef(null),d=()=>{var i;const e=((i=document.querySelector(".ant-layout-content.overflow-hidden"))==null?void 0:i.offsetTop)||65;return`${window.innerHeight-e-75}px`},l=()=>{r.current.src=o.iframe_url};return t.useEffect(()=>{l();const e=()=>{r.current.style.height=d()};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[o.iframe_url]),n(f,{children:n(c,{spinning:a,style:{minHeight:a?"500px":""},children:n("iframe",{className:"owl-iframe",ref:r,title:"Iframe Page",width:"100%",style:{border:"none",order:0,boxSizing:"border-box",overflow:"hidden",minHeight:"500px"},onLoad:()=>{s(!1)}})})})}export{h as default};
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
import{m as C,d as y}from"./index-D0zDG80U.js";function k(a){var r;if(typeof a=="string"){var e=new DOMParser;r=e.parseFromString(a,"text/xml")}else r=a;if(!r||r.getElementsByTagName("parsererror").length)return null;var i=f(r,"gexf");if(!i)return null;for(var v=f(i,"graph"),t=F(f(v,"attributes")),u={},o=0;o<t.length;o++)u[t[o].id]=t[o];return{nodes:M(f(v,"nodes"),u),links:N(f(v,"edges"))}}function F(a){return a?C(x(a,"attribute"),function(r){return{id:n(r,"id"),title:n(r,"title"),type:n(r,"type")}}):[]}function M(a,r){return a?C(x(a,"node"),function(e){var i=n(e,"id"),v=n(e,"label"),t={id:i,name:v,itemStyle:{normal:{}}},u=f(e,"viz:size"),o=f(e,"viz:position"),l=f(e,"viz:color"),s=f(e,"attvalues");if(u&&(t.symbolSize=parseFloat(n(u,"value"))),o&&(t.x=parseFloat(n(o,"x")),t.y=parseFloat(n(o,"y"))),l&&(t.itemStyle.normal.color="rgb("+[n(l,"r")|0,n(l,"g")|0,n(l,"b")|0].join(",")+")"),s){var d=x(s,"attvalue");t.attributes={};for(var p=0;p<d.length;p++){var b=d[p],c=n(b,"for"),g=n(b,"value"),h=r[c];if(h){switch(h.type){case"integer":case"long":g=parseInt(g,10);break;case"float":case"double":g=parseFloat(g);break;case"boolean":g=g.toLowerCase()==="true";break}t.attributes[c]=g}}}return t}):[]}function N(a){return a?C(x(a,"edge"),function(r){var e=n(r,"id"),i=n(r,"label"),v=n(r,"source"),t=n(r,"target"),u={id:e,name:i,source:v,target:t,lineStyle:{normal:{}}},o=u.lineStyle.normal,l=f(r,"viz:thickness"),s=f(r,"viz:color");return l&&(o.width=parseFloat(l.getAttribute("value"))),s&&(o.color="rgb("+[n(s,"r")|0,n(s,"g")|0,n(s,"b")|0].join(",")+")"),u}):[]}function n(a,r){return a.getAttribute(r)}function f(a,r){for(var e=a.firstChild;e;)if(e.nodeType!==1||e.nodeName.toLowerCase()!==r.toLowerCase())e=e.nextSibling;else return e;return null}function x(a,r){for(var e=a.firstChild,i=[];e;)e.nodeName.toLowerCase()===r.toLowerCase()&&i.push(e),e=e.nextSibling;return i}const B=Object.freeze(Object.defineProperty({__proto__:null,parse:k},Symbol.toStringTag,{value:"Module"}));function R(a){return a.sort(function(r,e){return r-e}),a}function m(a,r){var e=(a.length-1)*r+1,i=Math.floor(e),v=+a[i-1],t=e-i;return t?v+t*(a[i]-v):v}function _(a,r){r=r||{};for(var e=[],i=[],v=[],t=r.boundIQR,u=t==="none"||t===0,o=0;o<a.length;o++){v.push(o+"");var l=R(a[o].slice()),s=m(l,.25),d=m(l,.5),p=m(l,.75),b=l[0],c=l[l.length-1],g=(t??1.5)*(p-s),h=u?b:Math.max(b,s-g),w=u?c:Math.min(c,p+g);e.push([h,s,d,p,w]);for(var z=0;z<l.length;z++){var S=l[z];if(S<h||S>w){var T=[o,S];r.layout==="vertical"&&T.reverse(),i.push(T)}}}return{boxData:e,outliers:i,axisData:v}}var E="1.0.0";y&&(y.version=E,y.gexf=B,y.prepareBoxplotData=_);export{B as gexf,_ as prepareBoxplotData,E as version};
|
||||
import{m as C,d as y}from"./index-BFaad-7o.js";function k(a){var r;if(typeof a=="string"){var e=new DOMParser;r=e.parseFromString(a,"text/xml")}else r=a;if(!r||r.getElementsByTagName("parsererror").length)return null;var i=f(r,"gexf");if(!i)return null;for(var v=f(i,"graph"),t=F(f(v,"attributes")),u={},o=0;o<t.length;o++)u[t[o].id]=t[o];return{nodes:M(f(v,"nodes"),u),links:N(f(v,"edges"))}}function F(a){return a?C(x(a,"attribute"),function(r){return{id:n(r,"id"),title:n(r,"title"),type:n(r,"type")}}):[]}function M(a,r){return a?C(x(a,"node"),function(e){var i=n(e,"id"),v=n(e,"label"),t={id:i,name:v,itemStyle:{normal:{}}},u=f(e,"viz:size"),o=f(e,"viz:position"),l=f(e,"viz:color"),s=f(e,"attvalues");if(u&&(t.symbolSize=parseFloat(n(u,"value"))),o&&(t.x=parseFloat(n(o,"x")),t.y=parseFloat(n(o,"y"))),l&&(t.itemStyle.normal.color="rgb("+[n(l,"r")|0,n(l,"g")|0,n(l,"b")|0].join(",")+")"),s){var d=x(s,"attvalue");t.attributes={};for(var p=0;p<d.length;p++){var b=d[p],c=n(b,"for"),g=n(b,"value"),h=r[c];if(h){switch(h.type){case"integer":case"long":g=parseInt(g,10);break;case"float":case"double":g=parseFloat(g);break;case"boolean":g=g.toLowerCase()==="true";break}t.attributes[c]=g}}}return t}):[]}function N(a){return a?C(x(a,"edge"),function(r){var e=n(r,"id"),i=n(r,"label"),v=n(r,"source"),t=n(r,"target"),u={id:e,name:i,source:v,target:t,lineStyle:{normal:{}}},o=u.lineStyle.normal,l=f(r,"viz:thickness"),s=f(r,"viz:color");return l&&(o.width=parseFloat(l.getAttribute("value"))),s&&(o.color="rgb("+[n(s,"r")|0,n(s,"g")|0,n(s,"b")|0].join(",")+")"),u}):[]}function n(a,r){return a.getAttribute(r)}function f(a,r){for(var e=a.firstChild;e;)if(e.nodeType!==1||e.nodeName.toLowerCase()!==r.toLowerCase())e=e.nextSibling;else return e;return null}function x(a,r){for(var e=a.firstChild,i=[];e;)e.nodeName.toLowerCase()===r.toLowerCase()&&i.push(e),e=e.nextSibling;return i}const B=Object.freeze(Object.defineProperty({__proto__:null,parse:k},Symbol.toStringTag,{value:"Module"}));function R(a){return a.sort(function(r,e){return r-e}),a}function m(a,r){var e=(a.length-1)*r+1,i=Math.floor(e),v=+a[i-1],t=e-i;return t?v+t*(a[i]-v):v}function _(a,r){r=r||{};for(var e=[],i=[],v=[],t=r.boundIQR,u=t==="none"||t===0,o=0;o<a.length;o++){v.push(o+"");var l=R(a[o].slice()),s=m(l,.25),d=m(l,.5),p=m(l,.75),b=l[0],c=l[l.length-1],g=(t??1.5)*(p-s),h=u?b:Math.max(b,s-g),w=u?c:Math.min(c,p+g);e.push([h,s,d,p,w]);for(var z=0;z<l.length;z++){var S=l[z];if(S<h||S>w){var T=[o,S];r.layout==="vertical"&&T.reverse(),i.push(T)}}}return{boxData:e,outliers:i,axisData:v}}var E="1.0.0";y&&(y.version=E,y.gexf=B,y.prepareBoxplotData=_);export{B as gexf,_ as prepareBoxplotData,E as version};
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue