<commit_before>"
I shange zoom ratio of camera by the value returned form #step method
"
Class {
	#name : #RTAbstractZoomMove,
	#superclass : #RTAnimation,
	#instVars : [
		'animatedValue',
		'trachelCanvas'
	],
	#category : #'Roassal2-Animation'
}

{ #category : #'as yet unclassified' }
RTAbstractZoomMove class >> on: aView [
	aView addAnimation: (self new on: aView)
]

{ #category : #testing }
RTAbstractZoomMove >> hasCompleted [
	^ animatedValue hasCompleted
]

{ #category : #'instance creation' }
RTAbstractZoomMove >> on: view [

	^ self on: view during: 0.5
]

{ #category : #public }
RTAbstractZoomMove >> on: view during: seconds [
	| initialScale |
	initialScale := view canvas camera scale.
	trachelCanvas := view canvas.
	animatedValue := TRVIAnimatedValue new
							evaluator: [ :t | initialScale interpolateTo: (initialScale * self step ) at: t ];
							timer: (TRVITimer new cycleLength: seconds);<commit_msg>Very minor cleaning<commit_after>"
I shange zoom ratio of camera by the value returned form #step method
"
Class {
	#name : #RTAbstractZoomMove,
	#superclass : #RTAnimation,
	#instVars : [
		'animatedValue',
		'trachelCanvas'
	],
	#category : #'Roassal2-Animation'
}

{ #category : #'instance creation' }
RTAbstractZoomMove class >> on: aView [
	aView addAnimation: (self new on: aView)
]

{ #category : #testing }
RTAbstractZoomMove >> hasCompleted [
	^ animatedValue hasCompleted
]

{ #category : #'instance creation' }
RTAbstractZoomMove >> on: view [

	^ self on: view during: 0.5
]

{ #category : #public }
RTAbstractZoomMove >> on: view during: seconds [
	| initialScale |
	initialScale := view canvas camera scale.
	trachelCanvas := view canvas.
	animatedValue := TRVIAnimatedValue new
							evaluator: [ :t | initialScale interpolateTo: (initialScale * self step ) at: t ];
							timer: (TRVITimer new cycleLength: seconds);
{'fraction_non_alphanumeric': 0.11802575107296137, 'fraction_numerical': 0.003218884120171674, 'mean_word_length': 4.453216374269005, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '7046087', 'n_tokens_mistral': 648, 'n_tokens_neox': 596, 'n_words': 176}