<commit_before>//
//  LabelType.swift
//  SwiftyEcharts
//
//  Created by <NAME> on 03/01/2017.
//  Copyright © 2017 com.pluto-y. All rights reserved.
//

public protocol Emphasisable {
    associatedtype Style
    var normal: Style? { get  set }
    var emphasis: Style? { get set }
}<commit_msg>Add comments for Emphasisable<commit_after>//
//  LabelType.swift
//  SwiftyEcharts
//
//  Created by <NAME> on 03/01/2017.
//  Copyright © 2017 com.pluto-y. All rights reserved.
//

/// 针对那些有 '正常' 和 '高亮' 两种样式的组件的接口， 例如 `ItemStyle`, `AreaStyle` `Label` 等
public protocol Emphasisable {
    
    /// 样式，针对不同的组件有不同的样式
    associatedtype Style
    
    /// 默认样式，即非触发 '高亮' 情况下的样式
    var normal: Style? { get  set }
    /// 高亮样式
    var emphasis: Style? { get set }
}
{'fraction_non_alphanumeric': 0.1368421052631579, 'fraction_numerical': 0.031578947368421054, 'mean_word_length': 2.4748858447488584, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5621338', 'n_tokens_mistral': 331, 'n_tokens_neox': 315, 'n_words': 78}