Updated dist
This commit is contained in:
		
							parent
							
								
									d4ab5c7e9c
								
							
						
					
					
						commit
						9db5723746
					
				
							
								
								
									
										51
									
								
								dist/iwmlib.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										51
									
								
								dist/iwmlib.js
									
									
									
									
										vendored
									
									
								
							| @ -614,6 +614,19 @@ | |||||||
| 
 | 
 | ||||||
|         static toLine(event) { |         static toLine(event) { | ||||||
|             return `${event.type} #${event.target.id} ${event.clientX} ${event.clientY}` |             return `${event.type} #${event.target.id} ${event.clientX} ${event.clientY}` | ||||||
|  |             let result = event.type; | ||||||
|  |             let selector = this.selector(event.target); | ||||||
|  |             result += ' selector: ' + selector; | ||||||
|  |             if (event.target != document.querySelector(selector)) console.log('Cannot resolve', selector); | ||||||
|  |             let keys = ['layerX', 'layerY', 'pageX', 'pageY', 'clientX', 'clientY']; | ||||||
|  |             for (let key of keys) { | ||||||
|  |                 try { | ||||||
|  |                     result += ' ' + key + ':' + event[key]; | ||||||
|  |                 } catch (e) { | ||||||
|  |                     console.log('Invalid key: ' + key); | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |             return result | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         static compareExtractedWithSimulated() { |         static compareExtractedWithSimulated() { | ||||||
| @ -2633,6 +2646,25 @@ | |||||||
|                     result[id] = this.getPosition(event); |                     result[id] = this.getPosition(event); | ||||||
|                     break |                     break | ||||||
|                 } |                 } | ||||||
|  |                 //             case 'TouchEvent':
 | ||||||
|  |                 //                 // Needs to be observed: Perhaps changedTouches are all we need. If so
 | ||||||
|  |                 //                 // we can remove the touchEventKey default parameter
 | ||||||
|  |                 //                 if (touchEventKey == 'all') {
 | ||||||
|  |                 //                     for(let t of event.targetTouches) {
 | ||||||
|  |                 //                         result[t.identifier.toString()] = this.getPosition(t)
 | ||||||
|  |                 //                     }
 | ||||||
|  |                 //                     for(let t of event.changedTouches) {
 | ||||||
|  |                 //                         result[t.identifier.toString()] = this.getPosition(t)
 | ||||||
|  |                 //                     }
 | ||||||
|  |                 //                 }
 | ||||||
|  |                 //                 else {
 | ||||||
|  |                 //                     for(let t of event.changedTouches) {
 | ||||||
|  |                 //                         result[t.identifier.toString()] = this.getPosition(t)
 | ||||||
|  |                 //                     }
 | ||||||
|  |                 //                 }
 | ||||||
|  |                 //                 break
 | ||||||
|  |                 default: | ||||||
|  |                     break | ||||||
|             } |             } | ||||||
|             return result |             return result | ||||||
|         } |         } | ||||||
| @ -5727,6 +5759,8 @@ | |||||||
|                             let bottom = parseFloat(this.element.style.bottom); |                             let bottom = parseFloat(this.element.style.bottom); | ||||||
|                             this.element.style.bottom = bottom - delta.y + 'px'; |                             this.element.style.bottom = bottom - delta.y + 'px'; | ||||||
|                             break |                             break | ||||||
|  |                         default: | ||||||
|  |                             break | ||||||
|                     } |                     } | ||||||
|                     //console.log("onResize", this.onResize)
 |                     //console.log("onResize", this.onResize)
 | ||||||
|                     if (this.onResize) { |                     if (this.onResize) { | ||||||
| @ -6149,6 +6183,8 @@ | |||||||
|                         x = bbRight; |                         x = bbRight; | ||||||
|                         if (!this.useEventPosWithBoundingBox) y = (bbTop + bbBottom) / 2; |                         if (!this.useEventPosWithBoundingBox) y = (bbTop + bbBottom) / 2; | ||||||
|                         break |                         break | ||||||
|  |                     default: | ||||||
|  |                         break | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
| @ -6204,6 +6240,8 @@ | |||||||
|                     x += this.notchSize * 2; |                     x += this.notchSize * 2; | ||||||
|                     x += this.posOffset; |                     x += this.posOffset; | ||||||
|                     break |                     break | ||||||
|  |                 default: | ||||||
|  |                     break | ||||||
|             } |             } | ||||||
|             this.placeOrigin(x, y); |             this.placeOrigin(x, y); | ||||||
|         } |         } | ||||||
| @ -8308,6 +8346,9 @@ | |||||||
| 
 | 
 | ||||||
|     Highlight.expandedClass = 'expanded'; |     Highlight.expandedClass = 'expanded'; | ||||||
| 
 | 
 | ||||||
|  |     // TODO: @ue Is this constant necessary?
 | ||||||
|  |     const enableNearestNeighborTaps = false; | ||||||
|  | 
 | ||||||
|     /** |     /** | ||||||
|      * A class that collects static methods to maintain the states and parts of |      * A class that collects static methods to maintain the states and parts of | ||||||
|      * EyeVisit like cards. |      * EyeVisit like cards. | ||||||
| @ -9736,6 +9777,16 @@ | |||||||
|                 article.appendChild(iconClone); |                 article.appendChild(iconClone); | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|  |             if (enableNearestNeighborTaps) { | ||||||
|  |                 //look for nearby popups on tap
 | ||||||
|  |                 InteractionMapper.on('tap', indexbox, () => { | ||||||
|  |                     // console.log('Tap handler called', editable)
 | ||||||
|  |                     if (!editable) { | ||||||
|  |                         this.findNearbyPopups(event, card); | ||||||
|  |                     } | ||||||
|  |                 }); | ||||||
|  |             } | ||||||
|  | 
 | ||||||
|             const eventElements = [indexbox, iconClone, clone]; |             const eventElements = [indexbox, iconClone, clone]; | ||||||
| 
 | 
 | ||||||
|             // Use the 'tap' event for closing.
 |             // Use the 'tap' event for closing.
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user