<commit_before>/**
 * This file is part of the MonVoisinFaitDuBio project.
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright Copyright (c) 2016 <NAME> - <EMAIL>
 * @license    MIT License
 * @Last Modified time: 2016-12-13
 */

import { AppModule } from "../app.module";
declare let App : AppModule;

export class DisplayElementAloneModule
{
	elementShownAlone_ = null;

	constructor() {}

	begin(elementId : number, panToElementLocation : boolean = true) 
	{	
		console.log("DisplayElementAloneModule begin", panToElementLocation);

		let element = App.elementById(elementId);
		this.elementShownAlone_ = element;			

		if (panToElementLocation)
		{
			App.mapComponent.panToLocation(element.position, 12);
		}

		if (this.elementShownAlone_ !== null) 
		{
			this.elementShownAlone_.hide();
			this.elementShownAlone_.isShownAlone = false;
		}

		// if (App.state == AppStates.Constellation) App.elementModule.focusOnThesesElements([element.id]);
		// else 
		// {
		App.elementModule.clearMarkers();
		//}			
<commit_msg>Adds current element shown Getter<commit_after>/**
 * This file is part of the MonVoisinFaitDuBio project.
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright Copyright (c) 2016 <NAME> - <EMAIL>
 * @license    MIT License
 * @Last Modified time: 2016-12-13
 */

import { AppModule } from "../app.module";
import { Element } from "../classes/element.class";

declare let App : AppModule;

export class DisplayElementAloneModule
{
	elementShownAlone_ = null;

	constructor() {}

	getElement() : Element { return this.elementShownAlone_; }

	begin(elementId : number, panToElementLocation : boolean = true) 
	{	
		console.log("DisplayElementAloneModule begin", panToElementLocation);

		let element = App.elementById(elementId);
		this.elementShownAlone_ = element;			

		if (panToElementLocation)
		{
			App.mapComponent.panToLocation(element.position, 12);
		}

		if (this.elementShownAlone_ !== null) 
		{
			this.elementShownAlone_.hide();
			this.elementShownAlone_.isShownAlone = false;
		}

		// if (App.state == AppStates.Constellation) App.elementModule.focusOnThesesElements([element.id]);
		// else 
		// {
		App.elementModule.clearMarkers();
		//}			

{'fraction_non_alphanumeric': 0.11518987341772152, 'fraction_numerical': 0.01181434599156118, 'mean_word_length': 3.991578947368421, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1895851', 'n_tokens_mistral': 827, 'n_tokens_neox': 727, 'n_words': 180}