<commit_before>/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/*global pvc_colorIsGray:true */
def
.type('pvc.visual.DotSizeColor', pvc.visual.Dot)
.init(function(panel, parentMark, keyArgs) {

    this.base(panel, parentMark, keyArgs);

    var isV1Compat = this.compatVersion() <= 1;
    
    this._bindProperty('lineWidth', 'strokeWidth')
        .intercept('visible', function(scene) {
            if(!this.canShow(scene)) return false;

            var visible = this.delegateExtension();
            return visible == null
                ? (isV1Compat || this.defaultVisible(scene))
                : visible;<commit_msg>[CDF-322] - CCC - HeatGrid - compatVersion 1 - points with null color and size are generating invalid SVG<commit_after>/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/*global pvc_colorIsGray:true */
def
.type('pvc.visual.DotSizeColor', pvc.visual.Dot)
.init(function(panel, parentMark, keyArgs) {

    this.base(panel, parentMark, keyArgs);

    this._bindProperty('lineWidth', 'strokeWidth')
        .intercept('visible', function(scene) {
            if(!this.canShow(scene)) return false;

            var visible = this.delegateExtension();
            return visible == null ? this.defaultVisible(scene) : visible;
{'fraction_non_alphanumeric': 0.12268370607028754, 'fraction_numerical': 0.009584664536741214, 'mean_word_length': 3.078125, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, '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': '6535343', 'n_tokens_mistral': 478, 'n_tokens_neox': 448, 'n_words': 140}