<commit_before>"
This implements the Null pattern for a Roassal shape. It is typically used for defaults.
"
Class {
	#name : #RTNoShape,
	#superclass : #RTShape,
	#classInstVars : [
		'instance'
	],
	#category : #'Roassal2-Core'
}

{ #category : #'as yet unclassified' }
RTNoShape class >> new [
	instance ifNil: [ instance := super new ].
	^ instance
]

{ #category : #rendering }
RTNoShape >> heightFor: element [
	^ 0
]

{ #category : #hooks }
RTNoShape >> trachelShapeFor: element [
	"Nothing to do here"
	self flag: 'actually, we should return a null trachel shape because the shape is cached in the element, and the element works directly with the trachel shape'
]

{ #category : #rendering }
RTNoShape >> updateFor: anElement [
	"Do nothing"
]

{ #category : #rendering }
RTNoShape >> widthFor: element [
	^ 0
]
<commit_msg>first shot at a null shape<commit_after>"
This implements the Null pattern for a Roassal shape. It is typically used for defaults.
"
Class {
	#name : #RTNoShape,
	#superclass : #RTShape,
	#classInstVars : [
		'instance'
	],
	#category : #'Roassal2-Core'
}

{ #category : #'as yet unclassified' }
RTNoShape class >> new [
	instance ifNil: [ instance := super new ].
	^ instance
]

{ #category : #rendering }
RTNoShape >> heightFor: element [
	^ 0
]

{ #category : #hooks }
RTNoShape >> trachelShapeFor: element [
	"We return a Trachel null shape because shapedObjects play directly with the low level shape"

	^ TRNoShape new
]

{ #category : #rendering }
RTNoShape >> updateFor: anElement [
	"Do nothing"
]

{ #category : #rendering }
RTNoShape >> widthFor: element [
	^ 0
]

{'fraction_non_alphanumeric': 0.11527035056446822, 'fraction_numerical': 0.0035650623885918, 'mean_word_length': 3.2849872773536894, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '2340080', 'n_tokens_mistral': 586, 'n_tokens_neox': 572, 'n_words': 177}