<commit_before>"
A RTAbstractHighlightable is an highlight mechanism of an element or group of elements. It trigger highlight on mouse enter and reset the highlight on mouse leave. By default it highlight the element itself, but by methods #highlight: and #highlightElements: any other element can be highlighted.

Instance Variables
	highlightElements:		<BlockClosure>

highlightElements
	- it is one argument block (o any object which understand #rtValue:) which returns collection of elements. Those element are then highlighted.

"
Class {
	#name : #RTAbstractHighlightable,
	#superclass : #RTInteraction,
	#instVars : [
		'highlightElements'
	],
	#classInstVars : [
		'lastHighlightedElements',
		'lastColor'
	],
	#category : #'Roassal2-Interactions'
}

{ #category : #public }
RTAbstractHighlightable class >> allSibblings [

	^ self highlightElements: [ :el | el view elements select: [ :e | e model notNil and: [ e model == el model ]] ]
]
<commit_msg>bug fixed in highlighing sibblings<commit_after>"
A RTAbstractHighlightable is an highlight mechanism of an element or group of elements. It trigger highlight on mouse enter and reset the highlight on mouse leave. By default it highlight the element itself, but by methods #highlight: and #highlightElements: any other element can be highlighted.

Instance Variables
	highlightElements:		<BlockClosure>

highlightElements
	- it is one argument block (o any object which understand #rtValue:) which returns collection of elements. Those element are then highlighted.

"
Class {
	#name : #RTAbstractHighlightable,
	#superclass : #RTInteraction,
	#instVars : [
		'highlightElements'
	],
	#classInstVars : [
		'lastHighlightedElements',
		'lastColor'
	],
	#category : #'Roassal2-Interactions'
}

{ #category : #public }
RTAbstractHighlightable class >> allSibblings [

	^ self highlightElements: [ :el | el view elements select: [ :e | e model notNil and: [ e model = el model ] ] ]
]

{'fraction_non_alphanumeric': 0.08294693456980938, 'fraction_numerical': 0.0010303967027305513, 'mean_word_length': 4.884848484848485, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6978018', 'n_tokens_mistral': 578, 'n_tokens_neox': 537, 'n_words': 214}