@fluid-topics/ft-resizer 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -631,7 +631,6 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
631
631
|
|
|
632
632
|
.ft-resizer {
|
|
633
633
|
display: flex;
|
|
634
|
-
overflow: hidden;
|
|
635
634
|
}
|
|
636
635
|
|
|
637
636
|
ft-icon {
|
|
@@ -641,7 +640,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
641
640
|
|
|
642
641
|
.ft-resizer--dragging ft-icon,
|
|
643
642
|
.ft-resizer:hover ft-icon,
|
|
644
|
-
[role="button"][aria-pressed="true"] ft-icon
|
|
643
|
+
[role="button"][aria-pressed="true"] ft-icon{
|
|
645
644
|
color: ${g3.colorOnSurfaceMedium};
|
|
646
645
|
}
|
|
647
646
|
`;var k=function(e,a,c,r){var t=arguments.length,i=t<3?a:r===null?r=Object.getOwnPropertyDescriptor(a,c):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,a,c,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(t<3?o(i):t>3?o(a,c,i):o(a,c))||i);return t>3&&i&&Object.defineProperty(a,c,i),i},G2=class extends CustomEvent{constructor(a,c){super("resize",{detail:{width:a,height:c}})}},C=class extends w2.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=b.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=a=>this.doDrag(a.clientX,a.clientY),this.doDragFromTouch=a=>this.doDrag(a.touches[0].clientX,a.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return D2.html`
|