diff --git a/docs/app/js/sanddance-app.js b/docs/app/js/sanddance-app.js index d09b350e5..0e32ab315 100644 --- a/docs/app/js/sanddance-app.js +++ b/docs/app/js/sanddance-app.js @@ -83048,7 +83048,11 @@ const markStager = (options, stage, scene, x, y, groupType) => { }; function convertAngle(vegaTextAngle) { - return 360 - vegaTextAngle; + if (vegaTextAngle && !isNaN(vegaTextAngle)) { + return 360 - vegaTextAngle; + } + + return 0; } function convertAlignment(textAlign) { @@ -83062,6 +83066,8 @@ function convertAlignment(textAlign) { case 'right': return 'end'; } + + return 'start'; } function convertBaseline(baseline) { @@ -83070,7 +83076,7 @@ function convertBaseline(baseline) { return 'center'; } - return baseline; + return baseline || 'bottom'; } var _default = markStager; @@ -90888,7 +90894,7 @@ Object.defineProperty(exports, "__esModule", { exports.version = void 0; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. -const version = '1.6.6'; +const version = '1.6.7'; exports.version = version; },{}],"tCOI":[function(require,module,exports) { "use strict"; diff --git a/docs/dist/sanddance-explorer/v1/sanddance-explorer.js b/docs/dist/sanddance-explorer/v1/sanddance-explorer.js index 9ba8a4a0c..52e22edf0 100644 --- a/docs/dist/sanddance-explorer/v1/sanddance-explorer.js +++ b/docs/dist/sanddance-explorer/v1/sanddance-explorer.js @@ -8575,7 +8575,11 @@ const markStager = (options, stage, scene, x, y, groupType) => { }; function convertAngle(vegaTextAngle) { - return 360 - vegaTextAngle; + if (vegaTextAngle && !isNaN(vegaTextAngle)) { + return 360 - vegaTextAngle; + } + + return 0; } function convertAlignment(textAlign) { @@ -8589,6 +8593,8 @@ function convertAlignment(textAlign) { case 'right': return 'end'; } + + return 'start'; } function convertBaseline(baseline) { @@ -8597,7 +8603,7 @@ function convertBaseline(baseline) { return 'center'; } - return baseline; + return baseline || 'bottom'; } var _default = markStager; @@ -16415,7 +16421,7 @@ Object.defineProperty(exports, "__esModule", { exports.version = void 0; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. -const version = '1.6.6'; +const version = '1.6.7'; exports.version = version; },{}],"rZaE":[function(require,module,exports) { "use strict"; diff --git a/docs/dist/sanddance/v1/sanddance.js b/docs/dist/sanddance/v1/sanddance.js index 84f69636a..187367d2a 100644 --- a/docs/dist/sanddance/v1/sanddance.js +++ b/docs/dist/sanddance/v1/sanddance.js @@ -6864,7 +6864,10 @@ void main(void) { }); }; function convertAngle(vegaTextAngle) { - return 360 - vegaTextAngle; + if (vegaTextAngle && !isNaN(vegaTextAngle)) { + return 360 - vegaTextAngle; + } + return 0; } function convertAlignment(textAlign) { switch (textAlign) { @@ -6872,12 +6875,13 @@ void main(void) { case 'left': return 'start'; case 'right': return 'end'; } + return 'start'; } function convertBaseline(baseline) { switch (baseline) { case 'middle': return 'center'; } - return baseline; + return baseline || 'bottom'; } var GroupType; @@ -12762,7 +12766,7 @@ void main(void) { // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. - const version = '1.6.6'; + const version = '1.6.7'; // Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/docs/tests/es6/js/sanddance.js b/docs/tests/es6/js/sanddance.js index 403d76efe..0c4a265c8 100644 --- a/docs/tests/es6/js/sanddance.js +++ b/docs/tests/es6/js/sanddance.js @@ -143922,7 +143922,11 @@ const markStager = (options, stage, scene, x, y, groupType) => { }; function convertAngle(vegaTextAngle) { - return 360 - vegaTextAngle; + if (vegaTextAngle && !isNaN(vegaTextAngle)) { + return 360 - vegaTextAngle; + } + + return 0; } function convertAlignment(textAlign) { @@ -143936,6 +143940,8 @@ function convertAlignment(textAlign) { case 'right': return 'end'; } + + return 'start'; } function convertBaseline(baseline) { @@ -143944,7 +143950,7 @@ function convertBaseline(baseline) { return 'center'; } - return baseline; + return baseline || 'bottom'; } var _default = markStager; @@ -151762,7 +151768,7 @@ Object.defineProperty(exports, "__esModule", { exports.version = void 0; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. -const version = '1.6.6'; +const version = '1.6.7'; exports.version = version; },{}],"vUvc":[function(require,module,exports) { "use strict";