import '../../../globals.js';
import { Pointer, scenery } from '../imports.js';
export default class Pen extends Pointer {
    constructor(id, point, event) {
        super(point, 'pen'); // true: pen pointers always start in the down state
        this.id = id;
        sceneryLog && sceneryLog.Pointer && sceneryLog.Pointer(`Created ${this.toString()}`);
    }
    /**
     * Sets information in this Pen for a given move. (scenery-internal)
     *
     * @returns Whether the point changed
     */
    move(point) {
        const pointChanged = this.hasPointChanged(point);
        this.point = point;
        return pointChanged;
    }
    /**
     * Returns an improved string representation of this object.
     */
    toString() {
        return `Pen#${this.id}`;
    }
    isTouchLike() {
        return true;
    }
}
scenery.register('Pen', Pen);
//# sourceMappingURL=Pen.js.map