File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/preview/webcomponents/text Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export interface HighlightProps {
99 duration ?: number ;
1010 repeat ?: boolean ;
1111 highlightColor ?: string ;
12- direction ?: 'left-to-right' | 'right-to-left' | 'center-out' | 'center-in' ;
12+ direction ?: 'left-to-right' | 'right-to-left' | 'center-out' ;
1313 className ?: string ;
1414}
1515
@@ -37,9 +37,6 @@ export const HighlightAnimation: React.FC<HighlightProps> = ({
3737 case 'center-out' :
3838 clipPath = 'inset(0 50% 0 50%)' ;
3939 break ;
40- case 'center-in' :
41- clipPath = 'inset(0 0 0 0)' ;
42- break ;
4340 default :
4441 clipPath = 'inset(0 100% 0 0)' ;
4542 }
@@ -143,7 +140,7 @@ export class HighlightComponent extends HTMLElement {
143140 duration : Number ( this . getAttribute ( 'duration' ) ) || 1000 ,
144141 repeat : this . hasAttribute ( 'repeat' ) ,
145142 highlightColor : this . getAttribute ( 'highlight-color' ) || '#ffff00' ,
146- direction : ( this . getAttribute ( 'direction' ) as 'left-to-right' | 'right-to-left' | 'center-out' | 'center-in' ) || 'left-to-right' ,
143+ direction : ( this . getAttribute ( 'direction' ) as 'left-to-right' | 'right-to-left' | 'center-out' ) || 'left-to-right' ,
147144 } ;
148145
149146 this . rootElm . render (
You can’t perform that action at this time.
0 commit comments