import { Property } from '@nativescript/core';
import { Paint } from '../Paint';
export const pointsProperty = new Property({
    name: 'points',
});
export const modeProperty = new Property({
    name: 'mode',
    defaultValue: 'points',
});
export class Points extends Paint {
    draw() {
        const override_color = this.parent._overrideColor;
        const context = this._canvas.getContext('2d');
        context.strokeStyle = this.color.hex;
        context.drawPoints(this.mode ?? 'points', this.points);
    }
}
pointsProperty.register(Points);
modeProperty.register(Points);
//# sourceMappingURL=Points.js.map