labimotion 2.0.0.rc4 → 2.0.0.rc5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aab9882de072c222a6e67a54d30eabe5f81733531e36cf702fcf3383cc526981
4
- data.tar.gz: a84933a64d143182e581afd1c69ae8bee6dec8ce462c6eec9fa90b48da64df2a
3
+ metadata.gz: a48b13c9036bfeb9b2a827cfa78179cf2244e9dc839aa2102d6811113f5274a7
4
+ data.tar.gz: 7425f00a429413c91f26bfd9c75dbb66dbfd30cacbbe58e361a985e1d17ae85b
5
5
  SHA512:
6
- metadata.gz: 59430594a0b79bf838688ffd2f3f71e928e582ee9b44f11a3dbf5cdbc0ba30e2d971dc25e2b538027357a06a04d2f61d05dfbc0a151f41e65de580633d238db6
7
- data.tar.gz: 895e4a24ab94b5b92a2fbcafdfeb90cc1ee040d75c7fbe8b142de08293b8c503f9551f64865ee3a2980811f8344dabc7159f43992c972c80ff455661c70bfd7d
6
+ metadata.gz: 59781f646145406ab451be32166cf03a32707456c3896754db074d853bbfe31f3a60cc0e69f59fbda2344863a98b2e8f41fe2bcdb79513924935a70bbda4ded0
7
+ data.tar.gz: c7efaf38bcb81bebf9c61111e63fca0c935723ac15064c58018ad26510608de3e9c4fdbc3cd3b52a645b153485e0c04fb9e080bfa2eaa50ffa4492505887124a
@@ -64,9 +64,10 @@ module Labimotion
64
64
  return unless el.present? && object.properties.dig(Labimotion::Prop::LAYERS, key, Labimotion::Prop::FIELDS, idx,
65
65
  'value').present?
66
66
 
67
+ label = field['type'] == Labimotion::FieldType::DRAG_SAMPLE ? el&.short_label : el.iupac_name
67
68
  update_field_value(key, idx, {
68
- 'el_label' => el&.short_label,
69
- 'el_tip' => el&.short_label,
69
+ 'el_label' => label,
70
+ 'el_tip' => label,
70
71
  'el_svg' => if field['type'] == Labimotion::FieldType::DRAG_SAMPLE
71
72
  el&.get_svg_path
72
73
  else
@@ -2,5 +2,5 @@
2
2
 
3
3
  ## Labimotion Version
4
4
  module Labimotion
5
- VERSION = '2.0.0.rc4'
5
+ VERSION = '2.0.0.rc5'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: labimotion
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc4
4
+ version: 2.0.0.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chia-Lin Lin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-02-20 00:00:00.000000000 Z
12
+ date: 2025-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails