<commit_before>/// <reference path="../Runtime/Nullstone.js" />
/// <reference path="Brush.js"/>
/// CODE
/// <reference path="../Primitives/Color.js"/>

//#region SolidColorBrush
var SolidColorBrush = Nullstone.Create("SolidColorBrush", Brush);

SolidColorBrush.Instance.Init = function (args) {
    this.Init$Brush();
    if (args.length === 1) {
        if (args[0] instanceof Color)
            this.Color = args[0];
    }
};

//#region Properties

SolidColorBrush.ColorProperty = DependencyProperty.Register("Color", function () { return Color; }, SolidColorBrush);

Nullstone.AutoProperties(SolidColorBrush, [
    SolidColorBrush.ColorProperty
]);

//#endregion<commit_msg>The cached HTML5 brush translation was not being invalidated if SolidColorBrush.Color changed.<commit_after>/// <reference path="../Runtime/Nullstone.js" />
/// <reference path="Brush.js"/>
/// CODE
/// <reference path="../Primitives/Color.js"/>

//#region SolidColorBrush
var SolidColorBrush = Nullstone.Create("SolidColorBrush", Brush);

SolidColorBrush.Instance.Init = function (args) {
    this.Init$Brush();
    if (args.length === 1) {
        if (args[0] instanceof Color)
            this.Color = args[0];
    }
};

//#region Properties

SolidColorBrush.ColorProperty = DependencyProperty.Register("Color", function () { return Color; }, SolidColorBrush, undefined, function (d, args) { d._InvalidateSurfaceCache(); });

Nullstone.AutoProperties(SolidColorBrush, [
    SolidColorBrush.ColorProperty
]);

//#endregion
{'fraction_non_alphanumeric': 0.1603459747172322, 'fraction_numerical': 0.004657351962741184, 'mean_word_length': 4.013333333333334, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5904922', 'n_tokens_mistral': 471, 'n_tokens_neox': 426, 'n_words': 91}