@formicoidea/labre-framework-uml 0.53.0 → 0.55.0
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.
- package/dist/frame-tag.js +2 -2
- package/dist/node/node-renderer.js +1 -1
- package/dist/view.js +4 -1
- package/package.json +3 -3
package/dist/frame-tag.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { backgroundLabelText, createFrameworkBackgroundRenderer, } from '@formicoidea/labre-core/blocks/surface';
|
|
1
|
+
import { backgroundLabelText, createFrameworkBackgroundRenderer, notationColor, } from '@formicoidea/labre-core/blocks/surface';
|
|
2
2
|
/**
|
|
3
3
|
* The tag's box, in ELEMENT-LOCAL model units — everything but the corner bite.
|
|
4
4
|
*
|
|
@@ -64,7 +64,7 @@ export function withUmlFrameTag(def, opts) {
|
|
|
64
64
|
// by a short heading or a squashed frame degrades to a triangle rather than
|
|
65
65
|
// folding back on itself.
|
|
66
66
|
const cut = Math.max(0, Math.min(opts.cut, rect.w, rect.h));
|
|
67
|
-
ctx.strokeStyle = opts.stroke;
|
|
67
|
+
ctx.strokeStyle = notationColor(renderer, opts.stroke);
|
|
68
68
|
ctx.lineWidth = opts.lineWidth;
|
|
69
69
|
ctx.beginPath();
|
|
70
70
|
ctx.moveTo(x, y);
|
|
@@ -612,7 +612,7 @@ export const umlNode = (model, ctx, matrix, renderer, rc, bound) => {
|
|
|
612
612
|
// Native shape: fill, stroke and theme, all handled natively.
|
|
613
613
|
shapeRenderer(model, ctx, matrix, renderer, rc, bound);
|
|
614
614
|
const stroke = renderer.getColorValue(model.strokeColor, DefaultTheme.shapeStrokeColor, true);
|
|
615
|
-
const fill = renderer.getColorValue(model.fillColor, DefaultTheme.shapeFillColor, true);
|
|
615
|
+
const fill = renderer.getColorValue(model.fillColor, DefaultTheme.shapeFillColor, true, 'fill');
|
|
616
616
|
const strokeWidth = model.strokeWidth || 1;
|
|
617
617
|
ctx.setTransform(glyphMatrix);
|
|
618
618
|
ctx.strokeStyle = stroke;
|
package/dist/view.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FrameworkBackgroundInteractionExtension, InterchangeExtension, morphToolbarConfig, ReadingProfileExtension, ValidationProfileExtension, ValidationRuleExtension, } from '@formicoidea/labre-core/blocks/surface';
|
|
1
|
+
import { FrameworkBackgroundInteractionExtension, InterchangeExtension, morphToolbarConfig, ReadingProfileExtension, ValidationProfileExtension, ValidationRuleExtension, NotationDarkPaletteExtension, } from '@formicoidea/labre-core/blocks/surface';
|
|
2
2
|
import { ViewExtensionProvider, } from '@formicoidea/labre-core/ext-loader';
|
|
3
3
|
import { TemplateCategoryExtension } from '@formicoidea/labre-core/gfx/template';
|
|
4
4
|
import { ToolbarModuleExtension, toolbarModuleKey, } from '@formicoidea/labre-core/shared/services';
|
|
@@ -41,6 +41,9 @@ export class UmlRenderViewExtension extends ViewExtensionProvider {
|
|
|
41
41
|
}
|
|
42
42
|
setup(context) {
|
|
43
43
|
super.setup(context);
|
|
44
|
+
// Nothing of this notation vanishes on the dark card: it registers an
|
|
45
|
+
// empty dark palette to say so (ADR 0039, `notation-dark-palettes`).
|
|
46
|
+
context.register(NotationDarkPaletteExtension({ framework: 'uml', colors: {} }));
|
|
44
47
|
context.register(UmlDiagramView);
|
|
45
48
|
context.register(UmlDiagramRendererExtension);
|
|
46
49
|
context.register(UmlSubjectView);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formicoidea/labre-framework-uml",
|
|
3
3
|
"description": "Labre uml framework for @formicoidea/labre-core.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.55.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"author": "lajola",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@formicoidea/labre-core": "0.
|
|
39
|
-
"@formicoidea/labre-ddd-shared": "0.
|
|
38
|
+
"@formicoidea/labre-core": "0.55.0",
|
|
39
|
+
"@formicoidea/labre-ddd-shared": "0.55.0",
|
|
40
40
|
"lit": "^3.2.0"
|
|
41
41
|
}
|
|
42
42
|
}
|