Browse Source

删除无用target

gaoyupeng 3 years ago
parent
commit
e3ab9f6df5
100 changed files with 9 additions and 151795 deletions
  1. 9 4
      .gitignore
  2. 0 64
      target/classes/application.properties
  3. 0 465
      target/classes/com/chinaitop/depot/system/mapper/SystemLogMapper.xml
  4. 0 365
      target/classes/com/chinaitop/depot/system/mapper/SystemLogThreeMapper.xml
  5. 0 365
      target/classes/com/chinaitop/depot/system/mapper/SystemLogTwoMapper.xml
  6. 0 228
      target/classes/com/chinaitop/depot/system/mapper/UserOperationlogMapper.xml
  7. 0 196
      target/classes/com/chinaitop/depot/system/mapper/UserOperationtypeMapper.xml
  8. 0 5
      target/classes/static/.babelrc
  9. 0 4
      target/classes/static/.gitignore
  10. BIN
      target/classes/static/3Dlc/img/1111.jpg
  11. BIN
      target/classes/static/3Dlc/img/cizhuan.jpg
  12. BIN
      target/classes/static/3Dlc/img/corn.jpg
  13. BIN
      target/classes/static/3Dlc/img/diban.jpg
  14. BIN
      target/classes/static/3Dlc/img/door_left.png
  15. BIN
      target/classes/static/3Dlc/img/floor.jpg
  16. BIN
      target/classes/static/3Dlc/img/ls.png
  17. BIN
      target/classes/static/3Dlc/img/lss.jpg
  18. BIN
      target/classes/static/3Dlc/img/qiang.jpg
  19. 0 158
      target/classes/static/3Dlc/index.html
  20. 0 175
      target/classes/static/3Dlc/js/CSS2DRenderer.js
  21. 0 77
      target/classes/static/3Dlc/js/CubeTextureLoader.js
  22. 0 236
      target/classes/static/3Dlc/js/DDSLoader.js
  23. 0 4136
      target/classes/static/3Dlc/js/FBXLoader.js
  24. 0 3176
      target/classes/static/3Dlc/js/GLTFLoader.js
  25. 0 108
      target/classes/static/3Dlc/js/ImageLoader.js
  26. 0 578
      target/classes/static/3Dlc/js/LegacyJSONLoader.js
  27. 0 430
      target/classes/static/3Dlc/js/MTLLoader.js
  28. 0 670
      target/classes/static/3Dlc/js/OBJLoader.js
  29. 0 476
      target/classes/static/3Dlc/js/OBJMTLLoader.js
  30. 0 861
      target/classes/static/3Dlc/js/Object3D.js
  31. 0 1070
      target/classes/static/3Dlc/js/OrbitControls.js
  32. 0 550
      target/classes/static/3Dlc/js/TGALoader.js
  33. 0 519
      target/classes/static/3Dlc/js/ThreeBSP.js
  34. 0 611
      target/classes/static/3Dlc/js/TrackballControls.js
  35. 0 934
      target/classes/static/3Dlc/js/Tween.js
  36. 0 94
      target/classes/static/3Dlc/js/WebGL.js
  37. 0 14
      target/classes/static/3Dlc/js/dat.gui.min.js
  38. 0 15
      target/classes/static/3Dlc/js/inflate.min.js
  39. 0 6
      target/classes/static/3Dlc/js/jquery-2.0.3.min.js
  40. 0 2
      target/classes/static/3Dlc/js/jquery-3.4.1.min.js
  41. 0 10337
      target/classes/static/3Dlc/js/jquery.js
  42. 0 2
      target/classes/static/3Dlc/js/layer.js
  43. 0 94
      target/classes/static/3Dlc/js/loading/jquery.mloading.css
  44. 0 202
      target/classes/static/3Dlc/js/loading/jquery.mloading.js
  45. 0 104
      target/classes/static/3Dlc/js/loading/jquery.mloading.less
  46. 0 210
      target/classes/static/3Dlc/js/onEvent.js
  47. 0 78
      target/classes/static/3Dlc/js/polyfill.js
  48. 0 5
      target/classes/static/3Dlc/js/stats.min.js
  49. 0 49269
      target/classes/static/3Dlc/js/three.js
  50. 0 990
      target/classes/static/3Dlc/js/three.min.js
  51. 0 48847
      target/classes/static/3Dlc/js/three.module.js
  52. 0 48
      target/classes/static/3Dlc/js/threex.atmospheredatgui.js
  53. 0 408
      target/classes/static/3Dlc/js/threex.planets.js
  54. 0 3833
      target/classes/static/3Dlc/js/tweenjs.js
  55. 0 10
      target/classes/static/3Dlc/new_file.html
  56. BIN
      target/classes/static/3Dlc/pic/nx.jpg
  57. BIN
      target/classes/static/3Dlc/pic/ny.jpg
  58. BIN
      target/classes/static/3Dlc/pic/nz.jpg
  59. BIN
      target/classes/static/3Dlc/pic/px.jpg
  60. BIN
      target/classes/static/3Dlc/pic/py.jpg
  61. BIN
      target/classes/static/3Dlc/pic/pz.jpg
  62. 0 82
      target/classes/static/3Dlc/tmp/threex.atmospherematerial.js
  63. 0 42
      target/classes/static/3Dlc/tmp/threex.atmospherematerialdatgui.js
  64. 0 34
      target/classes/static/3Dlc/tmp/threex.dilategeometry.js
  65. 0 33
      target/classes/static/3Dlc/tmp/threex.geometricglowmesh.js
  66. 0 500
      target/classes/static/3Dlc/tools/lctools.min.js
  67. BIN
      target/classes/static/act/diagram-viewer/images/bg.png
  68. BIN
      target/classes/static/act/diagram-viewer/images/breadcrumbs.png
  69. BIN
      target/classes/static/act/diagram-viewer/images/checker-bg.png
  70. BIN
      target/classes/static/act/diagram-viewer/images/deployer/blue/message_catch.png
  71. BIN
      target/classes/static/act/diagram-viewer/images/deployer/business_rule.png
  72. BIN
      target/classes/static/act/diagram-viewer/images/deployer/error_catch.png
  73. BIN
      target/classes/static/act/diagram-viewer/images/deployer/error_throw.png
  74. BIN
      target/classes/static/act/diagram-viewer/images/deployer/manual.png
  75. BIN
      target/classes/static/act/diagram-viewer/images/deployer/message_catch.png
  76. BIN
      target/classes/static/act/diagram-viewer/images/deployer/message_throw.png
  77. BIN
      target/classes/static/act/diagram-viewer/images/deployer/receive.png
  78. BIN
      target/classes/static/act/diagram-viewer/images/deployer/script.png
  79. BIN
      target/classes/static/act/diagram-viewer/images/deployer/send.png
  80. BIN
      target/classes/static/act/diagram-viewer/images/deployer/service.png
  81. BIN
      target/classes/static/act/diagram-viewer/images/deployer/signal_catch.png
  82. BIN
      target/classes/static/act/diagram-viewer/images/deployer/signal_throw.png
  83. BIN
      target/classes/static/act/diagram-viewer/images/deployer/timer.png
  84. BIN
      target/classes/static/act/diagram-viewer/images/deployer/user.png
  85. 0 137
      target/classes/static/act/diagram-viewer/index.html
  86. 0 74
      target/classes/static/act/diagram-viewer/js/ActivitiRest.js
  87. 0 1
      target/classes/static/act/diagram-viewer/js/ActivityImpl.js
  88. 0 597
      target/classes/static/act/diagram-viewer/js/Color.js
  89. 0 264
      target/classes/static/act/diagram-viewer/js/LineBreakMeasurer.js
  90. 0 381
      target/classes/static/act/diagram-viewer/js/Polyline.js
  91. 0 2161
      target/classes/static/act/diagram-viewer/js/ProcessDiagramCanvas.js
  92. 0 1080
      target/classes/static/act/diagram-viewer/js/ProcessDiagramGenerator.js
  93. 0 125
      target/classes/static/act/diagram-viewer/js/jquery/jquery.asyncqueue.js
  94. 0 9266
      target/classes/static/act/diagram-viewer/js/jquery/jquery.js
  95. 0 131
      target/classes/static/act/diagram-viewer/js/jquery/jquery.progressbar.js
  96. 0 23
      target/classes/static/act/diagram-viewer/js/jstools.js
  97. 0 10
      target/classes/static/act/diagram-viewer/js/raphael.2.1.1.js
  98. 0 10
      target/classes/static/act/diagram-viewer/js/raphael.js
  99. 0 5815
      target/classes/static/act/diagram-viewer/js/raphael_uncompressed.js
  100. 0 0
      target/classes/static/act/diagram-viewer/js/textlayout.js

+ 9 - 4
.gitignore

@@ -8,7 +8,12 @@
8 8
 *.jar
9 9
 *.war
10 10
 *.ear
11
-
12
-# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
13
-hs_err_pid*
14
-
11
+# 前端注释
12
+.DS_Store
13
+node_modules
14
+# *.log
15
+# TODOs.md
16
+# dist/*.gz
17
+# dist/*.map
18
+# dist/*.js
19
+.vscode

+ 0 - 64
target/classes/application.properties

@@ -1,64 +0,0 @@
1
-server.port=9025
2
-
3
-# 每隔10s发送一次心跳(默认30s)
4
-eureka.instance.lease-renewal-interval-in-seconds=10
5
-# 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
6
-eureka.instance.lease-expiration-duration-in-seconds=30
7
-
8
-#数据库驱动
9
-spring.datasource.driverClassName = com.mysql.jdbc.Driver
10
-spring.datasource.url = jdbc:mysql://172.16.0.46:3306/depot-yunnan?useUnicode=true&characterEncoding=utf-8&useSSL=false
11
-spring.datasource.username = root
12
-spring.datasource.password = 123456
13
-
14
-eureka.client.serviceUrl.defaultZone=http://localhost:9001/eureka/
15
-
16
-spring.application.name=depot-web
17
-
18
-#eureka.instance.status-page-url=http://localhost:${server.port}/swagger-ui.html
19
-#eureka.client.register-with-eureka=false
20
-#eureka.client.fetch-registry=false
21
-
22
-# Redis数据库索引(默认为0)
23
-#spring.redis.database=1
24
-# Redis服务器地址
25
-#spring.redis.host=172.16.0.46
26
-# Redis服务器连接端口
27
-#spring.redis.port=6679
28
-# Redis服务器连接密码(默认为空)
29
-#spring.redis.password=123456
30
-# 连接池最大连接数(使用负值表示没有限制)
31
-#spring.redis.jedis.pool.max-active=8
32
-# 连接池最大阻塞等待时间(使用负值表示没有限制)
33
-#spring.redis.jedis.pool.max-wait=-1
34
-# 连接池中的最大空闲连接
35
-#spring.redis.jedis.pool.max-idle=8
36
-# 连接池中的最小空闲连接
37
-#spring.redis.jedis.pool.min-idle=0
38
-# 连接超时时间(毫秒)
39
-#spring.redis.timeout=3000
40
-#配置session的存储方式
41
-#spring.session.store-type=redis
42
-
43
-#设置每个服务的连接转发,防止session不一致
44
-#zuul.routes.api-a.path=/api-system/**
45
-#zuul.routes.api-a.service-id=depot-system
46
-#zuul.routes.depot-system.sensitiveHeaders="*"
47
-#全局设置,防止session不一致
48
-zuul.sensitive-headers="*"
49
-
50
-#开启zuul网关请求重试
51
-zuul.retryable=true
52
-#超时时间
53
-ribbon.ReadTimeout=60000
54
-ribbon.SocketTimeout=60000
55
-hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=240000
56
-zuul.host.connect-timeout-millis=60000
57
-zuul.host.socket-timeout-millis=60000
58
-
59
-spring.servlet.multipart.max-file-size=10MB
60
-spring.servlet.multipart.max-request-size=20MB
61
-spring.servlet.multipart.location=/var/lib/docker/uploadTmp
62
-#图片路径„
63
-web.upload-path=/home/depot/depot-web/apache-tomcat-8.0.53/webapps/ROOT/WEB-INF/classes/static
64
-spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}

+ 0 - 465
target/classes/com/chinaitop/depot/system/mapper/SystemLogMapper.xml

@@ -1,465 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
-<mapper namespace="com.chinaitop.depot.system.mapper.SystemLogMapper" >
4
-  <resultMap id="BaseResultMap" type="com.chinaitop.depot.system.model.SystemLog" >
5
-    <id column="id" property="id" jdbcType="VARCHAR" />
6
-    <result column="org_id" property="orgId" jdbcType="INTEGER" />
7
-    <result column="user_id" property="userId" jdbcType="INTEGER" />
8
-    <result column="user_zh" property="userZh" jdbcType="VARCHAR" />
9
-    <result column="user_name" property="userName" jdbcType="VARCHAR" />
10
-    <result column="user_role" property="userRole" jdbcType="VARCHAR" />
11
-    <result column="user_address" property="userAddress" jdbcType="VARCHAR" />
12
-    <result column="dl_time" property="dlTime" jdbcType="TIMESTAMP" />
13
-    <result column="zx_time" property="zxTime" jdbcType="TIMESTAMP" />
14
-    <result column="func_id" property="funcId" jdbcType="INTEGER" />
15
-    <result column="func_name" property="funcName" jdbcType="VARCHAR" />
16
-    <result column="btn_id" property="btnId" jdbcType="INTEGER" />
17
-    <result column="method_name" property="methodName" jdbcType="VARCHAR" />
18
-    <result column="oper_result" property="operResult" jdbcType="VARCHAR" />
19
-    <result column="parameter" property="parameter" jdbcType="VARCHAR" />
20
-    <result column="rtn_param" property="rtnParam" jdbcType="VARCHAR" />
21
-    <result column="describes" property="describes" jdbcType="VARCHAR" />
22
-    <result column="type" property="type" jdbcType="VARCHAR" />
23
-    <result column="device_ip" property="deviceIp" jdbcType="VARCHAR" />
24
-    <result column="system_identify" property="systemIdentify" jdbcType="VARCHAR" />
25
-    <result column="operation_time" property="operationTime" jdbcType="TIMESTAMP" />
26
-  </resultMap>
27
-  <sql id="Example_Where_Clause" >
28
-    <where >
29
-      <foreach collection="oredCriteria" item="criteria" separator="or" >
30
-        <if test="criteria.valid" >
31
-          <trim prefix="(" suffix=")" prefixOverrides="and" >
32
-            <foreach collection="criteria.criteria" item="criterion" >
33
-              <choose >
34
-                <when test="criterion.noValue" >
35
-                  and ${criterion.condition}
36
-                </when>
37
-                <when test="criterion.singleValue" >
38
-                  and ${criterion.condition} #{criterion.value}
39
-                </when>
40
-                <when test="criterion.betweenValue" >
41
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
42
-                </when>
43
-                <when test="criterion.listValue" >
44
-                  and ${criterion.condition}
45
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
46
-                    #{listItem}
47
-                  </foreach>
48
-                </when>
49
-              </choose>
50
-            </foreach>
51
-          </trim>
52
-        </if>
53
-      </foreach>
54
-    </where>
55
-  </sql>
56
-  <sql id="Update_By_Example_Where_Clause" >
57
-    <where >
58
-      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
59
-        <if test="criteria.valid" >
60
-          <trim prefix="(" suffix=")" prefixOverrides="and" >
61
-            <foreach collection="criteria.criteria" item="criterion" >
62
-              <choose >
63
-                <when test="criterion.noValue" >
64
-                  and ${criterion.condition}
65
-                </when>
66
-                <when test="criterion.singleValue" >
67
-                  and ${criterion.condition} #{criterion.value}
68
-                </when>
69
-                <when test="criterion.betweenValue" >
70
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
71
-                </when>
72
-                <when test="criterion.listValue" >
73
-                  and ${criterion.condition}
74
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
75
-                    #{listItem}
76
-                  </foreach>
77
-                </when>
78
-              </choose>
79
-            </foreach>
80
-          </trim>
81
-        </if>
82
-      </foreach>
83
-    </where>
84
-  </sql>
85
-  <sql id="Base_Column_List" >
86
-    id, org_id, user_id, user_zh, user_name, user_role, user_address, dl_time, zx_time, 
87
-    func_id, func_name, btn_id, method_name, oper_result, parameter, rtn_param, describes, 
88
-    type, device_ip, system_identify, operation_time
89
-  </sql>
90
-  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.system.model.SystemLogExample" >
91
-    select
92
-    <if test="distinct" >
93
-      distinct
94
-    </if>
95
-    <include refid="Base_Column_List" />
96
-    from system_log
97
-    <if test="_parameter != null" >
98
-      <include refid="Example_Where_Clause" />
99
-    </if>
100
-    <if test="orderByClause != null" >
101
-      order by ${orderByClause}
102
-    </if>
103
-  </select>
104
-  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
105
-    select 
106
-    <include refid="Base_Column_List" />
107
-    from system_log
108
-    where id = #{id,jdbcType=VARCHAR}
109
-  </select>
110
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
111
-    delete from system_log
112
-    where id = #{id,jdbcType=VARCHAR}
113
-  </delete>
114
-  <delete id="deleteByExample" parameterType="com.chinaitop.depot.system.model.SystemLogExample" >
115
-    delete from system_log
116
-    <if test="_parameter != null" >
117
-      <include refid="Example_Where_Clause" />
118
-    </if>
119
-  </delete>
120
-  <insert id="insert" parameterType="com.chinaitop.depot.system.model.SystemLog" >
121
-    insert into system_log (id, org_id, user_id, 
122
-      user_zh, user_name, user_role, 
123
-      user_address, dl_time, zx_time, 
124
-      func_id, func_name, btn_id, 
125
-      method_name, oper_result, parameter, 
126
-      rtn_param, describes, type, 
127
-      device_ip, system_identify, operation_time
128
-      )
129
-    values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, 
130
-      #{userZh,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{userRole,jdbcType=VARCHAR}, 
131
-      #{userAddress,jdbcType=VARCHAR}, #{dlTime,jdbcType=TIMESTAMP}, #{zxTime,jdbcType=TIMESTAMP}, 
132
-      #{funcId,jdbcType=INTEGER}, #{funcName,jdbcType=VARCHAR}, #{btnId,jdbcType=INTEGER}, 
133
-      #{methodName,jdbcType=VARCHAR}, #{operResult,jdbcType=VARCHAR}, #{parameter,jdbcType=VARCHAR}, 
134
-      #{rtnParam,jdbcType=VARCHAR}, #{describes,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, 
135
-      #{deviceIp,jdbcType=VARCHAR}, #{systemIdentify,jdbcType=VARCHAR}, #{operationTime,jdbcType=TIMESTAMP}
136
-      )
137
-  </insert>
138
-  <insert id="insertSelective" parameterType="com.chinaitop.depot.system.model.SystemLog" >
139
-    insert into system_log
140
-    <trim prefix="(" suffix=")" suffixOverrides="," >
141
-      <if test="id != null" >
142
-        id,
143
-      </if>
144
-      <if test="orgId != null" >
145
-        org_id,
146
-      </if>
147
-      <if test="userId != null" >
148
-        user_id,
149
-      </if>
150
-      <if test="userZh != null" >
151
-        user_zh,
152
-      </if>
153
-      <if test="userName != null" >
154
-        user_name,
155
-      </if>
156
-      <if test="userRole != null" >
157
-        user_role,
158
-      </if>
159
-      <if test="userAddress != null" >
160
-        user_address,
161
-      </if>
162
-      <if test="dlTime != null" >
163
-        dl_time,
164
-      </if>
165
-      <if test="zxTime != null" >
166
-        zx_time,
167
-      </if>
168
-      <if test="funcId != null" >
169
-        func_id,
170
-      </if>
171
-      <if test="funcName != null" >
172
-        func_name,
173
-      </if>
174
-      <if test="btnId != null" >
175
-        btn_id,
176
-      </if>
177
-      <if test="methodName != null" >
178
-        method_name,
179
-      </if>
180
-      <if test="operResult != null" >
181
-        oper_result,
182
-      </if>
183
-      <if test="parameter != null" >
184
-        parameter,
185
-      </if>
186
-      <if test="rtnParam != null" >
187
-        rtn_param,
188
-      </if>
189
-      <if test="describes != null" >
190
-        describes,
191
-      </if>
192
-      <if test="type != null" >
193
-        type,
194
-      </if>
195
-      <if test="deviceIp != null" >
196
-        device_ip,
197
-      </if>
198
-      <if test="systemIdentify != null" >
199
-        system_identify,
200
-      </if>
201
-      <if test="operationTime != null" >
202
-        operation_time,
203
-      </if>
204
-    </trim>
205
-    <trim prefix="values (" suffix=")" suffixOverrides="," >
206
-      <if test="id != null" >
207
-        #{id,jdbcType=VARCHAR},
208
-      </if>
209
-      <if test="orgId != null" >
210
-        #{orgId,jdbcType=INTEGER},
211
-      </if>
212
-      <if test="userId != null" >
213
-        #{userId,jdbcType=INTEGER},
214
-      </if>
215
-      <if test="userZh != null" >
216
-        #{userZh,jdbcType=VARCHAR},
217
-      </if>
218
-      <if test="userName != null" >
219
-        #{userName,jdbcType=VARCHAR},
220
-      </if>
221
-      <if test="userRole != null" >
222
-        #{userRole,jdbcType=VARCHAR},
223
-      </if>
224
-      <if test="userAddress != null" >
225
-        #{userAddress,jdbcType=VARCHAR},
226
-      </if>
227
-      <if test="dlTime != null" >
228
-        #{dlTime,jdbcType=TIMESTAMP},
229
-      </if>
230
-      <if test="zxTime != null" >
231
-        #{zxTime,jdbcType=TIMESTAMP},
232
-      </if>
233
-      <if test="funcId != null" >
234
-        #{funcId,jdbcType=INTEGER},
235
-      </if>
236
-      <if test="funcName != null" >
237
-        #{funcName,jdbcType=VARCHAR},
238
-      </if>
239
-      <if test="btnId != null" >
240
-        #{btnId,jdbcType=INTEGER},
241
-      </if>
242
-      <if test="methodName != null" >
243
-        #{methodName,jdbcType=VARCHAR},
244
-      </if>
245
-      <if test="operResult != null" >
246
-        #{operResult,jdbcType=VARCHAR},
247
-      </if>
248
-      <if test="parameter != null" >
249
-        #{parameter,jdbcType=VARCHAR},
250
-      </if>
251
-      <if test="rtnParam != null" >
252
-        #{rtnParam,jdbcType=VARCHAR},
253
-      </if>
254
-      <if test="describes != null" >
255
-        #{describes,jdbcType=VARCHAR},
256
-      </if>
257
-      <if test="type != null" >
258
-        #{type,jdbcType=VARCHAR},
259
-      </if>
260
-      <if test="deviceIp != null" >
261
-        #{deviceIp,jdbcType=VARCHAR},
262
-      </if>
263
-      <if test="systemIdentify != null" >
264
-        #{systemIdentify,jdbcType=VARCHAR},
265
-      </if>
266
-      <if test="operationTime != null" >
267
-        #{operationTime,jdbcType=TIMESTAMP},
268
-      </if>
269
-    </trim>
270
-  </insert>
271
-  <select id="countByExample" parameterType="com.chinaitop.depot.system.model.SystemLogExample" resultType="java.lang.Integer" >
272
-    select count(*) from system_log
273
-    <if test="_parameter != null" >
274
-      <include refid="Example_Where_Clause" />
275
-    </if>
276
-  </select>
277
-  <update id="updateByExampleSelective" parameterType="map" >
278
-    update system_log
279
-    <set >
280
-      <if test="record.id != null" >
281
-        id = #{record.id,jdbcType=VARCHAR},
282
-      </if>
283
-      <if test="record.orgId != null" >
284
-        org_id = #{record.orgId,jdbcType=INTEGER},
285
-      </if>
286
-      <if test="record.userId != null" >
287
-        user_id = #{record.userId,jdbcType=INTEGER},
288
-      </if>
289
-      <if test="record.userZh != null" >
290
-        user_zh = #{record.userZh,jdbcType=VARCHAR},
291
-      </if>
292
-      <if test="record.userName != null" >
293
-        user_name = #{record.userName,jdbcType=VARCHAR},
294
-      </if>
295
-      <if test="record.userRole != null" >
296
-        user_role = #{record.userRole,jdbcType=VARCHAR},
297
-      </if>
298
-      <if test="record.userAddress != null" >
299
-        user_address = #{record.userAddress,jdbcType=VARCHAR},
300
-      </if>
301
-      <if test="record.dlTime != null" >
302
-        dl_time = #{record.dlTime,jdbcType=TIMESTAMP},
303
-      </if>
304
-      <if test="record.zxTime != null" >
305
-        zx_time = #{record.zxTime,jdbcType=TIMESTAMP},
306
-      </if>
307
-      <if test="record.funcId != null" >
308
-        func_id = #{record.funcId,jdbcType=INTEGER},
309
-      </if>
310
-      <if test="record.funcName != null" >
311
-        func_name = #{record.funcName,jdbcType=VARCHAR},
312
-      </if>
313
-      <if test="record.btnId != null" >
314
-        btn_id = #{record.btnId,jdbcType=INTEGER},
315
-      </if>
316
-      <if test="record.methodName != null" >
317
-        method_name = #{record.methodName,jdbcType=VARCHAR},
318
-      </if>
319
-      <if test="record.operResult != null" >
320
-        oper_result = #{record.operResult,jdbcType=VARCHAR},
321
-      </if>
322
-      <if test="record.parameter != null" >
323
-        parameter = #{record.parameter,jdbcType=VARCHAR},
324
-      </if>
325
-      <if test="record.rtnParam != null" >
326
-        rtn_param = #{record.rtnParam,jdbcType=VARCHAR},
327
-      </if>
328
-      <if test="record.describes != null" >
329
-        describes = #{record.describes,jdbcType=VARCHAR},
330
-      </if>
331
-      <if test="record.type != null" >
332
-        type = #{record.type,jdbcType=VARCHAR},
333
-      </if>
334
-      <if test="record.deviceIp != null" >
335
-        device_ip = #{record.deviceIp,jdbcType=VARCHAR},
336
-      </if>
337
-      <if test="record.systemIdentify != null" >
338
-        system_identify = #{record.systemIdentify,jdbcType=VARCHAR},
339
-      </if>
340
-      <if test="record.operationTime != null" >
341
-        operation_time = #{record.operationTime,jdbcType=TIMESTAMP},
342
-      </if>
343
-    </set>
344
-    <if test="_parameter != null" >
345
-      <include refid="Update_By_Example_Where_Clause" />
346
-    </if>
347
-  </update>
348
-  <update id="updateByExample" parameterType="map" >
349
-    update system_log
350
-    set id = #{record.id,jdbcType=VARCHAR},
351
-      org_id = #{record.orgId,jdbcType=INTEGER},
352
-      user_id = #{record.userId,jdbcType=INTEGER},
353
-      user_zh = #{record.userZh,jdbcType=VARCHAR},
354
-      user_name = #{record.userName,jdbcType=VARCHAR},
355
-      user_role = #{record.userRole,jdbcType=VARCHAR},
356
-      user_address = #{record.userAddress,jdbcType=VARCHAR},
357
-      dl_time = #{record.dlTime,jdbcType=TIMESTAMP},
358
-      zx_time = #{record.zxTime,jdbcType=TIMESTAMP},
359
-      func_id = #{record.funcId,jdbcType=INTEGER},
360
-      func_name = #{record.funcName,jdbcType=VARCHAR},
361
-      btn_id = #{record.btnId,jdbcType=INTEGER},
362
-      method_name = #{record.methodName,jdbcType=VARCHAR},
363
-      oper_result = #{record.operResult,jdbcType=VARCHAR},
364
-      parameter = #{record.parameter,jdbcType=VARCHAR},
365
-      rtn_param = #{record.rtnParam,jdbcType=VARCHAR},
366
-      describes = #{record.describes,jdbcType=VARCHAR},
367
-      type = #{record.type,jdbcType=VARCHAR},
368
-      device_ip = #{record.deviceIp,jdbcType=VARCHAR},
369
-      system_identify = #{record.systemIdentify,jdbcType=VARCHAR},
370
-      operation_time = #{record.operationTime,jdbcType=TIMESTAMP}
371
-    <if test="_parameter != null" >
372
-      <include refid="Update_By_Example_Where_Clause" />
373
-    </if>
374
-  </update>
375
-  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.system.model.SystemLog" >
376
-    update system_log
377
-    <set >
378
-      <if test="orgId != null" >
379
-        org_id = #{orgId,jdbcType=INTEGER},
380
-      </if>
381
-      <if test="userId != null" >
382
-        user_id = #{userId,jdbcType=INTEGER},
383
-      </if>
384
-      <if test="userZh != null" >
385
-        user_zh = #{userZh,jdbcType=VARCHAR},
386
-      </if>
387
-      <if test="userName != null" >
388
-        user_name = #{userName,jdbcType=VARCHAR},
389
-      </if>
390
-      <if test="userRole != null" >
391
-        user_role = #{userRole,jdbcType=VARCHAR},
392
-      </if>
393
-      <if test="userAddress != null" >
394
-        user_address = #{userAddress,jdbcType=VARCHAR},
395
-      </if>
396
-      <if test="dlTime != null" >
397
-        dl_time = #{dlTime,jdbcType=TIMESTAMP},
398
-      </if>
399
-      <if test="zxTime != null" >
400
-        zx_time = #{zxTime,jdbcType=TIMESTAMP},
401
-      </if>
402
-      <if test="funcId != null" >
403
-        func_id = #{funcId,jdbcType=INTEGER},
404
-      </if>
405
-      <if test="funcName != null" >
406
-        func_name = #{funcName,jdbcType=VARCHAR},
407
-      </if>
408
-      <if test="btnId != null" >
409
-        btn_id = #{btnId,jdbcType=INTEGER},
410
-      </if>
411
-      <if test="methodName != null" >
412
-        method_name = #{methodName,jdbcType=VARCHAR},
413
-      </if>
414
-      <if test="operResult != null" >
415
-        oper_result = #{operResult,jdbcType=VARCHAR},
416
-      </if>
417
-      <if test="parameter != null" >
418
-        parameter = #{parameter,jdbcType=VARCHAR},
419
-      </if>
420
-      <if test="rtnParam != null" >
421
-        rtn_param = #{rtnParam,jdbcType=VARCHAR},
422
-      </if>
423
-      <if test="describes != null" >
424
-        describes = #{describes,jdbcType=VARCHAR},
425
-      </if>
426
-      <if test="type != null" >
427
-        type = #{type,jdbcType=VARCHAR},
428
-      </if>
429
-      <if test="deviceIp != null" >
430
-        device_ip = #{deviceIp,jdbcType=VARCHAR},
431
-      </if>
432
-      <if test="systemIdentify != null" >
433
-        system_identify = #{systemIdentify,jdbcType=VARCHAR},
434
-      </if>
435
-      <if test="operationTime != null" >
436
-        operation_time = #{operationTime,jdbcType=TIMESTAMP},
437
-      </if>
438
-    </set>
439
-    where id = #{id,jdbcType=VARCHAR}
440
-  </update>
441
-  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.system.model.SystemLog" >
442
-    update system_log
443
-    set org_id = #{orgId,jdbcType=INTEGER},
444
-      user_id = #{userId,jdbcType=INTEGER},
445
-      user_zh = #{userZh,jdbcType=VARCHAR},
446
-      user_name = #{userName,jdbcType=VARCHAR},
447
-      user_role = #{userRole,jdbcType=VARCHAR},
448
-      user_address = #{userAddress,jdbcType=VARCHAR},
449
-      dl_time = #{dlTime,jdbcType=TIMESTAMP},
450
-      zx_time = #{zxTime,jdbcType=TIMESTAMP},
451
-      func_id = #{funcId,jdbcType=INTEGER},
452
-      func_name = #{funcName,jdbcType=VARCHAR},
453
-      btn_id = #{btnId,jdbcType=INTEGER},
454
-      method_name = #{methodName,jdbcType=VARCHAR},
455
-      oper_result = #{operResult,jdbcType=VARCHAR},
456
-      parameter = #{parameter,jdbcType=VARCHAR},
457
-      rtn_param = #{rtnParam,jdbcType=VARCHAR},
458
-      describes = #{describes,jdbcType=VARCHAR},
459
-      type = #{type,jdbcType=VARCHAR},
460
-      device_ip = #{deviceIp,jdbcType=VARCHAR},
461
-      system_identify = #{systemIdentify,jdbcType=VARCHAR},
462
-      operation_time = #{operationTime,jdbcType=TIMESTAMP}
463
-    where id = #{id,jdbcType=VARCHAR}
464
-  </update>
465
-</mapper>

+ 0 - 365
target/classes/com/chinaitop/depot/system/mapper/SystemLogThreeMapper.xml

@@ -1,365 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
-<mapper namespace="com.chinaitop.depot.system.mapper.SystemLogThreeMapper" >
4
-  <resultMap id="BaseResultMap" type="com.chinaitop.depot.system.model.SystemLogThree" >
5
-    <result column="id" property="id" jdbcType="VARCHAR" />
6
-    <result column="org_id" property="orgId" jdbcType="INTEGER" />
7
-    <result column="user_id" property="userId" jdbcType="INTEGER" />
8
-    <result column="user_zh" property="userZh" jdbcType="VARCHAR" />
9
-    <result column="user_name" property="userName" jdbcType="VARCHAR" />
10
-    <result column="user_role" property="userRole" jdbcType="VARCHAR" />
11
-    <result column="user_address" property="userAddress" jdbcType="VARCHAR" />
12
-    <result column="dl_time" property="dlTime" jdbcType="TIMESTAMP" />
13
-    <result column="zx_time" property="zxTime" jdbcType="TIMESTAMP" />
14
-    <result column="func_id" property="funcId" jdbcType="INTEGER" />
15
-    <result column="func_name" property="funcName" jdbcType="VARCHAR" />
16
-    <result column="btn_id" property="btnId" jdbcType="INTEGER" />
17
-    <result column="method_name" property="methodName" jdbcType="VARCHAR" />
18
-    <result column="oper_result" property="operResult" jdbcType="VARCHAR" />
19
-    <result column="parameter" property="parameter" jdbcType="VARCHAR" />
20
-    <result column="rtn_param" property="rtnParam" jdbcType="VARCHAR" />
21
-    <result column="describes" property="describes" jdbcType="VARCHAR" />
22
-    <result column="type" property="type" jdbcType="VARCHAR" />
23
-    <result column="device_ip" property="deviceIp" jdbcType="VARCHAR" />
24
-    <result column="system_identify" property="systemIdentify" jdbcType="VARCHAR" />
25
-    <result column="operation_time" property="operationTime" jdbcType="TIMESTAMP" />
26
-  </resultMap>
27
-  <sql id="Example_Where_Clause" >
28
-    <where >
29
-      <foreach collection="oredCriteria" item="criteria" separator="or" >
30
-        <if test="criteria.valid" >
31
-          <trim prefix="(" suffix=")" prefixOverrides="and" >
32
-            <foreach collection="criteria.criteria" item="criterion" >
33
-              <choose >
34
-                <when test="criterion.noValue" >
35
-                  and ${criterion.condition}
36
-                </when>
37
-                <when test="criterion.singleValue" >
38
-                  and ${criterion.condition} #{criterion.value}
39
-                </when>
40
-                <when test="criterion.betweenValue" >
41
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
42
-                </when>
43
-                <when test="criterion.listValue" >
44
-                  and ${criterion.condition}
45
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
46
-                    #{listItem}
47
-                  </foreach>
48
-                </when>
49
-              </choose>
50
-            </foreach>
51
-          </trim>
52
-        </if>
53
-      </foreach>
54
-    </where>
55
-  </sql>
56
-  <sql id="Update_By_Example_Where_Clause" >
57
-    <where >
58
-      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
59
-        <if test="criteria.valid" >
60
-          <trim prefix="(" suffix=")" prefixOverrides="and" >
61
-            <foreach collection="criteria.criteria" item="criterion" >
62
-              <choose >
63
-                <when test="criterion.noValue" >
64
-                  and ${criterion.condition}
65
-                </when>
66
-                <when test="criterion.singleValue" >
67
-                  and ${criterion.condition} #{criterion.value}
68
-                </when>
69
-                <when test="criterion.betweenValue" >
70
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
71
-                </when>
72
-                <when test="criterion.listValue" >
73
-                  and ${criterion.condition}
74
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
75
-                    #{listItem}
76
-                  </foreach>
77
-                </when>
78
-              </choose>
79
-            </foreach>
80
-          </trim>
81
-        </if>
82
-      </foreach>
83
-    </where>
84
-  </sql>
85
-  <sql id="Base_Column_List" >
86
-    id, org_id, user_id, user_zh, user_name, user_role, user_address, dl_time, zx_time, 
87
-    func_id, func_name, btn_id, method_name, oper_result, parameter, rtn_param, describes, 
88
-    type, device_ip, system_identify, operation_time
89
-  </sql>
90
-  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.system.model.SystemLogThreeExample" >
91
-    select
92
-    <if test="distinct" >
93
-      distinct
94
-    </if>
95
-    <include refid="Base_Column_List" />
96
-    from system_log_three
97
-    <if test="_parameter != null" >
98
-      <include refid="Example_Where_Clause" />
99
-    </if>
100
-    <if test="orderByClause != null" >
101
-      order by ${orderByClause}
102
-    </if>
103
-  </select>
104
-  <delete id="deleteByExample" parameterType="com.chinaitop.depot.system.model.SystemLogThreeExample" >
105
-    delete from system_log_three
106
-    <if test="_parameter != null" >
107
-      <include refid="Example_Where_Clause" />
108
-    </if>
109
-  </delete>
110
-  <insert id="insert" parameterType="com.chinaitop.depot.system.model.SystemLogThree" >
111
-    insert into system_log_three (id, org_id, user_id, 
112
-      user_zh, user_name, user_role, 
113
-      user_address, dl_time, zx_time, 
114
-      func_id, func_name, btn_id, 
115
-      method_name, oper_result, parameter, 
116
-      rtn_param, describes, type, 
117
-      device_ip, system_identify, operation_time
118
-      )
119
-    values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, 
120
-      #{userZh,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{userRole,jdbcType=VARCHAR}, 
121
-      #{userAddress,jdbcType=VARCHAR}, #{dlTime,jdbcType=TIMESTAMP}, #{zxTime,jdbcType=TIMESTAMP}, 
122
-      #{funcId,jdbcType=INTEGER}, #{funcName,jdbcType=VARCHAR}, #{btnId,jdbcType=INTEGER}, 
123
-      #{methodName,jdbcType=VARCHAR}, #{operResult,jdbcType=VARCHAR}, #{parameter,jdbcType=VARCHAR}, 
124
-      #{rtnParam,jdbcType=VARCHAR}, #{describes,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, 
125
-      #{deviceIp,jdbcType=VARCHAR}, #{systemIdentify,jdbcType=VARCHAR}, #{operationTime,jdbcType=TIMESTAMP}
126
-      )
127
-  </insert>
128
-  <insert id="insertSelective" parameterType="com.chinaitop.depot.system.model.SystemLogThree" >
129
-    insert into system_log_three
130
-    <trim prefix="(" suffix=")" suffixOverrides="," >
131
-      <if test="id != null" >
132
-        id,
133
-      </if>
134
-      <if test="orgId != null" >
135
-        org_id,
136
-      </if>
137
-      <if test="userId != null" >
138
-        user_id,
139
-      </if>
140
-      <if test="userZh != null" >
141
-        user_zh,
142
-      </if>
143
-      <if test="userName != null" >
144
-        user_name,
145
-      </if>
146
-      <if test="userRole != null" >
147
-        user_role,
148
-      </if>
149
-      <if test="userAddress != null" >
150
-        user_address,
151
-      </if>
152
-      <if test="dlTime != null" >
153
-        dl_time,
154
-      </if>
155
-      <if test="zxTime != null" >
156
-        zx_time,
157
-      </if>
158
-      <if test="funcId != null" >
159
-        func_id,
160
-      </if>
161
-      <if test="funcName != null" >
162
-        func_name,
163
-      </if>
164
-      <if test="btnId != null" >
165
-        btn_id,
166
-      </if>
167
-      <if test="methodName != null" >
168
-        method_name,
169
-      </if>
170
-      <if test="operResult != null" >
171
-        oper_result,
172
-      </if>
173
-      <if test="parameter != null" >
174
-        parameter,
175
-      </if>
176
-      <if test="rtnParam != null" >
177
-        rtn_param,
178
-      </if>
179
-      <if test="describes != null" >
180
-        describes,
181
-      </if>
182
-      <if test="type != null" >
183
-        type,
184
-      </if>
185
-      <if test="deviceIp != null" >
186
-        device_ip,
187
-      </if>
188
-      <if test="systemIdentify != null" >
189
-        system_identify,
190
-      </if>
191
-      <if test="operationTime != null" >
192
-        operation_time,
193
-      </if>
194
-    </trim>
195
-    <trim prefix="values (" suffix=")" suffixOverrides="," >
196
-      <if test="id != null" >
197
-        #{id,jdbcType=VARCHAR},
198
-      </if>
199
-      <if test="orgId != null" >
200
-        #{orgId,jdbcType=INTEGER},
201
-      </if>
202
-      <if test="userId != null" >
203
-        #{userId,jdbcType=INTEGER},
204
-      </if>
205
-      <if test="userZh != null" >
206
-        #{userZh,jdbcType=VARCHAR},
207
-      </if>
208
-      <if test="userName != null" >
209
-        #{userName,jdbcType=VARCHAR},
210
-      </if>
211
-      <if test="userRole != null" >
212
-        #{userRole,jdbcType=VARCHAR},
213
-      </if>
214
-      <if test="userAddress != null" >
215
-        #{userAddress,jdbcType=VARCHAR},
216
-      </if>
217
-      <if test="dlTime != null" >
218
-        #{dlTime,jdbcType=TIMESTAMP},
219
-      </if>
220
-      <if test="zxTime != null" >
221
-        #{zxTime,jdbcType=TIMESTAMP},
222
-      </if>
223
-      <if test="funcId != null" >
224
-        #{funcId,jdbcType=INTEGER},
225
-      </if>
226
-      <if test="funcName != null" >
227
-        #{funcName,jdbcType=VARCHAR},
228
-      </if>
229
-      <if test="btnId != null" >
230
-        #{btnId,jdbcType=INTEGER},
231
-      </if>
232
-      <if test="methodName != null" >
233
-        #{methodName,jdbcType=VARCHAR},
234
-      </if>
235
-      <if test="operResult != null" >
236
-        #{operResult,jdbcType=VARCHAR},
237
-      </if>
238
-      <if test="parameter != null" >
239
-        #{parameter,jdbcType=VARCHAR},
240
-      </if>
241
-      <if test="rtnParam != null" >
242
-        #{rtnParam,jdbcType=VARCHAR},
243
-      </if>
244
-      <if test="describes != null" >
245
-        #{describes,jdbcType=VARCHAR},
246
-      </if>
247
-      <if test="type != null" >
248
-        #{type,jdbcType=VARCHAR},
249
-      </if>
250
-      <if test="deviceIp != null" >
251
-        #{deviceIp,jdbcType=VARCHAR},
252
-      </if>
253
-      <if test="systemIdentify != null" >
254
-        #{systemIdentify,jdbcType=VARCHAR},
255
-      </if>
256
-      <if test="operationTime != null" >
257
-        #{operationTime,jdbcType=TIMESTAMP},
258
-      </if>
259
-    </trim>
260
-  </insert>
261
-  <select id="countByExample" parameterType="com.chinaitop.depot.system.model.SystemLogThreeExample" resultType="java.lang.Integer" >
262
-    select count(*) from system_log_three
263
-    <if test="_parameter != null" >
264
-      <include refid="Example_Where_Clause" />
265
-    </if>
266
-  </select>
267
-  <update id="updateByExampleSelective" parameterType="map" >
268
-    update system_log_three
269
-    <set >
270
-      <if test="record.id != null" >
271
-        id = #{record.id,jdbcType=VARCHAR},
272
-      </if>
273
-      <if test="record.orgId != null" >
274
-        org_id = #{record.orgId,jdbcType=INTEGER},
275
-      </if>
276
-      <if test="record.userId != null" >
277
-        user_id = #{record.userId,jdbcType=INTEGER},
278
-      </if>
279
-      <if test="record.userZh != null" >
280
-        user_zh = #{record.userZh,jdbcType=VARCHAR},
281
-      </if>
282
-      <if test="record.userName != null" >
283
-        user_name = #{record.userName,jdbcType=VARCHAR},
284
-      </if>
285
-      <if test="record.userRole != null" >
286
-        user_role = #{record.userRole,jdbcType=VARCHAR},
287
-      </if>
288
-      <if test="record.userAddress != null" >
289
-        user_address = #{record.userAddress,jdbcType=VARCHAR},
290
-      </if>
291
-      <if test="record.dlTime != null" >
292
-        dl_time = #{record.dlTime,jdbcType=TIMESTAMP},
293
-      </if>
294
-      <if test="record.zxTime != null" >
295
-        zx_time = #{record.zxTime,jdbcType=TIMESTAMP},
296
-      </if>
297
-      <if test="record.funcId != null" >
298
-        func_id = #{record.funcId,jdbcType=INTEGER},
299
-      </if>
300
-      <if test="record.funcName != null" >
301
-        func_name = #{record.funcName,jdbcType=VARCHAR},
302
-      </if>
303
-      <if test="record.btnId != null" >
304
-        btn_id = #{record.btnId,jdbcType=INTEGER},
305
-      </if>
306
-      <if test="record.methodName != null" >
307
-        method_name = #{record.methodName,jdbcType=VARCHAR},
308
-      </if>
309
-      <if test="record.operResult != null" >
310
-        oper_result = #{record.operResult,jdbcType=VARCHAR},
311
-      </if>
312
-      <if test="record.parameter != null" >
313
-        parameter = #{record.parameter,jdbcType=VARCHAR},
314
-      </if>
315
-      <if test="record.rtnParam != null" >
316
-        rtn_param = #{record.rtnParam,jdbcType=VARCHAR},
317
-      </if>
318
-      <if test="record.describes != null" >
319
-        describes = #{record.describes,jdbcType=VARCHAR},
320
-      </if>
321
-      <if test="record.type != null" >
322
-        type = #{record.type,jdbcType=VARCHAR},
323
-      </if>
324
-      <if test="record.deviceIp != null" >
325
-        device_ip = #{record.deviceIp,jdbcType=VARCHAR},
326
-      </if>
327
-      <if test="record.systemIdentify != null" >
328
-        system_identify = #{record.systemIdentify,jdbcType=VARCHAR},
329
-      </if>
330
-      <if test="record.operationTime != null" >
331
-        operation_time = #{record.operationTime,jdbcType=TIMESTAMP},
332
-      </if>
333
-    </set>
334
-    <if test="_parameter != null" >
335
-      <include refid="Update_By_Example_Where_Clause" />
336
-    </if>
337
-  </update>
338
-  <update id="updateByExample" parameterType="map" >
339
-    update system_log_three
340
-    set id = #{record.id,jdbcType=VARCHAR},
341
-      org_id = #{record.orgId,jdbcType=INTEGER},
342
-      user_id = #{record.userId,jdbcType=INTEGER},
343
-      user_zh = #{record.userZh,jdbcType=VARCHAR},
344
-      user_name = #{record.userName,jdbcType=VARCHAR},
345
-      user_role = #{record.userRole,jdbcType=VARCHAR},
346
-      user_address = #{record.userAddress,jdbcType=VARCHAR},
347
-      dl_time = #{record.dlTime,jdbcType=TIMESTAMP},
348
-      zx_time = #{record.zxTime,jdbcType=TIMESTAMP},
349
-      func_id = #{record.funcId,jdbcType=INTEGER},
350
-      func_name = #{record.funcName,jdbcType=VARCHAR},
351
-      btn_id = #{record.btnId,jdbcType=INTEGER},
352
-      method_name = #{record.methodName,jdbcType=VARCHAR},
353
-      oper_result = #{record.operResult,jdbcType=VARCHAR},
354
-      parameter = #{record.parameter,jdbcType=VARCHAR},
355
-      rtn_param = #{record.rtnParam,jdbcType=VARCHAR},
356
-      describes = #{record.describes,jdbcType=VARCHAR},
357
-      type = #{record.type,jdbcType=VARCHAR},
358
-      device_ip = #{record.deviceIp,jdbcType=VARCHAR},
359
-      system_identify = #{record.systemIdentify,jdbcType=VARCHAR},
360
-      operation_time = #{record.operationTime,jdbcType=TIMESTAMP}
361
-    <if test="_parameter != null" >
362
-      <include refid="Update_By_Example_Where_Clause" />
363
-    </if>
364
-  </update>
365
-</mapper>

+ 0 - 365
target/classes/com/chinaitop/depot/system/mapper/SystemLogTwoMapper.xml

@@ -1,365 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
-<mapper namespace="com.chinaitop.depot.system.mapper.SystemLogTwoMapper" >
4
-  <resultMap id="BaseResultMap" type="com.chinaitop.depot.system.model.SystemLogTwo" >
5
-    <result column="id" property="id" jdbcType="VARCHAR" />
6
-    <result column="org_id" property="orgId" jdbcType="INTEGER" />
7
-    <result column="user_id" property="userId" jdbcType="INTEGER" />
8
-    <result column="user_zh" property="userZh" jdbcType="VARCHAR" />
9
-    <result column="user_name" property="userName" jdbcType="VARCHAR" />
10
-    <result column="user_role" property="userRole" jdbcType="VARCHAR" />
11
-    <result column="user_address" property="userAddress" jdbcType="VARCHAR" />
12
-    <result column="dl_time" property="dlTime" jdbcType="TIMESTAMP" />
13
-    <result column="zx_time" property="zxTime" jdbcType="TIMESTAMP" />
14
-    <result column="func_id" property="funcId" jdbcType="INTEGER" />
15
-    <result column="func_name" property="funcName" jdbcType="VARCHAR" />
16
-    <result column="btn_id" property="btnId" jdbcType="INTEGER" />
17
-    <result column="method_name" property="methodName" jdbcType="VARCHAR" />
18
-    <result column="oper_result" property="operResult" jdbcType="VARCHAR" />
19
-    <result column="parameter" property="parameter" jdbcType="VARCHAR" />
20
-    <result column="rtn_param" property="rtnParam" jdbcType="VARCHAR" />
21
-    <result column="describes" property="describes" jdbcType="VARCHAR" />
22
-    <result column="type" property="type" jdbcType="VARCHAR" />
23
-    <result column="device_ip" property="deviceIp" jdbcType="VARCHAR" />
24
-    <result column="system_identify" property="systemIdentify" jdbcType="VARCHAR" />
25
-    <result column="operation_time" property="operationTime" jdbcType="TIMESTAMP" />
26
-  </resultMap>
27
-  <sql id="Example_Where_Clause" >
28
-    <where >
29
-      <foreach collection="oredCriteria" item="criteria" separator="or" >
30
-        <if test="criteria.valid" >
31
-          <trim prefix="(" suffix=")" prefixOverrides="and" >
32
-            <foreach collection="criteria.criteria" item="criterion" >
33
-              <choose >
34
-                <when test="criterion.noValue" >
35
-                  and ${criterion.condition}
36
-                </when>
37
-                <when test="criterion.singleValue" >
38
-                  and ${criterion.condition} #{criterion.value}
39
-                </when>
40
-                <when test="criterion.betweenValue" >
41
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
42
-                </when>
43
-                <when test="criterion.listValue" >
44
-                  and ${criterion.condition}
45
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
46
-                    #{listItem}
47
-                  </foreach>
48
-                </when>
49
-              </choose>
50
-            </foreach>
51
-          </trim>
52
-        </if>
53
-      </foreach>
54
-    </where>
55
-  </sql>
56
-  <sql id="Update_By_Example_Where_Clause" >
57
-    <where >
58
-      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
59
-        <if test="criteria.valid" >
60
-          <trim prefix="(" suffix=")" prefixOverrides="and" >
61
-            <foreach collection="criteria.criteria" item="criterion" >
62
-              <choose >
63
-                <when test="criterion.noValue" >
64
-                  and ${criterion.condition}
65
-                </when>
66
-                <when test="criterion.singleValue" >
67
-                  and ${criterion.condition} #{criterion.value}
68
-                </when>
69
-                <when test="criterion.betweenValue" >
70
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
71
-                </when>
72
-                <when test="criterion.listValue" >
73
-                  and ${criterion.condition}
74
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
75
-                    #{listItem}
76
-                  </foreach>
77
-                </when>
78
-              </choose>
79
-            </foreach>
80
-          </trim>
81
-        </if>
82
-      </foreach>
83
-    </where>
84
-  </sql>
85
-  <sql id="Base_Column_List" >
86
-    id, org_id, user_id, user_zh, user_name, user_role, user_address, dl_time, zx_time, 
87
-    func_id, func_name, btn_id, method_name, oper_result, parameter, rtn_param, describes, 
88
-    type, device_ip, system_identify, operation_time
89
-  </sql>
90
-  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.system.model.SystemLogTwoExample" >
91
-    select
92
-    <if test="distinct" >
93
-      distinct
94
-    </if>
95
-    <include refid="Base_Column_List" />
96
-    from system_log_two
97
-    <if test="_parameter != null" >
98
-      <include refid="Example_Where_Clause" />
99
-    </if>
100
-    <if test="orderByClause != null" >
101
-      order by ${orderByClause}
102
-    </if>
103
-  </select>
104
-  <delete id="deleteByExample" parameterType="com.chinaitop.depot.system.model.SystemLogTwoExample" >
105
-    delete from system_log_two
106
-    <if test="_parameter != null" >
107
-      <include refid="Example_Where_Clause" />
108
-    </if>
109
-  </delete>
110
-  <insert id="insert" parameterType="com.chinaitop.depot.system.model.SystemLogTwo" >
111
-    insert into system_log_two (id, org_id, user_id, 
112
-      user_zh, user_name, user_role, 
113
-      user_address, dl_time, zx_time, 
114
-      func_id, func_name, btn_id, 
115
-      method_name, oper_result, parameter, 
116
-      rtn_param, describes, type, 
117
-      device_ip, system_identify, operation_time
118
-      )
119
-    values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, 
120
-      #{userZh,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{userRole,jdbcType=VARCHAR}, 
121
-      #{userAddress,jdbcType=VARCHAR}, #{dlTime,jdbcType=TIMESTAMP}, #{zxTime,jdbcType=TIMESTAMP}, 
122
-      #{funcId,jdbcType=INTEGER}, #{funcName,jdbcType=VARCHAR}, #{btnId,jdbcType=INTEGER}, 
123
-      #{methodName,jdbcType=VARCHAR}, #{operResult,jdbcType=VARCHAR}, #{parameter,jdbcType=VARCHAR}, 
124
-      #{rtnParam,jdbcType=VARCHAR}, #{describes,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, 
125
-      #{deviceIp,jdbcType=VARCHAR}, #{systemIdentify,jdbcType=VARCHAR}, #{operationTime,jdbcType=TIMESTAMP}
126
-      )
127
-  </insert>
128
-  <insert id="insertSelective" parameterType="com.chinaitop.depot.system.model.SystemLogTwo" >
129
-    insert into system_log_two
130
-    <trim prefix="(" suffix=")" suffixOverrides="," >
131
-      <if test="id != null" >
132
-        id,
133
-      </if>
134
-      <if test="orgId != null" >
135
-        org_id,
136
-      </if>
137
-      <if test="userId != null" >
138
-        user_id,
139
-      </if>
140
-      <if test="userZh != null" >
141
-        user_zh,
142
-      </if>
143
-      <if test="userName != null" >
144
-        user_name,
145
-      </if>
146
-      <if test="userRole != null" >
147
-        user_role,
148
-      </if>
149
-      <if test="userAddress != null" >
150
-        user_address,
151
-      </if>
152
-      <if test="dlTime != null" >
153
-        dl_time,
154
-      </if>
155
-      <if test="zxTime != null" >
156
-        zx_time,
157
-      </if>
158
-      <if test="funcId != null" >
159
-        func_id,
160
-      </if>
161
-      <if test="funcName != null" >
162
-        func_name,
163
-      </if>
164
-      <if test="btnId != null" >
165
-        btn_id,
166
-      </if>
167
-      <if test="methodName != null" >
168
-        method_name,
169
-      </if>
170
-      <if test="operResult != null" >
171
-        oper_result,
172
-      </if>
173
-      <if test="parameter != null" >
174
-        parameter,
175
-      </if>
176
-      <if test="rtnParam != null" >
177
-        rtn_param,
178
-      </if>
179
-      <if test="describes != null" >
180
-        describes,
181
-      </if>
182
-      <if test="type != null" >
183
-        type,
184
-      </if>
185
-      <if test="deviceIp != null" >
186
-        device_ip,
187
-      </if>
188
-      <if test="systemIdentify != null" >
189
-        system_identify,
190
-      </if>
191
-      <if test="operationTime != null" >
192
-        operation_time,
193
-      </if>
194
-    </trim>
195
-    <trim prefix="values (" suffix=")" suffixOverrides="," >
196
-      <if test="id != null" >
197
-        #{id,jdbcType=VARCHAR},
198
-      </if>
199
-      <if test="orgId != null" >
200
-        #{orgId,jdbcType=INTEGER},
201
-      </if>
202
-      <if test="userId != null" >
203
-        #{userId,jdbcType=INTEGER},
204
-      </if>
205
-      <if test="userZh != null" >
206
-        #{userZh,jdbcType=VARCHAR},
207
-      </if>
208
-      <if test="userName != null" >
209
-        #{userName,jdbcType=VARCHAR},
210
-      </if>
211
-      <if test="userRole != null" >
212
-        #{userRole,jdbcType=VARCHAR},
213
-      </if>
214
-      <if test="userAddress != null" >
215
-        #{userAddress,jdbcType=VARCHAR},
216
-      </if>
217
-      <if test="dlTime != null" >
218
-        #{dlTime,jdbcType=TIMESTAMP},
219
-      </if>
220
-      <if test="zxTime != null" >
221
-        #{zxTime,jdbcType=TIMESTAMP},
222
-      </if>
223
-      <if test="funcId != null" >
224
-        #{funcId,jdbcType=INTEGER},
225
-      </if>
226
-      <if test="funcName != null" >
227
-        #{funcName,jdbcType=VARCHAR},
228
-      </if>
229
-      <if test="btnId != null" >
230
-        #{btnId,jdbcType=INTEGER},
231
-      </if>
232
-      <if test="methodName != null" >
233
-        #{methodName,jdbcType=VARCHAR},
234
-      </if>
235
-      <if test="operResult != null" >
236
-        #{operResult,jdbcType=VARCHAR},
237
-      </if>
238
-      <if test="parameter != null" >
239
-        #{parameter,jdbcType=VARCHAR},
240
-      </if>
241
-      <if test="rtnParam != null" >
242
-        #{rtnParam,jdbcType=VARCHAR},
243
-      </if>
244
-      <if test="describes != null" >
245
-        #{describes,jdbcType=VARCHAR},
246
-      </if>
247
-      <if test="type != null" >
248
-        #{type,jdbcType=VARCHAR},
249
-      </if>
250
-      <if test="deviceIp != null" >
251
-        #{deviceIp,jdbcType=VARCHAR},
252
-      </if>
253
-      <if test="systemIdentify != null" >
254
-        #{systemIdentify,jdbcType=VARCHAR},
255
-      </if>
256
-      <if test="operationTime != null" >
257
-        #{operationTime,jdbcType=TIMESTAMP},
258
-      </if>
259
-    </trim>
260
-  </insert>
261
-  <select id="countByExample" parameterType="com.chinaitop.depot.system.model.SystemLogTwoExample" resultType="java.lang.Integer" >
262
-    select count(*) from system_log_two
263
-    <if test="_parameter != null" >
264
-      <include refid="Example_Where_Clause" />
265
-    </if>
266
-  </select>
267
-  <update id="updateByExampleSelective" parameterType="map" >
268
-    update system_log_two
269
-    <set >
270
-      <if test="record.id != null" >
271
-        id = #{record.id,jdbcType=VARCHAR},
272
-      </if>
273
-      <if test="record.orgId != null" >
274
-        org_id = #{record.orgId,jdbcType=INTEGER},
275
-      </if>
276
-      <if test="record.userId != null" >
277
-        user_id = #{record.userId,jdbcType=INTEGER},
278
-      </if>
279
-      <if test="record.userZh != null" >
280
-        user_zh = #{record.userZh,jdbcType=VARCHAR},
281
-      </if>
282
-      <if test="record.userName != null" >
283
-        user_name = #{record.userName,jdbcType=VARCHAR},
284
-      </if>
285
-      <if test="record.userRole != null" >
286
-        user_role = #{record.userRole,jdbcType=VARCHAR},
287
-      </if>
288
-      <if test="record.userAddress != null" >
289
-        user_address = #{record.userAddress,jdbcType=VARCHAR},
290
-      </if>
291
-      <if test="record.dlTime != null" >
292
-        dl_time = #{record.dlTime,jdbcType=TIMESTAMP},
293
-      </if>
294
-      <if test="record.zxTime != null" >
295
-        zx_time = #{record.zxTime,jdbcType=TIMESTAMP},
296
-      </if>
297
-      <if test="record.funcId != null" >
298
-        func_id = #{record.funcId,jdbcType=INTEGER},
299
-      </if>
300
-      <if test="record.funcName != null" >
301
-        func_name = #{record.funcName,jdbcType=VARCHAR},
302
-      </if>
303
-      <if test="record.btnId != null" >
304
-        btn_id = #{record.btnId,jdbcType=INTEGER},
305
-      </if>
306
-      <if test="record.methodName != null" >
307
-        method_name = #{record.methodName,jdbcType=VARCHAR},
308
-      </if>
309
-      <if test="record.operResult != null" >
310
-        oper_result = #{record.operResult,jdbcType=VARCHAR},
311
-      </if>
312
-      <if test="record.parameter != null" >
313
-        parameter = #{record.parameter,jdbcType=VARCHAR},
314
-      </if>
315
-      <if test="record.rtnParam != null" >
316
-        rtn_param = #{record.rtnParam,jdbcType=VARCHAR},
317
-      </if>
318
-      <if test="record.describes != null" >
319
-        describes = #{record.describes,jdbcType=VARCHAR},
320
-      </if>
321
-      <if test="record.type != null" >
322
-        type = #{record.type,jdbcType=VARCHAR},
323
-      </if>
324
-      <if test="record.deviceIp != null" >
325
-        device_ip = #{record.deviceIp,jdbcType=VARCHAR},
326
-      </if>
327
-      <if test="record.systemIdentify != null" >
328
-        system_identify = #{record.systemIdentify,jdbcType=VARCHAR},
329
-      </if>
330
-      <if test="record.operationTime != null" >
331
-        operation_time = #{record.operationTime,jdbcType=TIMESTAMP},
332
-      </if>
333
-    </set>
334
-    <if test="_parameter != null" >
335
-      <include refid="Update_By_Example_Where_Clause" />
336
-    </if>
337
-  </update>
338
-  <update id="updateByExample" parameterType="map" >
339
-    update system_log_two
340
-    set id = #{record.id,jdbcType=VARCHAR},
341
-      org_id = #{record.orgId,jdbcType=INTEGER},
342
-      user_id = #{record.userId,jdbcType=INTEGER},
343
-      user_zh = #{record.userZh,jdbcType=VARCHAR},
344
-      user_name = #{record.userName,jdbcType=VARCHAR},
345
-      user_role = #{record.userRole,jdbcType=VARCHAR},
346
-      user_address = #{record.userAddress,jdbcType=VARCHAR},
347
-      dl_time = #{record.dlTime,jdbcType=TIMESTAMP},
348
-      zx_time = #{record.zxTime,jdbcType=TIMESTAMP},
349
-      func_id = #{record.funcId,jdbcType=INTEGER},
350
-      func_name = #{record.funcName,jdbcType=VARCHAR},
351
-      btn_id = #{record.btnId,jdbcType=INTEGER},
352
-      method_name = #{record.methodName,jdbcType=VARCHAR},
353
-      oper_result = #{record.operResult,jdbcType=VARCHAR},
354
-      parameter = #{record.parameter,jdbcType=VARCHAR},
355
-      rtn_param = #{record.rtnParam,jdbcType=VARCHAR},
356
-      describes = #{record.describes,jdbcType=VARCHAR},
357
-      type = #{record.type,jdbcType=VARCHAR},
358
-      device_ip = #{record.deviceIp,jdbcType=VARCHAR},
359
-      system_identify = #{record.systemIdentify,jdbcType=VARCHAR},
360
-      operation_time = #{record.operationTime,jdbcType=TIMESTAMP}
361
-    <if test="_parameter != null" >
362
-      <include refid="Update_By_Example_Where_Clause" />
363
-    </if>
364
-  </update>
365
-</mapper>

+ 0 - 228
target/classes/com/chinaitop/depot/system/mapper/UserOperationlogMapper.xml

@@ -1,228 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
-<mapper namespace="com.chinaitop.depot.system.mapper.UserOperationlogMapper" >
4
-  <resultMap id="BaseResultMap" type="com.chinaitop.depot.system.model.UserOperationlog" >
5
-    <id column="uol_id" property="uolId" jdbcType="INTEGER" />
6
-    <result column="user_id" property="userId" jdbcType="INTEGER" />
7
-    <result column="operation_time" property="operationTime" jdbcType="TIMESTAMP" />
8
-    <result column="uot_id" property="uotId" jdbcType="INTEGER" />
9
-    <result column="parameter_value" property="parameterValue" jdbcType="VARCHAR" />
10
-    <result column="parameter" property="parameter" jdbcType="VARCHAR" />
11
-  </resultMap>
12
-  <sql id="Example_Where_Clause" >
13
-    <where >
14
-      <foreach collection="oredCriteria" item="criteria" separator="or" >
15
-        <if test="criteria.valid" >
16
-          <trim prefix="(" suffix=")" prefixOverrides="and" >
17
-            <foreach collection="criteria.criteria" item="criterion" >
18
-              <choose >
19
-                <when test="criterion.noValue" >
20
-                  and ${criterion.condition}
21
-                </when>
22
-                <when test="criterion.singleValue" >
23
-                  and ${criterion.condition} #{criterion.value}
24
-                </when>
25
-                <when test="criterion.betweenValue" >
26
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
27
-                </when>
28
-                <when test="criterion.listValue" >
29
-                  and ${criterion.condition}
30
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
31
-                    #{listItem}
32
-                  </foreach>
33
-                </when>
34
-              </choose>
35
-            </foreach>
36
-          </trim>
37
-        </if>
38
-      </foreach>
39
-    </where>
40
-  </sql>
41
-  <sql id="Update_By_Example_Where_Clause" >
42
-    <where >
43
-      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
44
-        <if test="criteria.valid" >
45
-          <trim prefix="(" suffix=")" prefixOverrides="and" >
46
-            <foreach collection="criteria.criteria" item="criterion" >
47
-              <choose >
48
-                <when test="criterion.noValue" >
49
-                  and ${criterion.condition}
50
-                </when>
51
-                <when test="criterion.singleValue" >
52
-                  and ${criterion.condition} #{criterion.value}
53
-                </when>
54
-                <when test="criterion.betweenValue" >
55
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
56
-                </when>
57
-                <when test="criterion.listValue" >
58
-                  and ${criterion.condition}
59
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
60
-                    #{listItem}
61
-                  </foreach>
62
-                </when>
63
-              </choose>
64
-            </foreach>
65
-          </trim>
66
-        </if>
67
-      </foreach>
68
-    </where>
69
-  </sql>
70
-  <sql id="Base_Column_List" >
71
-    uol_id, user_id, operation_time, uot_id, parameter_value, parameter
72
-  </sql>
73
-  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.system.model.UserOperationlogExample" >
74
-    select
75
-    <if test="distinct" >
76
-      distinct
77
-    </if>
78
-    <include refid="Base_Column_List" />
79
-    from user_operationlog
80
-    <if test="_parameter != null" >
81
-      <include refid="Example_Where_Clause" />
82
-    </if>
83
-    <if test="orderByClause != null" >
84
-      order by ${orderByClause}
85
-    </if>
86
-  </select>
87
-  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
88
-    select 
89
-    <include refid="Base_Column_List" />
90
-    from user_operationlog
91
-    where uol_id = #{uolId,jdbcType=INTEGER}
92
-  </select>
93
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
94
-    delete from user_operationlog
95
-    where uol_id = #{uolId,jdbcType=INTEGER}
96
-  </delete>
97
-  <delete id="deleteByExample" parameterType="com.chinaitop.depot.system.model.UserOperationlogExample" >
98
-    delete from user_operationlog
99
-    <if test="_parameter != null" >
100
-      <include refid="Example_Where_Clause" />
101
-    </if>
102
-  </delete>
103
-  <insert id="insert" parameterType="com.chinaitop.depot.system.model.UserOperationlog" >
104
-    insert into user_operationlog (uol_id, user_id, operation_time, 
105
-      uot_id, parameter_value, parameter
106
-      )
107
-    values (#{uolId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{operationTime,jdbcType=TIMESTAMP}, 
108
-      #{uotId,jdbcType=INTEGER}, #{parameterValue,jdbcType=VARCHAR}, #{parameter,jdbcType=VARCHAR}
109
-      )
110
-  </insert>
111
-  <insert id="insertSelective" parameterType="com.chinaitop.depot.system.model.UserOperationlog" >
112
-    insert into user_operationlog
113
-    <trim prefix="(" suffix=")" suffixOverrides="," >
114
-      <if test="uolId != null" >
115
-        uol_id,
116
-      </if>
117
-      <if test="userId != null" >
118
-        user_id,
119
-      </if>
120
-      <if test="operationTime != null" >
121
-        operation_time,
122
-      </if>
123
-      <if test="uotId != null" >
124
-        uot_id,
125
-      </if>
126
-      <if test="parameterValue != null" >
127
-        parameter_value,
128
-      </if>
129
-      <if test="parameter != null" >
130
-        parameter,
131
-      </if>
132
-    </trim>
133
-    <trim prefix="values (" suffix=")" suffixOverrides="," >
134
-      <if test="uolId != null" >
135
-        #{uolId,jdbcType=INTEGER},
136
-      </if>
137
-      <if test="userId != null" >
138
-        #{userId,jdbcType=INTEGER},
139
-      </if>
140
-      <if test="operationTime != null" >
141
-        #{operationTime,jdbcType=TIMESTAMP},
142
-      </if>
143
-      <if test="uotId != null" >
144
-        #{uotId,jdbcType=INTEGER},
145
-      </if>
146
-      <if test="parameterValue != null" >
147
-        #{parameterValue,jdbcType=VARCHAR},
148
-      </if>
149
-      <if test="parameter != null" >
150
-        #{parameter,jdbcType=VARCHAR},
151
-      </if>
152
-    </trim>
153
-  </insert>
154
-  <select id="countByExample" parameterType="com.chinaitop.depot.system.model.UserOperationlogExample" resultType="java.lang.Integer" >
155
-    select count(*) from user_operationlog
156
-    <if test="_parameter != null" >
157
-      <include refid="Example_Where_Clause" />
158
-    </if>
159
-  </select>
160
-  <update id="updateByExampleSelective" parameterType="map" >
161
-    update user_operationlog
162
-    <set >
163
-      <if test="record.uolId != null" >
164
-        uol_id = #{record.uolId,jdbcType=INTEGER},
165
-      </if>
166
-      <if test="record.userId != null" >
167
-        user_id = #{record.userId,jdbcType=INTEGER},
168
-      </if>
169
-      <if test="record.operationTime != null" >
170
-        operation_time = #{record.operationTime,jdbcType=TIMESTAMP},
171
-      </if>
172
-      <if test="record.uotId != null" >
173
-        uot_id = #{record.uotId,jdbcType=INTEGER},
174
-      </if>
175
-      <if test="record.parameterValue != null" >
176
-        parameter_value = #{record.parameterValue,jdbcType=VARCHAR},
177
-      </if>
178
-      <if test="record.parameter != null" >
179
-        parameter = #{record.parameter,jdbcType=VARCHAR},
180
-      </if>
181
-    </set>
182
-    <if test="_parameter != null" >
183
-      <include refid="Update_By_Example_Where_Clause" />
184
-    </if>
185
-  </update>
186
-  <update id="updateByExample" parameterType="map" >
187
-    update user_operationlog
188
-    set uol_id = #{record.uolId,jdbcType=INTEGER},
189
-      user_id = #{record.userId,jdbcType=INTEGER},
190
-      operation_time = #{record.operationTime,jdbcType=TIMESTAMP},
191
-      uot_id = #{record.uotId,jdbcType=INTEGER},
192
-      parameter_value = #{record.parameterValue,jdbcType=VARCHAR},
193
-      parameter = #{record.parameter,jdbcType=VARCHAR}
194
-    <if test="_parameter != null" >
195
-      <include refid="Update_By_Example_Where_Clause" />
196
-    </if>
197
-  </update>
198
-  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.system.model.UserOperationlog" >
199
-    update user_operationlog
200
-    <set >
201
-      <if test="userId != null" >
202
-        user_id = #{userId,jdbcType=INTEGER},
203
-      </if>
204
-      <if test="operationTime != null" >
205
-        operation_time = #{operationTime,jdbcType=TIMESTAMP},
206
-      </if>
207
-      <if test="uotId != null" >
208
-        uot_id = #{uotId,jdbcType=INTEGER},
209
-      </if>
210
-      <if test="parameterValue != null" >
211
-        parameter_value = #{parameterValue,jdbcType=VARCHAR},
212
-      </if>
213
-      <if test="parameter != null" >
214
-        parameter = #{parameter,jdbcType=VARCHAR},
215
-      </if>
216
-    </set>
217
-    where uol_id = #{uolId,jdbcType=INTEGER}
218
-  </update>
219
-  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.system.model.UserOperationlog" >
220
-    update user_operationlog
221
-    set user_id = #{userId,jdbcType=INTEGER},
222
-      operation_time = #{operationTime,jdbcType=TIMESTAMP},
223
-      uot_id = #{uotId,jdbcType=INTEGER},
224
-      parameter_value = #{parameterValue,jdbcType=VARCHAR},
225
-      parameter = #{parameter,jdbcType=VARCHAR}
226
-    where uol_id = #{uolId,jdbcType=INTEGER}
227
-  </update>
228
-</mapper>

+ 0 - 196
target/classes/com/chinaitop/depot/system/mapper/UserOperationtypeMapper.xml

@@ -1,196 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" ?>
2
-<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
-<mapper namespace="com.chinaitop.depot.system.mapper.UserOperationtypeMapper" >
4
-  <resultMap id="BaseResultMap" type="com.chinaitop.depot.system.model.UserOperationtype" >
5
-    <id column="uot_id" property="uotId" jdbcType="INTEGER" />
6
-    <result column="operation_url" property="operationUrl" jdbcType="VARCHAR" />
7
-    <result column="describes" property="describes" jdbcType="VARCHAR" />
8
-    <result column="parameter_name" property="parameterName" jdbcType="VARCHAR" />
9
-  </resultMap>
10
-  <sql id="Example_Where_Clause" >
11
-    <where >
12
-      <foreach collection="oredCriteria" item="criteria" separator="or" >
13
-        <if test="criteria.valid" >
14
-          <trim prefix="(" suffix=")" prefixOverrides="and" >
15
-            <foreach collection="criteria.criteria" item="criterion" >
16
-              <choose >
17
-                <when test="criterion.noValue" >
18
-                  and ${criterion.condition}
19
-                </when>
20
-                <when test="criterion.singleValue" >
21
-                  and ${criterion.condition} #{criterion.value}
22
-                </when>
23
-                <when test="criterion.betweenValue" >
24
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
25
-                </when>
26
-                <when test="criterion.listValue" >
27
-                  and ${criterion.condition}
28
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
29
-                    #{listItem}
30
-                  </foreach>
31
-                </when>
32
-              </choose>
33
-            </foreach>
34
-          </trim>
35
-        </if>
36
-      </foreach>
37
-    </where>
38
-  </sql>
39
-  <sql id="Update_By_Example_Where_Clause" >
40
-    <where >
41
-      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
42
-        <if test="criteria.valid" >
43
-          <trim prefix="(" suffix=")" prefixOverrides="and" >
44
-            <foreach collection="criteria.criteria" item="criterion" >
45
-              <choose >
46
-                <when test="criterion.noValue" >
47
-                  and ${criterion.condition}
48
-                </when>
49
-                <when test="criterion.singleValue" >
50
-                  and ${criterion.condition} #{criterion.value}
51
-                </when>
52
-                <when test="criterion.betweenValue" >
53
-                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
54
-                </when>
55
-                <when test="criterion.listValue" >
56
-                  and ${criterion.condition}
57
-                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
58
-                    #{listItem}
59
-                  </foreach>
60
-                </when>
61
-              </choose>
62
-            </foreach>
63
-          </trim>
64
-        </if>
65
-      </foreach>
66
-    </where>
67
-  </sql>
68
-  <sql id="Base_Column_List" >
69
-    uot_id, operation_url, describes, parameter_name
70
-  </sql>
71
-  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.system.model.UserOperationtypeExample" >
72
-    select
73
-    <if test="distinct" >
74
-      distinct
75
-    </if>
76
-    <include refid="Base_Column_List" />
77
-    from user_operationtype
78
-    <if test="_parameter != null" >
79
-      <include refid="Example_Where_Clause" />
80
-    </if>
81
-    <if test="orderByClause != null" >
82
-      order by ${orderByClause}
83
-    </if>
84
-  </select>
85
-  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
86
-    select 
87
-    <include refid="Base_Column_List" />
88
-    from user_operationtype
89
-    where uot_id = #{uotId,jdbcType=INTEGER}
90
-  </select>
91
-  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
92
-    delete from user_operationtype
93
-    where uot_id = #{uotId,jdbcType=INTEGER}
94
-  </delete>
95
-  <delete id="deleteByExample" parameterType="com.chinaitop.depot.system.model.UserOperationtypeExample" >
96
-    delete from user_operationtype
97
-    <if test="_parameter != null" >
98
-      <include refid="Example_Where_Clause" />
99
-    </if>
100
-  </delete>
101
-  <insert id="insert" parameterType="com.chinaitop.depot.system.model.UserOperationtype" >
102
-    insert into user_operationtype (uot_id, operation_url, describes, 
103
-      parameter_name)
104
-    values (#{uotId,jdbcType=INTEGER}, #{operationUrl,jdbcType=VARCHAR}, #{describes,jdbcType=VARCHAR}, 
105
-      #{parameterName,jdbcType=VARCHAR})
106
-  </insert>
107
-  <insert id="insertSelective" parameterType="com.chinaitop.depot.system.model.UserOperationtype" >
108
-    insert into user_operationtype
109
-    <trim prefix="(" suffix=")" suffixOverrides="," >
110
-      <if test="uotId != null" >
111
-        uot_id,
112
-      </if>
113
-      <if test="operationUrl != null" >
114
-        operation_url,
115
-      </if>
116
-      <if test="describes != null" >
117
-        describes,
118
-      </if>
119
-      <if test="parameterName != null" >
120
-        parameter_name,
121
-      </if>
122
-    </trim>
123
-    <trim prefix="values (" suffix=")" suffixOverrides="," >
124
-      <if test="uotId != null" >
125
-        #{uotId,jdbcType=INTEGER},
126
-      </if>
127
-      <if test="operationUrl != null" >
128
-        #{operationUrl,jdbcType=VARCHAR},
129
-      </if>
130
-      <if test="describes != null" >
131
-        #{describes,jdbcType=VARCHAR},
132
-      </if>
133
-      <if test="parameterName != null" >
134
-        #{parameterName,jdbcType=VARCHAR},
135
-      </if>
136
-    </trim>
137
-  </insert>
138
-  <select id="countByExample" parameterType="com.chinaitop.depot.system.model.UserOperationtypeExample" resultType="java.lang.Integer" >
139
-    select count(*) from user_operationtype
140
-    <if test="_parameter != null" >
141
-      <include refid="Example_Where_Clause" />
142
-    </if>
143
-  </select>
144
-  <update id="updateByExampleSelective" parameterType="map" >
145
-    update user_operationtype
146
-    <set >
147
-      <if test="record.uotId != null" >
148
-        uot_id = #{record.uotId,jdbcType=INTEGER},
149
-      </if>
150
-      <if test="record.operationUrl != null" >
151
-        operation_url = #{record.operationUrl,jdbcType=VARCHAR},
152
-      </if>
153
-      <if test="record.describes != null" >
154
-        describes = #{record.describes,jdbcType=VARCHAR},
155
-      </if>
156
-      <if test="record.parameterName != null" >
157
-        parameter_name = #{record.parameterName,jdbcType=VARCHAR},
158
-      </if>
159
-    </set>
160
-    <if test="_parameter != null" >
161
-      <include refid="Update_By_Example_Where_Clause" />
162
-    </if>
163
-  </update>
164
-  <update id="updateByExample" parameterType="map" >
165
-    update user_operationtype
166
-    set uot_id = #{record.uotId,jdbcType=INTEGER},
167
-      operation_url = #{record.operationUrl,jdbcType=VARCHAR},
168
-      describes = #{record.describes,jdbcType=VARCHAR},
169
-      parameter_name = #{record.parameterName,jdbcType=VARCHAR}
170
-    <if test="_parameter != null" >
171
-      <include refid="Update_By_Example_Where_Clause" />
172
-    </if>
173
-  </update>
174
-  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.system.model.UserOperationtype" >
175
-    update user_operationtype
176
-    <set >
177
-      <if test="operationUrl != null" >
178
-        operation_url = #{operationUrl,jdbcType=VARCHAR},
179
-      </if>
180
-      <if test="describes != null" >
181
-        describes = #{describes,jdbcType=VARCHAR},
182
-      </if>
183
-      <if test="parameterName != null" >
184
-        parameter_name = #{parameterName,jdbcType=VARCHAR},
185
-      </if>
186
-    </set>
187
-    where uot_id = #{uotId,jdbcType=INTEGER}
188
-  </update>
189
-  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.system.model.UserOperationtype" >
190
-    update user_operationtype
191
-    set operation_url = #{operationUrl,jdbcType=VARCHAR},
192
-      describes = #{describes,jdbcType=VARCHAR},
193
-      parameter_name = #{parameterName,jdbcType=VARCHAR}
194
-    where uot_id = #{uotId,jdbcType=INTEGER}
195
-  </update>
196
-</mapper>

+ 0 - 5
target/classes/static/.babelrc

@@ -1,5 +0,0 @@
1
-
2
-{
3
-  "compact": false,
4
-  "presets": [ "@babel/preset-env" ]
5
-}

+ 0 - 4
target/classes/static/.gitignore

@@ -1,4 +0,0 @@
1
-.DS_Store
2
-node_modules
3
-*.log
4
-.vscode

BIN
target/classes/static/3Dlc/img/1111.jpg


BIN
target/classes/static/3Dlc/img/cizhuan.jpg


BIN
target/classes/static/3Dlc/img/corn.jpg


BIN
target/classes/static/3Dlc/img/diban.jpg


BIN
target/classes/static/3Dlc/img/door_left.png


BIN
target/classes/static/3Dlc/img/floor.jpg


BIN
target/classes/static/3Dlc/img/ls.png


BIN
target/classes/static/3Dlc/img/lss.jpg


BIN
target/classes/static/3Dlc/img/qiang.jpg


+ 0 - 158
target/classes/static/3Dlc/index.html

@@ -1,158 +0,0 @@
1
-<!DOCTYPE html>
2
-<html lang="en">
3
-	<head>
4
-		<meta charset="UTF-8">
5
-		<title>粮情信息三维展示</title>
6
-		<style>
7
-			body {
8
-				margin: 0;
9
-				overflow: hidden;
10
-				/* 隐藏body窗口区域滚动条 */
11
-			}
12
-
13
-			#CT {
14
-				width: 100%;
15
-				height: 100%;
16
-				z-index: 200;
17
-			}
18
-
19
-			.label {
20
-				color: white;
21
-				font-family: sans-serif;
22
-				padding: 2px;
23
-				/* margin-left: -80px;
24
-				top: -19px; */
25
-				background: rgba(0, 0, 0, .6);
26
-				display: none;
27
-			}
28
-			.label.active{
29
-				display: block;
30
-			}
31
-
32
-			#CTXX {
33
-				width: 300px;
34
-				height: 130px;
35
-				position: absolute;
36
-				margin-top: 134px;
37
-				background-color: #b9c5c5;
38
-				/* margin-left: 22px; */
39
-				right: 20px;
40
-				z-index: 9999;
41
-			}
42
-
43
-			#CTXXTile,
44
-			#CTWDTile {
45
-				width: 100%;
46
-				height: 30px;
47
-				background-color: black;
48
-			}
49
-
50
-			#CTXXContent {
51
-				width: 100%;
52
-				height: 100px;
53
-			}
54
-
55
-			#LK1 {
56
-				margin-left: 9px;
57
-				margin-top: 3px;
58
-			}
59
-
60
-			#CTWD {
61
-				z-index: 9999;
62
-				width: 300px;
63
-				height: 158px;
64
-				position: absolute;
65
-				margin-top: 277px;
66
-				background-color: #b9c5c5;
67
-				/* margin-left: 22px; */
68
-				right: 20px;
69
-			}
70
-
71
-			.ctbtn {
72
-				width: 145px;
73
-				height: 30px;
74
-				margin-left: 2px;
75
-				background-color: lightblue;
76
-				border-color: azure;
77
-			}
78
-			#CTTitle{
79
-				width: 100%;
80
-				height: 88px;
81
-				background-color: #1a1a1a;
82
-				position: absolute;
83
-			}
84
-		</style>
85
-		<!--引入three.js三维引擎-->
86
-		<script src="js/three.js"></script>
87
-		<!-- 引入threejs扩展控件OrbitControls.js -->
88
-		<script src="js/OrbitControls.js"></script>
89
-		<script src="js/Object3D.js"></script>
90
-		<script src="js/TrackballControls.js"></script>
91
-		<script src="js/stats.min.js"></script>
92
-		<script src="js/dat.gui.min.js"></script>
93
-		<script src="js/onEvent.js"></script>
94
-		<script src="js/CSS2DRenderer.js"></script>
95
-		<script src="js/jquery.js"></script>
96
-		<script src="tmp/threex.atmospherematerial.js"></script>
97
-		<script src="tmp/threex.atmospherematerialdatgui.js"></script>
98
-		<script src="tmp/threex.dilategeometry.js"></script>
99
-		<script src="tmp/threex.geometricglowmesh.js"></script>
100
-		<link rel="stylesheet" href="js/loading/jquery.mloading.css" />
101
-		<script src="js/loading/jquery.mloading.js"></script>
102
-		<script src="js/Tween.js"></script>
103
-	</head>
104
-	<body>
105
-		<div id="CT" onload="draw();">
106
-			<div id="CTTitle" style="z-index: 9999;">
107
-				<h1 style="position: absolute;color: #eee;margin-left: 28px;">粮情信息三维展示</h1>
108
-			</div>
109
-		</div>
110
-		<div id="CTXX">
111
-			<div id="CTXXTile">
112
-				<b style="position: absolute;margin-top: 6px;margin-left: 12px;color: beige;opacity: 0.6;">仓体信息</b>
113
-			</div>
114
-			<div id="CTXXContent">
115
-				<div id="LK1">
116
-					<i>粮食等级:</i>
117
-					<i id="LSDJ"></i>
118
-				</div>
119
-				<div id="LK1">
120
-					<i>粮库名称:</i>
121
-					<i id="LKMC"></i>
122
-				</div>
123
-				<div id="LK1">
124
-					<i>保管员:</i>
125
-					<i id="LKBGY"></i>
126
-				</div>
127
-				<div id="LK1">
128
-					<i>粮食品种:</i>
129
-					<i id="LSPZ"></i>
130
-				</div>
131
-			</div>
132
-		</div>
133
-		<div id="CTWD">
134
-			<div id="CTWDTile">
135
-				<b style="position: absolute;margin-top: 6px;margin-left: 12px;color: beige;opacity: 0.6;">仓体温度</b>
136
-			</div>
137
-			<div id="LK1">
138
-				<i>仓内湿度:</i>
139
-				<i id="CNSD"></i>
140
-			</div>
141
-			<div id="LK1">
142
-				<i>仓内温度:</i>
143
-				<i id="CNWD"></i>
144
-			</div>
145
-			<div id="LK1">
146
-				<i>仓外湿度:</i>
147
-				<i id="CWSD"></i>
148
-			</div>
149
-			<div id="LK1">
150
-				<i>仓外温度:</i>
151
-				<i id="CWWD"></i>
152
-			</div>
153
-			<button class="ctbtn" onclick="CWXQ()">测温详情</button>
154
-			<button class="ctbtn" onclick="HFQJ()">恢复全景</button>
155
-		</div>
156
-		<script src="tools/lctools.min.js"></script>
157
-	</body>
158
-</html>

+ 0 - 175
target/classes/static/3Dlc/js/CSS2DRenderer.js

@@ -1,175 +0,0 @@
1
-/**
2
- * @author mrdoob / http://mrdoob.com/
3
- */
4
-
5
-THREE.CSS2DObject = function ( element ) {
6
-
7
-	THREE.Object3D.call( this );
8
-
9
-	this.element = element;
10
-	this.element.style.position = 'absolute';
11
-
12
-	this.addEventListener( 'removed', function () {
13
-
14
-		if ( this.element.parentNode !== null ) {
15
-
16
-			this.element.parentNode.removeChild( this.element );
17
-
18
-		}
19
-
20
-	} );
21
-
22
-};
23
-
24
-THREE.CSS2DObject.prototype = Object.create( THREE.Object3D.prototype );
25
-THREE.CSS2DObject.prototype.constructor = THREE.CSS2DObject;
26
-
27
-//
28
-
29
-THREE.CSS2DRenderer = function () {
30
-
31
-	console.log( 'THREE.CSS2DRenderer', THREE.REVISION );
32
-
33
-	var _width, _height;
34
-	var _widthHalf, _heightHalf;
35
-
36
-	var vector = new THREE.Vector3();
37
-	var viewMatrix = new THREE.Matrix4();
38
-	var viewProjectionMatrix = new THREE.Matrix4();
39
-
40
-	var cache = {
41
-		objects: new WeakMap()
42
-	};
43
-
44
-	var domElement = document.createElement( 'div' );
45
-	domElement.style.overflow = 'hidden';
46
-
47
-	this.domElement = domElement;
48
-
49
-	this.getSize = function () {
50
-
51
-		return {
52
-			width: _width,
53
-			height: _height
54
-		};
55
-
56
-	};
57
-
58
-	this.setSize = function ( width, height ) {
59
-
60
-		_width = width;
61
-		_height = height;
62
-
63
-		_widthHalf = _width / 2;
64
-		_heightHalf = _height / 2;
65
-
66
-		domElement.style.width = width + 'px';
67
-		domElement.style.height = height + 'px';
68
-
69
-	};
70
-
71
-	var renderObject = function ( object, camera ) {
72
-
73
-		if ( object instanceof THREE.CSS2DObject ) {
74
-
75
-			vector.setFromMatrixPosition( object.matrixWorld );
76
-			vector.applyMatrix4( viewProjectionMatrix );
77
-
78
-			var element = object.element;
79
-			var style = 'translate(-50%,-50%) translate(' + ( vector.x * _widthHalf + _widthHalf ) + 'px,' + ( - vector.y * _heightHalf + _heightHalf ) + 'px)';
80
-
81
-			element.style.WebkitTransform = style;
82
-			element.style.MozTransform = style;
83
-			element.style.oTransform = style;
84
-			element.style.transform = style;
85
-
86
-			element.style.display = ( object.visible && vector.z >= - 1 && vector.z <= 1 ) ? '' : 'none';
87
-
88
-			var objectData = {
89
-				distanceToCameraSquared: getDistanceToSquared( camera, object )
90
-			};
91
-
92
-			cache.objects.set( object, objectData );
93
-
94
-			if ( element.parentNode !== domElement ) {
95
-
96
-				domElement.appendChild( element );
97
-
98
-			}
99
-
100
-		}
101
-
102
-		for ( var i = 0, l = object.children.length; i < l; i ++ ) {
103
-
104
-			renderObject( object.children[ i ], camera );
105
-
106
-		}
107
-
108
-	};
109
-
110
-	var getDistanceToSquared = function () {
111
-
112
-		var a = new THREE.Vector3();
113
-		var b = new THREE.Vector3();
114
-
115
-		return function ( object1, object2 ) {
116
-
117
-			a.setFromMatrixPosition( object1.matrixWorld );
118
-			b.setFromMatrixPosition( object2.matrixWorld );
119
-
120
-			return a.distanceToSquared( b );
121
-
122
-		};
123
-
124
-	}();
125
-
126
-	var filterAndFlatten = function ( scene ) {
127
-
128
-		var result = [];
129
-
130
-		scene.traverse( function ( object ) {
131
-
132
-			if ( object instanceof THREE.CSS2DObject ) result.push( object );
133
-
134
-		} );
135
-
136
-		return result;
137
-
138
-	};
139
-
140
-	var zOrder = function ( scene ) {
141
-
142
-		var sorted = filterAndFlatten( scene ).sort( function ( a, b ) {
143
-
144
-			var distanceA = cache.objects.get( a ).distanceToCameraSquared;
145
-			var distanceB = cache.objects.get( b ).distanceToCameraSquared;
146
-
147
-			return distanceA - distanceB;
148
-
149
-		} );
150
-
151
-		var zMax = sorted.length;
152
-
153
-		for ( var i = 0, l = sorted.length; i < l; i ++ ) {
154
-
155
-			sorted[ i ].element.style.zIndex = zMax - i;
156
-
157
-		}
158
-
159
-	};
160
-
161
-	this.render = function ( scene, camera ) {
162
-
163
-		scene.updateMatrixWorld();
164
-
165
-		if ( camera.parent === null ) camera.updateMatrixWorld();
166
-
167
-		viewMatrix.copy( camera.matrixWorldInverse );
168
-		viewProjectionMatrix.multiplyMatrices( camera.projectionMatrix, viewMatrix );
169
-
170
-		renderObject( scene, camera );
171
-		zOrder( scene );
172
-
173
-	};
174
-
175
-};

+ 0 - 77
target/classes/static/3Dlc/js/CubeTextureLoader.js

@@ -1,77 +0,0 @@
1
-/**
2
- * @author mrdoob / http://mrdoob.com/
3
- */
4
-
5
-import { ImageLoader } from './ImageLoader.js';
6
-import { CubeTexture } from '../textures/CubeTexture.js';
7
-import { DefaultLoadingManager } from './LoadingManager.js';
8
-
9
-
10
-function CubeTextureLoader( manager ) {
11
-
12
-	this.manager = ( manager !== undefined ) ? manager : DefaultLoadingManager;
13
-
14
-}
15
-
16
-Object.assign( CubeTextureLoader.prototype, {
17
-
18
-	crossOrigin: 'anonymous',
19
-
20
-	load: function ( urls, onLoad, onProgress, onError ) {
21
-
22
-		var texture = new CubeTexture();
23
-
24
-		var loader = new ImageLoader( this.manager );
25
-		loader.setCrossOrigin( this.crossOrigin );
26
-		loader.setPath( this.path );
27
-
28
-		var loaded = 0;
29
-
30
-		function loadTexture( i ) {
31
-
32
-			loader.load( urls[ i ], function ( image ) {
33
-
34
-				texture.images[ i ] = image;
35
-
36
-				loaded ++;
37
-
38
-				if ( loaded === 6 ) {
39
-
40
-					texture.needsUpdate = true;
41
-
42
-					if ( onLoad ) onLoad( texture );
43
-
44
-				}
45
-
46
-			}, undefined, onError );
47
-
48
-		}
49
-
50
-		for ( var i = 0; i < urls.length; ++ i ) {
51
-
52
-			loadTexture( i );
53
-
54
-		}
55
-
56
-		return texture;
57
-
58
-	},
59
-
60
-	setCrossOrigin: function ( value ) {
61
-
62
-		this.crossOrigin = value;
63
-		return this;
64
-
65
-	},
66
-
67
-	setPath: function ( value ) {
68
-
69
-		this.path = value;
70
-		return this;
71
-
72
-	}
73
-
74
-} );
75
-
76
-
77
-export { CubeTextureLoader };

+ 0 - 236
target/classes/static/3Dlc/js/DDSLoader.js

@@ -1,236 +0,0 @@
1
-/*
2
- * @author mrdoob / http://mrdoob.com/
3
- */
4
-
5
-THREE.DDSLoader = function () {
6
-	this._parser = THREE.DDSLoader.parse;
7
-};
8
-
9
-THREE.DDSLoader.prototype = Object.create( THREE.CompressedTextureLoader.prototype );
10
-
11
-THREE.DDSLoader.parse = function ( buffer, loadMipmaps ) {
12
-
13
-	var dds = { mipmaps: [], width: 0, height: 0, format: null, mipmapCount: 1 };
14
-
15
-	// Adapted from @toji's DDS utils
16
-	//	https://github.com/toji/webgl-texture-utils/blob/master/texture-util/dds.js
17
-
18
-	// All values and structures referenced from:
19
-	// http://msdn.microsoft.com/en-us/library/bb943991.aspx/
20
-
21
-	var DDS_MAGIC = 0x20534444;
22
-
23
-	var DDSD_CAPS = 0x1,
24
-		DDSD_HEIGHT = 0x2,
25
-		DDSD_WIDTH = 0x4,
26
-		DDSD_PITCH = 0x8,
27
-		DDSD_PIXELFORMAT = 0x1000,
28
-		DDSD_MIPMAPCOUNT = 0x20000,
29
-		DDSD_LINEARSIZE = 0x80000,
30
-		DDSD_DEPTH = 0x800000;
31
-
32
-	var DDSCAPS_COMPLEX = 0x8,
33
-		DDSCAPS_MIPMAP = 0x400000,
34
-		DDSCAPS_TEXTURE = 0x1000;
35
-
36
-	var DDSCAPS2_CUBEMAP = 0x200,
37
-		DDSCAPS2_CUBEMAP_POSITIVEX = 0x400,
38
-		DDSCAPS2_CUBEMAP_NEGATIVEX = 0x800,
39
-		DDSCAPS2_CUBEMAP_POSITIVEY = 0x1000,
40
-		DDSCAPS2_CUBEMAP_NEGATIVEY = 0x2000,
41
-		DDSCAPS2_CUBEMAP_POSITIVEZ = 0x4000,
42
-		DDSCAPS2_CUBEMAP_NEGATIVEZ = 0x8000,
43
-		DDSCAPS2_VOLUME = 0x200000;
44
-
45
-	var DDPF_ALPHAPIXELS = 0x1,
46
-		DDPF_ALPHA = 0x2,
47
-		DDPF_FOURCC = 0x4,
48
-		DDPF_RGB = 0x40,
49
-		DDPF_YUV = 0x200,
50
-		DDPF_LUMINANCE = 0x20000;
51
-
52
-	function fourCCToInt32( value ) {
53
-
54
-		return value.charCodeAt(0) +
55
-			(value.charCodeAt(1) << 8) +
56
-			(value.charCodeAt(2) << 16) +
57
-			(value.charCodeAt(3) << 24);
58
-
59
-	}
60
-
61
-	function int32ToFourCC( value ) {
62
-
63
-		return String.fromCharCode(
64
-			value & 0xff,
65
-			(value >> 8) & 0xff,
66
-			(value >> 16) & 0xff,
67
-			(value >> 24) & 0xff
68
-		);
69
-	}
70
-
71
-	function loadARGBMip( buffer, dataOffset, width, height ) {
72
-		var dataLength = width*height*4;
73
-		var srcBuffer = new Uint8Array( buffer, dataOffset, dataLength );
74
-		var byteArray = new Uint8Array( dataLength );
75
-		var dst = 0;
76
-		var src = 0;
77
-		for ( var y = 0; y < height; y++ ) {
78
-			for ( var x = 0; x < width; x++ ) {
79
-				var b = srcBuffer[src]; src++;
80
-				var g = srcBuffer[src]; src++;
81
-				var r = srcBuffer[src]; src++;
82
-				var a = srcBuffer[src]; src++;
83
-				byteArray[dst] = r; dst++;	//r
84
-				byteArray[dst] = g; dst++;	//g
85
-				byteArray[dst] = b; dst++;	//b
86
-				byteArray[dst] = a; dst++;	//a
87
-			}
88
-		}
89
-		return byteArray;
90
-	}
91
-
92
-	var FOURCC_DXT1 = fourCCToInt32("DXT1");
93
-	var FOURCC_DXT3 = fourCCToInt32("DXT3");
94
-	var FOURCC_DXT5 = fourCCToInt32("DXT5");
95
-
96
-	var headerLengthInt = 31; // The header length in 32 bit ints
97
-
98
-	// Offsets into the header array
99
-
100
-	var off_magic = 0;
101
-
102
-	var off_size = 1;
103
-	var off_flags = 2;
104
-	var off_height = 3;
105
-	var off_width = 4;
106
-
107
-	var off_mipmapCount = 7;
108
-
109
-	var off_pfFlags = 20;
110
-	var off_pfFourCC = 21;
111
-	var off_RGBBitCount = 22;
112
-	var off_RBitMask = 23;
113
-	var off_GBitMask = 24;
114
-	var off_BBitMask = 25;
115
-	var off_ABitMask = 26;
116
-
117
-	var off_caps = 27;
118
-	var off_caps2 = 28;
119
-	var off_caps3 = 29;
120
-	var off_caps4 = 30;
121
-
122
-	// Parse header
123
-
124
-	var header = new Int32Array( buffer, 0, headerLengthInt );
125
-
126
-	if ( header[ off_magic ] !== DDS_MAGIC ) {
127
-
128
-		console.error( 'THREE.DDSLoader.parse: Invalid magic number in DDS header.' );
129
-		return dds;
130
-
131
-	}
132
-
133
-	if ( ! header[ off_pfFlags ] & DDPF_FOURCC ) {
134
-
135
-		console.error( 'THREE.DDSLoader.parse: Unsupported format, must contain a FourCC code.' );
136
-		return dds;
137
-
138
-	}
139
-
140
-	var blockBytes;
141
-
142
-	var fourCC = header[ off_pfFourCC ];
143
-
144
-	var isRGBAUncompressed = false;
145
-
146
-	switch ( fourCC ) {
147
-
148
-		case FOURCC_DXT1:
149
-
150
-			blockBytes = 8;
151
-			dds.format = THREE.RGB_S3TC_DXT1_Format;
152
-			break;
153
-
154
-		case FOURCC_DXT3:
155
-
156
-			blockBytes = 16;
157
-			dds.format = THREE.RGBA_S3TC_DXT3_Format;
158
-			break;
159
-
160
-		case FOURCC_DXT5:
161
-
162
-			blockBytes = 16;
163
-			dds.format = THREE.RGBA_S3TC_DXT5_Format;
164
-			break;
165
-
166
-		default:
167
-
168
-			if( header[off_RGBBitCount] ==32 
169
-				&& header[off_RBitMask]&0xff0000
170
-				&& header[off_GBitMask]&0xff00 
171
-				&& header[off_BBitMask]&0xff
172
-				&& header[off_ABitMask]&0xff000000  ) {
173
-				isRGBAUncompressed = true;
174
-				blockBytes = 64;
175
-				dds.format = THREE.RGBAFormat;
176
-			} else {
177
-				console.error( 'THREE.DDSLoader.parse: Unsupported FourCC code ', int32ToFourCC( fourCC ) );
178
-				return dds;
179
-			}
180
-	}
181
-
182
-	dds.mipmapCount = 1;
183
-
184
-	if ( header[ off_flags ] & DDSD_MIPMAPCOUNT && loadMipmaps !== false ) {
185
-
186
-		dds.mipmapCount = Math.max( 1, header[ off_mipmapCount ] );
187
-
188
-	}
189
-
190
-	//TODO: Verify that all faces of the cubemap are present with DDSCAPS2_CUBEMAP_POSITIVEX, etc.
191
-
192
-	dds.isCubemap = header[ off_caps2 ] & DDSCAPS2_CUBEMAP ? true : false;
193
-
194
-	dds.width = header[ off_width ];
195
-	dds.height = header[ off_height ];
196
-
197
-	var dataOffset = header[ off_size ] + 4;
198
-
199
-	// Extract mipmaps buffers
200
-
201
-	var width = dds.width;
202
-	var height = dds.height;
203
-
204
-	var faces = dds.isCubemap ? 6 : 1;
205
-
206
-	for ( var face = 0; face < faces; face ++ ) {
207
-
208
-		for ( var i = 0; i < dds.mipmapCount; i ++ ) {
209
-
210
-			if( isRGBAUncompressed ) {
211
-				var byteArray = loadARGBMip( buffer, dataOffset, width, height );
212
-				var dataLength = byteArray.length;
213
-			} else {
214
-				var dataLength = Math.max( 4, width ) / 4 * Math.max( 4, height ) / 4 * blockBytes;
215
-				var byteArray = new Uint8Array( buffer, dataOffset, dataLength );
216
-			}
217
-			
218
-			var mipmap = { "data": byteArray, "width": width, "height": height };
219
-			dds.mipmaps.push( mipmap );
220
-
221
-			dataOffset += dataLength;
222
-
223
-			width = Math.max( width * 0.5, 1 );
224
-			height = Math.max( height * 0.5, 1 );
225
-
226
-		}
227
-
228
-		width = dds.width;
229
-		height = dds.height;
230
-
231
-	}
232
-
233
-	return dds;
234
-
235
-};
236
-

File diff suppressed because it is too large
+ 0 - 4136
target/classes/static/3Dlc/js/FBXLoader.js


File diff suppressed because it is too large
+ 0 - 3176
target/classes/static/3Dlc/js/GLTFLoader.js


+ 0 - 108
target/classes/static/3Dlc/js/ImageLoader.js

@@ -1,108 +0,0 @@
1
-/**
2
- * @author mrdoob / http://mrdoob.com/
3
- */
4
-
5
-import { Cache } from './Cache.js';
6
-import { DefaultLoadingManager } from './LoadingManager.js';
7
-
8
-
9
-function ImageLoader( manager ) {
10
-
11
-	this.manager = ( manager !== undefined ) ? manager : DefaultLoadingManager;
12
-
13
-}
14
-
15
-Object.assign( ImageLoader.prototype, {
16
-
17
-	crossOrigin: 'anonymous',
18
-
19
-	load: function ( url, onLoad, onProgress, onError ) {
20
-
21
-		if ( url === undefined ) url = '';
22
-
23
-		if ( this.path !== undefined ) url = this.path + url;
24
-
25
-		url = this.manager.resolveURL( url );
26
-
27
-		var scope = this;
28
-
29
-		var cached = Cache.get( url );
30
-
31
-		if ( cached !== undefined ) {
32
-
33
-			scope.manager.itemStart( url );
34
-
35
-			setTimeout( function () {
36
-
37
-				if ( onLoad ) onLoad( cached );
38
-
39
-				scope.manager.itemEnd( url );
40
-
41
-			}, 0 );
42
-
43
-			return cached;
44
-
45
-		}
46
-
47
-		var image = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'img' );
48
-
49
-		function onImageLoad() {
50
-
51
-			image.removeEventListener( 'load', onImageLoad, false );
52
-			image.removeEventListener( 'error', onImageError, false );
53
-
54
-			Cache.add( url, this );
55
-
56
-			if ( onLoad ) onLoad( this );
57
-
58
-			scope.manager.itemEnd( url );
59
-
60
-		}
61
-
62
-		function onImageError( event ) {
63
-
64
-			image.removeEventListener( 'load', onImageLoad, false );
65
-			image.removeEventListener( 'error', onImageError, false );
66
-
67
-			if ( onError ) onError( event );
68
-
69
-			scope.manager.itemError( url );
70
-			scope.manager.itemEnd( url );
71
-
72
-		}
73
-
74
-		image.addEventListener( 'load', onImageLoad, false );
75
-		image.addEventListener( 'error', onImageError, false );
76
-
77
-		if ( url.substr( 0, 5 ) !== 'data:' ) {
78
-
79
-			if ( this.crossOrigin !== undefined ) image.crossOrigin = this.crossOrigin;
80
-
81
-		}
82
-
83
-		scope.manager.itemStart( url );
84
-
85
-		image.src = url;
86
-
87
-		return image;
88
-
89
-	},
90
-
91
-	setCrossOrigin: function ( value ) {
92
-
93
-		this.crossOrigin = value;
94
-		return this;
95
-
96
-	},
97
-
98
-	setPath: function ( value ) {
99
-
100
-		this.path = value;
101
-		return this;
102
-
103
-	}
104
-
105
-} );
106
-
107
-
108
-export { ImageLoader };

+ 0 - 578
target/classes/static/3Dlc/js/LegacyJSONLoader.js

@@ -1,578 +0,0 @@
1
-/**
2
- * @author mrdoob / http://mrdoob.com/
3
- * @author alteredq / http://alteredqualia.com/
4
- */
5
-
6
-THREE.LegacyJSONLoader = ( function () {
7
-
8
-	function LegacyJSONLoader( manager ) {
9
-
10
-		if ( typeof manager === 'boolean' ) {
11
-
12
-			console.warn( 'THREE.JSONLoader: showStatus parameter has been removed from constructor.' );
13
-			manager = undefined;
14
-
15
-		}
16
-
17
-		this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
18
-
19
-		this.withCredentials = false;
20
-
21
-	}
22
-
23
-	Object.assign( LegacyJSONLoader.prototype, {
24
-
25
-		crossOrigin: 'anonymous',
26
-
27
-		load: function ( url, onLoad, onProgress, onError ) {
28
-
29
-			var scope = this;
30
-
31
-			var path = ( this.path === undefined ) ? THREE.LoaderUtils.extractUrlBase( url ) : this.path;
32
-
33
-			var loader = new THREE.FileLoader( this.manager );
34
-			loader.setPath( this.path );
35
-			loader.setWithCredentials( this.withCredentials );
36
-			loader.load( url, function ( text ) {
37
-
38
-				var json = JSON.parse( text );
39
-				var metadata = json.metadata;
40
-
41
-				if ( metadata !== undefined ) {
42
-
43
-					var type = metadata.type;
44
-
45
-					if ( type !== undefined ) {
46
-
47
-						if ( type.toLowerCase() === 'object' ) {
48
-
49
-							console.error( 'THREE.JSONLoader: ' + url + ' should be loaded with THREE.ObjectLoader instead.' );
50
-							return;
51
-
52
-						}
53
-
54
-					}
55
-
56
-				}
57
-
58
-				var object = scope.parse( json, path );
59
-				onLoad( object.geometry, object.materials );
60
-
61
-			}, onProgress, onError );
62
-
63
-		},
64
-
65
-		setPath: function ( value ) {
66
-
67
-			this.path = value;
68
-			return this;
69
-
70
-		},
71
-
72
-		setResourcePath: function ( value ) {
73
-
74
-			this.resourcePath = value;
75
-			return this;
76
-
77
-		},
78
-
79
-		setCrossOrigin: function ( value ) {
80
-
81
-			this.crossOrigin = value;
82
-			return this;
83
-
84
-		},
85
-
86
-		parse: ( function () {
87
-
88
-			function parseModel( json, geometry ) {
89
-
90
-				function isBitSet( value, position ) {
91
-
92
-					return value & ( 1 << position );
93
-
94
-				}
95
-
96
-				var i, j, fi,
97
-
98
-					offset, zLength,
99
-
100
-					colorIndex, normalIndex, uvIndex, materialIndex,
101
-
102
-					type,
103
-					isQuad,
104
-					hasMaterial,
105
-					hasFaceVertexUv,
106
-					hasFaceNormal, hasFaceVertexNormal,
107
-					hasFaceColor, hasFaceVertexColor,
108
-
109
-					vertex, face, faceA, faceB, hex, normal,
110
-
111
-					uvLayer, uv, u, v,
112
-
113
-					faces = json.faces,
114
-					vertices = json.vertices,
115
-					normals = json.normals,
116
-					colors = json.colors,
117
-
118
-					scale = json.scale,
119
-
120
-					nUvLayers = 0;
121
-
122
-
123
-				if ( json.uvs !== undefined ) {
124
-
125
-					// disregard empty arrays
126
-
127
-					for ( i = 0; i < json.uvs.length; i ++ ) {
128
-
129
-						if ( json.uvs[ i ].length ) nUvLayers ++;
130
-
131
-					}
132
-
133
-					for ( i = 0; i < nUvLayers; i ++ ) {
134
-
135
-						geometry.faceVertexUvs[ i ] = [];
136
-
137
-					}
138
-
139
-				}
140
-
141
-				offset = 0;
142
-				zLength = vertices.length;
143
-
144
-				while ( offset < zLength ) {
145
-
146
-					vertex = new THREE.Vector3();
147
-
148
-					vertex.x = vertices[ offset ++ ] * scale;
149
-					vertex.y = vertices[ offset ++ ] * scale;
150
-					vertex.z = vertices[ offset ++ ] * scale;
151
-
152
-					geometry.vertices.push( vertex );
153
-
154
-				}
155
-
156
-				offset = 0;
157
-				zLength = faces.length;
158
-
159
-				while ( offset < zLength ) {
160
-
161
-					type = faces[ offset ++ ];
162
-
163
-					isQuad = isBitSet( type, 0 );
164
-					hasMaterial = isBitSet( type, 1 );
165
-					hasFaceVertexUv = isBitSet( type, 3 );
166
-					hasFaceNormal = isBitSet( type, 4 );
167
-					hasFaceVertexNormal = isBitSet( type, 5 );
168
-					hasFaceColor = isBitSet( type, 6 );
169
-					hasFaceVertexColor = isBitSet( type, 7 );
170
-
171
-					// console.log("type", type, "bits", isQuad, hasMaterial, hasFaceVertexUv, hasFaceNormal, hasFaceVertexNormal, hasFaceColor, hasFaceVertexColor);
172
-
173
-					if ( isQuad ) {
174
-
175
-						faceA = new THREE.Face3();
176
-						faceA.a = faces[ offset ];
177
-						faceA.b = faces[ offset + 1 ];
178
-						faceA.c = faces[ offset + 3 ];
179
-
180
-						faceB = new THREE.Face3();
181
-						faceB.a = faces[ offset + 1 ];
182
-						faceB.b = faces[ offset + 2 ];
183
-						faceB.c = faces[ offset + 3 ];
184
-
185
-						offset += 4;
186
-
187
-						if ( hasMaterial ) {
188
-
189
-							materialIndex = faces[ offset ++ ];
190
-							faceA.materialIndex = materialIndex;
191
-							faceB.materialIndex = materialIndex;
192
-
193
-						}
194
-
195
-						// to get face <=> uv index correspondence
196
-
197
-						fi = geometry.faces.length;
198
-
199
-						if ( hasFaceVertexUv ) {
200
-
201
-							for ( i = 0; i < nUvLayers; i ++ ) {
202
-
203
-								uvLayer = json.uvs[ i ];
204
-
205
-								geometry.faceVertexUvs[ i ][ fi ] = [];
206
-								geometry.faceVertexUvs[ i ][ fi + 1 ] = [];
207
-
208
-								for ( j = 0; j < 4; j ++ ) {
209
-
210
-									uvIndex = faces[ offset ++ ];
211
-
212
-									u = uvLayer[ uvIndex * 2 ];
213
-									v = uvLayer[ uvIndex * 2 + 1 ];
214
-
215
-									uv = new THREE.Vector2( u, v );
216
-
217
-									if ( j !== 2 ) geometry.faceVertexUvs[ i ][ fi ].push( uv );
218
-									if ( j !== 0 ) geometry.faceVertexUvs[ i ][ fi + 1 ].push( uv );
219
-
220
-								}
221
-
222
-							}
223
-
224
-						}
225
-
226
-						if ( hasFaceNormal ) {
227
-
228
-							normalIndex = faces[ offset ++ ] * 3;
229
-
230
-							faceA.normal.set(
231
-								normals[ normalIndex ++ ],
232
-								normals[ normalIndex ++ ],
233
-								normals[ normalIndex ]
234
-							);
235
-
236
-							faceB.normal.copy( faceA.normal );
237
-
238
-						}
239
-
240
-						if ( hasFaceVertexNormal ) {
241
-
242
-							for ( i = 0; i < 4; i ++ ) {
243
-
244
-								normalIndex = faces[ offset ++ ] * 3;
245
-
246
-								normal = new THREE.Vector3(
247
-									normals[ normalIndex ++ ],
248
-									normals[ normalIndex ++ ],
249
-									normals[ normalIndex ]
250
-								);
251
-
252
-
253
-								if ( i !== 2 ) faceA.vertexNormals.push( normal );
254
-								if ( i !== 0 ) faceB.vertexNormals.push( normal );
255
-
256
-							}
257
-
258
-						}
259
-
260
-
261
-						if ( hasFaceColor ) {
262
-
263
-							colorIndex = faces[ offset ++ ];
264
-							hex = colors[ colorIndex ];
265
-
266
-							faceA.color.setHex( hex );
267
-							faceB.color.setHex( hex );
268
-
269
-						}
270
-
271
-
272
-						if ( hasFaceVertexColor ) {
273
-
274
-							for ( i = 0; i < 4; i ++ ) {
275
-
276
-								colorIndex = faces[ offset ++ ];
277
-								hex = colors[ colorIndex ];
278
-
279
-								if ( i !== 2 ) faceA.vertexColors.push( new THREE.Color( hex ) );
280
-								if ( i !== 0 ) faceB.vertexColors.push( new THREE.Color( hex ) );
281
-
282
-							}
283
-
284
-						}
285
-
286
-						geometry.faces.push( faceA );
287
-						geometry.faces.push( faceB );
288
-
289
-					} else {
290
-
291
-						face = new THREE.Face3();
292
-						face.a = faces[ offset ++ ];
293
-						face.b = faces[ offset ++ ];
294
-						face.c = faces[ offset ++ ];
295
-
296
-						if ( hasMaterial ) {
297
-
298
-							materialIndex = faces[ offset ++ ];
299
-							face.materialIndex = materialIndex;
300
-
301
-						}
302
-
303
-						// to get face <=> uv index correspondence
304
-
305
-						fi = geometry.faces.length;
306
-
307
-						if ( hasFaceVertexUv ) {
308
-
309
-							for ( i = 0; i < nUvLayers; i ++ ) {
310
-
311
-								uvLayer = json.uvs[ i ];
312
-
313
-								geometry.faceVertexUvs[ i ][ fi ] = [];
314
-
315
-								for ( j = 0; j < 3; j ++ ) {
316
-
317
-									uvIndex = faces[ offset ++ ];
318
-
319
-									u = uvLayer[ uvIndex * 2 ];
320
-									v = uvLayer[ uvIndex * 2 + 1 ];
321
-
322
-									uv = new THREE.Vector2( u, v );
323
-
324
-									geometry.faceVertexUvs[ i ][ fi ].push( uv );
325
-
326
-								}
327
-
328
-							}
329
-
330
-						}
331
-
332
-						if ( hasFaceNormal ) {
333
-
334
-							normalIndex = faces[ offset ++ ] * 3;
335
-
336
-							face.normal.set(
337
-								normals[ normalIndex ++ ],
338
-								normals[ normalIndex ++ ],
339
-								normals[ normalIndex ]
340
-							);
341
-
342
-						}
343
-
344
-						if ( hasFaceVertexNormal ) {
345
-
346
-							for ( i = 0; i < 3; i ++ ) {
347
-
348
-								normalIndex = faces[ offset ++ ] * 3;
349
-
350
-								normal = new THREE.Vector3(
351
-									normals[ normalIndex ++ ],
352
-									normals[ normalIndex ++ ],
353
-									normals[ normalIndex ]
354
-								);
355
-
356
-								face.vertexNormals.push( normal );
357
-
358
-							}
359
-
360
-						}
361
-
362
-
363
-						if ( hasFaceColor ) {
364
-
365
-							colorIndex = faces[ offset ++ ];
366
-							face.color.setHex( colors[ colorIndex ] );
367
-
368
-						}
369
-
370
-
371
-						if ( hasFaceVertexColor ) {
372
-
373
-							for ( i = 0; i < 3; i ++ ) {
374
-
375
-								colorIndex = faces[ offset ++ ];
376
-								face.vertexColors.push( new THREE.Color( colors[ colorIndex ] ) );
377
-
378
-							}
379
-
380
-						}
381
-
382
-						geometry.faces.push( face );
383
-
384
-					}
385
-
386
-				}
387
-
388
-			}
389
-
390
-			function parseSkin( json, geometry ) {
391
-
392
-				var influencesPerVertex = ( json.influencesPerVertex !== undefined ) ? json.influencesPerVertex : 2;
393
-
394
-				if ( json.skinWeights ) {
395
-
396
-					for ( var i = 0, l = json.skinWeights.length; i < l; i += influencesPerVertex ) {
397
-
398
-						var x = json.skinWeights[ i ];
399
-						var y = ( influencesPerVertex > 1 ) ? json.skinWeights[ i + 1 ] : 0;
400
-						var z = ( influencesPerVertex > 2 ) ? json.skinWeights[ i + 2 ] : 0;
401
-						var w = ( influencesPerVertex > 3 ) ? json.skinWeights[ i + 3 ] : 0;
402
-
403
-						geometry.skinWeights.push( new THREE.Vector4( x, y, z, w ) );
404
-
405
-					}
406
-
407
-				}
408
-
409
-				if ( json.skinIndices ) {
410
-
411
-					for ( var i = 0, l = json.skinIndices.length; i < l; i += influencesPerVertex ) {
412
-
413
-						var a = json.skinIndices[ i ];
414
-						var b = ( influencesPerVertex > 1 ) ? json.skinIndices[ i + 1 ] : 0;
415
-						var c = ( influencesPerVertex > 2 ) ? json.skinIndices[ i + 2 ] : 0;
416
-						var d = ( influencesPerVertex > 3 ) ? json.skinIndices[ i + 3 ] : 0;
417
-
418
-						geometry.skinIndices.push( new THREE.Vector4( a, b, c, d ) );
419
-
420
-					}
421
-
422
-				}
423
-
424
-				geometry.bones = json.bones;
425
-
426
-				if ( geometry.bones && geometry.bones.length > 0 && ( geometry.skinWeights.length !== geometry.skinIndices.length || geometry.skinIndices.length !== geometry.vertices.length ) ) {
427
-
428
-					console.warn( 'When skinning, number of vertices (' + geometry.vertices.length + '), skinIndices (' +
429
-						geometry.skinIndices.length + '), and skinWeights (' + geometry.skinWeights.length + ') should match.' );
430
-
431
-				}
432
-
433
-			}
434
-
435
-			function parseMorphing( json, geometry ) {
436
-
437
-				var scale = json.scale;
438
-
439
-				if ( json.morphTargets !== undefined ) {
440
-
441
-					for ( var i = 0, l = json.morphTargets.length; i < l; i ++ ) {
442
-
443
-						geometry.morphTargets[ i ] = {};
444
-						geometry.morphTargets[ i ].name = json.morphTargets[ i ].name;
445
-						geometry.morphTargets[ i ].vertices = [];
446
-
447
-						var dstVertices = geometry.morphTargets[ i ].vertices;
448
-						var srcVertices = json.morphTargets[ i ].vertices;
449
-
450
-						for ( var v = 0, vl = srcVertices.length; v < vl; v += 3 ) {
451
-
452
-							var vertex = new THREE.Vector3();
453
-							vertex.x = srcVertices[ v ] * scale;
454
-							vertex.y = srcVertices[ v + 1 ] * scale;
455
-							vertex.z = srcVertices[ v + 2 ] * scale;
456
-
457
-							dstVertices.push( vertex );
458
-
459
-						}
460
-
461
-					}
462
-
463
-				}
464
-
465
-				if ( json.morphColors !== undefined && json.morphColors.length > 0 ) {
466
-
467
-					console.warn( 'THREE.JSONLoader: "morphColors" no longer supported. Using them as face colors.' );
468
-
469
-					var faces = geometry.faces;
470
-					var morphColors = json.morphColors[ 0 ].colors;
471
-
472
-					for ( var i = 0, l = faces.length; i < l; i ++ ) {
473
-
474
-						faces[ i ].color.fromArray( morphColors, i * 3 );
475
-
476
-					}
477
-
478
-				}
479
-
480
-			}
481
-
482
-			function parseAnimations( json, geometry ) {
483
-
484
-				var outputAnimations = [];
485
-
486
-				// parse old style Bone/Hierarchy animations
487
-				var animations = [];
488
-
489
-				if ( json.animation !== undefined ) {
490
-
491
-					animations.push( json.animation );
492
-
493
-				}
494
-
495
-				if ( json.animations !== undefined ) {
496
-
497
-					if ( json.animations.length ) {
498
-
499
-						animations = animations.concat( json.animations );
500
-
501
-					} else {
502
-
503
-						animations.push( json.animations );
504
-
505
-					}
506
-
507
-				}
508
-
509
-				for ( var i = 0; i < animations.length; i ++ ) {
510
-
511
-					var clip = THREE.AnimationClip.parseAnimation( animations[ i ], geometry.bones );
512
-					if ( clip ) outputAnimations.push( clip );
513
-
514
-				}
515
-
516
-				// parse implicit morph animations
517
-				if ( geometry.morphTargets ) {
518
-
519
-					// TODO: Figure out what an appropraite FPS is for morph target animations -- defaulting to 10, but really it is completely arbitrary.
520
-					var morphAnimationClips = THREE.AnimationClip.CreateClipsFromMorphTargetSequences( geometry.morphTargets, 10 );
521
-					outputAnimations = outputAnimations.concat( morphAnimationClips );
522
-
523
-				}
524
-
525
-				if ( outputAnimations.length > 0 ) geometry.animations = outputAnimations;
526
-
527
-			}
528
-
529
-			return function parse( json, path ) {
530
-
531
-				if ( json.data !== undefined ) {
532
-
533
-					// Geometry 4.0 spec
534
-					json = json.data;
535
-
536
-				}
537
-
538
-				if ( json.scale !== undefined ) {
539
-
540
-					json.scale = 1.0 / json.scale;
541
-
542
-				} else {
543
-
544
-					json.scale = 1.0;
545
-
546
-				}
547
-
548
-				var geometry = new THREE.Geometry();
549
-
550
-				parseModel( json, geometry );
551
-				parseSkin( json, geometry );
552
-				parseMorphing( json, geometry );
553
-				parseAnimations( json, geometry );
554
-
555
-				geometry.computeFaceNormals();
556
-				geometry.computeBoundingSphere();
557
-
558
-				if ( json.materials === undefined || json.materials.length === 0 ) {
559
-
560
-					return { geometry: geometry };
561
-
562
-				} else {
563
-
564
-					var materials = THREE.Loader.prototype.initMaterials( json.materials, this.resourcePath || path, this.crossOrigin );
565
-
566
-					return { geometry: geometry, materials: materials };
567
-
568
-				}
569
-
570
-			};
571
-
572
-		} )()
573
-
574
-	} );
575
-
576
-	return LegacyJSONLoader;
577
-
578
-} )();

+ 0 - 430
target/classes/static/3Dlc/js/MTLLoader.js

@@ -1,430 +0,0 @@
1
-/**
2
- * Loads a Wavefront .mtl file specifying materials
3
- *
4
- * @author angelxuanchang
5
- */
6
-
7
-THREE.MTLLoader = function( baseUrl, options, crossOrigin ) {
8
-
9
-	this.baseUrl = baseUrl;
10
-	this.options = options;
11
-	this.crossOrigin = crossOrigin;
12
-
13
-};
14
-
15
-THREE.MTLLoader.prototype = {
16
-
17
-	constructor: THREE.MTLLoader,
18
-
19
-	load: function ( url, onLoad, onProgress, onError ) {
20
-
21
-		var scope = this;
22
-
23
-		var loader = new THREE.XHRLoader();
24
-		loader.setCrossOrigin( this.crossOrigin );
25
-		loader.load( url, function ( text ) {
26
-
27
-			onLoad( scope.parse( text ) );
28
-
29
-		}, onProgress, onError );
30
-
31
-	},
32
-
33
-	/**
34
-	 * Parses loaded MTL file
35
-	 * @param text - Content of MTL file
36
-	 * @return {THREE.MTLLoader.MaterialCreator}
37
-	 */
38
-	parse: function ( text ) {
39
-
40
-		var lines = text.split( "\n" );
41
-		var info = {};
42
-		var delimiter_pattern = /\s+/;
43
-		var materialsInfo = {};
44
-
45
-		for ( var i = 0; i < lines.length; i ++ ) {
46
-
47
-			var line = lines[ i ];
48
-			line = line.trim();
49
-
50
-			if ( line.length === 0 || line.charAt( 0 ) === '#' ) {
51
-
52
-				// Blank line or comment ignore
53
-				continue;
54
-
55
-			}
56
-
57
-			var pos = line.indexOf( ' ' );
58
-
59
-			var key = ( pos >= 0 ) ? line.substring( 0, pos ) : line;
60
-			key = key.toLowerCase();
61
-
62
-			var value = ( pos >= 0 ) ? line.substring( pos + 1 ) : "";
63
-			value = value.trim();
64
-
65
-			if ( key === "newmtl" ) {
66
-
67
-				// New material
68
-
69
-				info = { name: value };
70
-				materialsInfo[ value ] = info;
71
-
72
-			} else if ( info ) {
73
-
74
-				if ( key === "ka" || key === "kd" || key === "ks" ) {
75
-
76
-					var ss = value.split( delimiter_pattern, 3 );
77
-					info[ key ] = [ parseFloat( ss[0] ), parseFloat( ss[1] ), parseFloat( ss[2] ) ];
78
-
79
-				} else {
80
-
81
-					info[ key ] = value;
82
-
83
-				}
84
-
85
-			}
86
-
87
-		}
88
-
89
-		var materialCreator = new THREE.MTLLoader.MaterialCreator( this.baseUrl, this.options );
90
-		materialCreator.setMaterials( materialsInfo );
91
-		return materialCreator;
92
-
93
-	}
94
-
95
-};
96
-
97
-/**
98
- * Create a new THREE-MTLLoader.MaterialCreator
99
- * @param baseUrl - Url relative to which textures are loaded
100
- * @param options - Set of options on how to construct the materials
101
- *                  side: Which side to apply the material
102
- *                        THREE.FrontSide (default), THREE.BackSide, THREE.DoubleSide
103
- *                  wrap: What type of wrapping to apply for textures
104
- *                        THREE.RepeatWrapping (default), THREE.ClampToEdgeWrapping, THREE.MirroredRepeatWrapping
105
- *                  normalizeRGB: RGBs need to be normalized to 0-1 from 0-255
106
- *                                Default: false, assumed to be already normalized
107
- *                  ignoreZeroRGBs: Ignore values of RGBs (Ka,Kd,Ks) that are all 0's
108
- *                                  Default: false
109
- *                  invertTransparency: If transparency need to be inverted (inversion is needed if d = 0 is fully opaque)
110
- *                                      Default: false (d = 1 is fully opaque)
111
- * @constructor
112
- */
113
-
114
-THREE.MTLLoader.MaterialCreator = function( baseUrl, options ) {
115
-
116
-	this.baseUrl = baseUrl;
117
-	this.options = options;
118
-	this.materialsInfo = {};
119
-	this.materials = {};
120
-	this.materialsArray = [];
121
-	this.nameLookup = {};
122
-
123
-	this.side = ( this.options && this.options.side )? this.options.side: THREE.FrontSide;
124
-	this.wrap = ( this.options && this.options.wrap )? this.options.wrap: THREE.RepeatWrapping;
125
-
126
-};
127
-
128
-THREE.MTLLoader.MaterialCreator.prototype = {
129
-
130
-	constructor: THREE.MTLLoader.MaterialCreator,
131
-
132
-	setMaterials: function( materialsInfo ) {
133
-
134
-		this.materialsInfo = this.convert( materialsInfo );
135
-		this.materials = {};
136
-		this.materialsArray = [];
137
-		this.nameLookup = {};
138
-
139
-	},
140
-
141
-	convert: function( materialsInfo ) {
142
-
143
-		if ( !this.options ) return materialsInfo;
144
-
145
-		var converted = {};
146
-
147
-		for ( var mn in materialsInfo ) {
148
-
149
-			// Convert materials info into normalized form based on options
150
-
151
-			var mat = materialsInfo[ mn ];
152
-
153
-			var covmat = {};
154
-
155
-			converted[ mn ] = covmat;
156
-
157
-			for ( var prop in mat ) {
158
-
159
-				var save = true;
160
-				var value = mat[ prop ];
161
-				var lprop = prop.toLowerCase();
162
-
163
-				switch ( lprop ) {
164
-
165
-					case 'kd':
166
-					case 'ka':
167
-					case 'ks':
168
-
169
-						// Diffuse color (color under white light) using RGB values
170
-
171
-						if ( this.options && this.options.normalizeRGB ) {
172
-
173
-							value = [ value[ 0 ] / 255, value[ 1 ] / 255, value[ 2 ] / 255 ];
174
-
175
-						}
176
-
177
-						if ( this.options && this.options.ignoreZeroRGBs ) {
178
-
179
-							if ( value[ 0 ] === 0 && value[ 1 ] === 0 && value[ 1 ] === 0 ) {
180
-
181
-								// ignore
182
-
183
-								save = false;
184
-
185
-							}
186
-						}
187
-
188
-						break;
189
-
190
-					case 'd':
191
-
192
-						// According to MTL format (http://paulbourke.net/dataformats/mtl/):
193
-						//   d is dissolve for current material
194
-						//   factor of 1.0 is fully opaque, a factor of 0 is fully dissolved (completely transparent)
195
-
196
-						if ( this.options && this.options.invertTransparency ) {
197
-
198
-							value = 1 - value;
199
-
200
-						}
201
-
202
-						break;
203
-
204
-					default:
205
-
206
-						break;
207
-				}
208
-
209
-				if ( save ) {
210
-
211
-					covmat[ lprop ] = value;
212
-
213
-				}
214
-
215
-			}
216
-
217
-		}
218
-
219
-		return converted;
220
-
221
-	},
222
-
223
-	preload: function () {
224
-
225
-		for ( var mn in this.materialsInfo ) {
226
-
227
-			this.create( mn );
228
-
229
-		}
230
-
231
-	},
232
-
233
-	getIndex: function( materialName ) {
234
-
235
-		return this.nameLookup[ materialName ];
236
-
237
-	},
238
-
239
-	getAsArray: function() {
240
-
241
-		var index = 0;
242
-
243
-		for ( var mn in this.materialsInfo ) {
244
-
245
-			this.materialsArray[ index ] = this.create( mn );
246
-			this.nameLookup[ mn ] = index;
247
-			index ++;
248
-
249
-		}
250
-
251
-		return this.materialsArray;
252
-
253
-	},
254
-
255
-	create: function ( materialName ) {
256
-
257
-		if ( this.materials[ materialName ] === undefined ) {
258
-
259
-			this.createMaterial_( materialName );
260
-
261
-		}
262
-
263
-		return this.materials[ materialName ];
264
-
265
-	},
266
-
267
-	createMaterial_: function ( materialName ) {
268
-
269
-		// Create material
270
-
271
-		var mat = this.materialsInfo[ materialName ];
272
-		var params = {
273
-
274
-			name: materialName,
275
-			side: this.side
276
-
277
-		};
278
-
279
-		for ( var prop in mat ) {
280
-
281
-			var value = mat[ prop ];
282
-
283
-			switch ( prop.toLowerCase() ) {
284
-
285
-				// Ns is material specular exponent
286
-
287
-				case 'kd':
288
-
289
-					// Diffuse color (color under white light) using RGB values
290
-
291
-					params[ 'diffuse' ] = new THREE.Color().fromArray( value );
292
-
293
-					break;
294
-
295
-				case 'ka':
296
-
297
-					// Ambient color (color under shadow) using RGB values
298
-
299
-					params[ 'ambient' ] = new THREE.Color().fromArray( value );
300
-
301
-					break;
302
-
303
-				case 'ks':
304
-
305
-					// Specular color (color when light is reflected from shiny surface) using RGB values
306
-					params[ 'specular' ] = new THREE.Color().fromArray( value );
307
-
308
-					break;
309
-
310
-				case 'map_kd':
311
-
312
-					// Diffuse texture map
313
-
314
-					params[ 'map' ] = this.loadTexture( this.baseUrl + value );
315
-					params[ 'map' ].wrapS = this.wrap;
316
-					params[ 'map' ].wrapT = this.wrap;
317
-
318
-					break;
319
-
320
-				case 'ns':
321
-
322
-					// The specular exponent (defines the focus of the specular highlight)
323
-					// A high exponent results in a tight, concentrated highlight. Ns values normally range from 0 to 1000.
324
-
325
-					params['shininess'] = value;
326
-
327
-					break;
328
-
329
-				case 'd':
330
-
331
-					// According to MTL format (http://paulbourke.net/dataformats/mtl/):
332
-					//   d is dissolve for current material
333
-					//   factor of 1.0 is fully opaque, a factor of 0 is fully dissolved (completely transparent)
334
-
335
-					if ( value < 1 ) {
336
-
337
-						params['transparent'] = true;
338
-						params['opacity'] = value;
339
-
340
-					}
341
-
342
-					break;
343
-
344
-				default:
345
-					break;
346
-
347
-			}
348
-
349
-		}
350
-
351
-		if ( params[ 'diffuse' ] ) {
352
-
353
-			if ( !params[ 'ambient' ]) params[ 'ambient' ] = params[ 'diffuse' ];
354
-			params[ 'color' ] = params[ 'diffuse' ];
355
-
356
-		}
357
-
358
-		this.materials[ materialName ] = new THREE.MeshPhongMaterial( params );
359
-		return this.materials[ materialName ];
360
-
361
-	},
362
-
363
-
364
-	loadTexture: function ( url, mapping, onLoad, onError ) {
365
-
366
-		var texture;
367
-		var loader = THREE.Loader.Handlers.get( url );
368
-
369
-		if ( loader !== null ) {
370
-
371
-			texture = loader.load( url, onLoad );
372
-
373
-		} else {
374
-
375
-			texture = new THREE.Texture();
376
-
377
-			loader = new THREE.ImageLoader();
378
-			loader.crossOrigin = this.crossOrigin;
379
-			loader.load( url, function ( image ) {
380
-
381
-				texture.image = THREE.MTLLoader.ensurePowerOfTwo_( image );
382
-				texture.needsUpdate = true;
383
-
384
-				if ( onLoad ) onLoad( texture );
385
-
386
-			} );
387
-
388
-		}
389
-
390
-		texture.mapping = mapping;
391
-
392
-		return texture;
393
-
394
-	}
395
-
396
-};
397
-
398
-THREE.MTLLoader.ensurePowerOfTwo_ = function ( image ) {
399
-
400
-	if ( ! THREE.Math.isPowerOfTwo( image.width ) || ! THREE.Math.isPowerOfTwo( image.height ) ) {
401
-
402
-		var canvas = document.createElement( "canvas" );
403
-		canvas.width = THREE.MTLLoader.nextHighestPowerOfTwo_( image.width );
404
-		canvas.height = THREE.MTLLoader.nextHighestPowerOfTwo_( image.height );
405
-
406
-		var ctx = canvas.getContext("2d");
407
-		ctx.drawImage( image, 0, 0, image.width, image.height, 0, 0, canvas.width, canvas.height );
408
-		return canvas;
409
-
410
-	}
411
-
412
-	return image;
413
-
414
-};
415
-
416
-THREE.MTLLoader.nextHighestPowerOfTwo_ = function( x ) {
417
-
418
-	--x;
419
-
420
-	for ( var i = 1; i < 32; i <<= 1 ) {
421
-
422
-		x = x | x >> i;
423
-
424
-	}
425
-
426
-	return x + 1;
427
-
428
-};
429
-
430
-THREE.EventDispatcher.prototype.apply( THREE.MTLLoader.prototype );

+ 0 - 670
target/classes/static/3Dlc/js/OBJLoader.js

@@ -1,670 +0,0 @@
1
-/**
2
- * @author mrdoob / http://mrdoob.com/
3
- */
4
-
5
-THREE.OBJLoader = ( function () {
6
-
7
-	// o object_name | g group_name
8
-	var object_pattern           = /^[og]\s*(.+)?/;
9
-	// mtllib file_reference
10
-	var material_library_pattern = /^mtllib /;
11
-	// usemtl material_name
12
-	var material_use_pattern     = /^usemtl /;
13
-
14
-	function ParserState() {
15
-
16
-		var state = {
17
-			objects  : [],
18
-			object   : {},
19
-
20
-			vertices : [],
21
-			normals  : [],
22
-			uvs      : [],
23
-
24
-			materialLibraries : [],
25
-
26
-			startObject: function ( name, fromDeclaration ) {
27
-
28
-				// If the current object (initial from reset) is not from a g/o declaration in the parsed
29
-				// file. We need to use it for the first parsed g/o to keep things in sync.
30
-				if ( this.object && this.object.fromDeclaration === false ) {
31
-
32
-					this.object.name = name;
33
-					this.object.fromDeclaration = ( fromDeclaration !== false );
34
-					return;
35
-
36
-				}
37
-
38
-				var previousMaterial = ( this.object && typeof this.object.currentMaterial === 'function' ? this.object.currentMaterial() : undefined );
39
-
40
-				if ( this.object && typeof this.object._finalize === 'function' ) {
41
-
42
-					this.object._finalize( true );
43
-
44
-				}
45
-
46
-				this.object = {
47
-					name : name || '',
48
-					fromDeclaration : ( fromDeclaration !== false ),
49
-
50
-					geometry : {
51
-						vertices : [],
52
-						normals  : [],
53
-						uvs      : []
54
-					},
55
-					materials : [],
56
-					smooth : true,
57
-
58
-					startMaterial: function ( name, libraries ) {
59
-
60
-						var previous = this._finalize( false );
61
-
62
-						// New usemtl declaration overwrites an inherited material, except if faces were declared
63
-						// after the material, then it must be preserved for proper MultiMaterial continuation.
64
-						if ( previous && ( previous.inherited || previous.groupCount <= 0 ) ) {
65
-
66
-							this.materials.splice( previous.index, 1 );
67
-
68
-						}
69
-
70
-						var material = {
71
-							index      : this.materials.length,
72
-							name       : name || '',
73
-							mtllib     : ( Array.isArray( libraries ) && libraries.length > 0 ? libraries[ libraries.length - 1 ] : '' ),
74
-							smooth     : ( previous !== undefined ? previous.smooth : this.smooth ),
75
-							groupStart : ( previous !== undefined ? previous.groupEnd : 0 ),
76
-							groupEnd   : -1,
77
-							groupCount : -1,
78
-							inherited  : false,
79
-
80
-							clone: function ( index ) {
81
-								var cloned = {
82
-									index      : ( typeof index === 'number' ? index : this.index ),
83
-									name       : this.name,
84
-									mtllib     : this.mtllib,
85
-									smooth     : this.smooth,
86
-									groupStart : 0,
87
-									groupEnd   : -1,
88
-									groupCount : -1,
89
-									inherited  : false
90
-								};
91
-								cloned.clone = this.clone.bind(cloned);
92
-								return cloned;
93
-							}
94
-						};
95
-
96
-						this.materials.push( material );
97
-
98
-						return material;
99
-
100
-					},
101
-
102
-					currentMaterial: function () {
103
-
104
-						if ( this.materials.length > 0 ) {
105
-							return this.materials[ this.materials.length - 1 ];
106
-						}
107
-
108
-						return undefined;
109
-
110
-					},
111
-
112
-					_finalize: function ( end ) {
113
-
114
-						var lastMultiMaterial = this.currentMaterial();
115
-						if ( lastMultiMaterial && lastMultiMaterial.groupEnd === -1 ) {
116
-
117
-							lastMultiMaterial.groupEnd = this.geometry.vertices.length / 3;
118
-							lastMultiMaterial.groupCount = lastMultiMaterial.groupEnd - lastMultiMaterial.groupStart;
119
-							lastMultiMaterial.inherited = false;
120
-
121
-						}
122
-
123
-						// Ignore objects tail materials if no face declarations followed them before a new o/g started.
124
-						if ( end && this.materials.length > 1 ) {
125
-
126
-							for ( var mi = this.materials.length - 1; mi >= 0; mi-- ) {
127
-								if ( this.materials[ mi ].groupCount <= 0 ) {
128
-									this.materials.splice( mi, 1 );
129
-								}
130
-							}
131
-
132
-						}
133
-
134
-						// Guarantee at least one empty material, this makes the creation later more straight forward.
135
-						if ( end && this.materials.length === 0 ) {
136
-
137
-							this.materials.push({
138
-								name   : '',
139
-								smooth : this.smooth
140
-							});
141
-
142
-						}
143
-
144
-						return lastMultiMaterial;
145
-
146
-					}
147
-				};
148
-
149
-				// Inherit previous objects material.
150
-				// Spec tells us that a declared material must be set to all objects until a new material is declared.
151
-				// If a usemtl declaration is encountered while this new object is being parsed, it will
152
-				// overwrite the inherited material. Exception being that there was already face declarations
153
-				// to the inherited material, then it will be preserved for proper MultiMaterial continuation.
154
-
155
-				if ( previousMaterial && previousMaterial.name && typeof previousMaterial.clone === 'function' ) {
156
-
157
-					var declared = previousMaterial.clone( 0 );
158
-					declared.inherited = true;
159
-					this.object.materials.push( declared );
160
-
161
-				}
162
-
163
-				this.objects.push( this.object );
164
-
165
-			},
166
-
167
-			finalize: function () {
168
-
169
-				if ( this.object && typeof this.object._finalize === 'function' ) {
170
-
171
-					this.object._finalize( true );
172
-
173
-				}
174
-
175
-			},
176
-
177
-			parseVertexIndex: function ( value, len ) {
178
-
179
-				var index = parseInt( value, 10 );
180
-				return ( index >= 0 ? index - 1 : index + len / 3 ) * 3;
181
-
182
-			},
183
-
184
-			parseNormalIndex: function ( value, len ) {
185
-
186
-				var index = parseInt( value, 10 );
187
-				return ( index >= 0 ? index - 1 : index + len / 3 ) * 3;
188
-
189
-			},
190
-
191
-			parseUVIndex: function ( value, len ) {
192
-
193
-				var index = parseInt( value, 10 );
194
-				return ( index >= 0 ? index - 1 : index + len / 2 ) * 2;
195
-
196
-			},
197
-
198
-			addVertex: function ( a, b, c ) {
199
-
200
-				var src = this.vertices;
201
-				var dst = this.object.geometry.vertices;
202
-
203
-				dst.push( src[ a + 0 ], src[ a + 1 ], src[ a + 2 ] );
204
-				dst.push( src[ b + 0 ], src[ b + 1 ], src[ b + 2 ] );
205
-				dst.push( src[ c + 0 ], src[ c + 1 ], src[ c + 2 ] );
206
-
207
-			},
208
-
209
-			addVertexLine: function ( a ) {
210
-
211
-				var src = this.vertices;
212
-				var dst = this.object.geometry.vertices;
213
-
214
-				dst.push( src[ a + 0 ], src[ a + 1 ], src[ a + 2 ] );
215
-
216
-			},
217
-
218
-			addNormal: function ( a, b, c ) {
219
-
220
-				var src = this.normals;
221
-				var dst = this.object.geometry.normals;
222
-
223
-				dst.push( src[ a + 0 ], src[ a + 1 ], src[ a + 2 ] );
224
-				dst.push( src[ b + 0 ], src[ b + 1 ], src[ b + 2 ] );
225
-				dst.push( src[ c + 0 ], src[ c + 1 ], src[ c + 2 ] );
226
-
227
-			},
228
-
229
-			addUV: function ( a, b, c ) {
230
-
231
-				var src = this.uvs;
232
-				var dst = this.object.geometry.uvs;
233
-
234
-				dst.push( src[ a + 0 ], src[ a + 1 ] );
235
-				dst.push( src[ b + 0 ], src[ b + 1 ] );
236
-				dst.push( src[ c + 0 ], src[ c + 1 ] );
237
-
238
-			},
239
-
240
-			addUVLine: function ( a ) {
241
-
242
-				var src = this.uvs;
243
-				var dst = this.object.geometry.uvs;
244
-
245
-				dst.push( src[ a + 0 ], src[ a + 1 ] );
246
-
247
-			},
248
-
249
-			addFace: function ( a, b, c, ua, ub, uc, na, nb, nc ) {
250
-
251
-				var vLen = this.vertices.length;
252
-
253
-				var ia = this.parseVertexIndex( a, vLen );
254
-				var ib = this.parseVertexIndex( b, vLen );
255
-				var ic = this.parseVertexIndex( c, vLen );
256
-
257
-				this.addVertex( ia, ib, ic );
258
-
259
-				if ( ua !== undefined ) {
260
-
261
-					var uvLen = this.uvs.length;
262
-
263
-					ia = this.parseUVIndex( ua, uvLen );
264
-					ib = this.parseUVIndex( ub, uvLen );
265
-					ic = this.parseUVIndex( uc, uvLen );
266
-
267
-					this.addUV( ia, ib, ic );
268
-
269
-				}
270
-
271
-				if ( na !== undefined ) {
272
-
273
-					// Normals are many times the same. If so, skip function call and parseInt.
274
-					var nLen = this.normals.length;
275
-					ia = this.parseNormalIndex( na, nLen );
276
-
277
-					ib = na === nb ? ia : this.parseNormalIndex( nb, nLen );
278
-					ic = na === nc ? ia : this.parseNormalIndex( nc, nLen );
279
-
280
-					this.addNormal( ia, ib, ic );
281
-
282
-				}
283
-
284
-			},
285
-
286
-			addLineGeometry: function ( vertices, uvs ) {
287
-
288
-				this.object.geometry.type = 'Line';
289
-
290
-				var vLen = this.vertices.length;
291
-				var uvLen = this.uvs.length;
292
-
293
-				for ( var vi = 0, l = vertices.length; vi < l; vi ++ ) {
294
-
295
-					this.addVertexLine( this.parseVertexIndex( vertices[ vi ], vLen ) );
296
-
297
-				}
298
-
299
-				for ( var uvi = 0, l = uvs.length; uvi < l; uvi ++ ) {
300
-
301
-					this.addUVLine( this.parseUVIndex( uvs[ uvi ], uvLen ) );
302
-
303
-				}
304
-
305
-			}
306
-
307
-		};
308
-
309
-		state.startObject( '', false );
310
-
311
-		return state;
312
-
313
-	}
314
-
315
-	//
316
-
317
-	function OBJLoader( manager ) {
318
-
319
-		this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
320
-
321
-		this.materials = null;
322
-
323
-	};
324
-
325
-	OBJLoader.prototype = {
326
-
327
-		constructor: OBJLoader,
328
-
329
-		load: function ( url, onLoad, onProgress, onError ) {
330
-
331
-			var scope = this;
332
-
333
-			var loader = new THREE.FileLoader( scope.manager );
334
-			loader.setPath( this.path );
335
-			loader.load( url, function ( text ) {
336
-
337
-				onLoad( scope.parse( text ) );
338
-
339
-			}, onProgress, onError );
340
-
341
-		},
342
-
343
-		setPath: function ( value ) {
344
-
345
-			this.path = value;
346
-
347
-		},
348
-
349
-		setMaterials: function ( materials ) {
350
-
351
-			this.materials = materials;
352
-
353
-			return this;
354
-
355
-		},
356
-
357
-		parse: function ( text ) {
358
-
359
-			console.time( 'OBJLoader' );
360
-
361
-			var state = new ParserState();
362
-
363
-			if ( text.indexOf( '\r\n' ) !== - 1 ) {
364
-
365
-				// This is faster than String.split with regex that splits on both
366
-				text = text.replace( /\r\n/g, '\n' );
367
-
368
-			}
369
-
370
-			if ( text.indexOf( '\\\n' ) !== - 1) {
371
-
372
-				// join lines separated by a line continuation character (\)
373
-				text = text.replace( /\\\n/g, '' );
374
-
375
-			}
376
-
377
-			var lines = text.split( '\n' );
378
-			var line = '', lineFirstChar = '';
379
-			var lineLength = 0;
380
-			var result = [];
381
-
382
-			// Faster to just trim left side of the line. Use if available.
383
-			var trimLeft = ( typeof ''.trimLeft === 'function' );
384
-
385
-			for ( var i = 0, l = lines.length; i < l; i ++ ) {
386
-
387
-				line = lines[ i ];
388
-
389
-				line = trimLeft ? line.trimLeft() : line.trim();
390
-
391
-				lineLength = line.length;
392
-
393
-				if ( lineLength === 0 ) continue;
394
-
395
-				lineFirstChar = line.charAt( 0 );
396
-
397
-				// @todo invoke passed in handler if any
398
-				if ( lineFirstChar === '#' ) continue;
399
-
400
-				if ( lineFirstChar === 'v' ) {
401
-
402
-					var data = line.split( /\s+/ );
403
-
404
-					switch ( data[ 0 ] ) {
405
-
406
-						case 'v':
407
-							state.vertices.push(
408
-								parseFloat( data[ 1 ] ),
409
-								parseFloat( data[ 2 ] ),
410
-								parseFloat( data[ 3 ] )
411
-							);
412
-							break;
413
-						case 'vn':
414
-							state.normals.push(
415
-								parseFloat( data[ 1 ] ),
416
-								parseFloat( data[ 2 ] ),
417
-								parseFloat( data[ 3 ] )
418
-							);
419
-							break;
420
-						case 'vt':
421
-							state.uvs.push(
422
-								parseFloat( data[ 1 ] ),
423
-								parseFloat( data[ 2 ] )
424
-							);
425
-							break;
426
-					}
427
-
428
-				} else if ( lineFirstChar === 'f' ) {
429
-
430
-					var lineData = line.substr( 1 ).trim();
431
-					var vertexData = lineData.split( /\s+/ );
432
-					var faceVertices = [];
433
-
434
-					// Parse the face vertex data into an easy to work with format
435
-
436
-					for ( var j = 0, jl = vertexData.length; j < jl; j ++ ) {
437
-
438
-						var vertex = vertexData[ j ];
439
-
440
-						if ( vertex.length > 0 ) {
441
-
442
-							var vertexParts = vertex.split( '/' );
443
-							faceVertices.push( vertexParts );
444
-
445
-						}
446
-
447
-					}
448
-
449
-					// Draw an edge between the first vertex and all subsequent vertices to form an n-gon
450
-
451
-					var v1 = faceVertices[ 0 ];
452
-
453
-					for ( var j = 1, jl = faceVertices.length - 1; j < jl; j ++ ) {
454
-
455
-						var v2 = faceVertices[ j ];
456
-						var v3 = faceVertices[ j + 1 ];
457
-
458
-						state.addFace(
459
-							v1[ 0 ], v2[ 0 ], v3[ 0 ],
460
-							v1[ 1 ], v2[ 1 ], v3[ 1 ],
461
-							v1[ 2 ], v2[ 2 ], v3[ 2 ]
462
-						);
463
-
464
-					}
465
-
466
-				} else if ( lineFirstChar === 'l' ) {
467
-
468
-					var lineParts = line.substring( 1 ).trim().split( " " );
469
-					var lineVertices = [], lineUVs = [];
470
-
471
-					if ( line.indexOf( "/" ) === - 1 ) {
472
-
473
-						lineVertices = lineParts;
474
-
475
-					} else {
476
-
477
-						for ( var li = 0, llen = lineParts.length; li < llen; li ++ ) {
478
-
479
-							var parts = lineParts[ li ].split( "/" );
480
-
481
-							if ( parts[ 0 ] !== "" ) lineVertices.push( parts[ 0 ] );
482
-							if ( parts[ 1 ] !== "" ) lineUVs.push( parts[ 1 ] );
483
-
484
-						}
485
-
486
-					}
487
-					state.addLineGeometry( lineVertices, lineUVs );
488
-
489
-				} else if ( ( result = object_pattern.exec( line ) ) !== null ) {
490
-
491
-					// o object_name
492
-					// or
493
-					// g group_name
494
-
495
-					// WORKAROUND: https://bugs.chromium.org/p/v8/issues/detail?id=2869
496
-					// var name = result[ 0 ].substr( 1 ).trim();
497
-					var name = ( " " + result[ 0 ].substr( 1 ).trim() ).substr( 1 );
498
-
499
-					state.startObject( name );
500
-
501
-				} else if ( material_use_pattern.test( line ) ) {
502
-
503
-					// material
504
-
505
-					state.object.startMaterial( line.substring( 7 ).trim(), state.materialLibraries );
506
-
507
-				} else if ( material_library_pattern.test( line ) ) {
508
-
509
-					// mtl file
510
-
511
-					state.materialLibraries.push( line.substring( 7 ).trim() );
512
-
513
-				} else if ( lineFirstChar === 's' ) {
514
-
515
-					result = line.split( ' ' );
516
-
517
-					// smooth shading
518
-
519
-					// @todo Handle files that have varying smooth values for a set of faces inside one geometry,
520
-					// but does not define a usemtl for each face set.
521
-					// This should be detected and a dummy material created (later MultiMaterial and geometry groups).
522
-					// This requires some care to not create extra material on each smooth value for "normal" obj files.
523
-					// where explicit usemtl defines geometry groups.
524
-					// Example asset: examples/models/obj/cerberus/Cerberus.obj
525
-
526
-					/*
527
-					 * http://paulbourke.net/dataformats/obj/
528
-					 * or
529
-					 * http://www.cs.utah.edu/~boulos/cs3505/obj_spec.pdf
530
-					 *
531
-					 * From chapter "Grouping" Syntax explanation "s group_number":
532
-					 * "group_number is the smoothing group number. To turn off smoothing groups, use a value of 0 or off.
533
-					 * Polygonal elements use group numbers to put elements in different smoothing groups. For free-form
534
-					 * surfaces, smoothing groups are either turned on or off; there is no difference between values greater
535
-					 * than 0."
536
-					 */
537
-					if ( result.length > 1 ) {
538
-
539
-						var value = result[ 1 ].trim().toLowerCase();
540
-						state.object.smooth = ( value !== '0' && value !== 'off' );
541
-
542
-					} else {
543
-
544
-						// ZBrush can produce "s" lines #11707
545
-						state.object.smooth = true;
546
-
547
-					}
548
-					var material = state.object.currentMaterial();
549
-					if ( material ) material.smooth = state.object.smooth;
550
-
551
-				} else {
552
-
553
-					// Handle null terminated files without exception
554
-					if ( line === '\0' ) continue;
555
-
556
-					throw new Error( "Unexpected line: '" + line  + "'" );
557
-
558
-				}
559
-
560
-			}
561
-
562
-			state.finalize();
563
-
564
-			var container = new THREE.Group();
565
-			container.materialLibraries = [].concat( state.materialLibraries );
566
-
567
-			for ( var i = 0, l = state.objects.length; i < l; i ++ ) {
568
-
569
-				var object = state.objects[ i ];
570
-				var geometry = object.geometry;
571
-				var materials = object.materials;
572
-				var isLine = ( geometry.type === 'Line' );
573
-
574
-				// Skip o/g line declarations that did not follow with any faces
575
-				if ( geometry.vertices.length === 0 ) continue;
576
-
577
-				var buffergeometry = new THREE.BufferGeometry();
578
-
579
-				buffergeometry.addAttribute( 'position', new THREE.BufferAttribute( new Float32Array( geometry.vertices ), 3 ) );
580
-
581
-				if ( geometry.normals.length > 0 ) {
582
-
583
-					buffergeometry.addAttribute( 'normal', new THREE.BufferAttribute( new Float32Array( geometry.normals ), 3 ) );
584
-
585
-				} else {
586
-
587
-					buffergeometry.computeVertexNormals();
588
-
589
-				}
590
-
591
-				if ( geometry.uvs.length > 0 ) {
592
-
593
-					buffergeometry.addAttribute( 'uv', new THREE.BufferAttribute( new Float32Array( geometry.uvs ), 2 ) );
594
-
595
-				}
596
-
597
-				// Create materials
598
-
599
-				var createdMaterials = [];
600
-
601
-				for ( var mi = 0, miLen = materials.length; mi < miLen ; mi++ ) {
602
-
603
-					var sourceMaterial = materials[ mi ];
604
-					var material = undefined;
605
-
606
-					if ( this.materials !== null ) {
607
-
608
-						material = this.materials.create( sourceMaterial.name );
609
-
610
-						// mtl etc. loaders probably can't create line materials correctly, copy properties to a line material.
611
-						if ( isLine && material && ! ( material instanceof THREE.LineBasicMaterial ) ) {
612
-
613
-							var materialLine = new THREE.LineBasicMaterial();
614
-							materialLine.copy( material );
615
-							material = materialLine;
616
-
617
-						}
618
-
619
-					}
620
-
621
-					if ( ! material ) {
622
-
623
-						material = ( ! isLine ? new THREE.MeshPhongMaterial() : new THREE.LineBasicMaterial() );
624
-						material.name = sourceMaterial.name;
625
-
626
-					}
627
-
628
-					material.flatShading = sourceMaterial.smooth ? false : true;
629
-
630
-					createdMaterials.push(material);
631
-
632
-				}
633
-
634
-				// Create mesh
635
-
636
-				var mesh;
637
-
638
-				if ( createdMaterials.length > 1 ) {
639
-
640
-					for ( var mi = 0, miLen = materials.length; mi < miLen ; mi++ ) {
641
-
642
-						var sourceMaterial = materials[ mi ];
643
-						buffergeometry.addGroup( sourceMaterial.groupStart, sourceMaterial.groupCount, mi );
644
-
645
-					}
646
-
647
-					mesh = ( ! isLine ? new THREE.Mesh( buffergeometry, createdMaterials ) : new THREE.LineSegments( buffergeometry, createdMaterials ) );
648
-
649
-				} else {
650
-
651
-					mesh = ( ! isLine ? new THREE.Mesh( buffergeometry, createdMaterials[ 0 ] ) : new THREE.LineSegments( buffergeometry, createdMaterials[ 0 ] ) );
652
-				}
653
-
654
-				mesh.name = object.name;
655
-
656
-				container.add( mesh );
657
-
658
-			}
659
-
660
-			console.timeEnd( 'OBJLoader' );
661
-
662
-			return container;
663
-
664
-		}
665
-
666
-	};
667
-
668
-	return OBJLoader;
669
-
670
-} )();

+ 0 - 476
target/classes/static/3Dlc/js/OBJMTLLoader.js

@@ -1,476 +0,0 @@
1
-/**
2
- * Loads a Wavefront .mtl file specifying materials
3
- *
4
- * @author angelxuanchang
5
- */
6
-
7
-THREE.MTLLoader = function( manager ) {
8
-
9
-	this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
10
-
11
-};
12
-
13
-Object.assign( THREE.MTLLoader.prototype, THREE.EventDispatcher.prototype, {
14
-
15
-	/**
16
-	 * Loads and parses a MTL asset from a URL.
17
-	 *
18
-	 * @param {String} url - URL to the MTL file.
19
-	 * @param {Function} [onLoad] - Callback invoked with the loaded object.
20
-	 * @param {Function} [onProgress] - Callback for download progress.
21
-	 * @param {Function} [onError] - Callback for download errors.
22
-	 *
23
-	 * @see setPath setTexturePath
24
-	 *
25
-	 * @note In order for relative texture references to resolve correctly
26
-	 * you must call setPath and/or setTexturePath explicitly prior to load.
27
-	 */
28
-	load: function ( url, onLoad, onProgress, onError ) {
29
-
30
-		var scope = this;
31
-
32
-		var loader = new THREE.XHRLoader( this.manager );
33
-		loader.setPath( this.path );
34
-		loader.load( url, function ( text ) {
35
-
36
-			onLoad( scope.parse( text ) );
37
-
38
-		}, onProgress, onError );
39
-
40
-	},
41
-
42
-	/**
43
-	 * Set base path for resolving references.
44
-	 * If set this path will be prepended to each loaded and found reference.
45
-	 *
46
-	 * @see setTexturePath
47
-	 * @param {String} path
48
-	 *
49
-	 * @example
50
-	 *     mtlLoader.setPath( 'assets/obj/' );
51
-	 *     mtlLoader.load( 'my.mtl', ... );
52
-	 */
53
-	setPath: function ( path ) {
54
-
55
-		this.path = path;
56
-
57
-	},
58
-
59
-	/**
60
-	 * Set base path for resolving texture references.
61
-	 * If set this path will be prepended found texture reference.
62
-	 * If not set and setPath is, it will be used as texture base path.
63
-	 *
64
-	 * @see setPath
65
-	 * @param {String} path
66
-	 *
67
-	 * @example
68
-	 *     mtlLoader.setPath( 'assets/obj/' );
69
-	 *     mtlLoader.setTexturePath( 'assets/textures/' );
70
-	 *     mtlLoader.load( 'my.mtl', ... );
71
-	 */
72
-	setTexturePath: function( path ) {
73
-
74
-		this.texturePath = path;
75
-
76
-	},
77
-
78
-	setBaseUrl: function( path ) {
79
-
80
-		console.warn( 'THREE.MTLLoader: .setBaseUrl() is deprecated. Use .setTexturePath( path ) for texture path or .setPath( path ) for general base path instead.' );
81
-
82
-		this.setTexturePath( path );
83
-
84
-	},
85
-
86
-	setCrossOrigin: function ( value ) {
87
-
88
-		this.crossOrigin = value;
89
-
90
-	},
91
-
92
-	setMaterialOptions: function ( value ) {
93
-
94
-		this.materialOptions = value;
95
-
96
-	},
97
-
98
-	/**
99
-	 * Parses a MTL file.
100
-	 *
101
-	 * @param {String} text - Content of MTL file
102
-	 * @return {THREE.MTLLoader.MaterialCreator}
103
-	 *
104
-	 * @see setPath setTexturePath
105
-	 *
106
-	 * @note In order for relative texture references to resolve correctly
107
-	 * you must call setPath and/or setTexturePath explicitly prior to parse.
108
-	 */
109
-	parse: function ( text ) {
110
-
111
-		var lines = text.split( '\n' );
112
-		var info = {};
113
-		var delimiter_pattern = /\s+/;
114
-		var materialsInfo = {};
115
-
116
-		for ( var i = 0; i < lines.length; i ++ ) {
117
-
118
-			var line = lines[ i ];
119
-			line = line.trim();
120
-
121
-			if ( line.length === 0 || line.charAt( 0 ) === '#' ) {
122
-
123
-				// Blank line or comment ignore
124
-				continue;
125
-
126
-			}
127
-
128
-			var pos = line.indexOf( ' ' );
129
-
130
-			var key = ( pos >= 0 ) ? line.substring( 0, pos ) : line;
131
-			key = key.toLowerCase();
132
-
133
-			var value = ( pos >= 0 ) ? line.substring( pos + 1 ) : '';
134
-			value = value.trim();
135
-
136
-			if ( key === 'newmtl' ) {
137
-
138
-				// New material
139
-
140
-				info = { name: value };
141
-				materialsInfo[ value ] = info;
142
-
143
-			} else if ( info ) {
144
-
145
-				if ( key === 'ka' || key === 'kd' || key === 'ks' ) {
146
-
147
-					var ss = value.split( delimiter_pattern, 3 );
148
-					info[ key ] = [ parseFloat( ss[ 0 ] ), parseFloat( ss[ 1 ] ), parseFloat( ss[ 2 ] ) ];
149
-
150
-				} else {
151
-
152
-					info[ key ] = value;
153
-
154
-				}
155
-
156
-			}
157
-
158
-		}
159
-
160
-		var materialCreator = new THREE.MTLLoader.MaterialCreator( this.texturePath || this.path, this.materialOptions );
161
-		materialCreator.setCrossOrigin( this.crossOrigin );
162
-		materialCreator.setManager( this.manager );
163
-		materialCreator.setMaterials( materialsInfo );
164
-		return materialCreator;
165
-
166
-	}
167
-
168
-} );
169
-
170
-/**
171
- * Create a new THREE-MTLLoader.MaterialCreator
172
- * @param baseUrl - Url relative to which textures are loaded
173
- * @param options - Set of options on how to construct the materials
174
- *                  side: Which side to apply the material
175
- *                        THREE.FrontSide (default), THREE.BackSide, THREE.DoubleSide
176
- *                  wrap: What type of wrapping to apply for textures
177
- *                        THREE.RepeatWrapping (default), THREE.ClampToEdgeWrapping, THREE.MirroredRepeatWrapping
178
- *                  normalizeRGB: RGBs need to be normalized to 0-1 from 0-255
179
- *                                Default: false, assumed to be already normalized
180
- *                  ignoreZeroRGBs: Ignore values of RGBs (Ka,Kd,Ks) that are all 0's
181
- *                                  Default: false
182
- * @constructor
183
- */
184
-
185
-THREE.MTLLoader.MaterialCreator = function( baseUrl, options ) {
186
-
187
-	this.baseUrl = baseUrl || '';
188
-	this.options = options;
189
-	this.materialsInfo = {};
190
-	this.materials = {};
191
-	this.materialsArray = [];
192
-	this.nameLookup = {};
193
-
194
-	this.side = ( this.options && this.options.side ) ? this.options.side : THREE.FrontSide;
195
-	this.wrap = ( this.options && this.options.wrap ) ? this.options.wrap : THREE.RepeatWrapping;
196
-
197
-};
198
-
199
-THREE.MTLLoader.MaterialCreator.prototype = {
200
-
201
-	constructor: THREE.MTLLoader.MaterialCreator,
202
-
203
-	setCrossOrigin: function ( value ) {
204
-
205
-		this.crossOrigin = value;
206
-
207
-	},
208
-
209
-	setManager: function ( value ) {
210
-
211
-		this.manager = value;
212
-
213
-	},
214
-
215
-	setMaterials: function( materialsInfo ) {
216
-
217
-		this.materialsInfo = this.convert( materialsInfo );
218
-		this.materials = {};
219
-		this.materialsArray = [];
220
-		this.nameLookup = {};
221
-
222
-	},
223
-
224
-	convert: function( materialsInfo ) {
225
-
226
-		if ( ! this.options ) return materialsInfo;
227
-
228
-		var converted = {};
229
-
230
-		for ( var mn in materialsInfo ) {
231
-
232
-			// Convert materials info into normalized form based on options
233
-
234
-			var mat = materialsInfo[ mn ];
235
-
236
-			var covmat = {};
237
-
238
-			converted[ mn ] = covmat;
239
-
240
-			for ( var prop in mat ) {
241
-
242
-				var save = true;
243
-				var value = mat[ prop ];
244
-				var lprop = prop.toLowerCase();
245
-
246
-				switch ( lprop ) {
247
-
248
-					case 'kd':
249
-					case 'ka':
250
-					case 'ks':
251
-
252
-						// Diffuse color (color under white light) using RGB values
253
-
254
-						if ( this.options && this.options.normalizeRGB ) {
255
-
256
-							value = [ value[ 0 ] / 255, value[ 1 ] / 255, value[ 2 ] / 255 ];
257
-
258
-						}
259
-
260
-						if ( this.options && this.options.ignoreZeroRGBs ) {
261
-
262
-							if ( value[ 0 ] === 0 && value[ 1 ] === 0 && value[ 1 ] === 0 ) {
263
-
264
-								// ignore
265
-
266
-								save = false;
267
-
268
-							}
269
-
270
-						}
271
-
272
-						break;
273
-
274
-					default:
275
-
276
-						break;
277
-				}
278
-
279
-				if ( save ) {
280
-
281
-					covmat[ lprop ] = value;
282
-
283
-				}
284
-
285
-			}
286
-
287
-		}
288
-
289
-		return converted;
290
-
291
-	},
292
-
293
-	preload: function () {
294
-
295
-		for ( var mn in this.materialsInfo ) {
296
-
297
-			this.create( mn );
298
-
299
-		}
300
-
301
-	},
302
-
303
-	getIndex: function( materialName ) {
304
-
305
-		return this.nameLookup[ materialName ];
306
-
307
-	},
308
-
309
-	getAsArray: function() {
310
-
311
-		var index = 0;
312
-
313
-		for ( var mn in this.materialsInfo ) {
314
-
315
-			this.materialsArray[ index ] = this.create( mn );
316
-			this.nameLookup[ mn ] = index;
317
-			index ++;
318
-
319
-		}
320
-
321
-		return this.materialsArray;
322
-
323
-	},
324
-
325
-	create: function ( materialName ) {
326
-
327
-		if ( this.materials[ materialName ] === undefined ) {
328
-
329
-			this.createMaterial_( materialName );
330
-
331
-		}
332
-
333
-		return this.materials[ materialName ];
334
-
335
-	},
336
-
337
-	createMaterial_: function ( materialName ) {
338
-
339
-		// Create material
340
-
341
-		var mat = this.materialsInfo[ materialName ];
342
-		var params = {
343
-
344
-			name: materialName,
345
-			side: this.side
346
-
347
-		};
348
-
349
-		var resolveURL = function ( baseUrl, url ) {
350
-
351
-			if ( typeof url !== 'string' || url === '' )
352
-				return '';
353
-
354
-			// Absolute URL
355
-			if ( /^https?:\/\//i.test( url ) ) {
356
-				return url;
357
-			}
358
-
359
-			return baseUrl + url;
360
-		};
361
-
362
-		for ( var prop in mat ) {
363
-
364
-			var value = mat[ prop ];
365
-
366
-			if ( value === '' ) continue;
367
-
368
-			switch ( prop.toLowerCase() ) {
369
-
370
-				// Ns is material specular exponent
371
-
372
-				case 'kd':
373
-
374
-					// Diffuse color (color under white light) using RGB values
375
-
376
-					params.color = new THREE.Color().fromArray( value );
377
-
378
-					break;
379
-
380
-				case 'ks':
381
-
382
-					// Specular color (color when light is reflected from shiny surface) using RGB values
383
-					params.specular = new THREE.Color().fromArray( value );
384
-
385
-					break;
386
-
387
-				case 'map_kd':
388
-
389
-					// Diffuse texture map
390
-
391
-					if ( params.map ) break; // Keep the first encountered texture
392
-
393
-					params.map = this.loadTexture( resolveURL( this.baseUrl, value ) );
394
-					params.map.wrapS = this.wrap;
395
-					params.map.wrapT = this.wrap;
396
-
397
-					break;
398
-
399
-				case 'ns':
400
-
401
-					// The specular exponent (defines the focus of the specular highlight)
402
-					// A high exponent results in a tight, concentrated highlight. Ns values normally range from 0 to 1000.
403
-
404
-					params.shininess = parseFloat( value );
405
-
406
-					break;
407
-
408
-				case 'd':
409
-
410
-					if ( value < 1 ) {
411
-
412
-						params.opacity = value;
413
-						params.transparent = true;
414
-
415
-					}
416
-
417
-					break;
418
-
419
-				case 'Tr':
420
-
421
-					if ( value > 0 ) {
422
-
423
-						params.opacity = 1 - value;
424
-						params.transparent = true;
425
-
426
-					}
427
-
428
-					break;
429
-
430
-				case 'map_bump':
431
-				case 'bump':
432
-
433
-					// Bump texture map
434
-
435
-					if ( params.bumpMap ) break; // Keep the first encountered texture
436
-
437
-					params.bumpMap = this.loadTexture( resolveURL( this.baseUrl, value ) );
438
-					params.bumpMap.wrapS = this.wrap;
439
-					params.bumpMap.wrapT = this.wrap;
440
-
441
-					break;
442
-
443
-				default:
444
-					break;
445
-
446
-			}
447
-
448
-		}
449
-
450
-		this.materials[ materialName ] = new THREE.MeshPhongMaterial( params );
451
-		return this.materials[ materialName ];
452
-
453
-	},
454
-
455
-	loadTexture: function ( url, mapping, onLoad, onProgress, onError ) {
456
-
457
-		var texture;
458
-		var loader = THREE.Loader.Handlers.get( url );
459
-		var manager = ( this.manager !== undefined ) ? this.manager : THREE.DefaultLoadingManager;
460
-
461
-		if ( loader === null ) {
462
-
463
-			loader = new THREE.TextureLoader( manager );
464
-
465
-		}
466
-
467
-		if ( loader.setCrossOrigin ) loader.setCrossOrigin( this.crossOrigin );
468
-		texture = loader.load( url, onLoad, onProgress, onError );
469
-
470
-		if ( mapping !== undefined ) texture.mapping = mapping;
471
-
472
-		return texture;
473
-
474
-	}
475
-
476
-};

+ 0 - 861
target/classes/static/3Dlc/js/Object3D.js

@@ -1,861 +0,0 @@
1
-import {
2
-  Quaternion
3
-} from '../math/Quaternion.js';
4
-import {
5
-  Vector3
6
-} from '../math/Vector3.js';
7
-import {
8
-  Matrix4
9
-} from '../math/Matrix4.js';
10
-import {
11
-  EventDispatcher
12
-} from './EventDispatcher.js';
13
-import {
14
-  Euler
15
-} from '../math/Euler.js';
16
-import {
17
-  Layers
18
-} from './Layers.js';
19
-import {
20
-  Matrix3
21
-} from '../math/Matrix3.js';
22
-import {
23
-  _Math
24
-} from '../math/Math.js';
25
-
26
-/**
27
- * @author mrdoob / http://mrdoob.com/
28
- * @author mikael emtinger / http://gomo.se/
29
- * @author alteredq / http://alteredqualia.com/
30
- * @author WestLangley / http://github.com/WestLangley
31
- * @author elephantatwork / www.elephantatwork.ch
32
- */
33
-//局部的全局变量
34
-var object3DId = 0;
35
-
36
-function Object3D() {
37
-  // 每次执行该构造函数创建对象的时候,都会给该对象设置一个id属性,并且他一个全局变量加1赋值给id属性
38
-  Object.defineProperty(this, 'id', {
39
-    value: object3DId++
40
-  });
41
-  // generate :生成
42
-  this.uuid = _Math.generateUUID();
43
-
44
-  this.name = '';
45
-  this.type = 'Object3D';
46
-
47
-  this.parent = null;
48
-  this.children = [];
49
-
50
-  this.up = Object3D.DefaultUp.clone();
51
-
52
-  var position = new Vector3();
53
-  var rotation = new Euler();
54
-  var quaternion = new Quaternion();
55
-  var scale = new Vector3(1, 1, 1);
56
-
57
-  function onRotationChange() {
58
-
59
-    quaternion.setFromEuler(rotation, false);
60
-
61
-  }
62
-
63
-  function onQuaternionChange() {
64
-
65
-    rotation.setFromQuaternion(quaternion, undefined, false);
66
-
67
-  }
68
-
69
-  rotation.onChange(onRotationChange);
70
-  quaternion.onChange(onQuaternionChange);
71
-
72
-  Object.defineProperties(this, {
73
-    position: {
74
-      enumerable: true,
75
-      value: position
76
-    },
77
-    rotation: {
78
-      enumerable: true,
79
-      value: rotation
80
-    },
81
-    quaternion: {
82
-      enumerable: true,
83
-      value: quaternion
84
-    },
85
-    scale: {
86
-      enumerable: true,
87
-      value: scale
88
-    },
89
-    modelViewMatrix: {
90
-      value: new Matrix4()
91
-    },
92
-    normalMatrix: {
93
-      value: new Matrix3()
94
-    }
95
-  });
96
-
97
-  this.matrix = new Matrix4();
98
-  this.matrixWorld = new Matrix4();
99
-
100
-  this.matrixAutoUpdate = Object3D.DefaultMatrixAutoUpdate;
101
-  this.matrixWorldNeedsUpdate = false;
102
-  // 创建obj3对象的时候,已经默认创建Layers,并且带对象创建的时候默认相当于初始化执行set(0)
103
-  this.layers = new Layers();
104
-  this.visible = true;
105
-
106
-  this.castShadow = false;
107
-  this.receiveShadow = false;
108
-
109
-  this.frustumCulled = true;
110
-  this.renderOrder = 0;
111
-
112
-  this.userData = {};
113
-
114
-}
115
-
116
-Object3D.DefaultUp = new Vector3(0, 1, 0);
117
-Object3D.DefaultMatrixAutoUpdate = true;
118
-
119
-Object3D.prototype = Object.assign(Object.create(EventDispatcher.prototype), {
120
-
121
-  constructor: Object3D,
122
-
123
-  isObject3D: true,
124
-
125
-  onBeforeRender: function() {},
126
-  onAfterRender: function() {},
127
-
128
-  applyMatrix: function(matrix) {
129
-
130
-    this.matrix.multiplyMatrices(matrix, this.matrix);
131
-
132
-    this.matrix.decompose(this.position, this.quaternion, this.scale);
133
-
134
-  },
135
-
136
-  applyQuaternion: function(q) {
137
-
138
-    this.quaternion.premultiply(q);
139
-
140
-    return this;
141
-
142
-  },
143
-
144
-  setRotationFromAxisAngle: function(axis, angle) {
145
-
146
-    // assumes axis is normalized
147
-
148
-    this.quaternion.setFromAxisAngle(axis, angle);
149
-
150
-  },
151
-
152
-  setRotationFromEuler: function(euler) {
153
-
154
-    this.quaternion.setFromEuler(euler, true);
155
-
156
-  },
157
-
158
-  setRotationFromMatrix: function(m) {
159
-
160
-    // assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled)
161
-
162
-    this.quaternion.setFromRotationMatrix(m);
163
-
164
-  },
165
-
166
-  setRotationFromQuaternion: function(q) {
167
-
168
-    // assumes q is normalized
169
-
170
-    this.quaternion.copy(q);
171
-
172
-  },
173
-
174
-  rotateOnAxis: function() {
175
-
176
-    // rotate object on axis in object space
177
-    // axis is assumed to be normalized
178
-
179
-    var q1 = new Quaternion();
180
-
181
-    return function rotateOnAxis(axis, angle) {
182
-
183
-      q1.setFromAxisAngle(axis, angle);
184
-
185
-      this.quaternion.multiply(q1);
186
-
187
-      return this;
188
-
189
-    };
190
-
191
-  }(),
192
-
193
-  rotateOnWorldAxis: function() {
194
-
195
-    // rotate object on axis in world space
196
-    // axis is assumed to be normalized
197
-    // method assumes no rotated parent
198
-
199
-    var q1 = new Quaternion();
200
-
201
-    return function rotateOnWorldAxis(axis, angle) {
202
-
203
-      q1.setFromAxisAngle(axis, angle);
204
-
205
-      this.quaternion.premultiply(q1);
206
-
207
-      return this;
208
-
209
-    };
210
-
211
-  }(),
212
-
213
-  rotateX: function() {
214
-
215
-    var v1 = new Vector3(1, 0, 0);
216
-
217
-    return function rotateX(angle) {
218
-
219
-      return this.rotateOnAxis(v1, angle);
220
-
221
-    };
222
-
223
-  }(),
224
-
225
-  rotateY: function() {
226
-
227
-    var v1 = new Vector3(0, 1, 0);
228
-
229
-    return function rotateY(angle) {
230
-
231
-      return this.rotateOnAxis(v1, angle);
232
-
233
-    };
234
-
235
-  }(),
236
-
237
-  rotateZ: function() {
238
-
239
-    var v1 = new Vector3(0, 0, 1);
240
-
241
-    return function rotateZ(angle) {
242
-
243
-      return this.rotateOnAxis(v1, angle);
244
-
245
-    };
246
-
247
-  }(),
248
-
249
-  translateOnAxis: function() {
250
-
251
-    // translate object by distance along axis in object space
252
-    // axis is assumed to be normalized
253
-
254
-    var v1 = new Vector3();
255
-
256
-    return function translateOnAxis(axis, distance) {
257
-
258
-      v1.copy(axis).applyQuaternion(this.quaternion);
259
-
260
-      this.position.add(v1.multiplyScalar(distance));
261
-
262
-      return this;
263
-
264
-    };
265
-
266
-  }(),
267
-
268
-  translateX: function() {
269
-
270
-    var v1 = new Vector3(1, 0, 0);
271
-
272
-    return function translateX(distance) {
273
-
274
-      return this.translateOnAxis(v1, distance);
275
-
276
-    };
277
-
278
-  }(),
279
-
280
-  translateY: function() {
281
-
282
-    var v1 = new Vector3(0, 1, 0);
283
-
284
-    return function translateY(distance) {
285
-
286
-      return this.translateOnAxis(v1, distance);
287
-
288
-    };
289
-
290
-  }(),
291
-
292
-  translateZ: function() {
293
-
294
-    var v1 = new Vector3(0, 0, 1);
295
-
296
-    return function translateZ(distance) {
297
-
298
-      return this.translateOnAxis(v1, distance);
299
-
300
-    };
301
-
302
-  }(),
303
-
304
-  localToWorld: function(vector) {
305
-
306
-    return vector.applyMatrix4(this.matrixWorld);
307
-
308
-  },
309
-
310
-  worldToLocal: function() {
311
-
312
-    var m1 = new Matrix4();
313
-
314
-    return function worldToLocal(vector) {
315
-
316
-      return vector.applyMatrix4(m1.getInverse(this.matrixWorld));
317
-
318
-    };
319
-
320
-  }(),
321
-
322
-  lookAt: function() {
323
-
324
-    // This method does not support objects with rotated and/or translated parent(s)
325
-
326
-    var m1 = new Matrix4();
327
-    var vector = new Vector3();
328
-    // 参数可以是一个向量,也可以是向量的三个分量
329
-    return function lookAt(x, y, z) {
330
-      // 判断x是不是向量v3,如果是,说明程序员使用的是三维向量
331
-      if (x.isVector3) {
332
-
333
-        vector.copy(x);
334
-
335
-      } else {
336
-
337
-        vector.set(x, y, z);
338
-
339
-      }
340
-
341
-      if (this.isCamera) {
342
-
343
-        m1.lookAt(this.position, vector, this.up);
344
-
345
-      } else {
346
-
347
-        m1.lookAt(vector, this.position, this.up);
348
-
349
-      }
350
-
351
-      this.quaternion.setFromRotationMatrix(m1);
352
-
353
-    };
354
-
355
-  }(),
356
-
357
-  add: function(object) {
358
-
359
-    if (arguments.length > 1) {
360
-
361
-      for (var i = 0; i < arguments.length; i++) {
362
-
363
-        this.add(arguments[i]);
364
-
365
-      }
366
-
367
-      return this;
368
-
369
-    }
370
-
371
-    if (object === this) {
372
-
373
-      console.error("THREE.Object3D.add: object can't be added as a child of itself.", object);
374
-      return this;
375
-
376
-    }
377
-
378
-    if ((object && object.isObject3D)) {
379
-
380
-      if (object.parent !== null) {
381
-
382
-        object.parent.remove(object);
383
-
384
-      }
385
-
386
-      object.parent = this;
387
-      object.dispatchEvent({
388
-        type: 'added'
389
-      });
390
-
391
-      this.children.push(object);
392
-
393
-    } else {
394
-
395
-      console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.", object);
396
-
397
-    }
398
-
399
-    return this;
400
-
401
-  },
402
-  // 参数:.remove ( object : Object3D, ... )
403
-  // 将对象作为对象的子对象移除。可以删除任意数量的对象。
404
-  remove: function(object) {
405
-    // arguments对象表示所有参数组成的数组
406
-    if (arguments.length > 1) {
407
-      // 循环遍历  每一个参数对象执行remove删除方法
408
-      for (var i = 0; i < arguments.length; i++) {
409
-
410
-        this.remove(arguments[i]);
411
-
412
-      }
413
-
414
-      return this;
415
-
416
-    }
417
-    // 获得object在children数组中的索引
418
-    var index = this.children.indexOf(object);
419
-
420
-    if (index !== -1) {
421
-// 设置object的父对象属性parent为null空
422
-      object.parent = null;
423
-
424
-      object.dispatchEvent({
425
-        type: 'removed'
426
-      });
427
-// 删除children数组中索引是index的元素
428
-      this.children.splice(index, 1);
429
-
430
-    }
431
-
432
-    return this;
433
-
434
-  },
435
-  // 通过id获得对象
436
-  getObjectById: function(id) {
437
-    // 浏览器通过id选择的生层原理
438
-    return this.getObjectByProperty('id', id);
439
-
440
-  },
441
-
442
-  getObjectByName: function(name) {
443
-
444
-    return this.getObjectByProperty('name', name);
445
-
446
-  },
447
-
448
-  getObjectByProperty: function(name, value) {
449
-
450
-    if (this[name] === value) return this;
451
-
452
-    for (var i = 0, l = this.children.length; i < l; i++) {
453
-
454
-      var child = this.children[i];
455
-      var object = child.getObjectByProperty(name, value);
456
-
457
-      if (object !== undefined) {
458
-
459
-        return object;
460
-
461
-      }
462
-
463
-    }
464
-
465
-    return undefined;
466
-
467
-  },
468
-
469
-  getWorldPosition: function(target) {
470
-
471
-    if (target === undefined) {
472
-
473
-      console.warn('THREE.Object3D: .getWorldPosition() target is now required');
474
-      target = new Vector3();
475
-
476
-    }
477
-
478
-    this.updateMatrixWorld(true);
479
-
480
-    return target.setFromMatrixPosition(this.matrixWorld);
481
-
482
-  },
483
-
484
-  getWorldQuaternion: function() {
485
-
486
-    var position = new Vector3();
487
-    var scale = new Vector3();
488
-
489
-    return function getWorldQuaternion(target) {
490
-
491
-      if (target === undefined) {
492
-
493
-        console.warn('THREE.Object3D: .getWorldQuaternion() target is now required');
494
-        target = new Quaternion();
495
-
496
-      }
497
-
498
-      this.updateMatrixWorld(true);
499
-
500
-      this.matrixWorld.decompose(position, target, scale);
501
-
502
-      return target;
503
-
504
-    };
505
-
506
-  }(),
507
-
508
-  getWorldScale: function() {
509
-
510
-    var position = new Vector3();
511
-    var quaternion = new Quaternion();
512
-
513
-    return function getWorldScale(target) {
514
-
515
-      if (target === undefined) {
516
-
517
-        console.warn('THREE.Object3D: .getWorldScale() target is now required');
518
-        target = new Vector3();
519
-
520
-      }
521
-
522
-      this.updateMatrixWorld(true);
523
-
524
-      this.matrixWorld.decompose(position, quaternion, target);
525
-
526
-      return target;
527
-
528
-    };
529
-
530
-  }(),
531
-
532
-  getWorldDirection: function() {
533
-
534
-    var quaternion = new Quaternion();
535
-
536
-    return function getWorldDirection(target) {
537
-
538
-      if (target === undefined) {
539
-
540
-        console.warn('THREE.Object3D: .getWorldDirection() target is now required');
541
-        target = new Vector3();
542
-
543
-      }
544
-
545
-      this.getWorldQuaternion(quaternion);
546
-
547
-      return target.set(0, 0, 1).applyQuaternion(quaternion);
548
-
549
-    };
550
-
551
-  }(),
552
-
553
-  raycast: function() {},
554
-
555
-  traverse: function(callback) {
556
-
557
-    callback(this);
558
-
559
-    var children = this.children;
560
-
561
-    for (var i = 0, l = children.length; i < l; i++) {
562
-
563
-      children[i].traverse(callback);
564
-
565
-    }
566
-
567
-  },
568
-
569
-  traverseVisible: function(callback) {
570
-
571
-    if (this.visible === false) return;
572
-
573
-    callback(this);
574
-
575
-    var children = this.children;
576
-
577
-    for (var i = 0, l = children.length; i < l; i++) {
578
-
579
-      children[i].traverseVisible(callback);
580
-
581
-    }
582
-
583
-  },
584
-
585
-  traverseAncestors: function(callback) {
586
-
587
-    var parent = this.parent;
588
-
589
-    if (parent !== null) {
590
-
591
-      callback(parent);
592
-
593
-      parent.traverseAncestors(callback);
594
-
595
-    }
596
-
597
-  },
598
-
599
-  updateMatrix: function() {
600
-
601
-    this.matrix.compose(this.position, this.quaternion, this.scale);
602
-
603
-    this.matrixWorldNeedsUpdate = true;
604
-
605
-  },
606
-
607
-  updateMatrixWorld: function(force) {
608
-
609
-    if (this.matrixAutoUpdate) this.updateMatrix();
610
-
611
-    if (this.matrixWorldNeedsUpdate || force) {
612
-
613
-      if (this.parent === null) {
614
-
615
-        this.matrixWorld.copy(this.matrix);
616
-
617
-      } else {
618
-
619
-        this.matrixWorld.multiplyMatrices(this.parent.matrixWorld, this.matrix);
620
-
621
-      }
622
-
623
-      this.matrixWorldNeedsUpdate = false;
624
-
625
-      force = true;
626
-
627
-    }
628
-
629
-    // update children
630
-
631
-    var children = this.children;
632
-
633
-    for (var i = 0, l = children.length; i < l; i++) {
634
-
635
-      children[i].updateMatrixWorld(force);
636
-
637
-    }
638
-
639
-  },
640
-
641
-  toJSON: function(meta) {
642
-
643
-    // meta is a string when called from JSON.stringify
644
-    var isRootObject = (meta === undefined || typeof meta === 'string');
645
-
646
-    var output = {};
647
-
648
-    // meta is a hash used to collect geometries, materials.
649
-    // not providing it implies that this is the root object
650
-    // being serialized.
651
-    if (isRootObject) {
652
-
653
-      // initialize meta obj
654
-      meta = {
655
-        geometries: {},
656
-        materials: {},
657
-        textures: {},
658
-        images: {},
659
-        shapes: {}
660
-      };
661
-
662
-      output.metadata = {
663
-        version: 4.5,
664
-        type: 'Object',
665
-        generator: 'Object3D.toJSON'
666
-      };
667
-
668
-    }
669
-
670
-    // standard Object3D serialization
671
-
672
-    var object = {};
673
-
674
-    object.uuid = this.uuid;
675
-    object.type = this.type;
676
-
677
-    if (this.name !== '') object.name = this.name;
678
-    if (this.castShadow === true) object.castShadow = true;
679
-    if (this.receiveShadow === true) object.receiveShadow = true;
680
-    if (this.visible === false) object.visible = false;
681
-    if (this.frustumCulled === false) object.frustumCulled = false;
682
-    if (this.renderOrder !== 0) object.renderOrder = this.renderOrder;
683
-    if (JSON.stringify(this.userData) !== '{}') object.userData = this.userData;
684
-
685
-    object.matrix = this.matrix.toArray();
686
-
687
-    //
688
-
689
-    function serialize(library, element) {
690
-
691
-      if (library[element.uuid] === undefined) {
692
-
693
-        library[element.uuid] = element.toJSON(meta);
694
-
695
-      }
696
-
697
-      return element.uuid;
698
-
699
-    }
700
-
701
-    if (this.geometry !== undefined) {
702
-
703
-      object.geometry = serialize(meta.geometries, this.geometry);
704
-
705
-      var parameters = this.geometry.parameters;
706
-
707
-      if (parameters !== undefined && parameters.shapes !== undefined) {
708
-
709
-        var shapes = parameters.shapes;
710
-
711
-        if (Array.isArray(shapes)) {
712
-
713
-          for (var i = 0, l = shapes.length; i < l; i++) {
714
-
715
-            var shape = shapes[i];
716
-
717
-            serialize(meta.shapes, shape);
718
-
719
-          }
720
-
721
-        } else {
722
-
723
-          serialize(meta.shapes, shapes);
724
-
725
-        }
726
-
727
-      }
728
-
729
-    }
730
-
731
-    if (this.material !== undefined) {
732
-
733
-      if (Array.isArray(this.material)) {
734
-
735
-        var uuids = [];
736
-
737
-        for (var i = 0, l = this.material.length; i < l; i++) {
738
-
739
-          uuids.push(serialize(meta.materials, this.material[i]));
740
-
741
-        }
742
-
743
-        object.material = uuids;
744
-
745
-      } else {
746
-
747
-        object.material = serialize(meta.materials, this.material);
748
-
749
-      }
750
-
751
-    }
752
-
753
-    //
754
-
755
-    if (this.children.length > 0) {
756
-
757
-      object.children = [];
758
-
759
-      for (var i = 0; i < this.children.length; i++) {
760
-
761
-        object.children.push(this.children[i].toJSON(meta).object);
762
-
763
-      }
764
-
765
-    }
766
-
767
-    if (isRootObject) {
768
-
769
-      var geometries = extractFromCache(meta.geometries);
770
-      var materials = extractFromCache(meta.materials);
771
-      var textures = extractFromCache(meta.textures);
772
-      var images = extractFromCache(meta.images);
773
-      var shapes = extractFromCache(meta.shapes);
774
-
775
-      if (geometries.length > 0) output.geometries = geometries;
776
-      if (materials.length > 0) output.materials = materials;
777
-      if (textures.length > 0) output.textures = textures;
778
-      if (images.length > 0) output.images = images;
779
-      if (shapes.length > 0) output.shapes = shapes;
780
-
781
-    }
782
-
783
-    output.object = object;
784
-
785
-    return output;
786
-
787
-    // extract data from the cache hash
788
-    // remove metadata on each item
789
-    // and return as array
790
-    function extractFromCache(cache) {
791
-
792
-      var values = [];
793
-      for (var key in cache) {
794
-
795
-        var data = cache[key];
796
-        delete data.metadata;
797
-        values.push(data);
798
-
799
-      }
800
-      return values;
801
-
802
-    }
803
-
804
-  },
805
-
806
-  clone: function(recursive) {
807
-
808
-    return new this.constructor().copy(this, recursive);
809
-
810
-  },
811
-
812
-  copy: function(source, recursive) {
813
-
814
-    if (recursive === undefined) recursive = true;
815
-
816
-    this.name = source.name;
817
-
818
-    this.up.copy(source.up);
819
-
820
-    this.position.copy(source.position);
821
-    this.quaternion.copy(source.quaternion);
822
-    this.scale.copy(source.scale);
823
-
824
-    this.matrix.copy(source.matrix);
825
-    this.matrixWorld.copy(source.matrixWorld);
826
-
827
-    this.matrixAutoUpdate = source.matrixAutoUpdate;
828
-    this.matrixWorldNeedsUpdate = source.matrixWorldNeedsUpdate;
829
-
830
-    this.layers.mask = source.layers.mask;
831
-    this.visible = source.visible;
832
-
833
-    this.castShadow = source.castShadow;
834
-    this.receiveShadow = source.receiveShadow;
835
-
836
-    this.frustumCulled = source.frustumCulled;
837
-    this.renderOrder = source.renderOrder;
838
-
839
-    this.userData = JSON.parse(JSON.stringify(source.userData));
840
-
841
-    if (recursive === true) {
842
-
843
-      for (var i = 0; i < source.children.length; i++) {
844
-
845
-        var child = source.children[i];
846
-        this.add(child.clone());
847
-
848
-      }
849
-
850
-    }
851
-
852
-    return this;
853
-
854
-  }
855
-
856
-});
857
-
858
-
859
-export {
860
-  Object3D
861
-};

File diff suppressed because it is too large
+ 0 - 1070
target/classes/static/3Dlc/js/OrbitControls.js


+ 0 - 550
target/classes/static/3Dlc/js/TGALoader.js

@@ -1,550 +0,0 @@
1
-/*
2
- * @author Daosheng Mu / https://github.com/DaoshengMu/
3
- * @author mrdoob / http://mrdoob.com/
4
- * @author takahirox / https://github.com/takahirox/
5
- */
6
-
7
-THREE.TGALoader = function ( manager ) {
8
-
9
-	this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
10
-
11
-};
12
-
13
-THREE.TGALoader.prototype = {
14
-
15
-	constructor: THREE.TGALoader,
16
-
17
-	load: function ( url, onLoad, onProgress, onError ) {
18
-
19
-		var scope = this;
20
-
21
-		var texture = new THREE.Texture();
22
-
23
-		var loader = new THREE.FileLoader( this.manager );
24
-		loader.setResponseType( 'arraybuffer' );
25
-		loader.setPath( this.path );
26
-
27
-		loader.load( url, function ( buffer ) {
28
-
29
-			texture.image = scope.parse( buffer );
30
-			texture.needsUpdate = true;
31
-
32
-			if ( onLoad !== undefined ) {
33
-
34
-				onLoad( texture );
35
-
36
-			}
37
-
38
-		}, onProgress, onError );
39
-
40
-		return texture;
41
-
42
-	},
43
-
44
-	parse: function ( buffer ) {
45
-
46
-		// reference from vthibault, https://github.com/vthibault/roBrowser/blob/master/src/Loaders/Targa.js
47
-
48
-		function tgaCheckHeader( header ) {
49
-
50
-			switch ( header.image_type ) {
51
-
52
-				// check indexed type
53
-
54
-				case TGA_TYPE_INDEXED:
55
-				case TGA_TYPE_RLE_INDEXED:
56
-					if ( header.colormap_length > 256 || header.colormap_size !== 24 || header.colormap_type !== 1 ) {
57
-
58
-						console.error( 'THREE.TGALoader: Invalid type colormap data for indexed type.' );
59
-
60
-					}
61
-					break;
62
-
63
-				// check colormap type
64
-
65
-				case TGA_TYPE_RGB:
66
-				case TGA_TYPE_GREY:
67
-				case TGA_TYPE_RLE_RGB:
68
-				case TGA_TYPE_RLE_GREY:
69
-					if ( header.colormap_type ) {
70
-
71
-						console.error( 'THREE.TGALoader: Invalid type colormap data for colormap type.' );
72
-
73
-					}
74
-					break;
75
-
76
-				// What the need of a file without data ?
77
-
78
-				case TGA_TYPE_NO_DATA:
79
-					console.error( 'THREE.TGALoader: No data.' );
80
-
81
-				// Invalid type ?
82
-
83
-				default:
84
-					console.error( 'THREE.TGALoader: Invalid type "%s".', header.image_type );
85
-
86
-			}
87
-
88
-			// check image width and height
89
-
90
-			if ( header.width <= 0 || header.height <= 0 ) {
91
-
92
-				console.error( 'THREE.TGALoader: Invalid image size.' );
93
-
94
-			}
95
-
96
-			// check image pixel size
97
-
98
-			if ( header.pixel_size !== 8 && header.pixel_size !== 16 &&
99
-				header.pixel_size !== 24 && header.pixel_size !== 32 ) {
100
-
101
-				console.error( 'THREE.TGALoader: Invalid pixel size "%s".', header.pixel_size );
102
-
103
-			}
104
-
105
-		}
106
-
107
-		// parse tga image buffer
108
-
109
-		function tgaParse( use_rle, use_pal, header, offset, data ) {
110
-
111
-			var pixel_data,
112
-				pixel_size,
113
-				pixel_total,
114
-				palettes;
115
-
116
-			pixel_size = header.pixel_size >> 3;
117
-			pixel_total = header.width * header.height * pixel_size;
118
-
119
-			 // read palettes
120
-
121
-			 if ( use_pal ) {
122
-
123
-				 palettes = data.subarray( offset, offset += header.colormap_length * ( header.colormap_size >> 3 ) );
124
-
125
-			 }
126
-
127
-			 // read RLE
128
-
129
-			 if ( use_rle ) {
130
-
131
-				 pixel_data = new Uint8Array( pixel_total );
132
-
133
-				var c, count, i;
134
-				var shift = 0;
135
-				var pixels = new Uint8Array( pixel_size );
136
-
137
-				while ( shift < pixel_total ) {
138
-
139
-					c = data[ offset ++ ];
140
-					count = ( c & 0x7f ) + 1;
141
-
142
-					// RLE pixels
143
-
144
-					if ( c & 0x80 ) {
145
-
146
-						// bind pixel tmp array
147
-
148
-						for ( i = 0; i < pixel_size; ++ i ) {
149
-
150
-							pixels[ i ] = data[ offset ++ ];
151
-
152
-						}
153
-
154
-						// copy pixel array
155
-
156
-						for ( i = 0; i < count; ++ i ) {
157
-
158
-							pixel_data.set( pixels, shift + i * pixel_size );
159
-
160
-						}
161
-
162
-						shift += pixel_size * count;
163
-
164
-					} else {
165
-
166
-						// raw pixels
167
-
168
-						count *= pixel_size;
169
-						for ( i = 0; i < count; ++ i ) {
170
-
171
-							pixel_data[ shift + i ] = data[ offset ++ ];
172
-
173
-						}
174
-						shift += count;
175
-
176
-					}
177
-
178
-				}
179
-
180
-			 } else {
181
-
182
-				// raw pixels
183
-
184
-				pixel_data = data.subarray(
185
-					 offset, offset += ( use_pal ? header.width * header.height : pixel_total )
186
-				);
187
-
188
-			 }
189
-
190
-			 return {
191
-				pixel_data: pixel_data,
192
-				palettes: palettes
193
-			 };
194
-
195
-		}
196
-
197
-		function tgaGetImageData8bits( imageData, y_start, y_step, y_end, x_start, x_step, x_end, image, palettes ) {
198
-
199
-			var colormap = palettes;
200
-			var color, i = 0, x, y;
201
-			var width = header.width;
202
-
203
-			for ( y = y_start; y !== y_end; y += y_step ) {
204
-
205
-				for ( x = x_start; x !== x_end; x += x_step, i ++ ) {
206
-
207
-					color = image[ i ];
208
-					imageData[ ( x + width * y ) * 4 + 3 ] = 255;
209
-					imageData[ ( x + width * y ) * 4 + 2 ] = colormap[ ( color * 3 ) + 0 ];
210
-					imageData[ ( x + width * y ) * 4 + 1 ] = colormap[ ( color * 3 ) + 1 ];
211
-					imageData[ ( x + width * y ) * 4 + 0 ] = colormap[ ( color * 3 ) + 2 ];
212
-
213
-				}
214
-
215
-			}
216
-
217
-			return imageData;
218
-
219
-		}
220
-
221
-		function tgaGetImageData16bits( imageData, y_start, y_step, y_end, x_start, x_step, x_end, image ) {
222
-
223
-			var color, i = 0, x, y;
224
-			var width = header.width;
225
-
226
-			for ( y = y_start; y !== y_end; y += y_step ) {
227
-
228
-				for ( x = x_start; x !== x_end; x += x_step, i += 2 ) {
229
-
230
-					color = image[ i + 0 ] + ( image[ i + 1 ] << 8 ); // Inversed ?
231
-					imageData[ ( x + width * y ) * 4 + 0 ] = ( color & 0x7C00 ) >> 7;
232
-					imageData[ ( x + width * y ) * 4 + 1 ] = ( color & 0x03E0 ) >> 2;
233
-					imageData[ ( x + width * y ) * 4 + 2 ] = ( color & 0x001F ) >> 3;
234
-					imageData[ ( x + width * y ) * 4 + 3 ] = ( color & 0x8000 ) ? 0 : 255;
235
-
236
-				}
237
-
238
-			}
239
-
240
-			return imageData;
241
-
242
-		}
243
-
244
-		function tgaGetImageData24bits( imageData, y_start, y_step, y_end, x_start, x_step, x_end, image ) {
245
-
246
-			var i = 0, x, y;
247
-			var width = header.width;
248
-
249
-			for ( y = y_start; y !== y_end; y += y_step ) {
250
-
251
-				for ( x = x_start; x !== x_end; x += x_step, i += 3 ) {
252
-
253
-					imageData[ ( x + width * y ) * 4 + 3 ] = 255;
254
-					imageData[ ( x + width * y ) * 4 + 2 ] = image[ i + 0 ];
255
-					imageData[ ( x + width * y ) * 4 + 1 ] = image[ i + 1 ];
256
-					imageData[ ( x + width * y ) * 4 + 0 ] = image[ i + 2 ];
257
-
258
-				}
259
-
260
-			}
261
-
262
-			return imageData;
263
-
264
-		}
265
-
266
-		function tgaGetImageData32bits( imageData, y_start, y_step, y_end, x_start, x_step, x_end, image ) {
267
-
268
-			var i = 0, x, y;
269
-			var width = header.width;
270
-
271
-			for ( y = y_start; y !== y_end; y += y_step ) {
272
-
273
-				for ( x = x_start; x !== x_end; x += x_step, i += 4 ) {
274
-
275
-					imageData[ ( x + width * y ) * 4 + 2 ] = image[ i + 0 ];
276
-					imageData[ ( x + width * y ) * 4 + 1 ] = image[ i + 1 ];
277
-					imageData[ ( x + width * y ) * 4 + 0 ] = image[ i + 2 ];
278
-					imageData[ ( x + width * y ) * 4 + 3 ] = image[ i + 3 ];
279
-
280
-				}
281
-
282
-			}
283
-
284
-			return imageData;
285
-
286
-		}
287
-
288
-		function tgaGetImageDataGrey8bits( imageData, y_start, y_step, y_end, x_start, x_step, x_end, image ) {
289
-
290
-			var color, i = 0, x, y;
291
-			var width = header.width;
292
-
293
-			for ( y = y_start; y !== y_end; y += y_step ) {
294
-
295
-				for ( x = x_start; x !== x_end; x += x_step, i ++ ) {
296
-
297
-					color = image[ i ];
298
-					imageData[ ( x + width * y ) * 4 + 0 ] = color;
299
-					imageData[ ( x + width * y ) * 4 + 1 ] = color;
300
-					imageData[ ( x + width * y ) * 4 + 2 ] = color;
301
-					imageData[ ( x + width * y ) * 4 + 3 ] = 255;
302
-
303
-				}
304
-
305
-			}
306
-
307
-			return imageData;
308
-
309
-		}
310
-
311
-		function tgaGetImageDataGrey16bits( imageData, y_start, y_step, y_end, x_start, x_step, x_end, image ) {
312
-
313
-			var i = 0, x, y;
314
-			var width = header.width;
315
-
316
-			for ( y = y_start; y !== y_end; y += y_step ) {
317
-
318
-				for ( x = x_start; x !== x_end; x += x_step, i += 2 ) {
319
-
320
-					imageData[ ( x + width * y ) * 4 + 0 ] = image[ i + 0 ];
321
-					imageData[ ( x + width * y ) * 4 + 1 ] = image[ i + 0 ];
322
-					imageData[ ( x + width * y ) * 4 + 2 ] = image[ i + 0 ];
323
-					imageData[ ( x + width * y ) * 4 + 3 ] = image[ i + 1 ];
324
-
325
-				}
326
-
327
-			}
328
-
329
-			return imageData;
330
-
331
-		}
332
-
333
-		function getTgaRGBA( data, width, height, image, palette ) {
334
-
335
-			var x_start,
336
-				y_start,
337
-				x_step,
338
-				y_step,
339
-				x_end,
340
-				y_end;
341
-
342
-			switch ( ( header.flags & TGA_ORIGIN_MASK ) >> TGA_ORIGIN_SHIFT ) {
343
-
344
-				default:
345
-				case TGA_ORIGIN_UL:
346
-					x_start = 0;
347
-					x_step = 1;
348
-					x_end = width;
349
-					y_start = 0;
350
-					y_step = 1;
351
-					y_end = height;
352
-					break;
353
-
354
-				case TGA_ORIGIN_BL:
355
-					x_start = 0;
356
-					x_step = 1;
357
-					x_end = width;
358
-					y_start = height - 1;
359
-					y_step = - 1;
360
-					y_end = - 1;
361
-					break;
362
-
363
-				case TGA_ORIGIN_UR:
364
-					x_start = width - 1;
365
-					x_step = - 1;
366
-					x_end = - 1;
367
-					y_start = 0;
368
-					y_step = 1;
369
-					y_end = height;
370
-					break;
371
-
372
-				case TGA_ORIGIN_BR:
373
-					x_start = width - 1;
374
-					x_step = - 1;
375
-					x_end = - 1;
376
-					y_start = height - 1;
377
-					y_step = - 1;
378
-					y_end = - 1;
379
-					break;
380
-
381
-			}
382
-
383
-			if ( use_grey ) {
384
-
385
-				switch ( header.pixel_size ) {
386
-
387
-					case 8:
388
-						tgaGetImageDataGrey8bits( data, y_start, y_step, y_end, x_start, x_step, x_end, image );
389
-						break;
390
-
391
-					case 16:
392
-						tgaGetImageDataGrey16bits( data, y_start, y_step, y_end, x_start, x_step, x_end, image );
393
-						break;
394
-
395
-					default:
396
-						console.error( 'THREE.TGALoader: Format not supported.' );
397
-						break;
398
-
399
-				}
400
-
401
-			} else {
402
-
403
-				switch ( header.pixel_size ) {
404
-
405
-					case 8:
406
-						tgaGetImageData8bits( data, y_start, y_step, y_end, x_start, x_step, x_end, image, palette );
407
-						break;
408
-
409
-					case 16:
410
-						tgaGetImageData16bits( data, y_start, y_step, y_end, x_start, x_step, x_end, image );
411
-						break;
412
-
413
-					case 24:
414
-						tgaGetImageData24bits( data, y_start, y_step, y_end, x_start, x_step, x_end, image );
415
-						break;
416
-
417
-					case 32:
418
-						tgaGetImageData32bits( data, y_start, y_step, y_end, x_start, x_step, x_end, image );
419
-						break;
420
-
421
-					default:
422
-						console.error( 'THREE.TGALoader: Format not supported.' );
423
-						break;
424
-
425
-				}
426
-
427
-			}
428
-
429
-			// Load image data according to specific method
430
-			// var func = 'tgaGetImageData' + (use_grey ? 'Grey' : '') + (header.pixel_size) + 'bits';
431
-			// func(data, y_start, y_step, y_end, x_start, x_step, x_end, width, image, palette );
432
-			return data;
433
-
434
-		}
435
-
436
-		// TGA constants
437
-
438
-		var TGA_TYPE_NO_DATA = 0,
439
-			TGA_TYPE_INDEXED = 1,
440
-			TGA_TYPE_RGB = 2,
441
-			TGA_TYPE_GREY = 3,
442
-			TGA_TYPE_RLE_INDEXED = 9,
443
-			TGA_TYPE_RLE_RGB = 10,
444
-			TGA_TYPE_RLE_GREY = 11,
445
-
446
-			TGA_ORIGIN_MASK = 0x30,
447
-			TGA_ORIGIN_SHIFT = 0x04,
448
-			TGA_ORIGIN_BL = 0x00,
449
-			TGA_ORIGIN_BR = 0x01,
450
-			TGA_ORIGIN_UL = 0x02,
451
-			TGA_ORIGIN_UR = 0x03;
452
-
453
-		if ( buffer.length < 19 ) console.error( 'THREE.TGALoader: Not enough data to contain header.' );
454
-
455
-		var content = new Uint8Array( buffer ),
456
-			offset = 0,
457
-			header = {
458
-				id_length: content[ offset ++ ],
459
-				colormap_type: content[ offset ++ ],
460
-				image_type: content[ offset ++ ],
461
-				colormap_index: content[ offset ++ ] | content[ offset ++ ] << 8,
462
-				colormap_length: content[ offset ++ ] | content[ offset ++ ] << 8,
463
-				colormap_size: content[ offset ++ ],
464
-				origin: [
465
-					content[ offset ++ ] | content[ offset ++ ] << 8,
466
-					content[ offset ++ ] | content[ offset ++ ] << 8
467
-				],
468
-				width: content[ offset ++ ] | content[ offset ++ ] << 8,
469
-				height: content[ offset ++ ] | content[ offset ++ ] << 8,
470
-				pixel_size: content[ offset ++ ],
471
-				flags: content[ offset ++ ]
472
-			};
473
-
474
-			// check tga if it is valid format
475
-
476
-		tgaCheckHeader( header );
477
-
478
-		if ( header.id_length + offset > buffer.length ) {
479
-
480
-			console.error( 'THREE.TGALoader: No data.' );
481
-
482
-		}
483
-
484
-		// skip the needn't data
485
-
486
-		offset += header.id_length;
487
-
488
-		// get targa information about RLE compression and palette
489
-
490
-		var use_rle = false,
491
-			use_pal = false,
492
-			use_grey = false;
493
-
494
-		switch ( header.image_type ) {
495
-
496
-			case TGA_TYPE_RLE_INDEXED:
497
-				use_rle = true;
498
-				use_pal = true;
499
-				break;
500
-
501
-			case TGA_TYPE_INDEXED:
502
-				use_pal = true;
503
-				break;
504
-
505
-			case TGA_TYPE_RLE_RGB:
506
-				use_rle = true;
507
-				break;
508
-
509
-			case TGA_TYPE_RGB:
510
-				break;
511
-
512
-			case TGA_TYPE_RLE_GREY:
513
-				use_rle = true;
514
-				use_grey = true;
515
-				break;
516
-
517
-			case TGA_TYPE_GREY:
518
-				use_grey = true;
519
-				break;
520
-
521
-		}
522
-
523
-		//
524
-
525
-		var useOffscreen = typeof OffscreenCanvas !== 'undefined';
526
-
527
-		var canvas = useOffscreen ? new OffscreenCanvas( header.width, header.height ) : document.createElement( 'canvas' );
528
-		canvas.width = header.width;
529
-		canvas.height = header.height;
530
-
531
-		var context = canvas.getContext( '2d' );
532
-		var imageData = context.createImageData( header.width, header.height );
533
-
534
-		var result = tgaParse( use_rle, use_pal, header, offset, content );
535
-		var rgbaData = getTgaRGBA( imageData.data, header.width, header.height, result.pixel_data, result.palettes );
536
-
537
-		context.putImageData( imageData, 0, 0 );
538
-
539
-		return useOffscreen ? canvas.transferToImageBitmap() : canvas;
540
-
541
-	},
542
-
543
-	setPath: function ( value ) {
544
-
545
-		this.path = value;
546
-		return this;
547
-
548
-	}
549
-
550
-};

+ 0 - 519
target/classes/static/3Dlc/js/ThreeBSP.js

@@ -1,519 +0,0 @@
1
-// Generated by CoffeeScript 1.6.3
2
-(function() {
3
-  var BACK, COPLANAR, EPSILON, FRONT, SPANNING, returning,
4
-    __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
5
-    __slice = [].slice,
6
-    __hasProp = {}.hasOwnProperty,
7
-    __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
8
-
9
-  EPSILON = 1e-5;
10
-
11
-  COPLANAR = 0;
12
-
13
-  FRONT = 1;
14
-
15
-  BACK = 2;
16
-
17
-  SPANNING = 3;
18
-
19
-  returning = function(value, fn) {
20
-    fn();
21
-    return value;
22
-  };
23
-
24
-  window.ThreeBSP = (function() {
25
-    function ThreeBSP(treeIsh, matrix) {
26
-      this.matrix = matrix;
27
-      this.intersect = __bind(this.intersect, this);
28
-      this.union = __bind(this.union, this);
29
-      this.subtract = __bind(this.subtract, this);
30
-      this.toGeometry = __bind(this.toGeometry, this);
31
-      this.toMesh = __bind(this.toMesh, this);
32
-      this.toTree = __bind(this.toTree, this);
33
-      if (this.matrix == null) {
34
-        this.matrix = new THREE.Matrix4();
35
-      }
36
-      this.tree = this.toTree(treeIsh);
37
-    }
38
-
39
-    ThreeBSP.prototype.toTree = function(treeIsh) {
40
-      var face, geometry, i, polygons, _fn, _i, _len, _ref,
41
-        _this = this;
42
-      if (treeIsh instanceof ThreeBSP.Node) {
43
-        return treeIsh;
44
-      }
45
-      polygons = [];
46
-      geometry = treeIsh instanceof THREE.Geometry ? treeIsh : treeIsh instanceof THREE.Mesh ? (treeIsh.updateMatrix(), this.matrix = treeIsh.matrix.clone(), treeIsh.geometry) : void 0;
47
-      _ref = geometry.faces;
48
-      _fn = function(face, i) {
49
-        var faceVertexUvs, idx, polygon, vIndex, vName, vertex, _j, _len1, _ref1, _ref2;
50
-        faceVertexUvs = (_ref1 = geometry.faceVertexUvs) != null ? _ref1[0][i] : void 0;
51
-        if (faceVertexUvs == null) {
52
-          faceVertexUvs = [new THREE.Vector2(), new THREE.Vector2(), new THREE.Vector2(), new THREE.Vector2()];
53
-        }
54
-        polygon = new ThreeBSP.Polygon();
55
-        _ref2 = ['a', 'b', 'c', 'd'];
56
-        for (vIndex = _j = 0, _len1 = _ref2.length; _j < _len1; vIndex = ++_j) {
57
-          vName = _ref2[vIndex];
58
-          if ((idx = face[vName]) != null) {
59
-            vertex = geometry.vertices[idx];
60
-            vertex = new ThreeBSP.Vertex(vertex.x, vertex.y, vertex.z, face.vertexNormals[0], new THREE.Vector2(faceVertexUvs[vIndex].x, faceVertexUvs[vIndex].y));
61
-            vertex.applyMatrix4(_this.matrix);
62
-            polygon.vertices.push(vertex);
63
-          }
64
-        }
65
-        return polygons.push(polygon.calculateProperties());
66
-      };
67
-      for (i = _i = 0, _len = _ref.length; _i < _len; i = ++_i) {
68
-        face = _ref[i];
69
-        _fn(face, i);
70
-      }
71
-      return new ThreeBSP.Node(polygons);
72
-    };
73
-
74
-    ThreeBSP.prototype.toMesh = function(material) {
75
-      var geometry, mesh,
76
-        _this = this;
77
-      if (material == null) {
78
-        material = new THREE.MeshNormalMaterial();
79
-      }
80
-      geometry = this.toGeometry();
81
-      return returning((mesh = new THREE.Mesh(geometry, material)), function() {
82
-        mesh.position.getPositionFromMatrix(_this.matrix);
83
-        return mesh.rotation.setFromRotationMatrix(_this.matrix);
84
-      });
85
-    };
86
-
87
-    ThreeBSP.prototype.toGeometry = function() {
88
-      var geometry, matrix,
89
-        _this = this;
90
-      matrix = new THREE.Matrix4().getInverse(this.matrix);
91
-      return returning((geometry = new THREE.Geometry()), function() {
92
-        var face, idx, polyVerts, polygon, v, vertUvs, verts, _i, _len, _ref, _results;
93
-        _ref = _this.tree.allPolygons();
94
-        _results = [];
95
-        for (_i = 0, _len = _ref.length; _i < _len; _i++) {
96
-          polygon = _ref[_i];
97
-          polyVerts = (function() {
98
-            var _j, _len1, _ref1, _results1;
99
-            _ref1 = polygon.vertices;
100
-            _results1 = [];
101
-            for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
102
-              v = _ref1[_j];
103
-              _results1.push(v.clone().applyMatrix4(matrix));
104
-            }
105
-            return _results1;
106
-          })();
107
-          _results.push((function() {
108
-            var _j, _ref1, _results1;
109
-            _results1 = [];
110
-            for (idx = _j = 2, _ref1 = polyVerts.length; 2 <= _ref1 ? _j < _ref1 : _j > _ref1; idx = 2 <= _ref1 ? ++_j : --_j) {
111
-              verts = [polyVerts[0], polyVerts[idx - 1], polyVerts[idx]];
112
-              vertUvs = (function() {
113
-                var _k, _len1, _ref2, _ref3, _results2;
114
-                _results2 = [];
115
-                for (_k = 0, _len1 = verts.length; _k < _len1; _k++) {
116
-                  v = verts[_k];
117
-                  _results2.push(new THREE.Vector2((_ref2 = v.uv) != null ? _ref2.x : void 0, (_ref3 = v.uv) != null ? _ref3.y : void 0));
118
-                }
119
-                return _results2;
120
-              })();
121
-              face = (function(func, args, ctor) {
122
-                ctor.prototype = func.prototype;
123
-                var child = new ctor, result = func.apply(child, args);
124
-                return Object(result) === result ? result : child;
125
-              })(THREE.Face3, __slice.call((function() {
126
-                var _k, _len1, _results2;
127
-                _results2 = [];
128
-                for (_k = 0, _len1 = verts.length; _k < _len1; _k++) {
129
-                  v = verts[_k];
130
-                  _results2.push(geometry.vertices.push(v) - 1);
131
-                }
132
-                return _results2;
133
-              })()).concat([polygon.normal.clone()]), function(){});
134
-              geometry.faces.push(face);
135
-              _results1.push(geometry.faceVertexUvs[0].push(vertUvs));
136
-            }
137
-            return _results1;
138
-          })());
139
-        }
140
-        return _results;
141
-      });
142
-    };
143
-
144
-    ThreeBSP.prototype.subtract = function(other) {
145
-      var them, us, _ref;
146
-      _ref = [this.tree.clone(), other.tree.clone()], us = _ref[0], them = _ref[1];
147
-      us.invert().clipTo(them);
148
-      them.clipTo(us).invert().clipTo(us).invert();
149
-      return new ThreeBSP(us.build(them.allPolygons()).invert(), this.matrix);
150
-    };
151
-
152
-    ThreeBSP.prototype.union = function(other) {
153
-      var them, us, _ref;
154
-      _ref = [this.tree.clone(), other.tree.clone()], us = _ref[0], them = _ref[1];
155
-      us.clipTo(them);
156
-      them.clipTo(us).invert().clipTo(us).invert();
157
-      return new ThreeBSP(us.build(them.allPolygons()), this.matrix);
158
-    };
159
-
160
-    ThreeBSP.prototype.intersect = function(other) {
161
-      var them, us, _ref;
162
-      _ref = [this.tree.clone(), other.tree.clone()], us = _ref[0], them = _ref[1];
163
-      them.clipTo(us.invert()).invert().clipTo(us.clipTo(them));
164
-      return new ThreeBSP(us.build(them.allPolygons()).invert(), this.matrix);
165
-    };
166
-
167
-    return ThreeBSP;
168
-
169
-  })();
170
-
171
-  ThreeBSP.Vertex = (function(_super) {
172
-    __extends(Vertex, _super);
173
-
174
-    function Vertex(x, y, z, normal, uv) {
175
-      this.normal = normal != null ? normal : new THREE.Vector3();
176
-      this.uv = uv != null ? uv : new THREE.Vector2();
177
-      this.interpolate = __bind(this.interpolate, this);
178
-      this.lerp = __bind(this.lerp, this);
179
-      Vertex.__super__.constructor.call(this, x, y, z);
180
-    }
181
-
182
-    Vertex.prototype.clone = function() {
183
-      return new ThreeBSP.Vertex(this.x, this.y, this.z, this.normal.clone(), this.uv.clone());
184
-    };
185
-
186
-    Vertex.prototype.lerp = function(v, alpha) {
187
-      var _this = this;
188
-      return returning(Vertex.__super__.lerp.apply(this, arguments), function() {
189
-        _this.uv.add(v.uv.clone().sub(_this.uv).multiplyScalar(alpha));
190
-        return _this.normal.lerp(v, alpha);
191
-      });
192
-    };
193
-
194
-    Vertex.prototype.interpolate = function() {
195
-      var args, _ref;
196
-      args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
197
-      return (_ref = this.clone()).lerp.apply(_ref, args);
198
-    };
199
-
200
-    return Vertex;
201
-
202
-  })(THREE.Vector3);
203
-
204
-  ThreeBSP.Polygon = (function() {
205
-    function Polygon(vertices, normal, w) {
206
-      this.vertices = vertices != null ? vertices : [];
207
-      this.normal = normal;
208
-      this.w = w;
209
-      this.subdivide = __bind(this.subdivide, this);
210
-      this.tessellate = __bind(this.tessellate, this);
211
-      this.classifySide = __bind(this.classifySide, this);
212
-      this.classifyVertex = __bind(this.classifyVertex, this);
213
-      this.invert = __bind(this.invert, this);
214
-      this.clone = __bind(this.clone, this);
215
-      this.calculateProperties = __bind(this.calculateProperties, this);
216
-      if (this.vertices.length) {
217
-        this.calculateProperties();
218
-      }
219
-    }
220
-
221
-    Polygon.prototype.calculateProperties = function() {
222
-      var _this = this;
223
-      return returning(this, function() {
224
-        var a, b, c, _ref;
225
-        _ref = _this.vertices, a = _ref[0], b = _ref[1], c = _ref[2];
226
-        _this.normal = b.clone().sub(a).cross(c.clone().sub(a)).normalize();
227
-        return _this.w = _this.normal.clone().dot(a);
228
-      });
229
-    };
230
-
231
-    Polygon.prototype.clone = function() {
232
-      var v;
233
-      return new ThreeBSP.Polygon((function() {
234
-        var _i, _len, _ref, _results;
235
-        _ref = this.vertices;
236
-        _results = [];
237
-        for (_i = 0, _len = _ref.length; _i < _len; _i++) {
238
-          v = _ref[_i];
239
-          _results.push(v.clone());
240
-        }
241
-        return _results;
242
-      }).call(this), this.normal.clone(), this.w);
243
-    };
244
-
245
-    Polygon.prototype.invert = function() {
246
-      var _this = this;
247
-      return returning(this, function() {
248
-        _this.normal.multiplyScalar(-1);
249
-        _this.w *= -1;
250
-        return _this.vertices.reverse();
251
-      });
252
-    };
253
-
254
-    Polygon.prototype.classifyVertex = function(vertex) {
255
-      var side;
256
-      side = this.normal.dot(vertex) - this.w;
257
-      switch (false) {
258
-        case !(side < -EPSILON):
259
-          return BACK;
260
-        case !(side > EPSILON):
261
-          return FRONT;
262
-        default:
263
-          return COPLANAR;
264
-      }
265
-    };
266
-
267
-    Polygon.prototype.classifySide = function(polygon) {
268
-      var back, front, tally, v, _i, _len, _ref, _ref1,
269
-        _this = this;
270
-      _ref = [0, 0], front = _ref[0], back = _ref[1];
271
-      tally = function(v) {
272
-        switch (_this.classifyVertex(v)) {
273
-          case FRONT:
274
-            return front += 1;
275
-          case BACK:
276
-            return back += 1;
277
-        }
278
-      };
279
-      _ref1 = polygon.vertices;
280
-      for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
281
-        v = _ref1[_i];
282
-        tally(v);
283
-      }
284
-      if (front > 0 && back === 0) {
285
-        return FRONT;
286
-      }
287
-      if (front === 0 && back > 0) {
288
-        return BACK;
289
-      }
290
-      if ((front === back && back === 0)) {
291
-        return COPLANAR;
292
-      }
293
-      return SPANNING;
294
-    };
295
-
296
-    Polygon.prototype.tessellate = function(poly) {
297
-      var b, count, f, i, j, polys, t, ti, tj, v, vi, vj, _i, _len, _ref, _ref1, _ref2,
298
-        _this = this;
299
-      _ref = {
300
-        f: [],
301
-        b: [],
302
-        count: poly.vertices.length
303
-      }, f = _ref.f, b = _ref.b, count = _ref.count;
304
-      if (this.classifySide(poly) !== SPANNING) {
305
-        return [poly];
306
-      }
307
-      _ref1 = poly.vertices;
308
-      for (i = _i = 0, _len = _ref1.length; _i < _len; i = ++_i) {
309
-        vi = _ref1[i];
310
-        vj = poly.vertices[(j = (i + 1) % count)];
311
-        _ref2 = (function() {
312
-          var _j, _len1, _ref2, _results;
313
-          _ref2 = [vi, vj];
314
-          _results = [];
315
-          for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) {
316
-            v = _ref2[_j];
317
-            _results.push(this.classifyVertex(v));
318
-          }
319
-          return _results;
320
-        }).call(this), ti = _ref2[0], tj = _ref2[1];
321
-        if (ti !== BACK) {
322
-          f.push(vi);
323
-        }
324
-        if (ti !== FRONT) {
325
-          b.push(vi);
326
-        }
327
-        if ((ti | tj) === SPANNING) {
328
-          t = (this.w - this.normal.dot(vi)) / this.normal.dot(vj.clone().sub(vi));
329
-          v = vi.interpolate(vj, t);
330
-          f.push(v);
331
-          b.push(v);
332
-        }
333
-      }
334
-      return returning((polys = []), function() {
335
-        if (f.length >= 3) {
336
-          polys.push(new ThreeBSP.Polygon(f));
337
-        }
338
-        if (b.length >= 3) {
339
-          return polys.push(new ThreeBSP.Polygon(b));
340
-        }
341
-      });
342
-    };
343
-
344
-    Polygon.prototype.subdivide = function(polygon, coplanar_front, coplanar_back, front, back) {
345
-      var poly, side, _i, _len, _ref, _results;
346
-      _ref = this.tessellate(polygon);
347
-      _results = [];
348
-      for (_i = 0, _len = _ref.length; _i < _len; _i++) {
349
-        poly = _ref[_i];
350
-        side = this.classifySide(poly);
351
-        switch (side) {
352
-          case FRONT:
353
-            _results.push(front.push(poly));
354
-            break;
355
-          case BACK:
356
-            _results.push(back.push(poly));
357
-            break;
358
-          case COPLANAR:
359
-            if (this.normal.dot(poly.normal) > 0) {
360
-              _results.push(coplanar_front.push(poly));
361
-            } else {
362
-              _results.push(coplanar_back.push(poly));
363
-            }
364
-            break;
365
-          default:
366
-            throw new Error("BUG: Polygon of classification " + side + " in subdivision");
367
-        }
368
-      }
369
-      return _results;
370
-    };
371
-
372
-    return Polygon;
373
-
374
-  })();
375
-
376
-  ThreeBSP.Node = (function() {
377
-    Node.prototype.clone = function() {
378
-      var node,
379
-        _this = this;
380
-      return returning((node = new ThreeBSP.Node()), function() {
381
-        var p, _ref, _ref1, _ref2;
382
-        node.divider = (_ref = _this.divider) != null ? _ref.clone() : void 0;
383
-        node.polygons = (function() {
384
-          var _i, _len, _ref1, _results;
385
-          _ref1 = this.polygons;
386
-          _results = [];
387
-          for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
388
-            p = _ref1[_i];
389
-            _results.push(p.clone());
390
-          }
391
-          return _results;
392
-        }).call(_this);
393
-        node.front = (_ref1 = _this.front) != null ? _ref1.clone() : void 0;
394
-        return node.back = (_ref2 = _this.back) != null ? _ref2.clone() : void 0;
395
-      });
396
-    };
397
-
398
-    function Node(polygons) {
399
-      this.clipTo = __bind(this.clipTo, this);
400
-      this.clipPolygons = __bind(this.clipPolygons, this);
401
-      this.invert = __bind(this.invert, this);
402
-      this.allPolygons = __bind(this.allPolygons, this);
403
-      this.isConvex = __bind(this.isConvex, this);
404
-      this.build = __bind(this.build, this);
405
-      this.clone = __bind(this.clone, this);
406
-      this.polygons = [];
407
-      if ((polygons != null) && polygons.length) {
408
-        this.build(polygons);
409
-      }
410
-    }
411
-
412
-    Node.prototype.build = function(polygons) {
413
-      var _this = this;
414
-      return returning(this, function() {
415
-        var poly, polys, side, sides, _i, _len, _results;
416
-        sides = {
417
-          front: [],
418
-          back: []
419
-        };
420
-        if (_this.divider == null) {
421
-          _this.divider = polygons[0].clone();
422
-        }
423
-        for (_i = 0, _len = polygons.length; _i < _len; _i++) {
424
-          poly = polygons[_i];
425
-          _this.divider.subdivide(poly, _this.polygons, _this.polygons, sides.front, sides.back);
426
-        }
427
-        _results = [];
428
-        for (side in sides) {
429
-          if (!__hasProp.call(sides, side)) continue;
430
-          polys = sides[side];
431
-          if (polys.length) {
432
-            if (_this[side] == null) {
433
-              _this[side] = new ThreeBSP.Node();
434
-            }
435
-            _results.push(_this[side].build(polys));
436
-          } else {
437
-            _results.push(void 0);
438
-          }
439
-        }
440
-        return _results;
441
-      });
442
-    };
443
-
444
-    Node.prototype.isConvex = function(polys) {
445
-      var inner, outer, _i, _j, _len, _len1;
446
-      for (_i = 0, _len = polys.length; _i < _len; _i++) {
447
-        inner = polys[_i];
448
-        for (_j = 0, _len1 = polys.length; _j < _len1; _j++) {
449
-          outer = polys[_j];
450
-          if (inner !== outer && outer.classifySide(inner) !== BACK) {
451
-            return false;
452
-          }
453
-        }
454
-      }
455
-      return true;
456
-    };
457
-
458
-    Node.prototype.allPolygons = function() {
459
-      var _ref, _ref1;
460
-      return this.polygons.slice().concat(((_ref1 = this.front) != null ? _ref1.allPolygons() : void 0) || []).concat(((_ref = this.back) != null ? _ref.allPolygons() : void 0) || []);
461
-    };
462
-
463
-    Node.prototype.invert = function() {
464
-      var _this = this;
465
-      return returning(this, function() {
466
-        var flipper, poly, _i, _j, _len, _len1, _ref, _ref1, _ref2;
467
-        _ref = _this.polygons;
468
-        for (_i = 0, _len = _ref.length; _i < _len; _i++) {
469
-          poly = _ref[_i];
470
-          poly.invert();
471
-        }
472
-        _ref1 = [_this.divider, _this.front, _this.back];
473
-        for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
474
-          flipper = _ref1[_j];
475
-          if (flipper != null) {
476
-            flipper.invert();
477
-          }
478
-        }
479
-        return _ref2 = [_this.back, _this.front], _this.front = _ref2[0], _this.back = _ref2[1], _ref2;
480
-      });
481
-    };
482
-
483
-    Node.prototype.clipPolygons = function(polygons) {
484
-      var back, front, poly, _i, _len;
485
-      if (!this.divider) {
486
-        return polygons.slice();
487
-      }
488
-      front = [];
489
-      back = [];
490
-      for (_i = 0, _len = polygons.length; _i < _len; _i++) {
491
-        poly = polygons[_i];
492
-        this.divider.subdivide(poly, front, back, front, back);
493
-      }
494
-      if (this.front) {
495
-        front = this.front.clipPolygons(front);
496
-      }
497
-      if (this.back) {
498
-        back = this.back.clipPolygons(back);
499
-      }
500
-      return front.concat(this.back ? back : []);
501
-    };
502
-
503
-    Node.prototype.clipTo = function(node) {
504
-      var _this = this;
505
-      return returning(this, function() {
506
-        var _ref, _ref1;
507
-        _this.polygons = node.clipPolygons(_this.polygons);
508
-        if ((_ref = _this.front) != null) {
509
-          _ref.clipTo(node);
510
-        }
511
-        return (_ref1 = _this.back) != null ? _ref1.clipTo(node) : void 0;
512
-      });
513
-    };
514
-
515
-    return Node;
516
-
517
-  })();
518
-
519
-}).call(this);

+ 0 - 611
target/classes/static/3Dlc/js/TrackballControls.js

@@ -1,611 +0,0 @@
1
-/**
2
- * @author Eberhard Graether / http://egraether.com/
3
- * @author Mark Lundin 	/ http://mark-lundin.com
4
- */
5
-
6
-THREE.TrackballControls = function ( object, domElement ) {
7
-
8
-	var _this = this;
9
-	var STATE = { NONE: -1, ROTATE: 0, ZOOM: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_ZOOM_PAN: 4 };
10
-
11
-	this.object = object;
12
-	this.domElement = ( domElement !== undefined ) ? domElement : document;
13
-
14
-	// API
15
-
16
-	this.enabled = true;
17
-
18
-	this.screen = { left: 0, top: 0, width: 0, height: 0 };
19
-
20
-	this.rotateSpeed = 1.0;
21
-	this.zoomSpeed = 1.2;
22
-	this.panSpeed = 0.3;
23
-
24
-	this.noRotate = false;
25
-	this.noZoom = false;
26
-	this.noPan = false;
27
-	this.noRoll = false;
28
-
29
-	this.staticMoving = false;
30
-	this.dynamicDampingFactor = 0.2;
31
-
32
-	this.minDistance = 0;
33
-	this.maxDistance = Infinity;
34
-
35
-	this.keys = [ 65 /*A*/, 83 /*S*/, 68 /*D*/ ];
36
-
37
-	// internals
38
-
39
-	this.target = new THREE.Vector3();
40
-
41
-	var EPS = 0.000001;
42
-
43
-	var lastPosition = new THREE.Vector3();
44
-
45
-	var _state = STATE.NONE,
46
-	_prevState = STATE.NONE,
47
-
48
-	_eye = new THREE.Vector3(),
49
-
50
-	_rotateStart = new THREE.Vector3(),
51
-	_rotateEnd = new THREE.Vector3(),
52
-
53
-	_zoomStart = new THREE.Vector2(),
54
-	_zoomEnd = new THREE.Vector2(),
55
-
56
-	_touchZoomDistanceStart = 0,
57
-	_touchZoomDistanceEnd = 0,
58
-
59
-	_panStart = new THREE.Vector2(),
60
-	_panEnd = new THREE.Vector2();
61
-
62
-	// for reset
63
-
64
-	this.target0 = this.target.clone();
65
-	this.position0 = this.object.position.clone();
66
-	this.up0 = this.object.up.clone();
67
-
68
-	// events
69
-
70
-	var changeEvent = { type: 'change' };
71
-	var startEvent = { type: 'start'};
72
-	var endEvent = { type: 'end'};
73
-
74
-
75
-	// methods
76
-
77
-	this.handleResize = function () {
78
-
79
-		if ( this.domElement === document ) {
80
-
81
-			this.screen.left = 0;
82
-			this.screen.top = 0;
83
-			this.screen.width = window.innerWidth;
84
-			this.screen.height = window.innerHeight;
85
-
86
-		} else {
87
-
88
-			var box = this.domElement.getBoundingClientRect();
89
-			// adjustments come from similar code in the jquery offset() function
90
-			var d = this.domElement.ownerDocument.documentElement;
91
-			this.screen.left = box.left + window.pageXOffset - d.clientLeft;
92
-			this.screen.top = box.top + window.pageYOffset - d.clientTop;
93
-			this.screen.width = box.width;
94
-			this.screen.height = box.height;
95
-
96
-		}
97
-
98
-	};
99
-
100
-	this.handleEvent = function ( event ) {
101
-
102
-		if ( typeof this[ event.type ] == 'function' ) {
103
-
104
-			this[ event.type ]( event );
105
-
106
-		}
107
-
108
-	};
109
-
110
-	var getMouseOnScreen = ( function () {
111
-
112
-		var vector = new THREE.Vector2();
113
-
114
-		return function ( pageX, pageY ) {
115
-
116
-			vector.set(
117
-				( pageX - _this.screen.left ) / _this.screen.width,
118
-				( pageY - _this.screen.top ) / _this.screen.height
119
-			);
120
-
121
-			return vector;
122
-
123
-		};
124
-
125
-	}() );
126
-
127
-	var getMouseProjectionOnBall = ( function () {
128
-
129
-		var vector = new THREE.Vector3();
130
-		var objectUp = new THREE.Vector3();
131
-		var mouseOnBall = new THREE.Vector3();
132
-
133
-		return function ( pageX, pageY ) {
134
-
135
-			mouseOnBall.set(
136
-				( pageX - _this.screen.width * 0.5 - _this.screen.left ) / (_this.screen.width*.5),
137
-				( _this.screen.height * 0.5 + _this.screen.top - pageY ) / (_this.screen.height*.5),
138
-				0.0
139
-			);
140
-
141
-			var length = mouseOnBall.length();
142
-
143
-			if ( _this.noRoll ) {
144
-
145
-				if ( length < Math.SQRT1_2 ) {
146
-
147
-					mouseOnBall.z = Math.sqrt( 1.0 - length*length );
148
-
149
-				} else {
150
-
151
-					mouseOnBall.z = .5 / length;
152
-					
153
-				}
154
-
155
-			} else if ( length > 1.0 ) {
156
-
157
-				mouseOnBall.normalize();
158
-
159
-			} else {
160
-
161
-				mouseOnBall.z = Math.sqrt( 1.0 - length * length );
162
-
163
-			}
164
-
165
-			_eye.copy( _this.object.position ).sub( _this.target );
166
-
167
-			vector.copy( _this.object.up ).setLength( mouseOnBall.y )
168
-			vector.add( objectUp.copy( _this.object.up ).cross( _eye ).setLength( mouseOnBall.x ) );
169
-			vector.add( _eye.setLength( mouseOnBall.z ) );
170
-
171
-			return vector;
172
-
173
-		};
174
-
175
-	}() );
176
-
177
-	this.rotateCamera = (function(){
178
-
179
-		var axis = new THREE.Vector3(),
180
-			quaternion = new THREE.Quaternion();
181
-
182
-
183
-		return function () {
184
-
185
-			var angle = Math.acos( _rotateStart.dot( _rotateEnd ) / _rotateStart.length() / _rotateEnd.length() );
186
-
187
-			if ( angle ) {
188
-
189
-				axis.crossVectors( _rotateStart, _rotateEnd ).normalize();
190
-
191
-				angle *= _this.rotateSpeed;
192
-
193
-				quaternion.setFromAxisAngle( axis, -angle );
194
-
195
-				_eye.applyQuaternion( quaternion );
196
-				_this.object.up.applyQuaternion( quaternion );
197
-
198
-				_rotateEnd.applyQuaternion( quaternion );
199
-
200
-				if ( _this.staticMoving ) {
201
-
202
-					_rotateStart.copy( _rotateEnd );
203
-
204
-				} else {
205
-
206
-					quaternion.setFromAxisAngle( axis, angle * ( _this.dynamicDampingFactor - 1.0 ) );
207
-					_rotateStart.applyQuaternion( quaternion );
208
-
209
-				}
210
-
211
-			}
212
-		}
213
-
214
-	}());
215
-
216
-	this.zoomCamera = function () {
217
-
218
-		if ( _state === STATE.TOUCH_ZOOM_PAN ) {
219
-
220
-			var factor = _touchZoomDistanceStart / _touchZoomDistanceEnd;
221
-			_touchZoomDistanceStart = _touchZoomDistanceEnd;
222
-			_eye.multiplyScalar( factor );
223
-
224
-		} else {
225
-
226
-			var factor = 1.0 + ( _zoomEnd.y - _zoomStart.y ) * _this.zoomSpeed;
227
-
228
-			if ( factor !== 1.0 && factor > 0.0 ) {
229
-
230
-				_eye.multiplyScalar( factor );
231
-
232
-				if ( _this.staticMoving ) {
233
-
234
-					_zoomStart.copy( _zoomEnd );
235
-
236
-				} else {
237
-
238
-					_zoomStart.y += ( _zoomEnd.y - _zoomStart.y ) * this.dynamicDampingFactor;
239
-
240
-				}
241
-
242
-			}
243
-
244
-		}
245
-
246
-	};
247
-
248
-	this.panCamera = (function(){
249
-
250
-		var mouseChange = new THREE.Vector2(),
251
-			objectUp = new THREE.Vector3(),
252
-			pan = new THREE.Vector3();
253
-
254
-		return function () {
255
-
256
-			mouseChange.copy( _panEnd ).sub( _panStart );
257
-
258
-			if ( mouseChange.lengthSq() ) {
259
-
260
-				mouseChange.multiplyScalar( _eye.length() * _this.panSpeed );
261
-
262
-				pan.copy( _eye ).cross( _this.object.up ).setLength( mouseChange.x );
263
-				pan.add( objectUp.copy( _this.object.up ).setLength( mouseChange.y ) );
264
-
265
-				_this.object.position.add( pan );
266
-				_this.target.add( pan );
267
-
268
-				if ( _this.staticMoving ) {
269
-
270
-					_panStart.copy( _panEnd );
271
-
272
-				} else {
273
-
274
-					_panStart.add( mouseChange.subVectors( _panEnd, _panStart ).multiplyScalar( _this.dynamicDampingFactor ) );
275
-
276
-				}
277
-
278
-			}
279
-		}
280
-
281
-	}());
282
-
283
-	this.checkDistances = function () {
284
-
285
-		if ( !_this.noZoom || !_this.noPan ) {
286
-
287
-			if ( _eye.lengthSq() > _this.maxDistance * _this.maxDistance ) {
288
-
289
-				_this.object.position.addVectors( _this.target, _eye.setLength( _this.maxDistance ) );
290
-
291
-			}
292
-
293
-			if ( _eye.lengthSq() < _this.minDistance * _this.minDistance ) {
294
-
295
-				_this.object.position.addVectors( _this.target, _eye.setLength( _this.minDistance ) );
296
-
297
-			}
298
-
299
-		}
300
-
301
-	};
302
-
303
-	this.update = function () {
304
-
305
-		_eye.subVectors( _this.object.position, _this.target );
306
-
307
-		if ( !_this.noRotate ) {
308
-
309
-			_this.rotateCamera();
310
-
311
-		}
312
-
313
-		if ( !_this.noZoom ) {
314
-
315
-			_this.zoomCamera();
316
-
317
-		}
318
-
319
-		if ( !_this.noPan ) {
320
-
321
-			_this.panCamera();
322
-
323
-		}
324
-
325
-		_this.object.position.addVectors( _this.target, _eye );
326
-
327
-		_this.checkDistances();
328
-
329
-		_this.object.lookAt( _this.target );
330
-
331
-		if ( lastPosition.distanceToSquared( _this.object.position ) > EPS ) {
332
-
333
-			_this.dispatchEvent( changeEvent );
334
-
335
-			lastPosition.copy( _this.object.position );
336
-
337
-		}
338
-
339
-	};
340
-
341
-	this.reset = function () {
342
-
343
-		_state = STATE.NONE;
344
-		_prevState = STATE.NONE;
345
-
346
-		_this.target.copy( _this.target0 );
347
-		_this.object.position.copy( _this.position0 );
348
-		_this.object.up.copy( _this.up0 );
349
-
350
-		_eye.subVectors( _this.object.position, _this.target );
351
-
352
-		_this.object.lookAt( _this.target );
353
-
354
-		_this.dispatchEvent( changeEvent );
355
-
356
-		lastPosition.copy( _this.object.position );
357
-
358
-	};
359
-
360
-	// listeners
361
-
362
-	function keydown( event ) {
363
-
364
-		if ( _this.enabled === false ) return;
365
-
366
-		window.removeEventListener( 'keydown', keydown );
367
-
368
-		_prevState = _state;
369
-
370
-		if ( _state !== STATE.NONE ) {
371
-
372
-			return;
373
-
374
-		} else if ( event.keyCode === _this.keys[ STATE.ROTATE ] && !_this.noRotate ) {
375
-
376
-			_state = STATE.ROTATE;
377
-
378
-		} else if ( event.keyCode === _this.keys[ STATE.ZOOM ] && !_this.noZoom ) {
379
-
380
-			_state = STATE.ZOOM;
381
-
382
-		} else if ( event.keyCode === _this.keys[ STATE.PAN ] && !_this.noPan ) {
383
-
384
-			_state = STATE.PAN;
385
-
386
-		}
387
-
388
-	}
389
-
390
-	function keyup( event ) {
391
-
392
-		if ( _this.enabled === false ) return;
393
-
394
-		_state = _prevState;
395
-
396
-		window.addEventListener( 'keydown', keydown, false );
397
-
398
-	}
399
-
400
-	function mousedown( event ) {
401
-
402
-		if ( _this.enabled === false ) return;
403
-
404
-		event.preventDefault();
405
-		event.stopPropagation();
406
-
407
-		if ( _state === STATE.NONE ) {
408
-
409
-			_state = event.button;
410
-
411
-		}
412
-
413
-		if ( _state === STATE.ROTATE && !_this.noRotate ) {
414
-
415
-			_rotateStart.copy( getMouseProjectionOnBall( event.pageX, event.pageY ) );
416
-			_rotateEnd.copy( _rotateStart );
417
-
418
-		} else if ( _state === STATE.ZOOM && !_this.noZoom ) {
419
-
420
-			_zoomStart.copy( getMouseOnScreen( event.pageX, event.pageY ) );
421
-			_zoomEnd.copy(_zoomStart);
422
-
423
-		} else if ( _state === STATE.PAN && !_this.noPan ) {
424
-
425
-			_panStart.copy( getMouseOnScreen( event.pageX, event.pageY ) );
426
-			_panEnd.copy(_panStart)
427
-
428
-		}
429
-
430
-		document.addEventListener( 'mousemove', mousemove, false );
431
-		document.addEventListener( 'mouseup', mouseup, false );
432
-
433
-		_this.dispatchEvent( startEvent );
434
-
435
-	}
436
-
437
-	function mousemove( event ) {
438
-
439
-		if ( _this.enabled === false ) return;
440
-
441
-		event.preventDefault();
442
-		event.stopPropagation();
443
-
444
-		if ( _state === STATE.ROTATE && !_this.noRotate ) {
445
-
446
-			_rotateEnd.copy( getMouseProjectionOnBall( event.pageX, event.pageY ) );
447
-
448
-		} else if ( _state === STATE.ZOOM && !_this.noZoom ) {
449
-
450
-			_zoomEnd.copy( getMouseOnScreen( event.pageX, event.pageY ) );
451
-
452
-		} else if ( _state === STATE.PAN && !_this.noPan ) {
453
-
454
-			_panEnd.copy( getMouseOnScreen( event.pageX, event.pageY ) );
455
-
456
-		}
457
-
458
-	}
459
-
460
-	function mouseup( event ) {
461
-
462
-		if ( _this.enabled === false ) return;
463
-
464
-		event.preventDefault();
465
-		event.stopPropagation();
466
-
467
-		_state = STATE.NONE;
468
-
469
-		document.removeEventListener( 'mousemove', mousemove );
470
-		document.removeEventListener( 'mouseup', mouseup );
471
-		_this.dispatchEvent( endEvent );
472
-
473
-	}
474
-
475
-	function mousewheel( event ) {
476
-
477
-		if ( _this.enabled === false ) return;
478
-
479
-		event.preventDefault();
480
-		event.stopPropagation();
481
-
482
-		var delta = 0;
483
-
484
-		if ( event.wheelDelta ) { // WebKit / Opera / Explorer 9
485
-
486
-			delta = event.wheelDelta / 40;
487
-
488
-		} else if ( event.detail ) { // Firefox
489
-
490
-			delta = - event.detail / 3;
491
-
492
-		}
493
-
494
-		_zoomStart.y += delta * 0.01;
495
-		_this.dispatchEvent( startEvent );
496
-		_this.dispatchEvent( endEvent );
497
-
498
-	}
499
-
500
-	function touchstart( event ) {
501
-
502
-		if ( _this.enabled === false ) return;
503
-
504
-		switch ( event.touches.length ) {
505
-
506
-			case 1:
507
-				_state = STATE.TOUCH_ROTATE;
508
-				_rotateStart.copy( getMouseProjectionOnBall( event.touches[ 0 ].pageX, event.touches[ 0 ].pageY ) );
509
-				_rotateEnd.copy( _rotateStart );
510
-				break;
511
-
512
-			case 2:
513
-				_state = STATE.TOUCH_ZOOM_PAN;
514
-				var dx = event.touches[ 0 ].pageX - event.touches[ 1 ].pageX;
515
-				var dy = event.touches[ 0 ].pageY - event.touches[ 1 ].pageY;
516
-				_touchZoomDistanceEnd = _touchZoomDistanceStart = Math.sqrt( dx * dx + dy * dy );
517
-
518
-				var x = ( event.touches[ 0 ].pageX + event.touches[ 1 ].pageX ) / 2;
519
-				var y = ( event.touches[ 0 ].pageY + event.touches[ 1 ].pageY ) / 2;
520
-				_panStart.copy( getMouseOnScreen( x, y ) );
521
-				_panEnd.copy( _panStart );
522
-				break;
523
-
524
-			default:
525
-				_state = STATE.NONE;
526
-
527
-		}
528
-		_this.dispatchEvent( startEvent );
529
-
530
-
531
-	}
532
-
533
-	function touchmove( event ) {
534
-
535
-		if ( _this.enabled === false ) return;
536
-
537
-		event.preventDefault();
538
-		event.stopPropagation();
539
-
540
-		switch ( event.touches.length ) {
541
-
542
-			case 1:
543
-				_rotateEnd.copy( getMouseProjectionOnBall( event.touches[ 0 ].pageX, event.touches[ 0 ].pageY ) );
544
-				break;
545
-
546
-			case 2:
547
-				var dx = event.touches[ 0 ].pageX - event.touches[ 1 ].pageX;
548
-				var dy = event.touches[ 0 ].pageY - event.touches[ 1 ].pageY;
549
-				_touchZoomDistanceEnd = Math.sqrt( dx * dx + dy * dy );
550
-
551
-				var x = ( event.touches[ 0 ].pageX + event.touches[ 1 ].pageX ) / 2;
552
-				var y = ( event.touches[ 0 ].pageY + event.touches[ 1 ].pageY ) / 2;
553
-				_panEnd.copy( getMouseOnScreen( x, y ) );
554
-				break;
555
-
556
-			default:
557
-				_state = STATE.NONE;
558
-
559
-		}
560
-
561
-	}
562
-
563
-	function touchend( event ) {
564
-
565
-		if ( _this.enabled === false ) return;
566
-
567
-		switch ( event.touches.length ) {
568
-
569
-			case 1:
570
-				_rotateEnd.copy( getMouseProjectionOnBall( event.touches[ 0 ].pageX, event.touches[ 0 ].pageY ) );
571
-				_rotateStart.copy( _rotateEnd );
572
-				break;
573
-
574
-			case 2:
575
-				_touchZoomDistanceStart = _touchZoomDistanceEnd = 0;
576
-
577
-				var x = ( event.touches[ 0 ].pageX + event.touches[ 1 ].pageX ) / 2;
578
-				var y = ( event.touches[ 0 ].pageY + event.touches[ 1 ].pageY ) / 2;
579
-				_panEnd.copy( getMouseOnScreen( x, y ) );
580
-				_panStart.copy( _panEnd );
581
-				break;
582
-
583
-		}
584
-
585
-		_state = STATE.NONE;
586
-		_this.dispatchEvent( endEvent );
587
-
588
-	}
589
-
590
-	this.domElement.addEventListener( 'contextmenu', function ( event ) { event.preventDefault(); }, false );
591
-
592
-	this.domElement.addEventListener( 'mousedown', mousedown, false );
593
-
594
-	this.domElement.addEventListener( 'mousewheel', mousewheel, false );
595
-	this.domElement.addEventListener( 'DOMMouseScroll', mousewheel, false ); // firefox
596
-
597
-	this.domElement.addEventListener( 'touchstart', touchstart, false );
598
-	this.domElement.addEventListener( 'touchend', touchend, false );
599
-	this.domElement.addEventListener( 'touchmove', touchmove, false );
600
-
601
-	window.addEventListener( 'keydown', keydown, false );
602
-	window.addEventListener( 'keyup', keyup, false );
603
-
604
-	this.handleResize();
605
-
606
-	// force an update at start
607
-	this.update();
608
-
609
-};
610
-
611
-THREE.TrackballControls.prototype = Object.create( THREE.EventDispatcher.prototype );

+ 0 - 934
target/classes/static/3Dlc/js/Tween.js

@@ -1,934 +0,0 @@
1
-/**
2
- * Tween.js - Licensed under the MIT license
3
- * https://github.com/tweenjs/tween.js
4
- * ----------------------------------------------
5
- *
6
- * See https://github.com/tweenjs/tween.js/graphs/contributors for the full list of contributors.
7
- * Thank you all, you're awesome!
8
- */
9
-
10
-
11
-var _Group = function () {
12
-	this._tweens = {};
13
-	this._tweensAddedDuringUpdate = {};
14
-};
15
-
16
-_Group.prototype = {
17
-	getAll: function () {
18
-
19
-		return Object.keys(this._tweens).map(function (tweenId) {
20
-			return this._tweens[tweenId];
21
-		}.bind(this));
22
-
23
-	},
24
-
25
-	removeAll: function () {
26
-
27
-		this._tweens = {};
28
-
29
-	},
30
-
31
-	add: function (tween) {
32
-
33
-		this._tweens[tween.getId()] = tween;
34
-		this._tweensAddedDuringUpdate[tween.getId()] = tween;
35
-
36
-	},
37
-
38
-	remove: function (tween) {
39
-
40
-		delete this._tweens[tween.getId()];
41
-		delete this._tweensAddedDuringUpdate[tween.getId()];
42
-
43
-	},
44
-
45
-	update: function (time, preserve) {
46
-
47
-		var tweenIds = Object.keys(this._tweens);
48
-
49
-		if (tweenIds.length === 0) {
50
-			return false;
51
-		}
52
-
53
-		time = time !== undefined ? time : TWEEN.now();
54
-
55
-		// Tweens are updated in "batches". If you add a new tween during an update, then the
56
-		// new tween will be updated in the next batch.
57
-		// If you remove a tween during an update, it may or may not be updated. However,
58
-		// if the removed tween was added during the current batch, then it will not be updated.
59
-		while (tweenIds.length > 0) {
60
-			this._tweensAddedDuringUpdate = {};
61
-
62
-			for (var i = 0; i < tweenIds.length; i++) {
63
-
64
-				var tween = this._tweens[tweenIds[i]];
65
-
66
-				if (tween && tween.update(time) === false) {
67
-					tween._isPlaying = false;
68
-
69
-					if (!preserve) {
70
-						delete this._tweens[tweenIds[i]];
71
-					}
72
-				}
73
-			}
74
-
75
-			tweenIds = Object.keys(this._tweensAddedDuringUpdate);
76
-		}
77
-
78
-		return true;
79
-
80
-	}
81
-};
82
-
83
-var TWEEN = new _Group();
84
-
85
-TWEEN.Group = _Group;
86
-TWEEN._nextId = 0;
87
-TWEEN.nextId = function () {
88
-	return TWEEN._nextId++;
89
-};
90
-
91
-
92
-// Include a performance.now polyfill.
93
-// In node.js, use process.hrtime.
94
-if (typeof (self) === 'undefined' && typeof (process) !== 'undefined' && process.hrtime) {
95
-	TWEEN.now = function () {
96
-		var time = process.hrtime();
97
-
98
-		// Convert [seconds, nanoseconds] to milliseconds.
99
-		return time[0] * 1000 + time[1] / 1000000;
100
-	};
101
-}
102
-// In a browser, use self.performance.now if it is available.
103
-else if (typeof (self) !== 'undefined' &&
104
-         self.performance !== undefined &&
105
-		 self.performance.now !== undefined) {
106
-	// This must be bound, because directly assigning this function
107
-	// leads to an invocation exception in Chrome.
108
-	TWEEN.now = self.performance.now.bind(self.performance);
109
-}
110
-// Use Date.now if it is available.
111
-else if (Date.now !== undefined) {
112
-	TWEEN.now = Date.now;
113
-}
114
-// Otherwise, use 'new Date().getTime()'.
115
-else {
116
-	TWEEN.now = function () {
117
-		return new Date().getTime();
118
-	};
119
-}
120
-
121
-
122
-TWEEN.Tween = function (object, group) {
123
-	this._object = object;
124
-	this._valuesStart = {};
125
-	this._valuesEnd = {};
126
-	this._valuesStartRepeat = {};
127
-	this._duration = 1000;
128
-	this._repeat = 0;
129
-	this._repeatDelayTime = undefined;
130
-	this._yoyo = false;
131
-	this._isPlaying = false;
132
-	this._reversed = false;
133
-	this._delayTime = 0;
134
-	this._startTime = null;
135
-	this._easingFunction = TWEEN.Easing.Linear.None;
136
-	this._interpolationFunction = TWEEN.Interpolation.Linear;
137
-	this._chainedTweens = [];
138
-	this._onStartCallback = null;
139
-	this._onStartCallbackFired = false;
140
-	this._onUpdateCallback = null;
141
-	this._onRepeatCallback = null;
142
-	this._onCompleteCallback = null;
143
-	this._onStopCallback = null;
144
-	this._group = group || TWEEN;
145
-	this._id = TWEEN.nextId();
146
-
147
-};
148
-
149
-TWEEN.Tween.prototype = {
150
-	getId: function () {
151
-		return this._id;
152
-	},
153
-
154
-	isPlaying: function () {
155
-		return this._isPlaying;
156
-	},
157
-
158
-	to: function (properties, duration) {
159
-
160
-		this._valuesEnd = Object.create(properties);
161
-
162
-		if (duration !== undefined) {
163
-			this._duration = duration;
164
-		}
165
-
166
-		return this;
167
-
168
-	},
169
-
170
-	duration: function duration(d) {
171
-		this._duration = d;
172
-		return this;
173
-	},
174
-
175
-	start: function (time) {
176
-
177
-		this._group.add(this);
178
-
179
-		this._isPlaying = true;
180
-
181
-		this._onStartCallbackFired = false;
182
-
183
-		this._startTime = time !== undefined ? typeof time === 'string' ? TWEEN.now() + parseFloat(time) : time : TWEEN.now();
184
-		this._startTime += this._delayTime;
185
-
186
-		for (var property in this._valuesEnd) {
187
-
188
-			// Check if an Array was provided as property value
189
-			if (this._valuesEnd[property] instanceof Array) {
190
-
191
-				if (this._valuesEnd[property].length === 0) {
192
-					continue;
193
-				}
194
-
195
-				// Create a local copy of the Array with the start value at the front
196
-				this._valuesEnd[property] = [this._object[property]].concat(this._valuesEnd[property]);
197
-
198
-			}
199
-
200
-			// If `to()` specifies a property that doesn't exist in the source object,
201
-			// we should not set that property in the object
202
-			if (this._object[property] === undefined) {
203
-				continue;
204
-			}
205
-
206
-			// Save the starting value.
207
-			this._valuesStart[property] = this._object[property];
208
-
209
-			if ((this._valuesStart[property] instanceof Array) === false) {
210
-				this._valuesStart[property] *= 1.0; // Ensures we're using numbers, not strings
211
-			}
212
-
213
-			this._valuesStartRepeat[property] = this._valuesStart[property] || 0;
214
-
215
-		}
216
-
217
-		return this;
218
-
219
-	},
220
-
221
-	stop: function () {
222
-
223
-		if (!this._isPlaying) {
224
-			return this;
225
-		}
226
-
227
-		this._group.remove(this);
228
-		this._isPlaying = false;
229
-
230
-		if (this._onStopCallback !== null) {
231
-			this._onStopCallback(this._object);
232
-		}
233
-
234
-		this.stopChainedTweens();
235
-		return this;
236
-
237
-	},
238
-
239
-	end: function () {
240
-
241
-		this.update(Infinity);
242
-		return this;
243
-
244
-	},
245
-
246
-	stopChainedTweens: function () {
247
-
248
-		for (var i = 0, numChainedTweens = this._chainedTweens.length; i < numChainedTweens; i++) {
249
-			this._chainedTweens[i].stop();
250
-		}
251
-
252
-	},
253
-
254
-	group: function (group) {
255
-		this._group = group;
256
-		return this;
257
-	},
258
-
259
-	delay: function (amount) {
260
-
261
-		this._delayTime = amount;
262
-		return this;
263
-
264
-	},
265
-
266
-	repeat: function (times) {
267
-
268
-		this._repeat = times;
269
-		return this;
270
-
271
-	},
272
-
273
-	repeatDelay: function (amount) {
274
-
275
-		this._repeatDelayTime = amount;
276
-		return this;
277
-
278
-	},
279
-
280
-	yoyo: function (yoyo) {
281
-
282
-		this._yoyo = yoyo;
283
-		return this;
284
-
285
-	},
286
-
287
-	easing: function (easingFunction) {
288
-
289
-		this._easingFunction = easingFunction;
290
-		return this;
291
-
292
-	},
293
-
294
-	interpolation: function (interpolationFunction) {
295
-
296
-		this._interpolationFunction = interpolationFunction;
297
-		return this;
298
-
299
-	},
300
-
301
-	chain: function () {
302
-
303
-		this._chainedTweens = arguments;
304
-		return this;
305
-
306
-	},
307
-
308
-	onStart: function (callback) {
309
-
310
-		this._onStartCallback = callback;
311
-		return this;
312
-
313
-	},
314
-
315
-	onUpdate: function (callback) {
316
-
317
-		this._onUpdateCallback = callback;
318
-		return this;
319
-
320
-	},
321
-
322
-	onRepeat: function onRepeat(callback) {
323
-
324
-		this._onRepeatCallback = callback;
325
-		return this;
326
-
327
-	},
328
-
329
-	onComplete: function (callback) {
330
-
331
-		this._onCompleteCallback = callback;
332
-		return this;
333
-
334
-	},
335
-
336
-	onStop: function (callback) {
337
-
338
-		this._onStopCallback = callback;
339
-		return this;
340
-
341
-	},
342
-
343
-	update: function (time) {
344
-
345
-		var property;
346
-		var elapsed;
347
-		var value;
348
-
349
-		if (time < this._startTime) {
350
-			return true;
351
-		}
352
-
353
-		if (this._onStartCallbackFired === false) {
354
-
355
-			if (this._onStartCallback !== null) {
356
-				this._onStartCallback(this._object);
357
-			}
358
-
359
-			this._onStartCallbackFired = true;
360
-		}
361
-
362
-		elapsed = (time - this._startTime) / this._duration;
363
-		elapsed = (this._duration === 0 || elapsed > 1) ? 1 : elapsed;
364
-
365
-		value = this._easingFunction(elapsed);
366
-
367
-		for (property in this._valuesEnd) {
368
-
369
-			// Don't update properties that do not exist in the source object
370
-			if (this._valuesStart[property] === undefined) {
371
-				continue;
372
-			}
373
-
374
-			var start = this._valuesStart[property] || 0;
375
-			var end = this._valuesEnd[property];
376
-
377
-			if (end instanceof Array) {
378
-
379
-				this._object[property] = this._interpolationFunction(end, value);
380
-
381
-			} else {
382
-
383
-				// Parses relative end values with start as base (e.g.: +10, -3)
384
-				if (typeof (end) === 'string') {
385
-
386
-					if (end.charAt(0) === '+' || end.charAt(0) === '-') {
387
-						end = start + parseFloat(end);
388
-					} else {
389
-						end = parseFloat(end);
390
-					}
391
-				}
392
-
393
-				// Protect against non numeric properties.
394
-				if (typeof (end) === 'number') {
395
-					this._object[property] = start + (end - start) * value;
396
-				}
397
-
398
-			}
399
-
400
-		}
401
-
402
-		if (this._onUpdateCallback !== null) {
403
-			this._onUpdateCallback(this._object, elapsed);
404
-		}
405
-
406
-		if (elapsed === 1) {
407
-
408
-			if (this._repeat > 0) {
409
-
410
-				if (isFinite(this._repeat)) {
411
-					this._repeat--;
412
-				}
413
-
414
-				// Reassign starting values, restart by making startTime = now
415
-				for (property in this._valuesStartRepeat) {
416
-
417
-					if (typeof (this._valuesEnd[property]) === 'string') {
418
-						this._valuesStartRepeat[property] = this._valuesStartRepeat[property] + parseFloat(this._valuesEnd[property]);
419
-					}
420
-
421
-					if (this._yoyo) {
422
-						var tmp = this._valuesStartRepeat[property];
423
-
424
-						this._valuesStartRepeat[property] = this._valuesEnd[property];
425
-						this._valuesEnd[property] = tmp;
426
-					}
427
-
428
-					this._valuesStart[property] = this._valuesStartRepeat[property];
429
-
430
-				}
431
-
432
-				if (this._yoyo) {
433
-					this._reversed = !this._reversed;
434
-				}
435
-
436
-				if (this._repeatDelayTime !== undefined) {
437
-					this._startTime = time + this._repeatDelayTime;
438
-				} else {
439
-					this._startTime = time + this._delayTime;
440
-				}
441
-
442
-				if (this._onRepeatCallback !== null) {
443
-					this._onRepeatCallback(this._object);
444
-				}
445
-
446
-				return true;
447
-
448
-			} else {
449
-
450
-				if (this._onCompleteCallback !== null) {
451
-
452
-					this._onCompleteCallback(this._object);
453
-				}
454
-
455
-				for (var i = 0, numChainedTweens = this._chainedTweens.length; i < numChainedTweens; i++) {
456
-					// Make the chained tweens start exactly at the time they should,
457
-					// even if the `update()` method was called way past the duration of the tween
458
-					this._chainedTweens[i].start(this._startTime + this._duration);
459
-				}
460
-
461
-				return false;
462
-
463
-			}
464
-
465
-		}
466
-
467
-		return true;
468
-
469
-	}
470
-};
471
-
472
-
473
-TWEEN.Easing = {
474
-
475
-	Linear: {
476
-
477
-		None: function (k) {
478
-
479
-			return k;
480
-
481
-		}
482
-
483
-	},
484
-
485
-	Quadratic: {
486
-
487
-		In: function (k) {
488
-
489
-			return k * k;
490
-
491
-		},
492
-
493
-		Out: function (k) {
494
-
495
-			return k * (2 - k);
496
-
497
-		},
498
-
499
-		InOut: function (k) {
500
-
501
-			if ((k *= 2) < 1) {
502
-				return 0.5 * k * k;
503
-			}
504
-
505
-			return - 0.5 * (--k * (k - 2) - 1);
506
-
507
-		}
508
-
509
-	},
510
-
511
-	Cubic: {
512
-
513
-		In: function (k) {
514
-
515
-			return k * k * k;
516
-
517
-		},
518
-
519
-		Out: function (k) {
520
-
521
-			return --k * k * k + 1;
522
-
523
-		},
524
-
525
-		InOut: function (k) {
526
-
527
-			if ((k *= 2) < 1) {
528
-				return 0.5 * k * k * k;
529
-			}
530
-
531
-			return 0.5 * ((k -= 2) * k * k + 2);
532
-
533
-		}
534
-
535
-	},
536
-
537
-	Quartic: {
538
-
539
-		In: function (k) {
540
-
541
-			return k * k * k * k;
542
-
543
-		},
544
-
545
-		Out: function (k) {
546
-
547
-			return 1 - (--k * k * k * k);
548
-
549
-		},
550
-
551
-		InOut: function (k) {
552
-
553
-			if ((k *= 2) < 1) {
554
-				return 0.5 * k * k * k * k;
555
-			}
556
-
557
-			return - 0.5 * ((k -= 2) * k * k * k - 2);
558
-
559
-		}
560
-
561
-	},
562
-
563
-	Quintic: {
564
-
565
-		In: function (k) {
566
-
567
-			return k * k * k * k * k;
568
-
569
-		},
570
-
571
-		Out: function (k) {
572
-
573
-			return --k * k * k * k * k + 1;
574
-
575
-		},
576
-
577
-		InOut: function (k) {
578
-
579
-			if ((k *= 2) < 1) {
580
-				return 0.5 * k * k * k * k * k;
581
-			}
582
-
583
-			return 0.5 * ((k -= 2) * k * k * k * k + 2);
584
-
585
-		}
586
-
587
-	},
588
-
589
-	Sinusoidal: {
590
-
591
-		In: function (k) {
592
-
593
-			return 1 - Math.cos(k * Math.PI / 2);
594
-
595
-		},
596
-
597
-		Out: function (k) {
598
-
599
-			return Math.sin(k * Math.PI / 2);
600
-
601
-		},
602
-
603
-		InOut: function (k) {
604
-
605
-			return 0.5 * (1 - Math.cos(Math.PI * k));
606
-
607
-		}
608
-
609
-	},
610
-
611
-	Exponential: {
612
-
613
-		In: function (k) {
614
-
615
-			return k === 0 ? 0 : Math.pow(1024, k - 1);
616
-
617
-		},
618
-
619
-		Out: function (k) {
620
-
621
-			return k === 1 ? 1 : 1 - Math.pow(2, - 10 * k);
622
-
623
-		},
624
-
625
-		InOut: function (k) {
626
-
627
-			if (k === 0) {
628
-				return 0;
629
-			}
630
-
631
-			if (k === 1) {
632
-				return 1;
633
-			}
634
-
635
-			if ((k *= 2) < 1) {
636
-				return 0.5 * Math.pow(1024, k - 1);
637
-			}
638
-
639
-			return 0.5 * (- Math.pow(2, - 10 * (k - 1)) + 2);
640
-
641
-		}
642
-
643
-	},
644
-
645
-	Circular: {
646
-
647
-		In: function (k) {
648
-
649
-			return 1 - Math.sqrt(1 - k * k);
650
-
651
-		},
652
-
653
-		Out: function (k) {
654
-
655
-			return Math.sqrt(1 - (--k * k));
656
-
657
-		},
658
-
659
-		InOut: function (k) {
660
-
661
-			if ((k *= 2) < 1) {
662
-				return - 0.5 * (Math.sqrt(1 - k * k) - 1);
663
-			}
664
-
665
-			return 0.5 * (Math.sqrt(1 - (k -= 2) * k) + 1);
666
-
667
-		}
668
-
669
-	},
670
-
671
-	Elastic: {
672
-
673
-		In: function (k) {
674
-
675
-			if (k === 0) {
676
-				return 0;
677
-			}
678
-
679
-			if (k === 1) {
680
-				return 1;
681
-			}
682
-
683
-			return -Math.pow(2, 10 * (k - 1)) * Math.sin((k - 1.1) * 5 * Math.PI);
684
-
685
-		},
686
-
687
-		Out: function (k) {
688
-
689
-			if (k === 0) {
690
-				return 0;
691
-			}
692
-
693
-			if (k === 1) {
694
-				return 1;
695
-			}
696
-
697
-			return Math.pow(2, -10 * k) * Math.sin((k - 0.1) * 5 * Math.PI) + 1;
698
-
699
-		},
700
-
701
-		InOut: function (k) {
702
-
703
-			if (k === 0) {
704
-				return 0;
705
-			}
706
-
707
-			if (k === 1) {
708
-				return 1;
709
-			}
710
-
711
-			k *= 2;
712
-
713
-			if (k < 1) {
714
-				return -0.5 * Math.pow(2, 10 * (k - 1)) * Math.sin((k - 1.1) * 5 * Math.PI);
715
-			}
716
-
717
-			return 0.5 * Math.pow(2, -10 * (k - 1)) * Math.sin((k - 1.1) * 5 * Math.PI) + 1;
718
-
719
-		}
720
-
721
-	},
722
-
723
-	Back: {
724
-
725
-		In: function (k) {
726
-
727
-			var s = 1.70158;
728
-
729
-			return k * k * ((s + 1) * k - s);
730
-
731
-		},
732
-
733
-		Out: function (k) {
734
-
735
-			var s = 1.70158;
736
-
737
-			return --k * k * ((s + 1) * k + s) + 1;
738
-
739
-		},
740
-
741
-		InOut: function (k) {
742
-
743
-			var s = 1.70158 * 1.525;
744
-
745
-			if ((k *= 2) < 1) {
746
-				return 0.5 * (k * k * ((s + 1) * k - s));
747
-			}
748
-
749
-			return 0.5 * ((k -= 2) * k * ((s + 1) * k + s) + 2);
750
-
751
-		}
752
-
753
-	},
754
-
755
-	Bounce: {
756
-
757
-		In: function (k) {
758
-
759
-			return 1 - TWEEN.Easing.Bounce.Out(1 - k);
760
-
761
-		},
762
-
763
-		Out: function (k) {
764
-
765
-			if (k < (1 / 2.75)) {
766
-				return 7.5625 * k * k;
767
-			} else if (k < (2 / 2.75)) {
768
-				return 7.5625 * (k -= (1.5 / 2.75)) * k + 0.75;
769
-			} else if (k < (2.5 / 2.75)) {
770
-				return 7.5625 * (k -= (2.25 / 2.75)) * k + 0.9375;
771
-			} else {
772
-				return 7.5625 * (k -= (2.625 / 2.75)) * k + 0.984375;
773
-			}
774
-
775
-		},
776
-
777
-		InOut: function (k) {
778
-
779
-			if (k < 0.5) {
780
-				return TWEEN.Easing.Bounce.In(k * 2) * 0.5;
781
-			}
782
-
783
-			return TWEEN.Easing.Bounce.Out(k * 2 - 1) * 0.5 + 0.5;
784
-
785
-		}
786
-
787
-	}
788
-
789
-};
790
-
791
-TWEEN.Interpolation = {
792
-
793
-	Linear: function (v, k) {
794
-
795
-		var m = v.length - 1;
796
-		var f = m * k;
797
-		var i = Math.floor(f);
798
-		var fn = TWEEN.Interpolation.Utils.Linear;
799
-
800
-		if (k < 0) {
801
-			return fn(v[0], v[1], f);
802
-		}
803
-
804
-		if (k > 1) {
805
-			return fn(v[m], v[m - 1], m - f);
806
-		}
807
-
808
-		return fn(v[i], v[i + 1 > m ? m : i + 1], f - i);
809
-
810
-	},
811
-
812
-	Bezier: function (v, k) {
813
-
814
-		var b = 0;
815
-		var n = v.length - 1;
816
-		var pw = Math.pow;
817
-		var bn = TWEEN.Interpolation.Utils.Bernstein;
818
-
819
-		for (var i = 0; i <= n; i++) {
820
-			b += pw(1 - k, n - i) * pw(k, i) * v[i] * bn(n, i);
821
-		}
822
-
823
-		return b;
824
-
825
-	},
826
-
827
-	CatmullRom: function (v, k) {
828
-
829
-		var m = v.length - 1;
830
-		var f = m * k;
831
-		var i = Math.floor(f);
832
-		var fn = TWEEN.Interpolation.Utils.CatmullRom;
833
-
834
-		if (v[0] === v[m]) {
835
-
836
-			if (k < 0) {
837
-				i = Math.floor(f = m * (1 + k));
838
-			}
839
-
840
-			return fn(v[(i - 1 + m) % m], v[i], v[(i + 1) % m], v[(i + 2) % m], f - i);
841
-
842
-		} else {
843
-
844
-			if (k < 0) {
845
-				return v[0] - (fn(v[0], v[0], v[1], v[1], -f) - v[0]);
846
-			}
847
-
848
-			if (k > 1) {
849
-				return v[m] - (fn(v[m], v[m], v[m - 1], v[m - 1], f - m) - v[m]);
850
-			}
851
-
852
-			return fn(v[i ? i - 1 : 0], v[i], v[m < i + 1 ? m : i + 1], v[m < i + 2 ? m : i + 2], f - i);
853
-
854
-		}
855
-
856
-	},
857
-
858
-	Utils: {
859
-
860
-		Linear: function (p0, p1, t) {
861
-
862
-			return (p1 - p0) * t + p0;
863
-
864
-		},
865
-
866
-		Bernstein: function (n, i) {
867
-
868
-			var fc = TWEEN.Interpolation.Utils.Factorial;
869
-
870
-			return fc(n) / fc(i) / fc(n - i);
871
-
872
-		},
873
-
874
-		Factorial: (function () {
875
-
876
-			var a = [1];
877
-
878
-			return function (n) {
879
-
880
-				var s = 1;
881
-
882
-				if (a[n]) {
883
-					return a[n];
884
-				}
885
-
886
-				for (var i = n; i > 1; i--) {
887
-					s *= i;
888
-				}
889
-
890
-				a[n] = s;
891
-				return s;
892
-
893
-			};
894
-
895
-		})(),
896
-
897
-		CatmullRom: function (p0, p1, p2, p3, t) {
898
-
899
-			var v0 = (p2 - p0) * 0.5;
900
-			var v1 = (p3 - p1) * 0.5;
901
-			var t2 = t * t;
902
-			var t3 = t * t2;
903
-
904
-			return (2 * p1 - 2 * p2 + v0 + v1) * t3 + (- 3 * p1 + 3 * p2 - 2 * v0 - v1) * t2 + v0 * t + p1;
905
-
906
-		}
907
-
908
-	}
909
-
910
-};
911
-
912
-// UMD (Universal Module Definition)
913
-(function (root) {
914
-
915
-	if (typeof define === 'function' && define.amd) {
916
-
917
-		// AMD
918
-		define([], function () {
919
-			return TWEEN;
920
-		});
921
-
922
-	} else if (typeof module !== 'undefined' && typeof exports === 'object') {
923
-
924
-		// Node.js
925
-		module.exports = TWEEN;
926
-
927
-	} else if (root !== undefined) {
928
-
929
-		// Global variable
930
-		root.TWEEN = TWEEN;
931
-
932
-	}
933
-
934
-})(this);

+ 0 - 94
target/classes/static/3Dlc/js/WebGL.js

@@ -1,94 +0,0 @@
1
-/**
2
- * @author alteredq / http://alteredqualia.com/
3
- * @author mr.doob / http://mrdoob.com/
4
- */
5
-
6
-var WEBGL = {
7
-
8
-	isWebGLAvailable: function () {
9
-
10
-		try {
11
-
12
-			var canvas = document.createElement( 'canvas' );
13
-			return !! ( window.WebGLRenderingContext && ( canvas.getContext( 'webgl' ) || canvas.getContext( 'experimental-webgl' ) ) );
14
-
15
-		} catch ( e ) {
16
-
17
-			return false;
18
-
19
-		}
20
-
21
-	},
22
-
23
-	isWebGL2Available: function () {
24
-
25
-		try {
26
-
27
-			var canvas = document.createElement( 'canvas' );
28
-			return !! ( window.WebGL2RenderingContext && canvas.getContext( 'webgl2' ) );
29
-
30
-		} catch ( e ) {
31
-
32
-			return false;
33
-
34
-		}
35
-
36
-	},
37
-
38
-	getWebGLErrorMessage: function () {
39
-
40
-		return this.getErrorMessage( 1 );
41
-
42
-	},
43
-
44
-	getWebGL2ErrorMessage: function () {
45
-
46
-		return this.getErrorMessage( 2 );
47
-
48
-	},
49
-
50
-	getErrorMessage: function ( version ) {
51
-
52
-		var names = {
53
-			1: 'WebGL',
54
-			2: 'WebGL 2'
55
-		};
56
-
57
-		var contexts = {
58
-			1: window.WebGLRenderingContext,
59
-			2: window.WebGL2RenderingContext
60
-		};
61
-
62
-		var message = 'Your $0 does not seem to support <a href="http://khronos.org/webgl/wiki/Getting_a_WebGL_Implementation" style="color:#000">$1</a>';
63
-
64
-		var element = document.createElement( 'div' );
65
-		element.id = 'webglmessage';
66
-		element.style.fontFamily = 'monospace';
67
-		element.style.fontSize = '13px';
68
-		element.style.fontWeight = 'normal';
69
-		element.style.textAlign = 'center';
70
-		element.style.background = '#fff';
71
-		element.style.color = '#000';
72
-		element.style.padding = '1.5em';
73
-		element.style.width = '400px';
74
-		element.style.margin = '5em auto 0';
75
-
76
-		if ( contexts[ version ] ) {
77
-
78
-			message = message.replace( '$0', 'graphics card' );
79
-
80
-		} else {
81
-
82
-			message = message.replace( '$0', 'browser' );
83
-
84
-		}
85
-
86
-		message = message.replace( '$1', names[ version ] );
87
-
88
-		element.innerHTML = message;
89
-
90
-		return element;
91
-
92
-	}
93
-
94
-};

File diff suppressed because it is too large
+ 0 - 14
target/classes/static/3Dlc/js/dat.gui.min.js


File diff suppressed because it is too large
+ 0 - 15
target/classes/static/3Dlc/js/inflate.min.js


File diff suppressed because it is too large
+ 0 - 6
target/classes/static/3Dlc/js/jquery-2.0.3.min.js


File diff suppressed because it is too large
+ 0 - 2
target/classes/static/3Dlc/js/jquery-3.4.1.min.js


File diff suppressed because it is too large
+ 0 - 10337
target/classes/static/3Dlc/js/jquery.js


File diff suppressed because it is too large
+ 0 - 2
target/classes/static/3Dlc/js/layer.js


+ 0 - 94
target/classes/static/3Dlc/js/loading/jquery.mloading.css

@@ -1,94 +0,0 @@
1
-/* Author:mingyuhisoft@163.com
2
- * Github:https://github.com/imingyu/jquery.mloading
3
- * Npm:npm install jquery.mloading.js
4
- * Date:2016-7-4
5
- */
6
-.mloading-container {
7
-  position: relative;
8
-  min-height: 70px;
9
-  -webkit-transition: height 0.6s ease-in-out;
10
-  -o-transition: height 0.6s ease-in-out;
11
-  transition: height 0.6s ease-in-out;
12
-}
13
-.mloading {
14
-  position: absolute;
15
-  background: #E9E9E8;
16
-  font: normal 12px/22px "Microsoft Yahei", "微软雅黑", "宋体";
17
-  display: none;
18
-  z-index: 1600;
19
-  background: rgba(233, 233, 232, 0);
20
-}
21
-.mloading.active {
22
-  display: block;
23
-}
24
-.mloading.mloading-mask {
25
-  background: rgba(233, 233, 232, 0.25);
26
-  filter: progid:DXImageTransform.Microsoft.Alpha(opacity=75);
27
-}
28
-.mloading-full {
29
-  position: fixed;
30
-  width: 100%;
31
-  height: 100%;
32
-  top: 0;
33
-  left: 0;
34
-}
35
-.mloading-container > .mloading {
36
-  top: 0px;
37
-  left: 0px;
38
-  width: 100%;
39
-  height: 100%;
40
-}
41
-.mloading-body {
42
-  width: 100%;
43
-  height: 100%;
44
-  position: relative;
45
-}
46
-.mloading-bar {
47
-  width: 250px;
48
-  min-height: 22px;
49
-  text-align: center;
50
-  background: #fff;
51
-  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.27);
52
-  border-radius: 7px;
53
-  padding: 20px 15px;
54
-  font-size: 14px;
55
-  color: #999;
56
-  position: absolute;
57
-  top: 50%;
58
-  left: 50%;
59
-  margin-left: -140px;
60
-  margin-top: -30px;
61
-  word-break: break-all;
62
-}
63
-@media (max-width: 300px) {
64
-  .mloading-bar {
65
-    width: 62px;
66
-    height: 56px;
67
-    margin-left: -30px !important;
68
-    margin-top: -30px !important;
69
-    padding: 0;
70
-    line-height: 56px;
71
-  }
72
-  .mloading-bar > .mloading-text {
73
-    display: none;
74
-  }
75
-}
76
-.mloading-bar-sm {
77
-  width: 62px;
78
-  height: 56px;
79
-  margin-left: -30px !important;
80
-  margin-top: -30px !important;
81
-  padding: 0;
82
-  line-height: 56px;
83
-}
84
-.mloading-bar-sm > .mloading-text {
85
-  display: none;
86
-}
87
-.mloading-icon {
88
-  width: 16px;
89
-  height: 16px;
90
-  vertical-align: middle;
91
-}
92
-.mloading-text {
93
-  margin-left: 10px;
94
-}

File diff suppressed because it is too large
+ 0 - 202
target/classes/static/3Dlc/js/loading/jquery.mloading.js


+ 0 - 104
target/classes/static/3Dlc/js/loading/jquery.mloading.less

@@ -1,104 +0,0 @@
1
-/* Author:mingyuhisoft@163.com
2
- * Github:https://github.com/imingyu/jquery.mloading
3
- * Npm:npm install jquery.mloading.js
4
- * Date:2016-7-4
5
- */
6
-.mloading-container {
7
-    position: relative;
8
-    min-height: 70px;
9
-    -webkit-transition: height .6s ease-in-out;
10
-    -o-transition: height .6s ease-in-out;
11
-    transition: height .6s ease-in-out;
12
-}
13
-
14
-.mloading {
15
-    position: absolute;
16
-    background: #E9E9E8;
17
-    font: normal 12px/22px "Microsoft Yahei","微软雅黑","宋体";
18
-    display: none;
19
-    z-index: 1600;
20
-    background: rgba(233, 233, 232,0);
21
-
22
-    &.active{
23
-        display: block;
24
-    }
25
-
26
-    &.mloading-mask{
27
-        background: rgba(233, 233, 232,0.75);
28
-        filter: progid:DXImageTransform.Microsoft.Alpha(opacity=75);
29
-    }
30
-}
31
-.mloading-full{
32
-    position: fixed;
33
-    width:100%;
34
-    height: 100%;
35
-    top:0;
36
-    left: 0;
37
-}
38
-
39
-.mloading-container > .mloading {
40
-    top: 0px;
41
-    left: 0px;
42
-    width: 100%;
43
-    height: 100%;
44
-}
45
-
46
-.mloading-body {
47
-    width: 100%;
48
-    height: 100%;
49
-    position: relative;
50
-}
51
-
52
-.mloading-bar {
53
-    width: 250px;
54
-    min-height: 22px;
55
-    text-align: center;
56
-    background: #fff;
57
-    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.27);
58
-    border-radius: 7px;
59
-    padding: 20px 15px;
60
-    font-size: 14px;
61
-    color: #999;
62
-    position: absolute;
63
-    top: 50%;
64
-    left: 50%;
65
-    margin-left: -140px;
66
-    margin-top: -30px;
67
-    word-break: break-all;
68
-
69
-    @media (max-width:300px) {
70
-        width: 62px;
71
-        height: 56px;
72
-        margin-left: -30px !important;
73
-        margin-top: -30px !important;
74
-        padding: 0;
75
-        line-height:56px;
76
-
77
-        &> .mloading-text{
78
-            display: none;
79
-        }
80
-    }
81
-}
82
-
83
-.mloading-bar-sm {
84
-    width: 62px;
85
-    height: 56px;
86
-    margin-left: -30px !important;
87
-    margin-top: -30px !important;
88
-    padding: 0;
89
-    line-height:56px;
90
-}
91
-
92
-    .mloading-bar-sm > .mloading-text {
93
-        display: none;
94
-    }
95
-
96
-.mloading-icon {
97
-    width: 16px;
98
-    height: 16px;
99
-    vertical-align: middle;
100
-}
101
-
102
-.mloading-text {
103
-    margin-left: 10px;
104
-}

+ 0 - 210
target/classes/static/3Dlc/js/onEvent.js

@@ -1,210 +0,0 @@
1
-(function (definition) {
2
-    "use strict";
3
-    if (!THREE) {
4
-    	throw new Error("This module is dependent from 'three.js,add this file first.");
5
-    }
6
-    // CommonJS
7
-    if (typeof exports === "object" && typeof module === "object") {
8
-        module.exports = definition(THREE);
9
-
10
-    // RequireJS
11
-    } else if (typeof define === "function" && define.amd) {
12
-        define(definition);
13
-
14
-    // <script>
15
-    } else if (typeof window !== "undefined" || typeof self !== "undefined") {
16
-        // Prefer window over self for add-on scripts. Use self for
17
-        // non-windowed contexts.
18
-        var global = typeof window !== "undefined" ? window : self;
19
-
20
-        definition(THREE);
21
-
22
-    } else {
23
-        throw new Error("This environment was not anticipated by three-onEvent. Please file a bug.");
24
-    }
25
-
26
-})(function (THREE) {
27
-var TargetList = {
28
-	'gaze': {},
29
-	'click': {},
30
-	'hover': {}
31
-};
32
-var updateCallbackList = [];
33
-var EventListeners = {},listenerList = {};
34
-Object.keys(TargetList).forEach(function(v,i) {
35
-	EventListeners[v] = {
36
-		flag: false,
37
-		listener: function(targetList) {
38
-			listenerList[v](targetList,option.camera);
39
-		}
40
-	};
41
-});
42
-var option = {};
43
-
44
-THREE.onEvent = function(scene,camera) {
45
-	option.scene = scene || {};
46
-	option.camera = camera || {};
47
-}
48
-THREE.onEvent.prototype.removeAll = function() {
49
-	for(var key in TargetList) {
50
-		for(var id in TargetList[key]) {
51
-			delete TargetList[key][id];
52
-		}
53
-	}
54
-}
55
-THREE.onEvent.prototype.update = function() {
56
-	for(var key in updateCallbackList) {
57
-		updateCallbackList[key]();
58
-	}
59
-}
60
-Object.assign(THREE.Object3D.prototype,{
61
-	on: function(method,callback1,callback2) {
62
-		if (EventListeners.hasOwnProperty(method)) {
63
-			TargetList[method][this.id] = {
64
-				object3d : this,
65
-				callback: Array.from(arguments).slice(1)
66
-			};
67
-			var eventlistener = EventListeners[method];
68
-			if(!eventlistener.flag){
69
-				eventlistener.flag = true;
70
-				eventlistener.listener(TargetList[method]);
71
-			}
72
-		} else {
73
-			console.warn("There is no method called '" + method + "';");
74
-		}
75
-	},
76
-	off: function(method) {
77
-		if (!!method) {
78
-			if (EventListeners.hasOwnProperty(method)) {
79
-				delete TargetList[method][this.id];
80
-			} else {
81
-				console.warn("There is no method called '" + method + "';");
82
-			}
83
-		} else {
84
-			for(var key in TargetList) {
85
-				delete TargetList[key][this.id];
86
-			}
87
-		}
88
-	}
89
-});
90
-function getObjList(targetList) {
91
-	var list = [];
92
-	for(var key in targetList) {
93
-		var target = targetList[key].object3d;
94
-		list.push(target);
95
-	}
96
-	return group2meshlist(list);
97
-}
98
-function group2meshlist(list) {
99
-	var l = [];
100
-	for (var i in list) {
101
-		if (list[i].type === 'Group') {
102
-			l = l.concat(group2meshlist(list[i].children));
103
-		} else {
104
-			l.push(list[i])
105
-		}
106
-	}
107
-	return l;
108
-}
109
-function getEventObj(targetList,object3d) {
110
-	return object2group(targetList,object3d);
111
-}
112
-function object2group(targetList,object3d) {
113
-	if(targetList[object3d.id]) {
114
-		return targetList[object3d.id];
115
-	} else {
116
-		return object2group(targetList,object3d.parent)
117
-	}
118
-}
119
-// WebVR object3d on gazer
120
-listenerList.gaze = function (targetList,camera) {
121
-	var Gazing = false,targetObject,obj;
122
-	var Eye = new THREE.Raycaster();
123
-	var gazeListener = function() {
124
-		// create a gazeListener loop
125
-		if (!!targetList ) {
126
-			var list = [];
127
-		    Eye.setFromCamera(new THREE.Vector2(),camera);
128
-		    list = getObjList(targetList);
129
-		    var intersects = Eye.intersectObjects(list);
130
-		    
131
-		    if (intersects.length > 0) {
132
-		    	if(!Gazing) { //trigger once when gaze in
133
-			    	Gazing = true;
134
-			      	targetObject = intersects[0].object;
135
-			      	obj = getEventObj(targetList,targetObject);
136
-			      	if(!!obj.callback[0]) obj.callback[0](targetObject);
137
-		      	}
138
-		    } else{ 
139
-		    	if(Gazing && !!obj.callback[1]) {
140
-		      		obj.callback[1](targetObject);
141
-		    	}
142
-		    	Gazing = false;
143
-		    }
144
-		}
145
-	}
146
-	updateCallbackList.push(gazeListener);
147
-}
148
-// object3d on mouse click 
149
-listenerList.click = function (targetList,camera) {
150
-	var targetObject,obj,Click = false,Down = false;
151
-	var Mouse = new THREE.Raycaster();
152
-	function down(event) {
153
-		event.preventDefault();
154
-		if (!targetList) return;
155
-		var list = [];
156
-		Mouse.setFromCamera(new THREE.Vector2(( event.clientX / window.innerWidth ) * 2 - 1,- ( event.clientY / window.innerHeight ) * 2 + 1), camera);
157
-	    list = getObjList(targetList);
158
-	    var intersects = Mouse.intersectObjects(list);
159
-	    
160
-	    if (intersects.length > 0) { // mouse down trigger
161
-	    	if (Click) return;
162
-	    	Click = true;
163
-	      	targetObject = intersects[0].object;
164
-	      	obj = getEventObj(targetList,targetObject);
165
-	    } else {
166
-	    	Click = false;
167
-	    }
168
-	}
169
-	function move(event) {
170
-		event.preventDefault();
171
-		// disable click trigger when mouse moving
172
-		if (Click) Click = false;
173
-	}
174
-	function up(event) {
175
-		event.preventDefault();
176
-		if (Click && !!obj.callback[0]) obj.callback[0](targetObject);
177
-		Click = false;
178
-	}
179
-		window.addEventListener('mousedown',down,false);
180
-		window.addEventListener('mousemove',move,false);
181
-		window.addEventListener('mouseup',up,false);
182
-}
183
-// object3d on mouse hover
184
-listenerList.hover = function (targetList,camera) {
185
-	var targetObject,obj,Hover = false;
186
-	var Mouse = new THREE.Raycaster();
187
-	window.addEventListener('mousemove',function(event) {
188
-		event.preventDefault();
189
-		if (!targetList) return;
190
-		var list = [];
191
-		Mouse.setFromCamera(new THREE.Vector2(( event.clientX / window.innerWidth ) * 2 - 1,- ( event.clientY / window.innerHeight ) * 2 + 1), camera);
192
-	    
193
-	    list = getObjList(targetList);
194
-	    var intersects = Mouse.intersectObjects(list);
195
-	    
196
-	    if (intersects.length > 0) {
197
-	    	if (Hover) return;
198
-	    	Hover = true;
199
-	      	targetObject = intersects[0].object;
200
-	      	obj = getEventObj(targetList,targetObject);
201
-	      	if(!!obj.callback[0]) obj.callback[0](targetObject);
202
-	    } else {
203
-	    	if(Hover && !!obj.callback[1]) {
204
-	    		obj.callback[1](targetObject);
205
-	    	}
206
-	    	Hover = false;
207
-	    }
208
-	}, false)
209
-}
210
-});

+ 0 - 78
target/classes/static/3Dlc/js/polyfill.js

@@ -1,78 +0,0 @@
1
-// Production steps of ECMA-262, Edition 6, 22.1.2.1
2
-if (!Array.from) {
3
-  Array.from = (function () {
4
-    var toStr = Object.prototype.toString;
5
-    var isCallable = function (fn) {
6
-      return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
7
-    };
8
-    var toInteger = function (value) {
9
-      var number = Number(value);
10
-      if (isNaN(number)) { return 0; }
11
-      if (number === 0 || !isFinite(number)) { return number; }
12
-      return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
13
-    };
14
-    var maxSafeInteger = Math.pow(2, 53) - 1;
15
-    var toLength = function (value) {
16
-      var len = toInteger(value);
17
-      return Math.min(Math.max(len, 0), maxSafeInteger);
18
-    };
19
-
20
-    // The length property of the from method is 1.
21
-    return function from(arrayLike/*, mapFn, thisArg */) {
22
-      // 1. Let C be the this value.
23
-      var C = this;
24
-
25
-      // 2. Let items be ToObject(arrayLike).
26
-      var items = Object(arrayLike);
27
-
28
-      // 3. ReturnIfAbrupt(items).
29
-      if (arrayLike == null) {
30
-        throw new TypeError('Array.from requires an array-like object - not null or undefined');
31
-      }
32
-
33
-      // 4. If mapfn is undefined, then let mapping be false.
34
-      var mapFn = arguments.length > 1 ? arguments[1] : void undefined;
35
-      var T;
36
-      if (typeof mapFn !== 'undefined') {
37
-        // 5. else
38
-        // 5. a If IsCallable(mapfn) is false, throw a TypeError exception.
39
-        if (!isCallable(mapFn)) {
40
-          throw new TypeError('Array.from: when provided, the second argument must be a function');
41
-        }
42
-
43
-        // 5. b. If thisArg was supplied, let T be thisArg; else let T be undefined.
44
-        if (arguments.length > 2) {
45
-          T = arguments[2];
46
-        }
47
-      }
48
-
49
-      // 10. Let lenValue be Get(items, "length").
50
-      // 11. Let len be ToLength(lenValue).
51
-      var len = toLength(items.length);
52
-
53
-      // 13. If IsConstructor(C) is true, then
54
-      // 13. a. Let A be the result of calling the [[Construct]] internal method 
55
-      // of C with an argument list containing the single item len.
56
-      // 14. a. Else, Let A be ArrayCreate(len).
57
-      var A = isCallable(C) ? Object(new C(len)) : new Array(len);
58
-
59
-      // 16. Let k be 0.
60
-      var k = 0;
61
-      // 17. Repeat, while k < len… (also steps a - h)
62
-      var kValue;
63
-      while (k < len) {
64
-        kValue = items[k];
65
-        if (mapFn) {
66
-          A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
67
-        } else {
68
-          A[k] = kValue;
69
-        }
70
-        k += 1;
71
-      }
72
-      // 18. Let putStatus be Put(A, "length", len, true).
73
-      A.length = len;
74
-      // 20. Return A.
75
-      return A;
76
-    };
77
-  }());
78
-}

File diff suppressed because it is too large
+ 0 - 5
target/classes/static/3Dlc/js/stats.min.js


File diff suppressed because it is too large
+ 0 - 49269
target/classes/static/3Dlc/js/three.js


File diff suppressed because it is too large
+ 0 - 990
target/classes/static/3Dlc/js/three.min.js


File diff suppressed because it is too large
+ 0 - 48847
target/classes/static/3Dlc/js/three.module.js


+ 0 - 48
target/classes/static/3Dlc/js/threex.atmospheredatgui.js

@@ -1,48 +0,0 @@
1
-/**
2
- * vendor.js framework definition
3
- * @type {Object}
4
- */
5
-var THREEx	= THREEx || {};
6
-
7
-/**
8
- * add a THREEx.AtmosphereMaterial to Dat.DUI
9
- * 
10
- * @param  {THREE.ShaderMaterial}	material	the material to handle
11
- * @param  {dat.GUI+}			datGui		the dat.GUI to which we need to add
12
- */
13
-THREEx.addAtmosphereMaterial2DatGui	= function(material, datGui){
14
-	datGui		= datGui || new dat.GUI()
15
-	var uniforms	= material.uniforms
16
-	// options
17
-	var options  = {
18
-		coeficient	: uniforms['coeficient'].value,
19
-		power		: uniforms['power'].value,
20
-		glowColor	: '#'+uniforms.glowColor.value.getHexString(),
21
-		presetFront	: function(){
22
-			options.coeficient	= 1
23
-			options.power		= 2
24
-			onChange()
25
-		},
26
-		presetBack	: function(){
27
-			options.coeficient	= 0.5
28
-			options.power		= 4.0
29
-			onChange()
30
-		},
31
-	}
32
-	var onChange = function(){
33
-		uniforms['coeficient'].value	= options.coeficient
34
-		uniforms['power'].value		= options.power
35
-		uniforms.glowColor.value.set( options.glowColor ); 
36
-	}
37
-	onChange()
38
-	
39
-	// config datGui
40
-	datGui.add( options, 'coeficient'	, 0.0 , 2)
41
-		.listen().onChange( onChange )
42
-	datGui.add( options, 'power'		, 0.0 , 30)
43
-		.listen().onChange( onChange )
44
-	datGui.addColor( options, 'glowColor' )
45
-		.listen().onChange( onChange )
46
-	datGui.add( options, 'presetFront' )
47
-	datGui.add( options, 'presetBack' )
48
-}

+ 0 - 408
target/classes/static/3Dlc/js/threex.planets.js

@@ -1,408 +0,0 @@
1
-var THREEx = THREEx || {}
2
-
3
-THREEx.Planets	= {}
4
-
5
-THREEx.Planets.baseURL	= '../'
6
-
7
-// from http://planetpixelemporium.com/
8
-
9
-THREEx.Planets.createSun	= function(){
10
-	var geometry	= new THREE.SphereGeometry(0.5, 32, 32)
11
-	var texture	= THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/sunmap.jpg')
12
-	var material	= new THREE.MeshPhongMaterial({
13
-		map	: texture,
14
-		bumpMap	: texture,
15
-		bumpScale: 0.05,
16
-	})
17
-	var mesh	= new THREE.Mesh(geometry, material)
18
-	return mesh	
19
-}
20
-
21
-THREEx.Planets.createMercury	= function(){
22
-	var geometry	= new THREE.SphereGeometry(0.5, 32, 32)
23
-	var material	= new THREE.MeshPhongMaterial({
24
-		map	: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/mercurymap.jpg'),
25
-		bumpMap	: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/mercurybump.jpg'),
26
-		bumpScale: 0.005,
27
-	})
28
-	var mesh	= new THREE.Mesh(geometry, material)
29
-	return mesh	
30
-}
31
-
32
-THREEx.Planets.createVenus	= function(){
33
-	var geometry	= new THREE.SphereGeometry(0.5, 32, 32)
34
-	var material	= new THREE.MeshPhongMaterial({
35
-		map	: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/venusmap.jpg'),
36
-		bumpMap	: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/venusbump.jpg'),
37
-		bumpScale: 0.005,
38
-	})
39
-	var mesh	= new THREE.Mesh(geometry, material)
40
-	return mesh	
41
-}
42
-
43
-THREEx.Planets.createEarth	= function(){
44
-	var geometry	= new THREE.SphereGeometry(0.5, 32, 32)
45
-	var material	= new THREE.MeshPhongMaterial({
46
-		map		: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/earthmap1k.jpg'),
47
-		bumpMap		: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/earthbump1k.jpg'),
48
-		bumpScale	: 0.05,
49
-		specularMap	: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/earthspec1k.jpg'),
50
-		specular	: new THREE.Color('grey'),
51
-	})
52
-	var mesh	= new THREE.Mesh(geometry, material)
53
-	return mesh	
54
-}
55
-
56
-THREEx.Planets.createEarthCloud	= function(){
57
-	// create destination canvas
58
-	var canvasResult	= document.createElement('canvas')
59
-	canvasResult.width	= 1024
60
-	canvasResult.height	= 512
61
-	var contextResult	= canvasResult.getContext('2d')		
62
-
63
-	// load earthcloudmap
64
-	var imageMap	= new Image();
65
-	imageMap.addEventListener("load", function() {
66
-		
67
-		// create dataMap ImageData for earthcloudmap
68
-		var canvasMap	= document.createElement('canvas')
69
-		canvasMap.width	= imageMap.width
70
-		canvasMap.height= imageMap.height
71
-		var contextMap	= canvasMap.getContext('2d')
72
-		contextMap.drawImage(imageMap, 0, 0)
73
-		var dataMap	= contextMap.getImageData(0, 0, canvasMap.width, canvasMap.height)
74
-
75
-		// load earthcloudmaptrans
76
-		var imageTrans	= new Image();
77
-		imageTrans.addEventListener("load", function(){
78
-			// create dataTrans ImageData for earthcloudmaptrans
79
-			var canvasTrans		= document.createElement('canvas')
80
-			canvasTrans.width	= imageTrans.width
81
-			canvasTrans.height	= imageTrans.height
82
-			var contextTrans	= canvasTrans.getContext('2d')
83
-			contextTrans.drawImage(imageTrans, 0, 0)
84
-			var dataTrans		= contextTrans.getImageData(0, 0, canvasTrans.width, canvasTrans.height)
85
-			// merge dataMap + dataTrans into dataResult
86
-			var dataResult		= contextMap.createImageData(canvasMap.width, canvasMap.height)
87
-			for(var y = 0, offset = 0; y < imageMap.height; y++){
88
-				for(var x = 0; x < imageMap.width; x++, offset += 4){
89
-					dataResult.data[offset+0]	= dataMap.data[offset+0]
90
-					dataResult.data[offset+1]	= dataMap.data[offset+1]
91
-					dataResult.data[offset+2]	= dataMap.data[offset+2]
92
-					dataResult.data[offset+3]	= 255 - dataTrans.data[offset+0]
93
-				}
94
-			}
95
-			// update texture with result
96
-			contextResult.putImageData(dataResult,0,0)	
97
-			material.map.needsUpdate = true;
98
-		})
99
-		imageTrans.src	= THREEx.Planets.baseURL+'images/earthcloudmaptrans.jpg';
100
-	}, false);
101
-	imageMap.src	= THREEx.Planets.baseURL+'images/earthcloudmap.jpg';
102
-
103
-	var geometry	= new THREE.SphereGeometry(0.51, 32, 32)
104
-	var material	= new THREE.MeshPhongMaterial({
105
-		map		: new THREE.Texture(canvasResult),
106
-		side		: THREE.DoubleSide,
107
-		transparent	: true,
108
-		opacity		: 0.8,
109
-	})
110
-	var mesh	= new THREE.Mesh(geometry, material)
111
-	return mesh	
112
-}
113
-
114
-
115
-THREEx.Planets.createMoon	= function(){
116
-	var geometry	= new THREE.SphereGeometry(0.5, 32, 32)
117
-	var material	= new THREE.MeshPhongMaterial({
118
-		map	: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/moonmap1k.jpg'),
119
-		bumpMap	: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/moonbump1k.jpg'),
120
-		bumpScale: 0.002,
121
-	})
122
-	var mesh	= new THREE.Mesh(geometry, material)
123
-	return mesh	
124
-}
125
-
126
-THREEx.Planets.createMars	= function(){
127
-	var geometry	= new THREE.SphereGeometry(0.5, 32, 32)
128
-	var material	= new THREE.MeshPhongMaterial({
129
-		map	: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/marsmap1k.jpg'),
130
-		bumpMap	: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/marsbump1k.jpg'),
131
-		bumpScale: 0.05,
132
-	})
133
-	var mesh	= new THREE.Mesh(geometry, material)
134
-	return mesh	
135
-}
136
-
137
-THREEx.Planets.createJupiter	= function(){
138
-	var geometry	= new THREE.SphereGeometry(0.5, 32, 32)
139
-	var texture	= THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/jupitermap.jpg')
140
-	var material	= new THREE.MeshPhongMaterial({
141
-		map	: texture,
142
-		bumpMap	: texture,
143
-		bumpScale: 0.02,
144
-	})
145
-	var mesh	= new THREE.Mesh(geometry, material)
146
-	return mesh	
147
-}
148
-
149
-
150
-THREEx.Planets.createSaturn	= function(){
151
-	var geometry	= new THREE.SphereGeometry(0.5, 32, 32)
152
-	var texture	= THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/saturnmap.jpg')
153
-	var material	= new THREE.MeshPhongMaterial({
154
-		map	: texture,
155
-		bumpMap	: texture,
156
-		bumpScale: 0.05,
157
-	})
158
-	var mesh	= new THREE.Mesh(geometry, material)
159
-	return mesh	
160
-}
161
-
162
-
163
-THREEx.Planets.createSaturnRing	= function(){
164
-	// create destination canvas
165
-	var canvasResult	= document.createElement('canvas')
166
-	canvasResult.width	= 915
167
-	canvasResult.height	= 64
168
-	var contextResult	= canvasResult.getContext('2d')	
169
-
170
-	// load earthcloudmap
171
-	var imageMap	= new Image();
172
-	imageMap.addEventListener("load", function() {
173
-		
174
-		// create dataMap ImageData for earthcloudmap
175
-		var canvasMap	= document.createElement('canvas')
176
-		canvasMap.width	= imageMap.width
177
-		canvasMap.height= imageMap.height
178
-		var contextMap	= canvasMap.getContext('2d')
179
-		contextMap.drawImage(imageMap, 0, 0)
180
-		var dataMap	= contextMap.getImageData(0, 0, canvasMap.width, canvasMap.height)
181
-
182
-		// load earthcloudmaptrans
183
-		var imageTrans	= new Image();
184
-		imageTrans.addEventListener("load", function(){
185
-			// create dataTrans ImageData for earthcloudmaptrans
186
-			var canvasTrans		= document.createElement('canvas')
187
-			canvasTrans.width	= imageTrans.width
188
-			canvasTrans.height	= imageTrans.height
189
-			var contextTrans	= canvasTrans.getContext('2d')
190
-			contextTrans.drawImage(imageTrans, 0, 0)
191
-			var dataTrans		= contextTrans.getImageData(0, 0, canvasTrans.width, canvasTrans.height)
192
-			// merge dataMap + dataTrans into dataResult
193
-			var dataResult		= contextMap.createImageData(canvasResult.width, canvasResult.height)
194
-			for(var y = 0, offset = 0; y < imageMap.height; y++){
195
-				for(var x = 0; x < imageMap.width; x++, offset += 4){
196
-					dataResult.data[offset+0]	= dataMap.data[offset+0]
197
-					dataResult.data[offset+1]	= dataMap.data[offset+1]
198
-					dataResult.data[offset+2]	= dataMap.data[offset+2]
199
-					dataResult.data[offset+3]	= 255 - dataTrans.data[offset+0]/4
200
-				}
201
-			}
202
-			// update texture with result
203
-			contextResult.putImageData(dataResult,0,0)	
204
-			material.map.needsUpdate = true;
205
-		})
206
-		imageTrans.src	= THREEx.Planets.baseURL+'images/saturnringpattern.gif';
207
-	}, false);
208
-	imageMap.src	= THREEx.Planets.baseURL+'images/saturnringcolor.jpg';
209
-	
210
-	var geometry	= new THREEx.Planets._RingGeometry(0.55, 0.75, 64);
211
-	var material	= new THREE.MeshPhongMaterial({
212
-		map		: new THREE.Texture(canvasResult),
213
-		// map		: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/ash_uvgrid01.jpg'),
214
-		side		: THREE.DoubleSide,
215
-		transparent	: true,
216
-		opacity		: 0.8,
217
-	})
218
-	var mesh	= new THREE.Mesh(geometry, material)
219
-	mesh.lookAt(new THREE.Vector3(0.5,-4,1))
220
-	return mesh	
221
-}
222
-
223
-
224
-THREEx.Planets.createUranus	= function(){
225
-	var geometry	= new THREE.SphereGeometry(0.5, 32, 32)
226
-	var texture	= THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/uranusmap.jpg')
227
-	var material	= new THREE.MeshPhongMaterial({
228
-		map	: texture,
229
-		bumpMap	: texture,
230
-		bumpScale: 0.05,
231
-	})
232
-	var mesh	= new THREE.Mesh(geometry, material)
233
-	return mesh	
234
-}
235
-
236
-THREEx.Planets.createUranusRing	= function(){
237
-	// create destination canvas
238
-	var canvasResult	= document.createElement('canvas')
239
-	canvasResult.width	= 1024
240
-	canvasResult.height	= 72
241
-	var contextResult	= canvasResult.getContext('2d')	
242
-
243
-	// load earthcloudmap
244
-	var imageMap	= new Image();
245
-	imageMap.addEventListener("load", function() {
246
-		
247
-		// create dataMap ImageData for earthcloudmap
248
-		var canvasMap	= document.createElement('canvas')
249
-		canvasMap.width	= imageMap.width
250
-		canvasMap.height= imageMap.height
251
-		var contextMap	= canvasMap.getContext('2d')
252
-		contextMap.drawImage(imageMap, 0, 0)
253
-		var dataMap	= contextMap.getImageData(0, 0, canvasMap.width, canvasMap.height)
254
-
255
-		// load earthcloudmaptrans
256
-		var imageTrans	= new Image();
257
-		imageTrans.addEventListener("load", function(){
258
-			// create dataTrans ImageData for earthcloudmaptrans
259
-			var canvasTrans		= document.createElement('canvas')
260
-			canvasTrans.width	= imageTrans.width
261
-			canvasTrans.height	= imageTrans.height
262
-			var contextTrans	= canvasTrans.getContext('2d')
263
-			contextTrans.drawImage(imageTrans, 0, 0)
264
-			var dataTrans		= contextTrans.getImageData(0, 0, canvasTrans.width, canvasTrans.height)
265
-			// merge dataMap + dataTrans into dataResult
266
-			var dataResult		= contextMap.createImageData(canvasResult.width, canvasResult.height)
267
-			for(var y = 0, offset = 0; y < imageMap.height; y++){
268
-				for(var x = 0; x < imageMap.width; x++, offset += 4){
269
-					dataResult.data[offset+0]	= dataMap.data[offset+0]
270
-					dataResult.data[offset+1]	= dataMap.data[offset+1]
271
-					dataResult.data[offset+2]	= dataMap.data[offset+2]
272
-					dataResult.data[offset+3]	= 255 - dataTrans.data[offset+0]/2
273
-				}
274
-			}
275
-			// update texture with result
276
-			contextResult.putImageData(dataResult,0,0)	
277
-			material.map.needsUpdate = true;
278
-		})
279
-		imageTrans.src	= THREEx.Planets.baseURL+'images/uranusringtrans.gif';
280
-	}, false);
281
-	imageMap.src	= THREEx.Planets.baseURL+'images/uranusringcolour.jpg';
282
-	
283
-	var geometry	= new THREEx.Planets._RingGeometry(0.55, 0.75, 64);
284
-	var material	= new THREE.MeshPhongMaterial({
285
-		map		: new THREE.Texture(canvasResult),
286
-		// map		: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/ash_uvgrid01.jpg'),
287
-		side		: THREE.DoubleSide,
288
-		transparent	: true,
289
-		opacity		: 0.8,
290
-	})
291
-	var mesh	= new THREE.Mesh(geometry, material)
292
-	mesh.lookAt(new THREE.Vector3(0.5,-4,1))
293
-	return mesh	
294
-}
295
-
296
-
297
-THREEx.Planets.createNeptune	= function(){
298
-	var geometry	= new THREE.SphereGeometry(0.5, 32, 32)
299
-	var texture	= THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/neptunemap.jpg')
300
-	var material	= new THREE.MeshPhongMaterial({
301
-		map	: texture,
302
-		bumpMap	: texture,
303
-		bumpScale: 0.05,
304
-	})
305
-	var mesh	= new THREE.Mesh(geometry, material)
306
-	return mesh	
307
-}
308
-
309
-
310
-
311
-THREEx.Planets.createPluto	= function(){
312
-	var geometry	= new THREE.SphereGeometry(0.5, 32, 32)
313
-	var material	= new THREE.MeshPhongMaterial({
314
-		map	: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/plutomap1k.jpg'),
315
-		bumpMap	: THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/plutobump1k.jpg'),
316
-		bumpScale: 0.005,
317
-	})
318
-	var mesh	= new THREE.Mesh(geometry, material)
319
-	return mesh	
320
-}
321
-
322
-THREEx.Planets.createStarfield	= function(){
323
-	var texture	= THREE.ImageUtils.loadTexture(THREEx.Planets.baseURL+'images/galaxy_starfield.png')
324
-	var material	= new THREE.MeshBasicMaterial({
325
-		map	: texture,
326
-		side	: THREE.BackSide
327
-	})
328
-	var geometry	= new THREE.SphereGeometry(100, 32, 32)
329
-	var mesh	= new THREE.Mesh(geometry, material)
330
-	return mesh	
331
-}
332
-
333
-
334
-//////////////////////////////////////////////////////////////////////////////////
335
-//		comment								//
336
-//////////////////////////////////////////////////////////////////////////////////
337
-
338
-/**
339
- * change the original from three.js because i needed different UV
340
- * 
341
- * @author Kaleb Murphy
342
- * @author jerome etienne
343
- */
344
-THREEx.Planets._RingGeometry = function ( innerRadius, outerRadius, thetaSegments ) {
345
-
346
-	THREE.Geometry.call( this )
347
-
348
-	innerRadius	= innerRadius || 0
349
-	outerRadius	= outerRadius || 50
350
-	thetaSegments	= thetaSegments	|| 8
351
-
352
-	var normal	= new THREE.Vector3( 0, 0, 1 )
353
-
354
-	for(var i = 0; i < thetaSegments; i++ ){
355
-		var angleLo	= (i / thetaSegments) *Math.PI*2
356
-		var angleHi	= ((i+1) / thetaSegments) *Math.PI*2
357
-
358
-		var vertex1	= new THREE.Vector3(innerRadius * Math.cos(angleLo), innerRadius * Math.sin(angleLo), 0);
359
-		var vertex2	= new THREE.Vector3(outerRadius * Math.cos(angleLo), outerRadius * Math.sin(angleLo), 0);
360
-		var vertex3	= new THREE.Vector3(innerRadius * Math.cos(angleHi), innerRadius * Math.sin(angleHi), 0);
361
-		var vertex4	= new THREE.Vector3(outerRadius * Math.cos(angleHi), outerRadius * Math.sin(angleHi), 0);
362
-
363
-		this.vertices.push( vertex1 );
364
-		this.vertices.push( vertex2 );
365
-		this.vertices.push( vertex3 );
366
-		this.vertices.push( vertex4 );
367
-		
368
-
369
-		var vertexIdx	= i * 4;
370
-
371
-		// Create the first triangle
372
-		var face = new THREE.Face3(vertexIdx + 0, vertexIdx + 1, vertexIdx + 2, normal);
373
-		var uvs = []
374
-
375
-		var uv = new THREE.Vector2(0, 0)
376
-		uvs.push(uv)
377
-		var uv = new THREE.Vector2(1, 0)
378
-		uvs.push(uv)
379
-		var uv = new THREE.Vector2(0, 1)
380
-		uvs.push(uv)
381
-
382
-		this.faces.push(face);
383
-		this.faceVertexUvs[0].push(uvs);
384
-
385
-		// Create the second triangle
386
-		var face = new THREE.Face3(vertexIdx + 2, vertexIdx + 1, vertexIdx + 3, normal);
387
-		var uvs = []
388
-
389
-		var uv = new THREE.Vector2(0, 1)
390
-		uvs.push(uv)
391
-		var uv = new THREE.Vector2(1, 0)
392
-		uvs.push(uv)
393
-		var uv = new THREE.Vector2(1, 1)
394
-		uvs.push(uv)
395
-
396
-		this.faces.push(face);
397
-		this.faceVertexUvs[0].push(uvs);
398
-	}
399
-
400
-	this.computeCentroids();
401
-	this.computeFaceNormals();
402
-
403
-	this.boundingSphere = new THREE.Sphere( new THREE.Vector3(), outerRadius );
404
-
405
-};
406
-THREEx.Planets._RingGeometry.prototype = Object.create( THREE.Geometry.prototype );
407
-
408
-

File diff suppressed because it is too large
+ 0 - 3833
target/classes/static/3Dlc/js/tweenjs.js


+ 0 - 10
target/classes/static/3Dlc/new_file.html

@@ -1,10 +0,0 @@
1
-<!DOCTYPE html>
2
-<html>
3
-	<head>
4
-		<meta charset="utf-8">
5
-		<title></title>
6
-	</head>
7
-	<body>
8
-		<iframe src="index.html?orgId=164&vCfCode=050&id=2016420190731080443000039&libraryType=0" style="width: 100%;height: 940px;"></iframe>
9
-	</body>
10
-</html>

BIN
target/classes/static/3Dlc/pic/nx.jpg


BIN
target/classes/static/3Dlc/pic/ny.jpg


BIN
target/classes/static/3Dlc/pic/nz.jpg


BIN
target/classes/static/3Dlc/pic/px.jpg


BIN
target/classes/static/3Dlc/pic/py.jpg


BIN
target/classes/static/3Dlc/pic/pz.jpg


+ 0 - 82
target/classes/static/3Dlc/tmp/threex.atmospherematerial.js

@@ -1,82 +0,0 @@
1
-var THREEx = THREEx || {}
2
-
3
-/**
4
- * from http://stemkoski.blogspot.fr/2013/07/shaders-in-threejs-glow-and-halo.html
5
- * @return {[type]} [description]
6
- */
7
-THREEx.createAtmosphereMaterial	= function(){
8
-	var vertexShader	= [
9
-		'uniform float	coeficient;',
10
-		'uniform float	power;',
11
-		'uniform vec3	viewVector;',
12
-
13
-		'varying float	intensity;',
14
-
15
-		'void main(){',
16
-		'	// compute intensity',
17
-		'	vec3 vNormal	= normalize(normalMatrix * normal);',
18
-
19
-		// '	vec3 vNormel	= normalize( normalMatrix * cameraPosition );',
20
-		// '	intensity	= pow( coeficient - dot(vNormal, vNormel), power );',
21
-
22
-		// '	vec3 camPosition= normalize(normalMatrix * cameraPosition);',
23
-		// '	intensity	= pow( coeficient - dot(vNormal, camPosition), power );',
24
-
25
-		// '	intensity	= pow( coeficient - dot(vNormal, normalize(viewVector)), power );',
26
-
27
-
28
-		'	vec3 vertex2Cam	= normalMatrix * cameraPosition;',
29
-		'	vertex2Cam	= vertex2Cam - (modelViewMatrix * vec4(position, 1.0 )).xyz;',
30
-		'	vertex2Cam	= normalize(vertex2Cam);',
31
-		'	intensity	= pow(coeficient - dot(vNormal, vertex2Cam), power);',
32
-
33
-		'	// set gl_Position',
34
-		'	gl_Position	= projectionMatrix * modelViewMatrix * vec4(position, 1.0);',
35
-		'}',
36
-
37
-		].join('\n')
38
-	var fragmentShader	= [
39
-		'uniform vec3	glowColor;',
40
-
41
-		'varying float	intensity;',
42
-
43
-		'void main(){',
44
-		'	gl_FragColor	= vec4(glowColor, intensity);',
45
-		// '	gl_FragColor	= vec4(glowColor*intensity, intensity);',
46
-
47
-		// '	gl_FragColor	= vec4(vec3(intensity), 1.0);',
48
-		// '	gl_FragColor	= vec4(length(normalMatrix[0]), length(normalMatrix[1]), length(normalMatrix[2])), 1.0);',
49
-		// '	gl_FragColor	= vec4(glowColor, intensity);',
50
-		// '	gl_FragColor	= vec4(normalize(cameraPosition2), 1.0);',
51
-		'}',
52
-	].join('\n')
53
-
54
-	// create custom material from the shader code above
55
-	//   that is within specially labeled script tags
56
-	var material	= new THREE.ShaderMaterial({
57
-		uniforms: { 
58
-			coeficient	: {
59
-				type	: "f", 
60
-				value	: 1.0
61
-			},
62
-			power		: {
63
-				type	: "f",
64
-				value	: 2
65
-			},
66
-			glowColor	: {
67
-				type	: "c",
68
-				value	: new THREE.Color('pink')
69
-			},
70
-			viewVector	: {
71
-				type	: "v3",
72
-				value	: new THREE.Vector3(0,0,1)
73
-			},
74
-		},
75
-		vertexShader	: vertexShader,
76
-		fragmentShader	: fragmentShader,
77
-		blending	: THREE.AdditiveBlending,
78
-		transparent	: true,
79
-		depthWrite	: false,
80
-	});
81
-	return material
82
-}

+ 0 - 42
target/classes/static/3Dlc/tmp/threex.atmospherematerialdatgui.js

@@ -1,42 +0,0 @@
1
-/**
2
- * vendor.js framework definition
3
- * @type {Object}
4
- */
5
-var THREEx	= THREEx || {};
6
-
7
-THREEx.addAtmosphereMaterial2DatGui	= function(material, datGui){
8
-	datGui		= datGui || new dat.GUI()
9
-	var uniforms	= material.uniforms
10
-	// options
11
-	var options  = {
12
-		coeficient	: uniforms['coeficient'].value,
13
-		power		: uniforms['power'].value,
14
-		glowColor	: '#'+uniforms.glowColor.value.getHexString(),
15
-		presetFront	: function(){
16
-			options.coeficient	= 1
17
-			options.power		= 2
18
-			onChange()
19
-		},
20
-		presetBack	: function(){
21
-			options.coeficient	= 0.5
22
-			options.power		= 4.0
23
-			onChange()
24
-		},
25
-	}
26
-	var onChange = function(){
27
-		uniforms['coeficient'].value	= options.coeficient
28
-		uniforms['power'].value		= options.power
29
-		uniforms.glowColor.value.set( options.glowColor ); 
30
-	}
31
-	onChange()
32
-	
33
-	// config datGui
34
-	datGui.add( options, 'coeficient'	, 0.0 , 2)
35
-		.listen().onChange( onChange )
36
-	datGui.add( options, 'power'		, 0.0 , 5)
37
-		.listen().onChange( onChange )
38
-	datGui.addColor( options, 'glowColor' )
39
-		.listen().onChange( onChange )
40
-	datGui.add( options, 'presetFront' )
41
-	datGui.add( options, 'presetBack' )
42
-}

+ 0 - 34
target/classes/static/3Dlc/tmp/threex.dilategeometry.js

@@ -1,34 +0,0 @@
1
-/**
2
- * @namespace
3
- */
4
-var THREEx	= THREEx || {}
5
-
6
-/**
7
- * dilate a geometry inplace
8
- * @param  {THREE.Geometry} geometry geometry to dilate
9
- * @param  {Number} length   percent to dilate, use negative value to erode
10
- */
11
-THREEx.dilateGeometry	= function(geometry, length){
12
-	// gather vertexNormals from geometry.faces
13
-	var vertexNormals	= new Array(geometry.vertices.length);
14
-	geometry.faces.forEach(function(face){
15
-		if( face instanceof THREE.Face4 ){
16
-			vertexNormals[face.a]	= face.vertexNormals[0];
17
-			vertexNormals[face.b]	= face.vertexNormals[1];
18
-			vertexNormals[face.c]	= face.vertexNormals[2];
19
-			vertexNormals[face.d]	= face.vertexNormals[3];		
20
-		}else if( face instanceof THREE.Face3 ){
21
-			vertexNormals[face.a]	= face.vertexNormals[0];
22
-			vertexNormals[face.b]	= face.vertexNormals[1];
23
-			vertexNormals[face.c]	= face.vertexNormals[2];
24
-		}else	console.assert(false);
25
-	});
26
-	// modify the vertices according to vertextNormal
27
-	geometry.vertices.forEach(function(vertex, idx){
28
-		var vertexNormal = vertexNormals[idx];
29
-		vertex.x	+= vertexNormal.x * length;
30
-		vertex.y	+= vertexNormal.y * length;
31
-		vertex.z	+= vertexNormal.z * length;
32
-	});		
33
-};
34
-

+ 0 - 33
target/classes/static/3Dlc/tmp/threex.geometricglowmesh.js

@@ -1,33 +0,0 @@
1
-var THREEx	= THREEx || {}
2
-
3
-THREEx.GeometricGlowMesh	= function(mesh){
4
-	var object3d	= new THREE.Object3D
5
-
6
-	var geometry	= mesh.geometry.clone()
7
-	THREEx.dilateGeometry(geometry, 0.01)
8
-	var material	= THREEx.createAtmosphereMaterial()
9
-	material.uniforms.glowColor.value	= new THREE.Color('cyan')
10
-	material.uniforms.coeficient.value	= 1.1
11
-	material.uniforms.power.value		= 0.7
12
-	// material.side	= THREE.DoubleSide
13
-	var insideMesh	= new THREE.Mesh(geometry, material );
14
-	// insideMesh.scale.multiplyScalar(1.01)
15
-	object3d.add( insideMesh );
16
-
17
-
18
-	var geometry	= mesh.geometry.clone()
19
-	// THREEx.dilateGeometry(geometry, 0.2)
20
-	var material	= THREEx.createAtmosphereMaterial()
21
-	material.uniforms.glowColor.value	= new THREE.Color('cyan')
22
-	material.uniforms.coeficient.value	= 0.2
23
-	material.uniforms.power.value		= 2.0
24
-	material.side	= THREE.BackSide
25
-	var outsideMesh	= new THREE.Mesh( geometry, material );
26
-	outsideMesh.scale.multiplyScalar(1.2)
27
-	object3d.add( outsideMesh );
28
-
29
-	// expose a few variable
30
-	this.object3d	= object3d
31
-	this.insideMesh	= insideMesh
32
-	this.outsideMesh= outsideMesh
33
-}

+ 0 - 500
target/classes/static/3Dlc/tools/lctools.min.js

@@ -1,500 +0,0 @@
1
-var CGQValue = [];
2
-var high;
3
-var whign;
4
-var low;
5
-var wlow;
6
-var LCcs = [];//用于接收地址参数
7
-var SensorID = -1;
8
-var AAA = -1;
9
-var BBB = 0;
10
-var CCC;
11
-var CGQcase;//根据接口返回规定不同的测温渲染状态0,1,2
12
-$.each(location.href.split("?")[1].split("&"),function(i,n){
13
-	LCcs.push(n.split("=")[1]);
14
-})
15
-$.ajax({
16
-	type: "get",
17
-	url: location.protocol+"//"+location.host+"/depot-intelligent/intelligents/wareHouseBasicInfo/getStorehouse?orgId=" + LCcs[0] + "&cfCode=" + LCcs[1] + "&libraryType=" + LCcs[3],
18
-	data: {},
19
-	async:true,
20
-	dataType: "json",
21
-	success: function(e) {
22
-		console.log(e);
23
-		if (e.data.keeperName == null) {
24
-			e.data.keeperName = "";
25
-		}
26
-		if (e.data.dj == null) {
27
-			e.data.dj = "";
28
-		}
29
-		if (e.data.pz == null) {
30
-			e.data.pz = "";
31
-		}
32
-		if (e.data.lkmc == null) {
33
-			e.data.lkmc = "";
34
-		}
35
-		$("#LSDJ").text(e.data.dj);
36
-		$("#LKMC").text(e.data.lkmc);
37
-		$("#LKBGY").text(e.data.keeperName);
38
-		$("#LSPZ").text(e.data.pz)
39
-	}
40
-});
41
-$.ajax({
42
-	type: "get",
43
-	url: location.protocol+"//"+location.host+"/depot-intelligent/intelligents/WarningThreshold/getByOrgIdAndCfCode?orgId=" + LCcs[0] + "&vCfCode=" + LCcs[1],
44
-	data: {},
45
-	dataType: "json",
46
-	async:true,
47
-	success: function(e) {
48
-		high = e.data.high;
49
-		whign = e.data.whigh;
50
-		low = e.data.low;
51
-		wlow = e.data.wlow
52
-		if(high == undefined && whign == undefined && low == undefined && wlow == undefined){
53
-			CGQcase = 0;
54
-		}
55
-		else if(high != undefined && whign == undefined && low == undefined && wlow == undefined){
56
-			CGQcase = 1;
57
-		}
58
-		else if(high != undefined && whign != undefined && low != undefined && wlow != undefined){
59
-			CGQcase = 2;
60
-		}
61
-	}
62
-});
63
-$.ajax({
64
-	type: "get",
65
-	url: location.protocol+"//"+location.host+"/depot-intelligent/intelligents/temperatureRecord/findById?id=" + LCcs[2],
66
-	data: {},
67
-	async:true,
68
-	dataType: "json",
69
-	success: function(e) {
70
-		console.log(e);
71
-		if (e.data.inh == null) {
72
-			e.data.inh = "";
73
-		}
74
-		if (e.data.intemp == null) {
75
-			e.data.intemp = "";
76
-		}
77
-		if (e.data.outtemp == null) {
78
-			e.data.outtemp = "";
79
-		}
80
-		if (e.data.outh == null) {
81
-			e.data.outh = "";
82
-		}
83
-		$("#CNSD").text(e.data.inh);
84
-		$("#CNWD").text(e.data.intemp);
85
-		$("#CWWD").text(e.data.outtemp);
86
-		$("#CWSD").text(e.data.outh)
87
-	}
88
-});
89
-var scene = new THREE.Scene;
90
-scene.background = (new THREE.CubeTextureLoader).setPath("pic/")
91
-    .load(['px.jpg', 'nx.jpg', 'py.jpg', 'ny.jpg', 'pz.jpg', 'nz.jpg',]);
92
-var axes = new THREE.AxesHelper(1e3);
93
-// scene.add(axes);
94
-var point = new THREE.PointLight(16777215);
95
-point.position.set(400, 200, 300);
96
-scene.add(point);
97
-var ambient = new THREE.AmbientLight(4473924);
98
-scene.add(ambient);
99
-var width = window.innerWidth;
100
-var height = window.innerHeight;
101
-var k = width / height;
102
-var s = 200;
103
-var camera = new THREE.PerspectiveCamera(100, width / height, 1, 1e3);
104
-camera.position.set(700, 100, 100);
105
-camera.lookAt(scene.position);
106
-THREE.onEvent(scene, camera);
107
-
108
-	var p1 = {x: 550,y:80,z:200};
109
-	var position = camera.position;
110
-	var tween1 = new TWEEN.Tween(position);
111
-	tween1.to(p1, 5000);
112
-	var update = function () {
113
-	        // camera.position.set(p1.x,p1.y,p1.z);
114
-			camera.lookAt(300,80,200);
115
-			controls.target = new THREE.Vector3(300,80,200);
116
-			// $("body").mLoading("hide"); //取消loading
117
-	    };
118
-	tween1.onUpdate(update);
119
- tween1.easing(TWEEN.Easing.Back.InOut);
120
-
121
-
122
-$.ajax({
123
-	type: "get",
124
-	url: location.protocol+"//"+location.host+"/depot-intelligent/intelligents/temperatureRecord/findByHouseAndTimes?lqId=" + LCcs[2],
125
-	data: {},
126
-	async:true,
127
-	dataType: "json",
128
-	success: function(e) {
129
-		console.log(e.data);
130
-		//取第一个数
131
-		for (let i in e.data[0]){
132
-			AAA++
133
-		}
134
-		console.log(AAA)
135
-		//取第二个数
136
-		var BBBArray = [];
137
-		var arr = []
138
-		$.each(e.data,function(i,n){
139
-			BBBArray.push(n[1]);
140
-		})
141
-		console.log(BBBArray);
142
-		$.each(BBBArray,function(i,n){
143
-			if(i+1 == n.split("-")[1]){
144
-				BBB++
145
-			}
146
-		})
147
-		console.log(BBB);
148
-		//取第三个数
149
-		CCC = BBBArray.length/BBB
150
-		console.log(CCC);
151
-		
152
-		var geometry = new THREE.CylinderGeometry(.3, .3, 140);
153
-		var material = new THREE.MeshLambertMaterial({
154
-			color: 0
155
-		});
156
-		for (var x = 0; x < AAA; x++) {
157
-			for (var z = 0; z < BBB; z++) {
158
-				var mesh = new THREE.Mesh(geometry, material);
159
-				mesh.position.set(x * 50, 0, z * 70);
160
-				mesh.translateY(70);
161
-				scene.add(mesh)
162
-			}
163
-		}
164
-		var ckfloor = new THREE.BoxGeometry((AAA+1)*50, (BBB)*70, 3);
165
-		var textureckfloor = (new THREE.TextureLoader).load("img/lss.jpg");
166
-		textureckfloor.wrapS = textureckfloor.wrapT = THREE.RepeatWrapping;
167
-		textureckfloor.repeat.set(8, 8);
168
-		var ckfloormaterial = new THREE.MeshBasicMaterial({
169
-			color: 16121850,
170
-			map: textureckfloor
171
-		});
172
-		var ckfloormesh = new THREE.Mesh(ckfloor, ckfloormaterial);
173
-		ckfloormesh.rotateX(Math.PI / 2);
174
-		// ckfloormesh.position.set((AAA+1)*25, 3, (BBB+1)*35);
175
-		ckfloormesh.position.set(AAA*25, 3, (BBB-1)*35);
176
-		scene.add(ckfloormesh);
177
-		
178
-		var cubeleft = new THREE.CubeGeometry((AAA+1)*50, 140, 10, (AAA+1)*50);
179
-		var textureleft = (new THREE.TextureLoader).load("img/qiang.jpg");
180
-		textureleft.wrapS = textureleft.wrapT = THREE.RepeatWrapping;
181
-		textureleft.repeat.set(3, 3);
182
-		var materialleft = new THREE.MeshBasicMaterial({
183
-			color: 15000001,
184
-			map: textureleft,
185
-			transparent: true,
186
-			// opacity: 0.5,
187
-		});
188
-		var meshleft = new THREE.Mesh(cubeleft, materialleft);
189
-		// meshleft.translateY(70);
190
-		// meshleft.translateZ(590);
191
-		meshleft.position.set((AAA)*25,70,(BBB)*70-35)
192
-		scene.add(meshleft);
193
-		
194
-		var cuberight = new THREE.CubeGeometry((AAA+1)*50, 140, 10, (AAA+1)*50);
195
-		var textureright = (new THREE.TextureLoader).load("img/qiang.jpg");
196
-		textureright.wrapS = textureright.wrapT = THREE.RepeatWrapping;
197
-		textureright.repeat.set(3, 3);
198
-		var materialright = new THREE.MeshBasicMaterial({
199
-			color: 15000001,
200
-			map: textureright,
201
-		});
202
-		var meshright = new THREE.Mesh(cuberight, materialright);
203
-		meshright.translateY(70);
204
-		// meshright.translateZ(-250);
205
-		meshright.position.set((AAA)*25,70,-35)
206
-		scene.add(meshright);
207
-		
208
-		var cubeback = new THREE.CubeGeometry(10, 140, (BBB)*70, 140);
209
-		var textureback = (new THREE.TextureLoader).load("img/qiang.jpg");
210
-		textureback.wrapS = textureback.wrapT = THREE.RepeatWrapping;
211
-		textureback.repeat.set(3, 3);
212
-		var materialback = new THREE.MeshBasicMaterial({
213
-			color: 15000001,
214
-			map: textureback
215
-		});
216
-		var meshback = new THREE.Mesh(cubeback, materialback);
217
-		meshback.translateY(70);
218
-		// meshback.translateZ(170);
219
-		// meshback.translateX(-200);
220
-		meshback.position.set(-25,70,(BBB-1)*35)
221
-		scene.add(meshback);
222
-		
223
-		var texturetop = (new THREE.TextureLoader).load("img/1111.jpg");
224
-		texturetop.wrapS = texturetop.wrapT = THREE.RepeatWrapping;
225
-		texturetop.repeat.set(10, 10);
226
-		var materialtop = new THREE.MeshBasicMaterial({
227
-			color: 1869550,
228
-			map: texturetop
229
-		});
230
-		var cubetop1 = new THREE.CubeGeometry((AAA+2)*25, 10, (BBB)*70);
231
-		var meshtop1 = new THREE.Mesh(cubetop1, materialtop);
232
-		meshtop1.translateY(170);
233
-		meshtop1.position.set(0,170,(BBB-1)*35)
234
-		meshtop1.translateX((1/AAA)*70+50);
235
-		// meshtop1.translateZ(170);
236
-		meshtop1.rotateZ(Math.PI / 12);
237
-		scene.add(meshtop1);
238
-		var cubetop2 = new THREE.CubeGeometry((AAA+2)*25, 10, (BBB)*70);
239
-		var meshtop2 = new THREE.Mesh(cubetop2, materialtop);
240
-		meshtop2.position.set(0,170,(BBB-1)*35)
241
-		meshtop2.translateX((AAA-1/AAA)*50-50);
242
-		// meshtop2.translateZ(170);
243
-		meshtop2.rotateZ(-Math.PI / 12);
244
-		scene.add(meshtop2);
245
-		
246
-		var tubeMaterial = new THREE.MeshPhongMaterial({
247
-			 // map: texture,
248
-			 color:0x000000,
249
-			  transparent: true,
250
-			});
251
-		for(var x = 0; x<AAA;x++){
252
-			var curve = new THREE.CatmullRomCurve3([
253
-				  new THREE.Vector3(x*50, 140, 0),
254
-				  new THREE.Vector3(x*50, 140, (BBB-1)*70),
255
-			],false/*是否闭合*/);
256
-			var tubeGeometry = new THREE.TubeGeometry(curve, 2, 0.5, 5, false);
257
-			var tube = new THREE.Mesh(tubeGeometry, tubeMaterial);
258
-			scene.add(tube);
259
-		}
260
-		
261
-		
262
-		// 通过Path类的线条绘制方法方法定义轮廓
263
-		var shape = new THREE.Shape();
264
-		//shape.absarc(50,50,40,0,2*Math.PI);//圆弧
265
-		shape.moveTo(0, 0, 0); //起点
266
-		shape.lineTo(((AAA+1)/2)*50, 0, 0); //第2点
267
-		shape.lineTo(0, 50, 0); //第3点
268
-		shape.lineTo(-((AAA+1)/2)*50, 0, 0); //第4点
269
-		shape.lineTo(0, 0, 0); //第5点
270
-		var geometry = new THREE.ExtrudeGeometry( //拉伸造型
271
-			shape, //二维轮廓
272
-			//拉伸参数
273
-			{
274
-				amount: BBB*70, //拉伸长度
275
-			}
276
-		);
277
-		var trianglematerial = new THREE.MeshPhongMaterial({
278
-			// color: 0xC7C7C7,
279
-			color:0x27408B,
280
-			side: THREE.DoubleSide, //两面可见,
281
-			//wireframe: true,
282
-		}); //材质对象
283
-		var meshwuzi = new THREE.Mesh(geometry, trianglematerial); //网格模型对象
284
-		// meshwuzi.translateZ(-433)
285
-		// meshwuzi.translateY(140)
286
-		meshwuzi.position.set(((AAA+3)*35)/2,140,-35);
287
-		
288
-		scene.add(meshwuzi); //网格模型添加到场景中
289
-		$.ajax({
290
-			type: "get",
291
-			url: location.protocol+"//"+location.host+"/depot-intelligent/intelligents/temperatureRecord/findByHouseAndTimes?lqId=" + LCcs[2],
292
-			data: {},
293
-			async:true,
294
-			dataType: "json",
295
-			success: function(e) {
296
-				console.log(e);
297
-				$.each(e.data, function(e, a) {
298
-					for (var t = 2; t < AAA+2; t++) {
299
-						CGQValue.push(a[t])
300
-					}
301
-				});
302
-				// console.log(CGQValue);
303
-				for (var a = CCC; a > 0; a--) {
304
-					for (var t = 0; t < BBB; t++) {
305
-						for (var r = 0; r < AAA; r++) {
306
-							SensorID = SensorID + 1;
307
-							var o = CGQValue[SensorID];
308
-							switch (CGQcase){
309
-								case 0:
310
-								if(o == 250){
311
-									var n = new THREE.MeshLambertMaterial({
312
-										color: "#636363",
313
-										wireframe: false,
314
-										transparent: true,
315
-										opacity: .9
316
-									})
317
-								}
318
-								else{
319
-									var n = new THREE.MeshLambertMaterial({
320
-										color: 8190976,
321
-										wireframe: false,
322
-										transparent: true,
323
-										opacity: .7
324
-									})
325
-								}
326
-								break;
327
-								case 1:
328
-								if (o >= high) {
329
-									var n = new THREE.MeshLambertMaterial({
330
-										color: 16711680,
331
-										wireframe: false,
332
-										transparent: true,
333
-										opacity: .9
334
-									})
335
-								}
336
-								else{
337
-									var n = new THREE.MeshLambertMaterial({
338
-										color: 8190976,
339
-										wireframe: false,
340
-										transparent: true,
341
-										opacity: .7
342
-									})
343
-								}
344
-								break;
345
-								case 2:
346
-								if (o >= high && o != 250) {
347
-									var n = new THREE.MeshLambertMaterial({
348
-										color: 16711680,
349
-										wireframe: false,
350
-										transparent: true,
351
-										opacity: .9
352
-									})
353
-								}
354
-								else if(o == 250){
355
-									var n = new THREE.MeshLambertMaterial({
356
-										color: "#636363",
357
-										wireframe: false,
358
-										transparent: true,
359
-										opacity: .9
360
-									})
361
-								}
362
-								else if(o <= low){
363
-										var n = new THREE.MeshLambertMaterial({
364
-											color: "#00F5FF",
365
-											wireframe: false,
366
-											transparent: true,
367
-											opacity: .7
368
-										})
369
-								}
370
-								else if (o >= whign && o < high) {
371
-									var n = new THREE.MeshLambertMaterial({
372
-										color: 15658496,
373
-										wireframe: false,
374
-										transparent: true,
375
-										opacity: .7
376
-									})
377
-								} else if (o >= low && o < wlow) {
378
-									var n = new THREE.MeshLambertMaterial({
379
-										color: "#00F5FF",
380
-										wireframe: false,
381
-										transparent: true,
382
-										opacity: .7
383
-									})
384
-								} else if (o < whign && o > wlow) {
385
-									var n = new THREE.MeshLambertMaterial({
386
-										color: 8190976,
387
-										wireframe: false,
388
-										transparent: true,
389
-										opacity: .7
390
-									})
391
-								}
392
-								break;
393
-							}
394
-							
395
-							var s = new THREE.Mesh(sphere, n);
396
-							s.position.set(r * 50, a * 25, t * 70);
397
-							s.rotateX(Math.PI / 2);
398
-							s.name = "传感器" + SensorID.toString();
399
-							
400
-							var d = document.createElement("div");
401
-							d.className = "label";
402
-							d.textContent = CGQValue[SensorID] + "℃";
403
-							d.style.marginTop = "-1em";
404
-							var c = new THREE.CSS2DObject(d);
405
-							// c.position.set(r, a, t);
406
-							s.add(c);
407
-							scene.add(s)
408
-							// console.log(SensorID);
409
-							
410
-							s.add(c);
411
-							// scene.add(newsphereMesh);
412
-							// s.on('click', function(m) {
413
-							// 	console.log(m);
414
-							// 	if (m.children.length > 1) {
415
-							// 		alert(m.children[1].element.innerText);
416
-							// 	} else{
417
-							// 		alert(m.children[0].element.innerText);
418
-							// 	}
419
-							// });
420
-						}
421
-					}
422
-					
423
-				}
424
-			}
425
-		});
426
-		
427
-	}
428
-});
429
-var tubeMaterial = new THREE.MeshPhongMaterial({
430
-	color: 0,
431
-	transparent: true
432
-});
433
-var dianban = new THREE.BoxGeometry(3e3, 3e3, 5);
434
-var texturefloor = (new THREE.TextureLoader).load("img/cizhuan.jpg");
435
-texturefloor.wrapS = texturefloor.wrapT = THREE.RepeatWrapping;
436
-texturefloor.repeat.set(80, 80);
437
-var dianbanmaterial = new THREE.MeshBasicMaterial({
438
-	color: 16121850,
439
-	map: texturefloor
440
-});
441
-var real_dianban = new THREE.Mesh(dianban, dianbanmaterial);
442
-real_dianban.rotateX(Math.PI / 2);
443
-scene.add(real_dianban);
444
-
445
-var sphere = new THREE.SphereGeometry(4, 20, 20);
446
-
447
-labelRenderer = new THREE.CSS2DRenderer;
448
-labelRenderer.setSize(window.innerWidth, window.innerHeight);
449
-labelRenderer.domElement.style.position = "absolute";
450
-labelRenderer.domElement.style.top = 0;
451
-document.body.appendChild(labelRenderer.domElement);
452
-
453
-
454
-function animate() {
455
-	requestAnimationFrame(animate)
456
-}
457
-
458
-function draw() {
459
-	animate()
460
-}
461
-var renderer = new THREE.WebGLRenderer;
462
-renderer.setSize(width, height);
463
-renderer.setClearColor(12178431, 1);
464
-document.body.appendChild(renderer.domElement);
465
-
466
-function render() {
467
-	renderer.render(scene, camera);
468
-	labelRenderer.render(scene, camera);
469
-	requestAnimationFrame(render)
470
-	TWEEN.update();
471
-}
472
-render();
473
-var controls = new THREE.OrbitControls(camera);
474
-controls.maxPolarAngle = 1.5;
475
-controls.minPolarAngle = 1.3;
476
-controls.minDistance = 50;
477
-controls.maxDistance = 800;
478
-
479
-
480
-function CWXQ() {
481
-	// camera.position.set(80, 50, 80);
482
-	controls.maxDistance = 200;
483
-	console.log($(".label"));
484
-	tween1.start();
485
-	$("body").mLoading({
486
-		text: "切换摄像头视角...", //加载文字,默认值:加载中...
487
-		// mask:false//是否显示遮罩效果,默认显示
488
-	});
489
-	setTimeout(function() {
490
-		$("body").mLoading("hide");
491
-		$(".label").addClass("active")
492
-	}, 5000)
493
-	
494
-}
495
-
496
-function HFQJ() {
497
-	controls.maxDistance = 800;
498
-	controls.reset();
499
-	$(".label").removeClass("active")
500
-}

BIN
target/classes/static/act/diagram-viewer/images/bg.png


BIN
target/classes/static/act/diagram-viewer/images/breadcrumbs.png


BIN
target/classes/static/act/diagram-viewer/images/checker-bg.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/blue/message_catch.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/business_rule.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/error_catch.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/error_throw.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/manual.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/message_catch.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/message_throw.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/receive.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/script.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/send.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/service.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/signal_catch.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/signal_throw.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/timer.png


BIN
target/classes/static/act/diagram-viewer/images/deployer/user.png


+ 0 - 137
target/classes/static/act/diagram-viewer/index.html

@@ -1,137 +0,0 @@
1
-<html>
2
-<head>
3
-  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4
-  
5
-  <link rel="stylesheet" href="style.css" type="text/css" media="screen">
6
-  <script src="js/jstools.js" type="text/javascript" charset="utf-8"></script>
7
-  <script src="js/raphael.js" type="text/javascript" charset="utf-8"></script>
8
-  
9
-  <script src="js/jquery/jquery.js" type="text/javascript" charset="utf-8"></script>
10
-  <script src="js/jquery/jquery.progressbar.js" type="text/javascript" charset="utf-8"></script>
11
-  <script src="js/jquery/jquery.asyncqueue.js" type="text/javascript" charset="utf-8"></script>
12
-  
13
-  <script src="js/Color.js" type="text/javascript" charset="utf-8"></script>
14
-  <script src="js/Polyline.js" type="text/javascript" charset="utf-8"></script>
15
-  <script src="js/ActivityImpl.js" type="text/javascript" charset="utf-8"></script>
16
-  <script src="js/ActivitiRest.js" type="text/javascript" charset="utf-8"></script>
17
-  <script src="js/LineBreakMeasurer.js" type="text/javascript" charset="utf-8"></script>
18
-  <script src="js/ProcessDiagramGenerator.js" type="text/javascript" charset="utf-8"></script>
19
-  <script src="js/ProcessDiagramCanvas.js" type="text/javascript" charset="utf-8"></script>
20
-  
21
-  <style type="text/css" media="screen">
22
-    
23
-  </style>
24
-</head>
25
-<body>
26
-<div class="wrapper">
27
-  <div id="pb1"></div>
28
-  <div id="overlayBox" >
29
-    <div id="diagramBreadCrumbs" class="diagramBreadCrumbs" onmousedown="return false" onselectstart="return false"></div>
30
-    <div id="diagramHolder" class="diagramHolder"></div>
31
-    <!-- <div class="diagram-info" id="diagramInfo"></div> -->
32
-  </div>
33
-</div>
34
-<script language='javascript'>
35
-var DiagramGenerator = {};
36
-var pb1;
37
-$(document).ready(function(){
38
-  var query_string = {};
39
-  var query = window.location.search.substring(1);
40
-  var vars = query.split("&");
41
-  for (var i=0;i<vars.length;i++) {
42
-    var pair = vars[i].split("=");
43
-    query_string[pair[0]] = pair[1];
44
-  } 
45
-  
46
-  var processDefinitionId = query_string["processDefinitionId"];
47
-  var processInstanceId = query_string["processInstanceId"];
48
-  console.log("Initialize progress bar");
49
-  
50
-  pb1 = new $.ProgressBar({
51
-    boundingBox: '#pb1',
52
-    label: '加载进度条!',
53
-    on: {
54
-      complete: function() {
55
-        console.log("Progress Bar COMPLETE");
56
-        this.set('label', '完成!');
57
-        if (processInstanceId) {
58
-          ProcessDiagramGenerator.drawHighLights(processInstanceId);
59
-        }
60
-      },
61
-      valueChange: function(e) {
62
-        this.set('label', e.newVal + '%');
63
-      }
64
-    },
65
-    value: 0
66
-  });
67
-  console.log("Progress bar inited");
68
-  
69
-  ProcessDiagramGenerator.options = {
70
-    diagramBreadCrumbsId: "diagramBreadCrumbs",
71
-    diagramHolderId: "diagramHolder",
72
-    diagramInfoId: "diagramInfo",
73
-    on: {
74
-      click: function(canvas, element, contextObject){
75
-        var mouseEvent = this;
76
-        console.log("[CLICK] mouseEvent: %o, canvas: %o, clicked element: %o, contextObject: %o", mouseEvent, canvas, element, contextObject);
77
-
78
-        if (contextObject.getProperty("type") == "callActivity") {
79
-          var processDefinitonKey = contextObject.getProperty("processDefinitonKey");
80
-          var processDefinitons = contextObject.getProperty("processDefinitons");
81
-          var processDefiniton = processDefinitons[0];
82
-          console.log("Load callActivity '" + processDefiniton.processDefinitionKey + "', contextObject: ", contextObject);
83
-
84
-          // Load processDefinition
85
-        ProcessDiagramGenerator.drawDiagram(processDefiniton.processDefinitionId);
86
-        }
87
-      },
88
-      rightClick: function(canvas, element, contextObject){
89
-        var mouseEvent = this;
90
-        console.log("[RIGHTCLICK] mouseEvent: %o, canvas: %o, clicked element: %o, contextObject: %o", mouseEvent, canvas, element, contextObject);
91
-      },
92
-      over: function(canvas, element, contextObject){
93
-        var mouseEvent = this;
94
-        //console.log("[OVER] mouseEvent: %o, canvas: %o, clicked element: %o, contextObject: %o", mouseEvent, canvas, element, contextObject);
95
-
96
-        // TODO: show tooltip-window with contextObject info
97
-        ProcessDiagramGenerator.showActivityInfo(contextObject);
98
-      },
99
-      out: function(canvas, element, contextObject){
100
-        var mouseEvent = this;
101
-        //console.log("[OUT] mouseEvent: %o, canvas: %o, clicked element: %o, contextObject: %o", mouseEvent, canvas, element, contextObject);
102
-
103
-        ProcessDiagramGenerator.hideInfo();
104
-      }
105
-    }
106
-  };
107
-  
108
-  var baseUrl = window.document.location.protocol + "//" + window.document.location.host + "/";
109
-  //window.alert("1*********************"+baseUrl); //http://localhost:9025/
110
-  
111
-  var shortenedUrl = window.document.location.href.replace(baseUrl, "");
112
-  //window.alert("2*********************"+shortenedUrl); 
113
-  //act/diagram-viewer/index.html?processDefinitionId=plan:2:260028&processInstanceId=365011
114
-		  
115
-  baseUrl = baseUrl +"depot-business/"+ shortenedUrl.substring(0, shortenedUrl.indexOf("/"));  
116
- /*  window.alert("3*********************"+baseUrl); //http://localhost:9025/act
117
-  http://localhost:9025/depot-business/act
118
- // baseUrl = baseUrl.replace(window.document.location.port, "9002"); 
119
-  window.alert("11*****************"+baseUrl); //http://localhost:9002/act  */ 
120
-  											     
121
-  ActivitiRest.options = {
122
-		  processInstanceHighLightsUrl: baseUrl + "/service/process-instance/{processInstanceId}/highlights?callback=?",
123
-		  processDefinitionUrl: baseUrl + "/service/process-definition/{processDefinitionId}/diagram-layout?callback=?",
124
-		  processDefinitionByKeyUrl: baseUrl + "/service/process-definition/{processDefinitionKey}/diagram-layout?callback=?",
125
-		  processInstanceUrl: baseUrl + "/service/process-instance/{processInstanceId}/diagram-layout?callback=?"
126
-	};
127
-  if (processDefinitionId) {
128
-    ProcessDiagramGenerator.drawDiagram(processDefinitionId);
129
-  } else {
130
-    alert("processDefinitionId parameter is required");
131
-  }
132
-});
133
-
134
-
135
-</script>
136
-</body>
137
-</html>

+ 0 - 74
target/classes/static/act/diagram-viewer/js/ActivitiRest.js

@@ -1,74 +0,0 @@
1
-var ActivitiRest = {
2
-	options: {},
3
-	getProcessDefinitionByKey: function(processDefinitionKey, callback) {
4
-		var url = Lang.sub(this.options.processDefinitionByKeyUrl, {processDefinitionKey: processDefinitionKey});
5
-		
6
-		$.ajax({
7
-			url: url,
8
-			dataType: 'jsonp',
9
-			cache: false,
10
-			async: true,
11
-			success: function(data, textStatus) {
12
-				var processDefinition = data;
13
-				if (!processDefinition) {
14
-					console.error("Process definition '" + processDefinitionKey + "' not found");
15
-				} else {
16
-				  callback.apply({processDefinitionId: processDefinition.id});
17
-				}
18
-			}
19
-		}).done(function(data, textStatus) {
20
-			console.log("ajax done");
21
-		}).fail(function(jqXHR, textStatus, error){
22
-			console.error('Get diagram layout['+processDefinitionKey+'] failure: ', textStatus, 'error: ', error, jqXHR);
23
-		});
24
-	},
25
-	
26
-	getProcessDefinition: function(processDefinitionId, callback,APP_CONFIG) {
27
-		var url = Lang.sub(this.options.processDefinitionUrl, {processDefinitionId: processDefinitionId});
28
-		
29
-		$.ajax({
30
-			url: url,
31
-			dataType: 'jsonp',
32
-			cache: false,
33
-			async: true,
34
-			success: function(data, textStatus) {
35
-				var processDefinitionDiagramLayout = data;
36
-				if (!processDefinitionDiagramLayout) {
37
-					console.error("Process definition diagram layout '" + processDefinitionId + "' not found");
38
-					return;
39
-				} else {
40
-					callback.apply({processDefinitionDiagramLayout: processDefinitionDiagramLayout});
41
-				}
42
-			}
43
-		}).done(function(data, textStatus) {
44
-			console.log("ajax done");
45
-		}).fail(function(jqXHR, textStatus, error){
46
-			console.log('Get diagram layout['+processDefinitionId+'] failure: ', textStatus, jqXHR);
47
-		});
48
-	},
49
-	
50
-	getHighLights: function(processInstanceId, callback) {
51
-		var url = Lang.sub(this.options.processInstanceHighLightsUrl, {processInstanceId: processInstanceId});
52
-		
53
-		$.ajax({
54
-			url: url,
55
-			dataType: 'jsonp',
56
-			cache: false,
57
-			async: true,
58
-			success: function(data, textStatus) {
59
-				console.log("ajax returned data");
60
-				var highLights = data;
61
-				if (!highLights) {
62
-					console.log("highLights not found");
63
-					return;
64
-				} else {
65
-					callback.apply({highLights: highLights});
66
-				}
67
-			}
68
-		}).done(function(data, textStatus) {
69
-			console.log("ajax done");
70
-		}).fail(function(jqXHR, textStatus, error){
71
-		  console.log('Get HighLights['+processInstanceId+'] failure: ', textStatus, jqXHR);
72
-		});
73
-	}
74
-};

File diff suppressed because it is too large
+ 0 - 1
target/classes/static/act/diagram-viewer/js/ActivityImpl.js


+ 0 - 597
target/classes/static/act/diagram-viewer/js/Color.js

@@ -1,597 +0,0 @@
1
-var Color = {
2
-   /**
3
-   * The color white.  In the default sRGB space.
4
-   */
5
-  white     : Raphael.getRGB("rgb(255,255,255)"),
6
-  
7
-  /**
8
-   * The color white.  In the default sRGB space.
9
-   */
10
-  WHITE : this.white,
11
-  
12
-  /**
13
-   * The color light gray.  In the default sRGB space.
14
-   */
15
-  lightGray : Raphael.getRGB("rgb(192, 192, 192)"),
16
-  
17
-  /**
18
-   * The color light gray.  In the default sRGB space.
19
-   */
20
-  LIGHT_GRAY : this.lightGray,
21
-  
22
-  /**
23
-   * The color gray.  In the default sRGB space.
24
-   */
25
-  gray : Raphael.getRGB("rgb(128, 128, 128)"),
26
-  
27
-  /**
28
-   * The color gray.  In the default sRGB space.
29
-   */
30
-  GRAY : this.gray,
31
-  
32
-  /**
33
-   * The color dark gray.  In the default sRGB space.
34
-   */
35
-  darkGray : Raphael.getRGB("rgb(64, 64, 64)"),
36
-  
37
-  /**
38
-   * The color dark gray.  In the default sRGB space.
39
-   */
40
-  DARK_GRAY : this.darkGray,
41
-  
42
-  /**
43
-   * The color black.  In the default sRGB space.
44
-   */
45
-  black : Raphael.getRGB("rgb(0, 0, 0)"),
46
-  
47
-  /**
48
-   * The color black.  In the default sRGB space.
49
-   */
50
-  BLACK : this.black,
51
-  
52
-  /**
53
-   * The color red.  In the default sRGB space.
54
-   */
55
-  red : Raphael.getRGB("rgb(255, 0, 0)"),
56
-  
57
-  /**
58
-   * The color red.  In the default sRGB space.
59
-   */
60
-  RED : this.red,
61
-  
62
-  /**
63
-   * The color pink.  In the default sRGB space.
64
-   */
65
-  pink : Raphael.getRGB("rgb(255, 175, 175)"),
66
-  
67
-  /**
68
-   * The color pink.  In the default sRGB space.
69
-   */
70
-  PINK : this.pink,
71
-  
72
-  /**
73
-   * The color orange.  In the default sRGB space.
74
-   */
75
-  orange : Raphael.getRGB("rgb(255, 200, 0)"),
76
-  
77
-  /**
78
-   * The color orange.  In the default sRGB space.
79
-   */
80
-  ORANGE : this.orange,
81
-  
82
-  /**
83
-   * The color yellow.  In the default sRGB space.
84
-   */
85
-  yellow : Raphael.getRGB("rgb(255, 255, 0)"),
86
-  
87
-  /**
88
-   * The color yellow.  In the default sRGB space.
89
-   */
90
-  YELLOW : this.yellow,
91
-  
92
-  /**
93
-   * The color green.  In the default sRGB space.
94
-   */
95
-  green : Raphael.getRGB("rgb(0, 255, 0)"),
96
-  
97
-  /**
98
-   * The color green.  In the default sRGB space.
99
-   */
100
-  GREEN : this.green,
101
-  
102
-  /**
103
-   * The color magenta.  In the default sRGB space.
104
-   */
105
-  magenta : Raphael.getRGB("rgb(255, 0, 255)"),
106
-  
107
-  /**
108
-   * The color magenta.  In the default sRGB space.
109
-   */
110
-  MAGENTA : this.magenta,
111
-  
112
-  /**
113
-   * The color cyan.  In the default sRGB space.
114
-   */
115
-  cyan : Raphael.getRGB("rgb(0, 255, 255)"),
116
-  
117
-  /**
118
-   * The color cyan.  In the default sRGB space.
119
-   */
120
-  CYAN : this.cyan,
121
-  
122
-  /**
123
-   * The color blue.  In the default sRGB space.
124
-   */
125
-  blue : Raphael.getRGB("rgb(0, 0, 255)"),
126
-  
127
-  /**
128
-   * The color blue.  In the default sRGB space.
129
-   */
130
-  BLUE : this.blue,
131
-  
132
-  /************************************************************************/
133
-
134
-  // http://www.stm.dp.ua/web-design/color-html.php
135
-  
136
-	Snow			:   Raphael.getRGB("#FFFAFA	"),  // 	255 250 250
137
-	GhostWhite		:   Raphael.getRGB("#F8F8FF	"),  // 	248 248 255
138
-	WhiteSmoke		:   Raphael.getRGB("#F5F5F5	"),  // 	245 245 245
139
-	Gainsboro		:   Raphael.getRGB("#DCDCDC	"),  // 	220 220 220
140
-	FloralWhite		:   Raphael.getRGB("#FFFAF0	"),  // 	255 250 240
141
-	OldLace			:   Raphael.getRGB("#FDF5E6	"),  // 	253 245 230
142
-	Linen			:   Raphael.getRGB("#FAF0E6	"),  // 	250 240 230
143
-	AntiqueWhite	:   Raphael.getRGB("#FAEBD7	"),  // 	250 235 215
144
-	PapayaWhip		:   Raphael.getRGB("#FFEFD5	"),  // 	255 239 213
145
-	BlanchedAlmond	:   Raphael.getRGB("#FFEBCD	"),  // 	255 235 205
146
-	Bisque			:   Raphael.getRGB("#FFE4C4	"),  // 	255 228 196
147
-	PeachPuff		:   Raphael.getRGB("#FFDAB9	"),  // 	255 218 185
148
-	NavajoWhite		:   Raphael.getRGB("#FFDEAD	"),  // 	255 222 173
149
-	Moccasin		:   Raphael.getRGB("#FFE4B5	"),  // 	255 228 181
150
-	Cornsilk		:   Raphael.getRGB("#FFF8DC	"),  // 	255 248 220
151
-	Ivory			:   Raphael.getRGB("#FFFFF0	"),  // 	255 255 240
152
-	LemonChiffon	:   Raphael.getRGB("#FFFACD	"),  // 	255 250 205
153
-	Seashell		:   Raphael.getRGB("#FFF5EE	"),  // 	255 245 238
154
-	Honeydew		:   Raphael.getRGB("#F0FFF0	"),  // 	240 255 240
155
-	MintCream		:   Raphael.getRGB("#F5FFFA	"),  // 	245 255 250
156
-	Azure			:   Raphael.getRGB("#F0FFFF	"),  // 	240 255 255
157
-	AliceBlue		:   Raphael.getRGB("#F0F8FF	"),  // 	240 248 255
158
-	lavender		:   Raphael.getRGB("#E6E6FA	"),  // 	230 230 250
159
-	LavenderBlush	:   Raphael.getRGB("#FFF0F5	"),  // 	255 240 245
160
-	MistyRose		:   Raphael.getRGB("#FFE4E1	"),  // 	255 228 225
161
-	White			:   Raphael.getRGB("#FFFFFF	"),  // 	255 255 255
162
-	Black			:   Raphael.getRGB("#000000	"),  // 	0 0 0
163
-	DarkSlateGray	:   Raphael.getRGB("#2F4F4F	"),  // 	47 79 79
164
-	DimGrey			:   Raphael.getRGB("#696969	"),  // 	105 105 105
165
-	SlateGrey		:   Raphael.getRGB("#708090	"),  // 	112 128 144
166
-	LightSlateGray	:   Raphael.getRGB("#778899	"),  // 	119 136 153
167
-	Grey			:   Raphael.getRGB("#BEBEBE	"),  // 	190 190 190
168
-	LightGray		:   Raphael.getRGB("#D3D3D3	"),  // 	211 211 211
169
-	MidnightBlue	:   Raphael.getRGB("#191970	"),  // 	25 25 112
170
-	NavyBlue		:   Raphael.getRGB("#000080	"),  // 	0 0 128
171
-	CornflowerBlue	:   Raphael.getRGB("#6495ED	"),  // 	100 149 237
172
-	DarkSlateBlue	:   Raphael.getRGB("#483D8B	"),  // 	72 61 139
173
-	SlateBlue		:   Raphael.getRGB("#6A5ACD	"),  // 	106 90 205
174
-	MediumSlateBlue	:   Raphael.getRGB("#7B68EE	"),  // 	123 104 238
175
-	LightSlateBlue	:   Raphael.getRGB("#8470FF	"),  // 	132 112 255
176
-	MediumBlue		:   Raphael.getRGB("#0000CD	"),  // 	0 0 205
177
-	RoyalBlue		:   Raphael.getRGB("#4169E1	"),  // 	65 105 225
178
-	Blue			:   Raphael.getRGB("#0000FF	"),  // 	0 0 255
179
-	DodgerBlue		:   Raphael.getRGB("#1E90FF	"),  // 	30 144 255
180
-	DeepSkyBlue		:   Raphael.getRGB("#00BFFF	"),  // 	0 191 255
181
-	SkyBlue			:   Raphael.getRGB("#87CEEB	"),  // 	135 206 235
182
-	LightSkyBlue	:   Raphael.getRGB("#87CEFA	"),  // 	135 206 250
183
-	SteelBlue		:   Raphael.getRGB("#4682B4	"),  // 	70 130 180
184
-	LightSteelBlue	:   Raphael.getRGB("#B0C4DE	"),  // 	176 196 222
185
-	LightBlue		:   Raphael.getRGB("#ADD8E6	"),  // 	173 216 230
186
-	PowderBlue		:   Raphael.getRGB("#B0E0E6	"),  // 	176 224 230
187
-	PaleTurquoise	:   Raphael.getRGB("#AFEEEE	"),  // 	175 238 238
188
-	DarkTurquoise	:   Raphael.getRGB("#00CED1	"),  // 	0 206 209
189
-	MediumTurquoise	:   Raphael.getRGB("#48D1CC	"),  // 	72 209 204
190
-	Turquoise		:   Raphael.getRGB("#40E0D0	"),  // 	64 224 208
191
-	Cyan			:   Raphael.getRGB("#00FFFF	"),  // 	0 255 255
192
-	LightCyan		:   Raphael.getRGB("#E0FFFF	"),  // 	224 255 255
193
-	CadetBlue		:   Raphael.getRGB("#5F9EA0	"),  // 	95 158 160
194
-	MediumAquamarine:   Raphael.getRGB("#66CDAA	"),  // 	102 205 170
195
-	Aquamarine		:   Raphael.getRGB("#7FFFD4	"),  // 	127 255 212
196
-	DarkGreen		:   Raphael.getRGB("#006400	"),  // 	0 100 0
197
-	DarkOliveGreen	:   Raphael.getRGB("#556B2F	"),  // 	85 107 47
198
-	DarkSeaGreen	:   Raphael.getRGB("#8FBC8F	"),  // 	143 188 143
199
-	SeaGreen		:   Raphael.getRGB("#2E8B57	"),  // 	46 139 87
200
-	MediumSeaGreen	:   Raphael.getRGB("#3CB371	"),  // 	60 179 113
201
-	LightSeaGreen	:   Raphael.getRGB("#20B2AA	"),  // 	32 178 170
202
-	PaleGreen		:   Raphael.getRGB("#98FB98	"),  // 	152 251 152
203
-	SpringGreen		:   Raphael.getRGB("#00FF7F	"),  // 	0 255 127
204
-	LawnGreen		:   Raphael.getRGB("#7CFC00	"),  // 	124 252 0
205
-	Green			:   Raphael.getRGB("#00FF00	"),  // 	0 255 0
206
-	Chartreuse		:   Raphael.getRGB("#7FFF00	"),  // 	127 255 0
207
-	MedSpringGreen	:   Raphael.getRGB("#00FA9A	"),  // 	0 250 154
208
-	GreenYellow		:   Raphael.getRGB("#ADFF2F	"),  // 	173 255 47
209
-	LimeGreen		:   Raphael.getRGB("#32CD32	"),  // 	50 205 50
210
-	YellowGreen		:   Raphael.getRGB("#9ACD32	"),  // 	154 205 50
211
-	ForestGreen		:   Raphael.getRGB("#228B22	"),  // 	34 139 34
212
-	OliveDrab		:   Raphael.getRGB("#6B8E23	"),  // 	107 142 35
213
-	DarkKhaki		:   Raphael.getRGB("#BDB76B	"),  // 	189 183 107
214
-	PaleGoldenrod	:   Raphael.getRGB("#EEE8AA	"),  // 	238 232 170
215
-	LtGoldenrodYello:   Raphael.getRGB("#FAFAD2	"),  // 	250 250 210
216
-	LightYellow		:   Raphael.getRGB("#FFFFE0	"),  // 	255 255 224
217
-	Yellow			:   Raphael.getRGB("#FFFF00	"),  // 	255 255 0
218
-	Gold			:   Raphael.getRGB("#FFD700	"),  // 	255 215 0
219
-	LightGoldenrod	:   Raphael.getRGB("#EEDD82	"),  // 	238 221 130
220
-	goldenrod		:   Raphael.getRGB("#DAA520	"),  // 	218 165 32
221
-	DarkGoldenrod	:   Raphael.getRGB("#B8860B	"),  // 	184 134 11
222
-	RosyBrown		:   Raphael.getRGB("#BC8F8F	"),  // 	188 143 143
223
-	IndianRed		:   Raphael.getRGB("#CD5C5C	"),  // 	205 92 92
224
-	SaddleBrown		:   Raphael.getRGB("#8B4513	"),  // 	139 69 19
225
-	Sienna			:   Raphael.getRGB("#A0522D	"),  // 	160 82 45
226
-	Peru			:   Raphael.getRGB("#CD853F	"),  // 	205 133 63
227
-	Burlywood		:   Raphael.getRGB("#DEB887	"),  // 	222 184 135
228
-	Beige			:   Raphael.getRGB("#F5F5DC	"),  // 	245 245 220
229
-	Wheat			:   Raphael.getRGB("#F5DEB3	"),  // 	245 222 179
230
-	SandyBrown		:   Raphael.getRGB("#F4A460	"),  // 	244 164 96
231
-	Tan				:   Raphael.getRGB("#D2B48C	"),  // 	210 180 140
232
-	Chocolate		:   Raphael.getRGB("#D2691E	"),  // 	210 105 30
233
-	Firebrick		:   Raphael.getRGB("#B22222	"),  // 	178 34 34
234
-	Brown			:   Raphael.getRGB("#A52A2A	"),  // 	165 42 42
235
-	DarkSalmon		:   Raphael.getRGB("#E9967A	"),  // 	233 150 122
236
-	Salmon			:   Raphael.getRGB("#FA8072	"),  // 	250 128 114
237
-	LightSalmon		:   Raphael.getRGB("#FFA07A	"),  // 	255 160 122
238
-	Orange			:   Raphael.getRGB("#FFA500	"),  // 	255 165 0
239
-	DarkOrange		:   Raphael.getRGB("#FF8C00	"),  // 	255 140 0
240
-	Coral			:   Raphael.getRGB("#FF7F50	"),  // 	255 127 80
241
-	LightCoral		:   Raphael.getRGB("#F08080	"),  // 	240 128 128
242
-	Tomato			:   Raphael.getRGB("#FF6347	"),  // 	255 99 71
243
-	OrangeRed		:   Raphael.getRGB("#FF4500	"),  // 	255 69 0
244
-	Red				:   Raphael.getRGB("#FF0000	"),  // 	255 0 0
245
-	HotPink			:   Raphael.getRGB("#FF69B4	"),  // 	255 105 180
246
-	DeepPink		:   Raphael.getRGB("#FF1493	"),  // 	255 20 147
247
-	Pink			:   Raphael.getRGB("#FFC0CB	"),  // 	255 192 203
248
-	LightPink		:   Raphael.getRGB("#FFB6C1	"),  // 	255 182 193
249
-	PaleVioletRed	:   Raphael.getRGB("#DB7093	"),  // 	219 112 147
250
-	Maroon			:   Raphael.getRGB("#B03060	"),  // 	176 48 96
251
-	MediumVioletRed	:   Raphael.getRGB("#C71585	"),  // 	199 21 133
252
-	VioletRed		:   Raphael.getRGB("#D02090	"),  // 	208 32 144
253
-	Magenta			:   Raphael.getRGB("#FF00FF	"),  // 	255 0 255
254
-	Violet			:   Raphael.getRGB("#EE82EE	"),  // 	238 130 238
255
-	Plum			:   Raphael.getRGB("#DDA0DD	"),  // 	221 160 221
256
-	Orchid			:   Raphael.getRGB("#DA70D6	"),  // 	218 112 214
257
-	MediumOrchid	:   Raphael.getRGB("#BA55D3	"),  // 	186 85 211
258
-	DarkOrchid		:   Raphael.getRGB("#9932CC	"),  // 	153 50 204
259
-	DarkViolet		:   Raphael.getRGB("#9400D3	"),  // 	148 0 211
260
-	BlueViolet		:   Raphael.getRGB("#8A2BE2	"),  // 	138 43 226
261
-	Purple			:   Raphael.getRGB("#A020F0	"),  // 	160 32 240
262
-	MediumPurple	:   Raphael.getRGB("#9370DB	"),  // 	147 112 219
263
-	Thistle			:   Raphael.getRGB("#D8BFD8	"),  // 	216 191 216
264
-	Snow1			:   Raphael.getRGB("#FFFAFA	"),  // 	255 250 250
265
-	Snow2			:   Raphael.getRGB("#EEE9E9	"),  // 	238 233 233
266
-	Snow3			:   Raphael.getRGB("#CDC9C9	"),  // 	205 201 201
267
-	Snow4			:   Raphael.getRGB("#8B8989	"),  // 	139 137 137
268
-	Seashell1		:   Raphael.getRGB("#FFF5EE	"),  // 	255 245 238
269
-	Seashell2		:   Raphael.getRGB("#EEE5DE	"),  // 	238 229 222
270
-	Seashell3		:   Raphael.getRGB("#CDC5BF	"),  // 	205 197 191
271
-	Seashell4		:   Raphael.getRGB("#8B8682	"),  // 	139 134 130
272
-	AntiqueWhite1	:   Raphael.getRGB("#FFEFDB	"),  // 	255 239 219
273
-	AntiqueWhite2	:   Raphael.getRGB("#EEDFCC	"),  // 	238 223 204
274
-	AntiqueWhite3	:   Raphael.getRGB("#CDC0B0	"),  // 	205 192 176
275
-	AntiqueWhite4	:   Raphael.getRGB("#8B8378	"),  // 	139 131 120
276
-	Bisque1			:   Raphael.getRGB("#FFE4C4	"),  // 	255 228 196
277
-	Bisque2			:   Raphael.getRGB("#EED5B7	"),  // 	238 213 183
278
-	Bisque3			:   Raphael.getRGB("#CDB79E	"),  // 	205 183 158
279
-	Bisque4			:   Raphael.getRGB("#8B7D6B	"),  // 	139 125 107
280
-	PeachPuff1		:   Raphael.getRGB("#FFDAB9	"),  // 	255 218 185
281
-	PeachPuff2		:   Raphael.getRGB("#EECBAD	"),  // 	238 203 173
282
-	PeachPuff3		:   Raphael.getRGB("#CDAF95	"),  // 	205 175 149
283
-	PeachPuff4		:   Raphael.getRGB("#8B7765	"),  // 	139 119 101
284
-	NavajoWhite1	:   Raphael.getRGB("#FFDEAD	"),  // 	255 222 173
285
-	NavajoWhite2	:   Raphael.getRGB("#EECFA1	"),  // 	238 207 161
286
-	NavajoWhite3	:   Raphael.getRGB("#CDB38B	"),  // 	205 179 139
287
-	NavajoWhite4	:   Raphael.getRGB("#8B795E	"),  // 	139 121 94
288
-	LemonChiffon1	:   Raphael.getRGB("#FFFACD	"),  // 	255 250 205
289
-	LemonChiffon2	:   Raphael.getRGB("#EEE9BF	"),  // 	238 233 191
290
-	LemonChiffon3	:   Raphael.getRGB("#CDC9A5	"),  // 	205 201 165
291
-	LemonChiffon4	:   Raphael.getRGB("#8B8970	"),  // 	139 137 112
292
-	Cornsilk1		:   Raphael.getRGB("#FFF8DC	"),  // 	255 248 220
293
-	Cornsilk2		:   Raphael.getRGB("#EEE8CD	"),  // 	238 232 205
294
-	Cornsilk3		:   Raphael.getRGB("#CDC8B1	"),  // 	205 200 177
295
-	Cornsilk4		:   Raphael.getRGB("#8B8878	"),  // 	139 136 120
296
-	Ivory1			:   Raphael.getRGB("#FFFFF0	"),  // 	255 255 240
297
-	Ivory2			:   Raphael.getRGB("#EEEEE0	"),  // 	238 238 224
298
-	Ivory3			:   Raphael.getRGB("#CDCDC1	"),  // 	205 205 193
299
-	Ivory4			:   Raphael.getRGB("#8B8B83	"),  // 	139 139 131
300
-	Honeydew1		:   Raphael.getRGB("#F0FFF0	"),  // 	240 255 240
301
-	Honeydew2		:   Raphael.getRGB("#E0EEE0	"),  // 	224 238 224
302
-	Honeydew3		:   Raphael.getRGB("#C1CDC1	"),  // 	193 205 193
303
-	Honeydew4		:   Raphael.getRGB("#838B83	"),  // 	131 139 131
304
-	LavenderBlush1	:   Raphael.getRGB("#FFF0F5	"),  // 	255 240 245
305
-	LavenderBlush2	:   Raphael.getRGB("#EEE0E5	"),  // 	238 224 229
306
-	LavenderBlush3	:   Raphael.getRGB("#CDC1C5	"),  // 	205 193 197
307
-	LavenderBlush4	:   Raphael.getRGB("#8B8386	"),  // 	139 131 134
308
-	MistyRose1		:   Raphael.getRGB("#FFE4E1	"),  // 	255 228 225
309
-	MistyRose2		:   Raphael.getRGB("#EED5D2	"),  // 	238 213 210
310
-	MistyRose3		:   Raphael.getRGB("#CDB7B5	"),  // 	205 183 181
311
-	MistyRose4		:   Raphael.getRGB("#8B7D7B	"),  // 	139 125 123
312
-	Azure1			:   Raphael.getRGB("#F0FFFF	"),  // 	240 255 255
313
-	Azure2			:   Raphael.getRGB("#E0EEEE	"),  // 	224 238 238
314
-	Azure3			:   Raphael.getRGB("#C1CDCD	"),  // 	193 205 205
315
-	Azure4			:   Raphael.getRGB("#838B8B	"),  // 	131 139 139
316
-	SlateBlue1		:   Raphael.getRGB("#836FFF	"),  // 	131 111 255
317
-	SlateBlue2		:   Raphael.getRGB("#7A67EE	"),  // 	122 103 238
318
-	SlateBlue3		:   Raphael.getRGB("#6959CD	"),  // 	105 89 205
319
-	SlateBlue4		:   Raphael.getRGB("#473C8B	"),  // 	71 60 139
320
-	RoyalBlue1		:   Raphael.getRGB("#4876FF	"),  // 	72 118 255
321
-	RoyalBlue2		:   Raphael.getRGB("#436EEE	"),  // 	67 110 238
322
-	RoyalBlue3		:   Raphael.getRGB("#3A5FCD	"),  // 	58 95 205
323
-	RoyalBlue4		:   Raphael.getRGB("#27408B	"),  // 	39 64 139
324
-	Blue1			:   Raphael.getRGB("#0000FF	"),  // 	0 0 255
325
-	Blue2			:   Raphael.getRGB("#0000EE	"),  // 	0 0 238
326
-	Blue3			:   Raphael.getRGB("#0000CD	"),  // 	0 0 205
327
-	Blue4			:   Raphael.getRGB("#00008B	"),  // 	0 0 139
328
-	DodgerBlue1		:   Raphael.getRGB("#1E90FF	"),  // 	30 144 255
329
-	DodgerBlue2		:   Raphael.getRGB("#1C86EE	"),  // 	28 134 238
330
-	DodgerBlue3		:   Raphael.getRGB("#1874CD	"),  // 	24 116 205
331
-	DodgerBlue4		:   Raphael.getRGB("#104E8B	"),  // 	16 78 139
332
-	SteelBlue1		:   Raphael.getRGB("#63B8FF	"),  // 	99 184 255
333
-	SteelBlue2		:   Raphael.getRGB("#5CACEE	"),  // 	92 172 238
334
-	SteelBlue3		:   Raphael.getRGB("#4F94CD	"),  // 	79 148 205
335
-	SteelBlue4		:   Raphael.getRGB("#36648B	"),  // 	54 100 139
336
-	DeepSkyBlue1	:   Raphael.getRGB("#00BFFF	"),  // 	0 191 255
337
-	DeepSkyBlue2	:   Raphael.getRGB("#00B2EE	"),  // 	0 178 238
338
-	DeepSkyBlue3	:   Raphael.getRGB("#009ACD	"),  // 	0 154 205
339
-	DeepSkyBlue4	:   Raphael.getRGB("#00688B	"),  // 	0 104 139
340
-	SkyBlue1		:   Raphael.getRGB("#87CEFF	"),  // 	135 206 255
341
-	SkyBlue2		:   Raphael.getRGB("#7EC0EE	"),  // 	126 192 238
342
-	SkyBlue3		:   Raphael.getRGB("#6CA6CD	"),  // 	108 166 205
343
-	SkyBlue4		:   Raphael.getRGB("#4A708B	"),  // 	74 112 139
344
-	LightSkyBlue1	:   Raphael.getRGB("#B0E2FF	"),  // 	176 226 255
345
-	LightSkyBlue2	:   Raphael.getRGB("#A4D3EE	"),  // 	164 211 238
346
-	LightSkyBlue3	:   Raphael.getRGB("#8DB6CD	"),  // 	141 182 205
347
-	LightSkyBlue4	:   Raphael.getRGB("#607B8B	"),  // 	96 123 139
348
-	SlateGray1		:   Raphael.getRGB("#C6E2FF	"),  // 	198 226 255
349
-	SlateGray2		:   Raphael.getRGB("#B9D3EE	"),  // 	185 211 238
350
-	SlateGray3		:   Raphael.getRGB("#9FB6CD	"),  // 	159 182 205
351
-	SlateGray4		:   Raphael.getRGB("#6C7B8B	"),  // 	108 123 139
352
-	LightSteelBlue1	:   Raphael.getRGB("#CAE1FF	"),  // 	202 225 255
353
-	LightSteelBlue2	:   Raphael.getRGB("#BCD2EE	"),  // 	188 210 238
354
-	LightSteelBlue3	:   Raphael.getRGB("#A2B5CD	"),  // 	162 181 205
355
-	LightSteelBlue4	:   Raphael.getRGB("#6E7B8B	"),  // 	110 123 139
356
-	LightBlue1		:   Raphael.getRGB("#BFEFFF	"),  // 	191 239 255
357
-	LightBlue2		:   Raphael.getRGB("#B2DFEE	"),  // 	178 223 238
358
-	LightBlue3		:   Raphael.getRGB("#9AC0CD	"),  // 	154 192 205
359
-	LightBlue4		:   Raphael.getRGB("#68838B	"),  // 	104 131 139
360
-	LightCyan1		:   Raphael.getRGB("#E0FFFF	"),  // 	224 255 255
361
-	LightCyan2		:   Raphael.getRGB("#D1EEEE	"),  // 	209 238 238
362
-	LightCyan3		:   Raphael.getRGB("#B4CDCD	"),  // 	180 205 205
363
-	LightCyan4		:   Raphael.getRGB("#7A8B8B	"),  // 	122 139 139
364
-	PaleTurquoise1	:   Raphael.getRGB("#BBFFFF	"),  // 	187 255 255
365
-	PaleTurquoise2	:   Raphael.getRGB("#AEEEEE	"),  // 	174 238 238
366
-	PaleTurquoise3	:   Raphael.getRGB("#96CDCD	"),  // 	150 205 205
367
-	PaleTurquoise4	:   Raphael.getRGB("#668B8B	"),  // 	102 139 139
368
-	CadetBlue1		:   Raphael.getRGB("#98F5FF	"),  // 	152 245 255
369
-	CadetBlue2		:   Raphael.getRGB("#8EE5EE	"),  // 	142 229 238
370
-	CadetBlue3		:   Raphael.getRGB("#7AC5CD	"),  // 	122 197 205
371
-	CadetBlue4		:   Raphael.getRGB("#53868B	"),  // 	83 134 139
372
-	Turquoise1		:   Raphael.getRGB("#00F5FF	"),  // 	0 245 255
373
-	Turquoise2		:   Raphael.getRGB("#00E5EE	"),  // 	0 229 238
374
-	Turquoise3		:   Raphael.getRGB("#00C5CD	"),  // 	0 197 205
375
-	Turquoise4		:   Raphael.getRGB("#00868B	"),  // 	0 134 139
376
-	Cyan1			:   Raphael.getRGB("#00FFFF	"),  // 	0 255 255
377
-	Cyan2			:   Raphael.getRGB("#00EEEE	"),  // 	0 238 238
378
-	Cyan3			:   Raphael.getRGB("#00CDCD	"),  // 	0 205 205
379
-	Cyan4			:   Raphael.getRGB("#008B8B	"),  // 	0 139 139
380
-	DarkSlateGray1	:   Raphael.getRGB("#97FFFF	"),  // 	151 255 255
381
-	DarkSlateGray2	:   Raphael.getRGB("#8DEEEE	"),  // 	141 238 238
382
-	DarkSlateGray3	:   Raphael.getRGB("#79CDCD	"),  // 	121 205 205
383
-	DarkSlateGray4	:   Raphael.getRGB("#528B8B	"),  // 	82 139 139
384
-	Aquamarine1		:   Raphael.getRGB("#7FFFD4	"),  // 	127 255 212
385
-	Aquamarine2		:   Raphael.getRGB("#76EEC6	"),  // 	118 238 198
386
-	Aquamarine3		:   Raphael.getRGB("#66CDAA	"),  // 	102 205 170
387
-	Aquamarine4		:   Raphael.getRGB("#458B74	"),  // 	69 139 116
388
-	DarkSeaGreen1	:   Raphael.getRGB("#C1FFC1	"),  // 	193 255 193
389
-	DarkSeaGreen2	:   Raphael.getRGB("#B4EEB4	"),  // 	180 238 180
390
-	DarkSeaGreen3	:   Raphael.getRGB("#9BCD9B	"),  // 	155 205 155
391
-	DarkSeaGreen4	:   Raphael.getRGB("#698B69	"),  // 	105 139 105
392
-	SeaGreen1		:   Raphael.getRGB("#54FF9F	"),  // 	84 255 159
393
-	SeaGreen2		:   Raphael.getRGB("#4EEE94	"),  // 	78 238 148
394
-	SeaGreen3		:   Raphael.getRGB("#43CD80	"),  // 	67 205 128
395
-	SeaGreen4		:   Raphael.getRGB("#2E8B57	"),  // 	46 139 87
396
-	PaleGreen1		:   Raphael.getRGB("#9AFF9A	"),  // 	154 255 154
397
-	PaleGreen2		:   Raphael.getRGB("#90EE90	"),  // 	144 238 144
398
-	PaleGreen3		:   Raphael.getRGB("#7CCD7C	"),  // 	124 205 124
399
-	PaleGreen4		:   Raphael.getRGB("#548B54	"),  // 	84 139 84
400
-	SpringGreen1	:   Raphael.getRGB("#00FF7F	"),  // 	0 255 127
401
-	SpringGreen2	:   Raphael.getRGB("#00EE76	"),  // 	0 238 118
402
-	SpringGreen3	:   Raphael.getRGB("#00CD66	"),  // 	0 205 102
403
-	SpringGreen4	:   Raphael.getRGB("#008B45	"),  // 	0 139 69
404
-	Green1			:   Raphael.getRGB("#00FF00	"),  // 	0 255 0
405
-	Green2			:   Raphael.getRGB("#00EE00	"),  // 	0 238 0
406
-	Green3			:   Raphael.getRGB("#00CD00	"),  // 	0 205 0
407
-	Green4			:   Raphael.getRGB("#008B00	"),  // 	0 139 0
408
-	Chartreuse1		:   Raphael.getRGB("#7FFF00	"),  // 	127 255 0
409
-	Chartreuse2		:   Raphael.getRGB("#76EE00	"),  // 	118 238 0
410
-	Chartreuse3		:   Raphael.getRGB("#66CD00	"),  // 	102 205 0
411
-	Chartreuse4		:   Raphael.getRGB("#458B00	"),  // 	69 139 0
412
-	OliveDrab1		:   Raphael.getRGB("#C0FF3E	"),  // 	192 255 62
413
-	OliveDrab2		:   Raphael.getRGB("#B3EE3A	"),  // 	179 238 58
414
-	OliveDrab3		:   Raphael.getRGB("#9ACD32	"),  // 	154 205 50
415
-	OliveDrab4		:   Raphael.getRGB("#698B22	"),  // 	105 139 34
416
-	DarkOliveGreen1	:   Raphael.getRGB("#CAFF70	"),  // 	202 255 112
417
-	DarkOliveGreen2	:   Raphael.getRGB("#BCEE68	"),  // 	188 238 104
418
-	DarkOliveGreen3	:   Raphael.getRGB("#A2CD5A	"),  // 	162 205 90
419
-	DarkOliveGreen4	:   Raphael.getRGB("#6E8B3D	"),  // 	110 139 61
420
-	Khaki1			:   Raphael.getRGB("#FFF68F	"),  // 	255 246 143
421
-	Khaki2			:   Raphael.getRGB("#EEE685	"),  // 	238 230 133
422
-	Khaki3			:   Raphael.getRGB("#CDC673	"),  // 	205 198 115
423
-	Khaki4			:   Raphael.getRGB("#8B864E	"),  // 	139 134 78
424
-	LightGoldenrod1	:   Raphael.getRGB("#FFEC8B	"),  // 	255 236 139
425
-	LightGoldenrod2	:   Raphael.getRGB("#EEDC82	"),  // 	238 220 130
426
-	LightGoldenrod3	:   Raphael.getRGB("#CDBE70	"),  // 	205 190 112
427
-	LightGoldenrod4	:   Raphael.getRGB("#8B814C	"),  // 	139 129 76
428
-	LightYellow1	:   Raphael.getRGB("#FFFFE0	"),  // 	255 255 224
429
-	LightYellow2	:   Raphael.getRGB("#EEEED1	"),  // 	238 238 209
430
-	LightYellow3	:   Raphael.getRGB("#CDCDB4	"),  // 	205 205 180
431
-	LightYellow4	:   Raphael.getRGB("#8B8B7A	"),  // 	139 139 122
432
-	Yellow1			:   Raphael.getRGB("#FFFF00	"),  // 	255 255 0
433
-	Yellow2			:   Raphael.getRGB("#EEEE00	"),  // 	238 238 0
434
-	Yellow3			:   Raphael.getRGB("#CDCD00	"),  // 	205 205 0
435
-	Yellow4			:   Raphael.getRGB("#8B8B00	"),  // 	139 139 0
436
-	Gold1			:   Raphael.getRGB("#FFD700	"),  // 	255 215 0
437
-	Gold2			:   Raphael.getRGB("#EEC900	"),  // 	238 201 0
438
-	Gold3			:   Raphael.getRGB("#CDAD00	"),  // 	205 173 0
439
-	Gold4			:   Raphael.getRGB("#8B7500	"),  // 	139 117 0
440
-	Goldenrod1		:   Raphael.getRGB("#FFC125	"),  // 	255 193 37
441
-	Goldenrod2		:   Raphael.getRGB("#EEB422	"),  // 	238 180 34
442
-	Goldenrod3		:   Raphael.getRGB("#CD9B1D	"),  // 	205 155 29
443
-	Goldenrod4		:   Raphael.getRGB("#8B6914	"),  // 	139 105 20
444
-	DarkGoldenrod1	:   Raphael.getRGB("#FFB90F	"),  // 	255 185 15
445
-	DarkGoldenrod2	:   Raphael.getRGB("#EEAD0E	"),  // 	238 173 14
446
-	DarkGoldenrod3	:   Raphael.getRGB("#CD950C	"),  // 	205 149 12
447
-	DarkGoldenrod4	:   Raphael.getRGB("#8B658B	"),  // 	139 101 8
448
-	RosyBrown1		:   Raphael.getRGB("#FFC1C1	"),  // 	255 193 193
449
-	RosyBrown2		:   Raphael.getRGB("#EEB4B4	"),  // 	238 180 180
450
-	RosyBrown3		:   Raphael.getRGB("#CD9B9B	"),  // 	205 155 155
451
-	RosyBrown4		:   Raphael.getRGB("#8B6969	"),  // 	139 105 105
452
-	IndianRed1		:   Raphael.getRGB("#FF6A6A	"),  // 	255 106 106
453
-	IndianRed2		:   Raphael.getRGB("#EE6363	"),  // 	238 99 99
454
-	IndianRed3		:   Raphael.getRGB("#CD5555	"),  // 	205 85 85
455
-	IndianRed4		:   Raphael.getRGB("#8B3A3A	"),  // 	139 58 58
456
-	Sienna1			:   Raphael.getRGB("#FF8247	"),  // 	255 130 71
457
-	Sienna2			:   Raphael.getRGB("#EE7942	"),  // 	238 121 66
458
-	Sienna3			:   Raphael.getRGB("#CD6839	"),  // 	205 104 57
459
-	Sienna4			:   Raphael.getRGB("#8B4726	"),  // 	139 71 38
460
-	Burlywood1		:   Raphael.getRGB("#FFD39B	"),  // 	255 211 155
461
-	Burlywood2		:   Raphael.getRGB("#EEC591	"),  // 	238 197 145
462
-	Burlywood3		:   Raphael.getRGB("#CDAA7D	"),  // 	205 170 125
463
-	Burlywood4		:   Raphael.getRGB("#8B7355	"),  // 	139 115 85
464
-	Wheat1			:   Raphael.getRGB("#FFE7BA	"),  // 	255 231 186
465
-	Wheat2			:   Raphael.getRGB("#EED8AE	"),  // 	238 216 174
466
-	Wheat3			:   Raphael.getRGB("#CDBA96	"),  // 	205 186 150
467
-	Wheat4			:   Raphael.getRGB("#8B7E66	"),  // 	139 126 102
468
-	Tan1			:   Raphael.getRGB("#FFA54F	"),  // 	255 165 79
469
-	Tan2			:   Raphael.getRGB("#EE9A49	"),  // 	238 154 73
470
-	Tan3			:   Raphael.getRGB("#CD853F	"),  // 	205 133 63
471
-	Tan4			:   Raphael.getRGB("#8B5A2B	"),  // 	139 90 43
472
-	Chocolate1		:   Raphael.getRGB("#FF7F24	"),  // 	255 127 36
473
-	Chocolate2		:   Raphael.getRGB("#EE7621	"),  // 	238 118 33
474
-	Chocolate3		:   Raphael.getRGB("#CD661D	"),  // 	205 102 29
475
-	Chocolate4		:   Raphael.getRGB("#8B4513	"),  // 	139 69 19
476
-	Firebrick1		:   Raphael.getRGB("#FF3030	"),  // 	255 48 48
477
-	Firebrick2		:   Raphael.getRGB("#EE2C2C	"),  // 	238 44 44
478
-	Firebrick3		:   Raphael.getRGB("#CD2626	"),  // 	205 38 38
479
-	Firebrick4		:   Raphael.getRGB("#8B1A1A	"),  // 	139 26 26
480
-	Brown1			:   Raphael.getRGB("#FF4040	"),  // 	255 64 64
481
-	Brown2			:   Raphael.getRGB("#EE3B3B	"),  // 	238 59 59
482
-	Brown3			:   Raphael.getRGB("#CD3333	"),  // 	205 51 51
483
-	Brown4			:   Raphael.getRGB("#8B2323	"),  // 	139 35 35
484
-	Salmon1			:   Raphael.getRGB("#FF8C69	"),  // 	255 140 105
485
-	Salmon2			:   Raphael.getRGB("#EE8262	"),  // 	238 130 98
486
-	Salmon3			:   Raphael.getRGB("#CD7054	"),  // 	205 112 84
487
-	Salmon4			:   Raphael.getRGB("#8B4C39	"),  // 	139 76 57
488
-	LightSalmon1	:   Raphael.getRGB("#FFA07A	"),  // 	255 160 122
489
-	LightSalmon2	:   Raphael.getRGB("#EE9572	"),  // 	238 149 114
490
-	LightSalmon3	:   Raphael.getRGB("#CD8162	"),  // 	205 129 98
491
-	LightSalmon4	:   Raphael.getRGB("#8B5742	"),  // 	139 87 66
492
-	Orange1			:   Raphael.getRGB("#FFA500	"),  // 	255 165 0
493
-	Orange2			:   Raphael.getRGB("#EE9A00	"),  // 	238 154 0
494
-	Orange3			:   Raphael.getRGB("#CD8500	"),  // 	205 133 0
495
-	Orange4			:   Raphael.getRGB("#8B5A00	"),  // 	139 90 0
496
-	DarkOrange1		:   Raphael.getRGB("#FF7F00	"),  // 	255 127 0
497
-	DarkOrange2		:   Raphael.getRGB("#EE7600	"),  // 	238 118 0
498
-	DarkOrange3		:   Raphael.getRGB("#CD6600	"),  // 	205 102 0
499
-	DarkOrange4		:   Raphael.getRGB("#8B4500	"),  // 	139 69 0
500
-	Coral1			:   Raphael.getRGB("#FF7256	"),  // 	255 114 86
501
-	Coral2			:   Raphael.getRGB("#EE6A50	"),  // 	238 106 80
502
-	Coral3			:   Raphael.getRGB("#CD5B45	"),  // 	205 91 69
503
-	Coral4			:   Raphael.getRGB("#8B3E2F	"),  // 	139 62 47
504
-	Tomato1			:   Raphael.getRGB("#FF6347	"),  // 	255 99 71
505
-	Tomato2			:   Raphael.getRGB("#EE5C42	"),  // 	238 92 66
506
-	Tomato3			:   Raphael.getRGB("#CD4F39	"),  // 	205 79 57
507
-	Tomato4			:   Raphael.getRGB("#8B3626	"),  // 	139 54 38
508
-	OrangeRed1		:   Raphael.getRGB("#FF4500	"),  // 	255 69 0
509
-	OrangeRed2		:   Raphael.getRGB("#EE4000	"),  // 	238 64 0
510
-	OrangeRed3		:   Raphael.getRGB("#CD3700	"),  // 	205 55 0
511
-	OrangeRed4		:   Raphael.getRGB("#8B2500	"),  // 	139 37 0
512
-	Red1			:   Raphael.getRGB("#FF0000	"),  // 	255 0 0
513
-	Red2			:   Raphael.getRGB("#EE0000	"),  // 	238 0 0
514
-	Red3			:   Raphael.getRGB("#CD0000	"),  // 	205 0 0
515
-	Red4			:   Raphael.getRGB("#8B0000	"),  // 	139 0 0
516
-	DeepPink1		:   Raphael.getRGB("#FF1493	"),  // 	255 20 147
517
-	DeepPink2		:   Raphael.getRGB("#EE1289	"),  // 	238 18 137
518
-	DeepPink3		:   Raphael.getRGB("#CD1076	"),  // 	205 16 118
519
-	DeepPink4		:   Raphael.getRGB("#8B0A50	"),  // 	139 10 80
520
-	HotPink1		:   Raphael.getRGB("#FF6EB4	"),  // 	255 110 180
521
-	HotPink2		:   Raphael.getRGB("#EE6AA7	"),  // 	238 106 167
522
-	HotPink3		:   Raphael.getRGB("#CD6090	"),  // 	205 96 144
523
-	HotPink4		:   Raphael.getRGB("#8B3A62	"),  // 	139 58 98
524
-	Pink1			:   Raphael.getRGB("#FFB5C5	"),  // 	255 181 197
525
-	Pink2			:   Raphael.getRGB("#EEA9B8	"),  // 	238 169 184
526
-	Pink3			:   Raphael.getRGB("#CD919E	"),  // 	205 145 158
527
-	Pink4			:   Raphael.getRGB("#8B636C	"),  // 	139 99 108
528
-	LightPink1		:   Raphael.getRGB("#FFAEB9	"),  // 	255 174 185
529
-	LightPink2		:   Raphael.getRGB("#EEA2AD	"),  // 	238 162 173
530
-	LightPink3		:   Raphael.getRGB("#CD8C95	"),  // 	205 140 149
531
-	LightPink4		:   Raphael.getRGB("#8B5F65	"),  // 	139 95 101
532
-	PaleVioletRed1	:   Raphael.getRGB("#FF82AB	"),  // 	255 130 171
533
-	PaleVioletRed2	:   Raphael.getRGB("#EE799F	"),  // 	238 121 159
534
-	PaleVioletRed3	:   Raphael.getRGB("#CD6889	"),  // 	205 104 137
535
-	PaleVioletRed4	:   Raphael.getRGB("#8B475D	"),  // 	139 71 93
536
-	Maroon1			:   Raphael.getRGB("#FF34B3	"),  // 	255 52 179
537
-	Maroon2			:   Raphael.getRGB("#EE30A7	"),  // 	238 48 167
538
-	Maroon3			:   Raphael.getRGB("#CD2990	"),  // 	205 41 144
539
-	Maroon4			:   Raphael.getRGB("#8B1C62	"),  // 	139 28 98
540
-	VioletRed1		:   Raphael.getRGB("#FF3E96	"),  // 	255 62 150
541
-	VioletRed2		:   Raphael.getRGB("#EE3A8C	"),  // 	238 58 140
542
-	VioletRed3		:   Raphael.getRGB("#CD3278	"),  // 	205 50 120
543
-	VioletRed4		:   Raphael.getRGB("#8B2252	"),  // 	139 34 82
544
-	Magenta1		:   Raphael.getRGB("#FF00FF	"),  // 	255 0 255
545
-	Magenta2		:   Raphael.getRGB("#EE00EE	"),  // 	238 0 238
546
-	Magenta3		:   Raphael.getRGB("#CD00CD	"),  // 	205 0 205
547
-	Magenta4		:   Raphael.getRGB("#8B008B	"),  // 	139 0 139
548
-	Orchid1			:   Raphael.getRGB("#FF83FA	"),  // 	255 131 250
549
-	Orchid2			:   Raphael.getRGB("#EE7AE9	"),  // 	238 122 233
550
-	Orchid3			:   Raphael.getRGB("#CD69C9	"),  // 	205 105 201
551
-	Orchid4			:   Raphael.getRGB("#8B4789	"),  // 	139 71 137
552
-	Plum1			:   Raphael.getRGB("#FFBBFF	"),  // 	255 187 255
553
-	Plum2			:   Raphael.getRGB("#EEAEEE	"),  // 	238 174 238
554
-	Plum3			:   Raphael.getRGB("#CD96CD	"),  // 	205 150 205
555
-	Plum4			:   Raphael.getRGB("#8B668B	"),  // 	139 102 139
556
-	MediumOrchid1	:   Raphael.getRGB("#E066FF	"),  // 	224 102 255
557
-	MediumOrchid2	:   Raphael.getRGB("#D15FEE	"),  // 	209 95 238
558
-	MediumOrchid3	:   Raphael.getRGB("#B452CD	"),  // 	180 82 205
559
-	MediumOrchid4	:   Raphael.getRGB("#7A378B	"),  // 	122 55 139
560
-	DarkOrchid1		:   Raphael.getRGB("#BF3EFF	"),  // 	191 62 255
561
-	DarkOrchid2		:   Raphael.getRGB("#B23AEE	"),  // 	178 58 238
562
-	DarkOrchid3		:   Raphael.getRGB("#9A32CD	"),  // 	154 50 205
563
-	DarkOrchid4		:   Raphael.getRGB("#68228B	"),  // 	104 34 139
564
-	Purple1			:   Raphael.getRGB("#9B30FF	"),  // 	155 48 255
565
-	Purple2			:   Raphael.getRGB("#912CEE	"),  // 	145 44 238
566
-	Purple3			:   Raphael.getRGB("#7D26CD	"),  // 	125 38 205
567
-	Purple4			:   Raphael.getRGB("#551A8B	"),  // 	85 26 139
568
-	MediumPurple1	:   Raphael.getRGB("#AB82FF	"),  // 	171 130 255
569
-	MediumPurple2	:   Raphael.getRGB("#9F79EE	"),  // 	159 121 238
570
-	MediumPurple3	:   Raphael.getRGB("#8968CD	"),  // 	137 104 205
571
-	MediumPurple4	:   Raphael.getRGB("#5D478B	"),  // 	93 71 139
572
-	Thistle1		:   Raphael.getRGB("#FFE1FF	"),  // 	255 225 255
573
-	Thistle2		:   Raphael.getRGB("#EED2EE	"),  // 	238 210 238
574
-	Thistle3		:   Raphael.getRGB("#CDB5CD	"),  // 	205 181 205
575
-	Thistle4		:   Raphael.getRGB("#8B7B8B	"),  // 	139 123 139
576
-	grey11			:   Raphael.getRGB("#1C1C1C	"),  // 	28 28 28
577
-	grey21			:   Raphael.getRGB("#363636	"),  // 	54 54 54
578
-	grey31			:   Raphael.getRGB("#4F4F4F	"),  // 	79 79 79
579
-	grey41			:   Raphael.getRGB("#696969	"),  // 	105 105 105
580
-	grey51			:   Raphael.getRGB("#828282	"),  // 	130 130 130
581
-	grey61			:   Raphael.getRGB("#9C9C9C	"),  // 	156 156 156
582
-	grey71			:   Raphael.getRGB("#B5B5B5	"),  // 	181 181 181
583
-	gray81			:   Raphael.getRGB("#CFCFCF	"),  // 	207 207 207
584
-	gray91			:   Raphael.getRGB("#E8E8E8	"),  // 	232 232 232
585
-	DarkGrey		:   Raphael.getRGB("#A9A9A9	"),  // 	169 169 169
586
-	DarkBlue		:   Raphael.getRGB("#00008B	"),  // 	0 0 139
587
-	DarkCyan		:   Raphael.getRGB("#008B8B	"),  // 	0 139 139
588
-	DarkMagenta		:   Raphael.getRGB("#8B008B	"),  // 	139 0 139
589
-	DarkRed			:   Raphael.getRGB("#8B0000	"),  // 	139 0 0
590
-	LightGreen		:   Raphael.getRGB("#90EE90	"),  // 	144 238 144
591
-
592
-  
593
-  
594
-  get: function(R, G, B){
595
-	return Raphael.getRGB("rgb(" + R + ", " + G + ", " + B + ")");
596
-  }
597
-};

+ 0 - 264
target/classes/static/act/diagram-viewer/js/LineBreakMeasurer.js

@@ -1,264 +0,0 @@
1
-		var AttributedStringIterator = function(text){
2
-				//this.text = this.rtrim(this.ltrim(text));
3
-				text = text.replace(/(\s)+/, " ");
4
-				this.text = this.rtrim(text);
5
-				/*
6
-				if (beginIndex < 0 || beginIndex > endIndex || endIndex > length()) {
7
-					throw new IllegalArgumentException("Invalid substring range");
8
-				}
9
-				*/
10
-				this.beginIndex = 0;
11
-				this.endIndex = this.text.length;
12
-				this.currentIndex = this.beginIndex;
13
-				
14
-				//console.group("[AttributedStringIterator]");
15
-				var i = 0;
16
-				var string = this.text;
17
-				var fullPos = 0;
18
-				
19
-				//console.log("string: \"" + string + "\", length: " + string.length);
20
-				this.startWordOffsets = [];
21
-				this.startWordOffsets.push(fullPos);
22
-				
23
-				// TODO: remove i 1000
24
-				while (i<1000) {
25
-					var pos = string.search(/[ \t\n\f-\.\,]/);
26
-					if (pos == -1)
27
-						break;
28
-					
29
-					// whitespace start
30
-					fullPos += pos;
31
-					string = string.substr(pos);
32
-					////console.log("fullPos: " + fullPos + ", pos: " + pos +  ", string: ", string);
33
-					
34
-					// remove whitespaces
35
-					var pos = string.search(/[^ \t\n\f-\.\,]/);
36
-					if (pos == -1)
37
-						break;
38
-						
39
-					// whitespace end
40
-					fullPos += pos;
41
-					string = string.substr(pos);
42
-					
43
-					////console.log("fullPos: " + fullPos);
44
-					this.startWordOffsets.push(fullPos);
45
-					
46
-					i++;
47
-				}
48
-				//console.log("startWordOffsets: ", this.startWordOffsets);
49
-				//console.groupEnd();
50
-			};
51
-			AttributedStringIterator.prototype = {
52
-				getEndIndex: function(pos){
53
-					if (typeof(pos) == "undefined")
54
-						return this.endIndex;
55
-						
56
-					var string = this.text.substr(pos, this.endIndex - pos);
57
-					
58
-					var posEndOfLine = string.search(/[\n]/);
59
-					if (posEndOfLine == -1)
60
-						return this.endIndex;
61
-					else
62
-						return pos + posEndOfLine;
63
-				},
64
-				getBeginIndex: function(){
65
-					return this.beginIndex;
66
-				},
67
-				isWhitespace: function(pos){
68
-					var str = this.text[pos];
69
-					var whitespaceChars = " \t\n\f";
70
-					
71
-					return (whitespaceChars.indexOf(str) != -1);
72
-				},
73
-				isNewLine: function(pos){
74
-					var str = this.text[pos];
75
-					var whitespaceChars = "\n";
76
-					
77
-					return (whitespaceChars.indexOf(str) != -1);
78
-				},
79
-				preceding: function(pos){
80
-					//console.group("[AttributedStringIterator.preceding]");
81
-					for(var i in this.startWordOffsets) {
82
-						var startWordOffset = this.startWordOffsets[i];
83
-						if (pos < startWordOffset && i>0) {
84
-							//console.log("startWordOffset: " + this.startWordOffsets[i-1]);
85
-							//console.groupEnd();
86
-							return this.startWordOffsets[i-1];
87
-						}
88
-					}
89
-					//console.log("pos: " + pos);
90
-					//console.groupEnd();
91
-					return this.startWordOffsets[i];
92
-				},
93
-				following: function(pos){
94
-					//console.group("[AttributedStringIterator.following]");
95
-					for(var i in this.startWordOffsets) {
96
-						var startWordOffset = this.startWordOffsets[i];
97
-						if (pos < startWordOffset && i>0) {
98
-							//console.log("startWordOffset: " + this.startWordOffsets[i]);
99
-							//console.groupEnd();
100
-							return this.startWordOffsets[i];
101
-						}
102
-					}
103
-					//console.log("pos: " + pos);
104
-					//console.groupEnd();
105
-					return this.startWordOffsets[i];
106
-				},
107
-				ltrim: function(str){
108
-					var patt2=/^\s+/g;
109
-					return str.replace(patt2, "");
110
-				}, 
111
-				rtrim: function(str){
112
-					var patt2=/\s+$/g;
113
-					return str.replace(patt2, "");
114
-				},
115
-				getLayout: function(start, limit){
116
-					return this.text.substr(start, limit - start);
117
-				},
118
-				getCharAtPos: function(pos) {
119
-					return this.text[pos];
120
-				}
121
-			};
122
-
123
-		var LineBreakMeasurer = function(paper, x, y, text, fontAttrs){
124
-				this.paper = paper;
125
-				this.text = new AttributedStringIterator(text);
126
-				this.fontAttrs = fontAttrs;
127
-				
128
-				if (this.text.getEndIndex() - this.text.getBeginIndex() < 1) {
129
-					throw {message: "Text must contain at least one character.", code: "IllegalArgumentException"};
130
-				}
131
-				
132
-				//this.measurer = new TextMeasurer(paper, this.text, this.fontAttrs);
133
-				this.limit = this.text.getEndIndex();
134
-				this.pos = this.start = this.text.getBeginIndex();
135
-				
136
-				this.rafaelTextObject = this.paper.text(x, y, this.text.text).attr(fontAttrs).attr("text-anchor", "start");
137
-				this.svgTextObject = this.rafaelTextObject[0];
138
-			};
139
-			LineBreakMeasurer.prototype = {
140
-				nextOffset: function(wrappingWidth, offsetLimit, requireNextWord) {
141
-					//console.group("[nextOffset]");
142
-					var nextOffset = this.pos;
143
-					if (this.pos < this.limit) {
144
-						if (offsetLimit <= this.pos) {
145
-							throw {message: "offsetLimit must be after current position", code: "IllegalArgumentException"};
146
-						}
147
-						
148
-						var charAtMaxAdvance = this.getLineBreakIndex(this.pos, wrappingWidth);
149
-						//charAtMaxAdvance --;
150
-						//console.log("charAtMaxAdvance:", charAtMaxAdvance, ", [" + this.text.getCharAtPos(charAtMaxAdvance) + "]");
151
-						
152
-						if (charAtMaxAdvance == this.limit) {
153
-							nextOffset = this.limit;
154
-							//console.log("charAtMaxAdvance == this.limit");
155
-						} else if (this.text.isNewLine(charAtMaxAdvance)) {
156
-							//console.log("isNewLine");
157
-							nextOffset = charAtMaxAdvance+1;
158
-						} else if (this.text.isWhitespace(charAtMaxAdvance)) {
159
-							// TODO: find next noSpaceChar
160
-							//return nextOffset;
161
-							nextOffset = this.text.following(charAtMaxAdvance);
162
-						} else {
163
-							// Break is in a word;  back up to previous break.
164
-							/*
165
-							var testPos = charAtMaxAdvance + 1;
166
-							if (testPos == this.limit) {
167
-								console.error("hbz...");
168
-							} else {
169
-								nextOffset = this.text.preceding(charAtMaxAdvance);
170
-							}
171
-							*/
172
-							nextOffset = this.text.preceding(charAtMaxAdvance);
173
-							
174
-							if (nextOffset <= this.pos) {
175
-								nextOffset = Math.max(this.pos+1, charAtMaxAdvance);
176
-							}
177
-						}
178
-					}
179
-					if (nextOffset > offsetLimit) {
180
-						nextOffset = offsetLimit;
181
-					}
182
-					//console.log("nextOffset: " + nextOffset);
183
-					//console.groupEnd();
184
-					return nextOffset;
185
-				},
186
-				nextLayout: function(wrappingWidth) {
187
-					//console.groupCollapsed("[nextLayout]");
188
-					if (this.pos < this.limit) {
189
-						var requireNextWord = false;
190
-						var layoutLimit = this.nextOffset(wrappingWidth, this.limit, requireNextWord);
191
-						//console.log("layoutLimit:", layoutLimit);
192
-						if (layoutLimit == this.pos) {
193
-							//console.groupEnd();
194
-							return null;
195
-						}
196
-						var result = this.text.getLayout(this.pos, layoutLimit);
197
-						//console.log("layout: \"" + result + "\"");
198
-						
199
-						// remove end of line
200
-						
201
-						//var posEndOfLine = this.text.getEndIndex(this.pos);
202
-						//if (posEndOfLine < result.length)
203
-						//	result = result.substr(0, posEndOfLine);
204
-						
205
-						this.pos = layoutLimit;
206
-						
207
-						//console.groupEnd();
208
-						return result;
209
-					} else {
210
-						//console.groupEnd();
211
-						return null;
212
-					}
213
-				},
214
-				getLineBreakIndex: function(pos, wrappingWidth) {
215
-					//console.group("[getLineBreakIndex]");
216
-					//console.log("pos:"+pos + ", text: \""+ this.text.text.replace(/\n/g, "_").substr(pos, 1) + "\"");
217
-					
218
-					var bb = this.rafaelTextObject.getBBox();
219
-					
220
-					var charNum = -1;
221
-					try {
222
-						var svgPoint = this.svgTextObject.getStartPositionOfChar(pos);
223
-						//var dot = this.paper.ellipse(svgPoint.x, svgPoint.y, 1, 1).attr({"stroke-width": 0, fill: Color.blue});
224
-						svgPoint.x = svgPoint.x + wrappingWidth;
225
-						//svgPoint.y = bb.y;
226
-						//console.log("svgPoint:", svgPoint);
227
-					
228
-						//var dot = this.paper.ellipse(svgPoint.x, svgPoint.y, 1, 1).attr({"stroke-width": 0, fill: Color.red});
229
-					
230
-						charNum = this.svgTextObject.getCharNumAtPosition(svgPoint);
231
-					} catch (e){
232
-						console.warn("getStartPositionOfChar error, pos:" + pos);
233
-						/*
234
-						var testPos = pos + 1;
235
-						if (testPos < this.limit) {
236
-							return testPos
237
-						}
238
-						*/
239
-					}
240
-					//console.log("charNum:", charNum);
241
-					if (charNum == -1) {
242
-						//console.groupEnd();
243
-						return this.text.getEndIndex(pos);
244
-					} else {
245
-						// When case there is new line between pos and charnum then use this new line
246
-						var newLineIndex = this.text.getEndIndex(pos);
247
-						if (newLineIndex < charNum ) {
248
-							console.log("newLineIndex <= charNum, newLineIndex:"+newLineIndex+", charNum:"+charNum, "\"" + this.text.text.substr(newLineIndex+1).replace(/\n/g, "?") + "\"");
249
-							//console.groupEnd();
250
-							
251
-							return newLineIndex;
252
-						}
253
-							
254
-						//var charAtMaxAdvance  = this.text.text.substring(charNum, charNum + 1);
255
-						var charAtMaxAdvance  = this.text.getCharAtPos(charNum);
256
-						//console.log("!!charAtMaxAdvance: " + charAtMaxAdvance);
257
-						//console.groupEnd();
258
-						return charNum;
259
-					}
260
-				}, 
261
-				getPosition: function() {
262
-					return this.pos;
263
-				}
264
-			};

+ 0 - 381
target/classes/static/act/diagram-viewer/js/Polyline.js

@@ -1,381 +0,0 @@
1
-var ANCHOR_TYPE= {
2
-	main: "main",
3
-	middle: "middle",
4
-	first: "first",
5
-	last: "last"
6
-};
7
-
8
-function Anchor(uuid, type, x, y) {
9
-	this.uuid = uuid; 
10
-	this.x = x
11
-	this.y = y
12
-	this.type = (type == ANCHOR_TYPE.middle) ? ANCHOR_TYPE.middle : ANCHOR_TYPE.main;
13
-};
14
-Anchor.prototype = {
15
-	uuid: null,
16
-	x: 0,
17
-	y: 0,
18
-	type: ANCHOR_TYPE.main,
19
-	isFirst: false,
20
-	isLast: false,
21
-	ndex: 0,
22
-	typeIndex: 0
23
-};
24
-
25
-function Polyline(uuid, points, strokeWidth) {
26
-	/* Array on coordinates:
27
-	 * points: [{x: 410, y: 110}, 1
28
-	 *			{x: 570, y: 110}, 1 2
29
-	 *			{x: 620, y: 240},   2 3
30
-	 *			{x: 750, y: 270},     3 4
31
-	 *			{x: 650, y: 370}];      4
32
-	 */
33
-	this.points = points;
34
-	
35
-	/*
36
-	 * path for graph
37
-	 * [["M", x1, y1], ["L", x2, y2], ["C", ax, ay, bx, by, x3, y3], ["L", x3, y3]]
38
-	 */
39
-	this.path = [];
40
-	
41
-	this.anchors = [];
42
-	
43
-	if (strokeWidth) this.strokeWidth = strokeWidth;
44
-	
45
-	this.closePath = false;
46
-	
47
-	this.init();
48
-};
49
-
50
-Polyline.prototype = {
51
-	id: null,
52
-	points: [],
53
-	path: [],
54
-	anchors: [],
55
-	strokeWidth: 1,
56
-	radius: 15,
57
-	showDetails: false,
58
-	element: null,
59
-	isDefaultConditionAvailable: false,
60
-	closePath: false,
61
-	
62
-	init: function(points){
63
-		var linesCount = this.getLinesCount();
64
-		if (linesCount < 1)
65
-			return;
66
-			
67
-		this.normalizeCoordinates();
68
-		
69
-		// create anchors
70
-		
71
-		this.pushAnchor(ANCHOR_TYPE.first, this.getLine(0).x1, this.getLine(0).y1);
72
-		
73
-		for(var i = 1; i < linesCount; i++){
74
-			var line1 = this.getLine(i-1),
75
-				line2 = this.getLine(i);
76
-			
77
-			//this.pushAnchor(ANCHOR_TYPE.middle, line1.x1 + line1.x2-line1.x1, line1.y1 + line1.y2-line1.y1);
78
-			this.pushAnchor(ANCHOR_TYPE.main,  line1.x2, line1.y2);
79
-			//this.pushAnchor(ANCHOR_TYPE.middle,  line2.x1 + line2.x2-line2.x1, line2.y1 + line2.y2-line2.y1);
80
-		}
81
-		
82
-		this.pushAnchor(ANCHOR_TYPE.last, this.getLine(linesCount-1).x2, this.getLine(linesCount-1).y2);
83
-		
84
-		this.rebuildPath();
85
-	},
86
-	
87
-	normalizeCoordinates: function(){
88
-		for(var i=0; i < this.points.length; i++){
89
-			this.points[i].x = parseFloat(this.points[i].x);
90
-			this.points[i].y = parseFloat(this.points[i].y);
91
-		}
92
-	},
93
-	
94
-	getLinesCount: function(){
95
-		return this.points.length-1;
96
-	},
97
-	_getLine: function(i){
98
-		return {x1: this.points[i].x, y1: this.points[i].y, x2: this.points[i+1].x, y2: this.points[i+1].y};
99
-	},
100
-	getLine: function(i){
101
-		var line = this._getLine(i);
102
-		line.angle = this.getLineAngle(i) ;
103
-		return line;
104
-	},
105
-	getLineAngle: function(i){
106
-		var line = this._getLine(i);
107
-		return Math.atan2(line.y2 - line.y1, line.x2 - line.x1);
108
-	},
109
-	getLineLengthX: function(i){
110
-		var line = this.getLine(i);
111
-		return (line.x2 - line.x1);
112
-	},
113
-	getLineLengthY: function(i){
114
-		var line = this.getLine(i);
115
-		return (line.y2 - line.y1);
116
-	},
117
-	getLineLength: function(i){
118
-		var line = this.getLine(i);
119
-		return Math.sqrt(Math.pow(this.getLineLengthX(i), 2) + Math.pow(this.getLineLengthY(i), 2));
120
-	},
121
-	
122
-	getAnchors: function(){
123
-		// ������� ��������������� ������
124
-		// ????
125
-		return this.anchors;
126
-	},
127
-	getAnchorsCount: function(type){
128
-		if (!type)
129
-			return this.anchors.length;
130
-		else {
131
-			var count = 0;
132
-			for(var i=0; i < this.getAnchorsCount(); i++){
133
-				var anchor = this.anchors[i];
134
-				if (anchor.getType() == type) {
135
-					count++;
136
-				}
137
-			}
138
-			return count;
139
-		}
140
-	},
141
-	
142
-	pushAnchor: function(type, x, y, index){
143
-		if (type == ANCHOR_TYPE.first) {
144
-			index = 0;
145
-			typeIndex = 0;
146
-		} else if (type == ANCHOR_TYPE.last) {
147
-			index = this.getAnchorsCount();
148
-			typeIndex = 0;
149
-		} else if (!index) {
150
-			index = this.anchors.length;
151
-		} else {
152
-			// ��������� anchors, �������� ������� ��� �������, ������� � index
153
-			//var anchor = this.getAnchor()
154
-			for(var i=0; i < this.getAnchorsCount(); i++){
155
-				var anchor = this.anchors[i];
156
-				if (anchor.index > index) {
157
-					anchor.index++;
158
-					anchor.typeIndex++;
159
-				}
160
-			}
161
-		}
162
-		
163
-		var anchor = new Anchor(this.id, ANCHOR_TYPE.main, x, y, index, typeIndex);
164
-		
165
-		this.anchors.push(anchor);
166
-	},
167
-	
168
-	getAnchor: function(position){
169
-		return this.anchors[position];
170
-	},
171
-	
172
-	getAnchorByType: function(type, position){
173
-		if (type == ANCHOR_TYPE.first)
174
-			return this.anchors[0];
175
-		if (type == ANCHOR_TYPE.last)
176
-			return this.anchors[this.getAnchorsCount()-1];
177
-		
178
-		for(var i=0; i < this.getAnchorsCount(); i++){
179
-			var anchor = this.anchors[i];
180
-			if (anchor.type == type) {
181
-				if( position == anchor.position)
182
-					return anchor;
183
-			}
184
-		}
185
-		return null;
186
-	},
187
-	
188
-	addNewPoint: function(position, x, y){
189
-		// 
190
-		for(var i = 0; i < this.getLinesCount(); i++){
191
-			var line = this.getLine(i);
192
-			if (x > line.x1 && x < line.x2 && y > line.y1 && y < line.y2) {
193
-				this.points.splice(i+1,0,{x: x, y: y});
194
-				break;
195
-			}
196
-		}
197
-		
198
-		this.rebuildPath();
199
-	},
200
-	
201
-	rebuildPath: function(){
202
-		var path = [];
203
-		
204
-		for(var i = 0; i < this.getAnchorsCount(); i++){
205
-			var anchor = this.getAnchor(i);
206
-			
207
-			var pathType = ""
208
-			if (i==0)
209
-				pathType = "M";
210
-			else 
211
-				pathType = "L";
212
-			
213
-// TODO: save previous points and calculate new path just if points are updated, and then save currents values as previous
214
-			
215
-			var targetX = anchor.x, targetY = anchor.y;
216
-			if (i>0 && i < this.getAnchorsCount()-1) {
217
-				// get new x,y
218
-				var cx = anchor.x, cy = anchor.y;
219
-				
220
-				// pivot point of prev line
221
-				var AO = this.getLineLength(i-1);
222
-				if (AO < this.radius) {
223
-					AO = this.radius;
224
-				}
225
-				
226
-				this.isDefaultConditionAvailable = (this.isDefaultConditionAvailable || (i == 1 && AO > 10));
227
-				//console.log("isDefaultConditionAvailable", this.isDefaultConditionAvailable);
228
-				
229
-				var ED = this.getLineLengthY(i-1) * this.radius / AO;
230
-				var OD = this.getLineLengthX(i-1) * this.radius / AO;
231
-					targetX = anchor.x - OD;
232
-					targetY = anchor.y - ED;
233
-				
234
-				if (AO < 2*this.radius && i>1) {
235
-					targetX = anchor.x - this.getLineLengthX(i-1)/2;
236
-					targetY = anchor.y - this.getLineLengthY(i-1)/2;;
237
-				}
238
-					
239
-				// pivot point of next line
240
-				var AO = this.getLineLength(i);
241
-				if (AO < this.radius) {
242
-					AO = this.radius;
243
-				}
244
-				var ED = this.getLineLengthY(i) * this.radius / AO;
245
-				var OD = this.getLineLengthX(i) * this.radius / AO;
246
-					var nextSrcX = anchor.x + OD;
247
-					var nextSrcY = anchor.y + ED;
248
-					
249
-				if (AO < 2*this.radius && i<this.getAnchorsCount()-2) {
250
-					nextSrcX = anchor.x + this.getLineLengthX(i)/2;
251
-					nextSrcY = anchor.y + this.getLineLengthY(i)/2;;
252
-				}
253
-					
254
-				
255
-				var dx0 = (cx - targetX) / 3,
256
-					dy0 = (cy - targetY) / 3,
257
-					ax = cx - dx0,
258
-					ay = cy - dy0,
259
-					
260
-					dx1 = (cx - nextSrcX) / 3,
261
-					dy1 = (cy - nextSrcY) / 3,
262
-					bx = cx - dx1,
263
-					by = cy - dy1,
264
-					
265
-					zx=nextSrcX, zy=nextSrcY;
266
-					
267
-				if (this.showDetails) {
268
-					var c = ProcessDiagramCanvas.g.path("M"+targetX+","+targetY+"L"+ax+","+ay).attr({stroke: Color.get(255, 153, 51), "stroke-dasharray": "- "});
269
-					var c = ProcessDiagramCanvas.g.path("M"+nextSrcX+","+nextSrcY+"L"+bx+","+by).attr({stroke: Color.get(255, 153, 51), "stroke-dasharray": "- "});
270
-					var c = ProcessDiagramCanvas.g.ellipse(ax, ay, 2, 2).attr({stroke: Color.SlateGrey});
271
-					var c = ProcessDiagramCanvas.g.ellipse(bx, by, 2, 2).attr({stroke: Color.SlateGrey});
272
-					var c = ProcessDiagramCanvas.g.ellipse(cx, cy, this.radius, this.radius).attr({stroke: Color.Gainsboro});
273
-					var c = ProcessDiagramCanvas.g.ellipse(targetX, targetY, 2, 2).attr({fill: Color.red});
274
-					var c = ProcessDiagramCanvas.g.ellipse(nextSrcX, nextSrcY, 2, 2).attr({fill: Color.red});
275
-				}
276
-			} else if (i==1 && this.getAnchorsCount() == 2){
277
-				var AO = this.getLineLength(i-1);
278
-				if (AO < this.radius) {
279
-					AO = this.radius;
280
-				}
281
-				this.isDefaultConditionAvailable = (this.isDefaultConditionAvailable || (i == 1 && AO > 10));
282
-				//console.log("-- isDefaultConditionAvailable", this.isDefaultConditionAvailable);
283
-			}
284
-
285
-			// anti smoothing
286
-			if (this.strokeWidth%2 == 1) {
287
-				targetX += 0.5;
288
-				targetY += 0.5;
289
-			}
290
-			
291
-			path.push([pathType, targetX, targetY]);
292
-			
293
-			if (i>0 && i < this.getAnchorsCount()-1) {
294
-				path.push(["C", ax, ay, bx, by, zx, zy]);
295
-			}
296
-		}
297
-		
298
-		if (this.closePath) {
299
-			console.log("closePath:", this.closePath);
300
-			path.push(["Z"]);
301
-		}
302
-		
303
-		this.path = path;
304
-	},
305
-	
306
-	transform: function(transformation){
307
-		this.element.transform(transformation);
308
-	},
309
-	attr: function(attrs){
310
-		//console.log("attrs: " +attrs, "", this.element);
311
-		// TODO: foreach and set each
312
-		this.element.attr(attrs);
313
-	}
314
-};
315
-
316
-function Polygone(points, strokeWidth) {
317
-	/* Array on coordinates:
318
-	 * points: [{x: 410, y: 110}, 1
319
-	 *			{x: 570, y: 110}, 1 2
320
-	 *			{x: 620, y: 240},   2 3
321
-	 *			{x: 750, y: 270},     3 4
322
-	 *			{x: 650, y: 370}];      4
323
-	 */
324
-	this.points = points;
325
-	
326
-	/*
327
-	 * path for graph
328
-	 * [["M", x1, y1], ["L", x2, y2], ["C", ax, ay, bx, by, x3, y3], ["L", x3, y3]]
329
-	 */
330
-	this.path = [];
331
-	
332
-	this.anchors = [];
333
-	
334
-	if (strokeWidth) this.strokeWidth = strokeWidth;
335
-	
336
-	this.closePath = true;
337
-	this.init();
338
-};
339
-
340
-
341
-/*
342
- * Poligone is inherited from Poliline: draws closedPath of polyline
343
- */
344
-
345
-var Foo = function () { };
346
-Foo.prototype = Polyline.prototype;
347
-
348
-Polygone.prototype = new Foo();
349
-
350
-Polygone.prototype.rebuildPath = function(){
351
-	var path = [];
352
-	//console.log("Polygone rebuildPath");
353
-	for(var i = 0; i < this.getAnchorsCount(); i++){
354
-		var anchor = this.getAnchor(i);
355
-		
356
-		var pathType = ""
357
-		if (i==0)
358
-			pathType = "M";
359
-		else 
360
-			pathType = "L";
361
-		
362
-		var targetX = anchor.x, targetY = anchor.y;
363
-		
364
-		// anti smoothing
365
-		if (this.strokeWidth%2 == 1) {
366
-			targetX += 0.5;
367
-			targetY += 0.5;
368
-		}
369
-		
370
-		path.push([pathType, targetX, targetY]);	
371
-	}
372
-	if (this.closePath)
373
-		path.push(["Z"]);
374
-	
375
-	this.path = path;
376
-};
377
-/*
378
-Polygone.prototype.transform = function(transformation){
379
-	this.element.transform(transformation);
380
-};
381
-*/

File diff suppressed because it is too large
+ 0 - 2161
target/classes/static/act/diagram-viewer/js/ProcessDiagramCanvas.js


File diff suppressed because it is too large
+ 0 - 1080
target/classes/static/act/diagram-viewer/js/ProcessDiagramGenerator.js


+ 0 - 125
target/classes/static/act/diagram-viewer/js/jquery/jquery.asyncqueue.js

@@ -1,125 +0,0 @@
1
-/*
2
-* This file is part of the jquery plugin "asyncQueue".
3
-*
4
-* (c) Sebastien Roch <roch.sebastien@gmail.com>
5
-* @author (parallel) Dmitry Farafonov
6
-*
7
-* For the full copyright and license information, please view the LICENSE
8
-* file that was distributed with this source code.
9
-*/
10
-(function($){
11
-    $.AsyncQueue = function() {
12
-        var that = this,
13
-            queue = [],
14
-			completeFunc,
15
-            failureFunc,
16
-            paused = false,
17
-            lastCallbackData,
18
-            _run,
19
-			_complete,
20
-			inQueue = 0,
21
-			defaultTimeOut = 10;
22
-
23
-        _run = function() {
24
-            var f = queue.shift();
25
-
26
-            if (f) {
27
-				inQueue++;
28
-				setTimeout(function(){
29
-					f.fn.apply(that, [that]);
30
-				
31
-					if (!f.isParallel)
32
-						if (paused === false) {
33
-							_run();
34
-						}
35
-					inQueue --;
36
-					if (inQueue == 0 && queue.length == 0)
37
-						_complete();
38
-				}, f.timeOut);                
39
-				
40
-				if (f.isParallel)
41
-					if (paused === false) {
42
-						_run();
43
-					}
44
-            }
45
-        };
46
-		
47
-		_complete = function(){
48
-			if (completeFunc)
49
-					completeFunc.apply(that, [that]);
50
-		};
51
-
52
-		this.onComplete = function(func) {
53
-            completeFunc = func;
54
-        };
55
-		
56
-		this.onFailure = function(func) {
57
-            failureFunc = func;
58
-        };
59
-
60
-        this.add = function(func) {
61
-			// TODO: add callback for queue[i] complete
62
-			
63
-			var obj = arguments[0];
64
-			if (obj && Object.prototype.toString.call(obj) === "[object Array]") {
65
-				var fn = arguments[1];
66
-				var timeOut = (typeof(arguments[2]) != "undefined")? arguments[2] : defaultTimeOut;
67
-				if (typeof(fn) == "function") {
68
-					for(var i = 0; i < obj.length; i++) {
69
-						var f = function(objx){
70
-							queue.push({isParallel: true, fn: function(){fn.apply(that, [that, objx]);}, timeOut: timeOut});
71
-						}(obj[i])
72
-					}
73
-				}
74
-			} else {
75
-				var fn = arguments[0];
76
-				var timeOut = (typeof(arguments[1]) != "undefined")? arguments[2] : defaultTimeOut;
77
-				queue.push({isParallel: false, fn: func, timeOut: timeOut});
78
-			}
79
-            return this;
80
-        };
81
-		
82
-		this.addParallel = function(func, timeOut) {
83
-			// TODO: add callback for queue[i] complete
84
-			
85
-            queue.push({isParallel: true, fn: func, timeOut: timeOut});
86
-            return this;
87
-        };
88
-
89
-        this.storeData = function(dataObject) {
90
-            lastCallbackData = dataObject;
91
-            return this;
92
-        };
93
-
94
-        this.lastCallbackData = function () {
95
-            return lastCallbackData;
96
-        };
97
-
98
-        this.run = function() {
99
-            paused = false;
100
-            _run();
101
-        };
102
-
103
-        this.pause = function () {
104
-            paused = true;
105
-            return this;
106
-        };
107
-
108
-        this.failure = function() {
109
-            paused = true;
110
-            if (failureFunc) {
111
-                var args = [that];
112
-                for(i = 0; i < arguments.length; i++) {
113
-                    args.push(arguments[i]);
114
-                }
115
-                failureFunc.apply(that, args);
116
-            }
117
-        };
118
-		
119
-		this.size = function(){
120
-			return queue.length;
121
-		};
122
-
123
-        return this;
124
-    }
125
-})(jQuery);

File diff suppressed because it is too large
+ 0 - 9266
target/classes/static/act/diagram-viewer/js/jquery/jquery.js


+ 0 - 131
target/classes/static/act/diagram-viewer/js/jquery/jquery.progressbar.js

@@ -1,131 +0,0 @@
1
-/*
2
- * @ Dmitry Farafonov
3
- */
4
-
5
-(function($){
6
-$.ProgressBar = function(options) {
7
-	this.element = $(options.boundingBox);
8
-	if (options.on && options.on.complete){
9
-		this.onComplete = options.on.complete;
10
-	}
11
-	if (options.on && options.on.valueChange){
12
-		this.onValueChange = options.on.valueChange;
13
-	}
14
-	
15
-	this._create();
16
-	
17
-	if (options.label)
18
-		this.set("label", options.label);
19
-	if (options.value)
20
-		this.value(options.value);
21
-	if (options.max)
22
-		this.set("max", options.max);
23
-};
24
-$.ProgressBar.prototype = {
25
-	options: {
26
-		value: 0,
27
-		max: 100
28
-	},
29
-
30
-	min: 0,
31
-
32
-	_create: function() {
33
-		this.element
34
-			.addClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" )
35
-			.attr({
36
-				role: "progressbar",
37
-				"aria-valuemin": this.min,
38
-				"aria-valuemax": this.options.max,
39
-				"aria-valuenow": this._value()
40
-			});
41
-
42
-		this.valueDiv = $( "<div class='ui-progressbar-label'></div>" )
43
-			.appendTo( this.element );
44
-			
45
-		this.valueDiv = $( "<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>" )
46
-			.appendTo( this.element );
47
-
48
-		this.oldValue = this._value();
49
-		this._refreshValue();
50
-	},
51
-
52
-	_destroy: function() {
53
-		this.element
54
-			.removeClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" )
55
-			.removeAttr( "role" )
56
-			.removeAttr( "aria-valuemin" )
57
-			.removeAttr( "aria-valuemax" )
58
-			.removeAttr( "aria-valuenow" );
59
-
60
-		this.valueDiv.remove();
61
-	},
62
-
63
-	value: function( newValue ) {
64
-		if ( newValue === undefined ) {
65
-			return this._value();
66
-		}
67
-
68
-		this._setOption( "value", newValue );
69
-		return this;
70
-	},
71
-
72
-	_setOption: function( key, value ) {
73
-		if ( key === "value" ) {
74
-			//var oldVal = this.options.value;
75
-			this.options.value = value;
76
-			this._refreshValue();
77
-			
78
-			if (this.onValueChange)
79
-				this.onValueChange.apply(this, [{oldVal: this.oldValue, newVal: value}]);
80
-			
81
-			if ( this._value() === this.options.max ) {
82
-				//this._trigger( "complete" );
83
-				if (this.onComplete)
84
-					this.onComplete.apply(this);
85
-			}
86
-		} else if (key === "label") {
87
-			$(this.element).find(".ui-progressbar-label").html(value);
88
-		} else if (key === "max") {
89
-			this.options.max = value;
90
-		}
91
-
92
-		//this._super( key, value );
93
-	},
94
-
95
-	_value: function() {
96
-		var val = this.options.value;
97
-		// normalize invalid value
98
-		if ( typeof val !== "number" ) {
99
-			val = 0;
100
-		}
101
-		return Math.min( this.options.max, Math.max( this.min, val ) );
102
-	},
103
-
104
-	_percentage: function() {
105
-		return 100 * this._value() / this.options.max;
106
-	},
107
-
108
-	_refreshValue: function() {
109
-		var value = this.value(),
110
-			percentage = this._percentage();
111
-
112
-		if ( this.oldValue !== value ) {
113
-			this.oldValue = value;
114
-			//this._trigger( "change" );
115
-		}
116
-
117
-		this.valueDiv
118
-			.toggle( value > this.min )
119
-			.toggleClass( "ui-corner-right", value === this.options.max )
120
-			.width( percentage.toFixed(0) + "%" );
121
-		this.element.attr( "aria-valuenow", value );
122
-		
123
-		//$(this.element).find(".ui-progressbar-label").html(value + "%");
124
-	},
125
-	
126
-	set: function(key, value){
127
-		this._setOption(key, value);
128
-	}
129
-};
130
-
131
-})( jQuery );

+ 0 - 23
target/classes/static/act/diagram-viewer/js/jstools.js

@@ -1,23 +0,0 @@
1
-if (typeof(console) == "undefined") {
2
-  var console = {
3
-    info: function(){},
4
-    warn: function(){},
5
-    error: function(){},
6
-    log: function(){},
7
-    time: function(){},
8
-    timeEnd: function(){}
9
-  };
10
-}
11
-
12
-if(!Array.isArray) {
13
-  Array.isArray = function (vArg) {
14
-    return Object.prototype.toString.call(vArg) === "[object Array]";
15
-  };
16
-}
17
-
18
-if (!Object.isSVGElement) {
19
-  Object.isSVGElement = function(vArg) {
20
-  var str = Object.prototype.toString.call(vArg);
21
-  return (str.indexOf("[object SVG") == 0);
22
-  };
23
-}

File diff suppressed because it is too large
+ 0 - 10
target/classes/static/act/diagram-viewer/js/raphael.2.1.1.js


File diff suppressed because it is too large
+ 0 - 10
target/classes/static/act/diagram-viewer/js/raphael.js


File diff suppressed because it is too large
+ 0 - 5815
target/classes/static/act/diagram-viewer/js/raphael_uncompressed.js


+ 0 - 0
target/classes/static/act/diagram-viewer/js/textlayout.js


Some files were not shown because too many files changed in this diff