From d74b495736f0c04522ec54274b70fed0ded2878d Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Tue, 27 Jun 2023 11:30:06 +0800
Subject: [PATCH] 任务新增导出
---
public/map/controls/toolbar/tools/FullScreenTool.js | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/public/map/controls/toolbar/tools/FullScreenTool.js b/public/map/controls/toolbar/tools/FullScreenTool.js
new file mode 100644
index 0000000..4496eac
--- /dev/null
+++ b/public/map/controls/toolbar/tools/FullScreenTool.js
@@ -0,0 +1,44 @@
+/**
+ * 全屏按钮
+ * @author haoml
+ */
+define([
+ "dojo",
+ "dojo/_base/declare",
+ "base/AppEvent",
+ "controls/toolbar/tools/BaseTool",
+ "dojo/dom-style"
+], function(
+ dojo,
+ declare,
+ AppEvent,
+ BaseTool,
+ domStyle
+) {
+ var RL = declare([BaseTool], {
+ constructor: function(args) {
+ this._normalIconClass="tool-fullScreen-normal";
+ this._overIconClass="tool-fullScreen-over";
+ this._selectedIconClass="tool-fullScreen-select";
+ this._disableClass="";
+ this.tooltip="全屏";
+ },
+ deactivate:function(args)
+ {
+ this.inherited(arguments);
+ AppEvent.dispatchAppEvent(AppEvent.APPLICATION_FULLSCREEN,{fullscreen:false});
+ },
+ activate:function()
+ {
+ this.inherited(arguments);
+ AppEvent.dispatchAppEvent(AppEvent.APPLICATION_FULLSCREEN,{fullscreen:true});
+ },
+ postCreate:function()
+ {
+ this.inherited(arguments);
+ domStyle.set(this.tool,"border-top-left-radius","2px");
+ domStyle.set(this.tool,"border-bottom-left-radius","2px");
+ }
+ });
+ return RL;
+});
\ No newline at end of file
--
Gitblit v1.9.3