Your IP : 3.144.93.79


Current Path : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/js/main/popup/src/popup/
Upload File :
Current File : /var/www/www-root/data/www/info.monolith-realty.ru/bitrix/js/main/popup/src/popup/position-event.js

import { Type } from 'main.core';
import { BaseEvent } from 'main.core.events';

export default class PositionEvent extends BaseEvent
{
	#left: number;
	#top: number;

	constructor()
	{
		super();
	}

	get left(): number
	{
		return this.#left;
	}

	set left(value: number)
	{
		if (Type.isNumber(value))
		{
			this.#left = value;
		}
	}

	get top(): number
	{
		return this.#top;
	}

	set top(value: number): void
	{
		if (Type.isNumber(value))
		{
			this.#top = value;
		}
	}
}