<commit_before>import store from '../store'
const responsiveness = {
  getComponentWidth (size) {
    let sizes = size.toLowerCase()
    if (sizes === 'extralarge') sizes = 'xl'
    if (sizes === 'large') sizes = 'l'
    if (sizes === 'medium') sizes = 'm'
    if (sizes === 'small') sizes = 's'
    if (sizes === 'extrasmall') sizes = 'xs'
    return store.state.diameters[sizes]
  },
  getDimensions () {
    const container = document.getElementById('z-container').offsetWidth
    const size = store.state.sizes
    store.state.diameters = {
      xxl: container * (size.xxl / 100),
      xl: container * (size.xl / 100),
      l: container * (size.l / 100),
      m: container * (size.m / 100),
      s: container * (size.s / 100),
      xs: container * (size.xs / 100),
      xxs: container * (size.xxs / 100)
    }
    store.actions.setLog('Size change detected on z-canvas')
  }
}
export default responsiveness<commit_msg>feat(responsiveness): use minSizesInPixels in getDimensions method in order to have a min size on each circle<commit_after>import store from '../store'

const responsiveness = {
  getComponentWidth (size) {
    let sizes = size.toLowerCase()
    if (sizes === 'extralarge') sizes = 'xl'
    if (sizes === 'large') sizes = 'l'
    if (sizes === 'medium') sizes = 'm'
    if (sizes === 'small') sizes = 's'
    if (sizes === 'extrasmall') sizes = 'xs'
    return store.state.diameters[sizes]
  },
  getDimensions () {
    const container = document.getElementById('z-container').offsetWidth
    const sizes = store.state.sizes
    const minSizes = store.state.minSizesInPixels
    const diameters = {}
    for (const size in sizes) {
      diameters[size] = container * (sizes[size] / 100)
      if (diameters[size] < minSizes[size]) {
        diameters[size] = minSizes[size]
      }
    }

    store.state.diameters = diameters
    store.actions.setLog('Size change detected on z-canvas')
  }
}
export default responsiveness
{'fraction_non_alphanumeric': 0.14541730670762928, 'fraction_numerical': 0.01228878648233487, 'mean_word_length': 3.028865979381443, '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': '5882431', 'n_tokens_mistral': 650, 'n_tokens_neox': 624, 'n_words': 170}