Skip to content

Commit 29f3257

Browse files
committed
Animation section 'shape' renamed to 'geometry'.
1 parent c1c922d commit 29f3257

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/apps/weblib/js-api/vizzu.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ interface AnimOptions {
203203
enable: AnimOption;
204204
color: AnimOption;
205205
coordSystem: AnimOption;
206-
shape: AnimOption;
206+
geometry: AnimOption;
207207
y: AnimOption;
208208
x: AnimOption;
209209
}

src/chart/animator/morph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ std::unique_ptr<AbstractMorph> AbstractMorph::create(SectionId sectionId,
3333
return std::make_unique<Horizontal>(source, target, actual);
3434
case SectionId::EnumType::y:
3535
return std::make_unique<Vertical>(source, target, actual);
36-
case SectionId::EnumType::shape:
36+
case SectionId::EnumType::geometry:
3737
return std::make_unique<Shape>(source, target, actual);
3838
case SectionId::EnumType::coordSystem:
3939
return std::make_unique<CoordinateSystem>

src/chart/animator/options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Anim
1414
{
1515

1616
class Enum(SectionId)
17-
(style,title,enable,color,coordSystem,shape,y,x);
17+
(style,title,enable,color,coordSystem,geometry,y,x);
1818

1919
class Options
2020
{

src/chart/animator/planner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void Planner::createPlan(const Diag::Diagram &source,
5353
const auto &src = source.getOptions()->shapeType.get();
5454
const auto &trg = target.getOptions()->shapeType.get();
5555
if((bool)src.getFactor(Diag::ShapeType::Circle) && src != trg)
56-
addMorph(SectionId::shape, defOptions(1s));
56+
addMorph(SectionId::geometry, defOptions(1s));
5757

5858
if (positionMorphNeeded())
5959
{
@@ -79,7 +79,7 @@ void Planner::createPlan(const Diag::Diagram &source,
7979
}
8080

8181
if (!(bool)src.getFactor(Diag::ShapeType::Circle) && src != trg)
82-
addMorph(SectionId::shape, defOptions(1s));
82+
addMorph(SectionId::geometry, defOptions(1s));
8383

8484
if (anyMarker(
8585
[&](const auto &source, const auto &target) {

0 commit comments

Comments
 (0)