Skip to content

Commit

Permalink
feat(context-pad): do not scale by default
Browse files Browse the repository at this point in the history
  • Loading branch information
marstamm committed Apr 16, 2024
1 parent 457cb21 commit 81cac15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/features/context-pad/ContextPad.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function ContextPad(canvas, config, eventBus, overlays) {

var scale = isDefined(config && config.scale) ? config.scale : {
min: 1,
max: 1.5
max: 1
};

this._overlaysConfig = {
Expand Down
8 changes: 4 additions & 4 deletions test/spec/features/context-pad/ContextPadSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1141,10 +1141,10 @@ describe('features/context-pad', function() {
}


it('should scale [ 1.0, 1.5 ] by default', function() {
it('should not scale by default', function() {

// given
var expectedScales = [ 1.0, 1.2, 1.5, 1.5, 1.0 ];
var expectedScales = [ 1.0, 1.0, 1.0, 1.0, 1.0 ];

bootstrapDiagram({
modules: [ contextPadModule, providerModule ]
Expand All @@ -1155,10 +1155,10 @@ describe('features/context-pad', function() {
});


it('should scale [ 1.0, 1.5 ] without scale config', function() {
it('should not scale without scale config', function() {

// given
var expectedScales = [ 1.0, 1.2, 1.5, 1.5, 1.0 ];
var expectedScales = [ 1.0, 1.0, 1.0, 1.0, 1.0 ];

bootstrapDiagram({
modules: [ contextPadModule, providerModule ],
Expand Down

0 comments on commit 81cac15

Please sign in to comment.