@formicoidea/labre-framework-cynefin 0.30.1 → 0.31.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/cynefin/element-renderer.js +2 -2
- package/dist/effects.d.ts +2 -2
- package/dist/effects.js +2 -2
- package/dist/estuarine/element-renderer.js +2 -2
- package/dist/templates/index.js +2 -2
- package/dist/toolbar/menu.js +3 -3
- package/dist/toolbar/senior-button.js +1 -1
- package/dist/view.js +9 -9
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementRendererExtension, } from '@formicoidea/labre-core/blocks/surface';
|
|
2
|
-
import { FONT_FAMILY, refScale } from '../utils';
|
|
3
|
-
import { COLORS, DARK_BACK_PATHS, DARK_FRONT_PATHS, DASH_RECTS, DOMAINS, HATCHES, MARKERS, REF_H, REF_W, SMALL_LABELS, TEAL_LABELS, TEAL_PATH, TEAL_WIDTH, } from './consts';
|
|
2
|
+
import { FONT_FAMILY, refScale } from '../utils.js';
|
|
3
|
+
import { COLORS, DARK_BACK_PATHS, DARK_FRONT_PATHS, DASH_RECTS, DOMAINS, HATCHES, MARKERS, REF_H, REF_W, SMALL_LABELS, TEAL_LABELS, TEAL_PATH, TEAL_WIDTH, } from './consts.js';
|
|
4
4
|
/**
|
|
5
5
|
* Canvas renderer for the Liminal Cynefin diagram — reproduces the official SVG:
|
|
6
6
|
* the dark hand-drawn boundary, the teal "iterate" curve, the dashed
|
package/dist/effects.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EdgelessCynefinEstuarineMenu } from './toolbar/menu';
|
|
2
|
-
import { EdgelessCynefinEstuarineSeniorButton } from './toolbar/senior-button';
|
|
1
|
+
import { EdgelessCynefinEstuarineMenu } from './toolbar/menu.js';
|
|
2
|
+
import { EdgelessCynefinEstuarineSeniorButton } from './toolbar/senior-button.js';
|
|
3
3
|
export declare function effects(): void;
|
|
4
4
|
declare global {
|
|
5
5
|
interface HTMLElementTagNameMap {
|
package/dist/effects.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EdgelessCynefinEstuarineMenu } from './toolbar/menu';
|
|
2
|
-
import { EdgelessCynefinEstuarineSeniorButton } from './toolbar/senior-button';
|
|
1
|
+
import { EdgelessCynefinEstuarineMenu } from './toolbar/menu.js';
|
|
2
|
+
import { EdgelessCynefinEstuarineSeniorButton } from './toolbar/senior-button.js';
|
|
3
3
|
export function effects() {
|
|
4
4
|
customElements.define('edgeless-cynefin-estuarine-menu', EdgelessCynefinEstuarineMenu);
|
|
5
5
|
customElements.define('edgeless-cynefin-estuarine-senior-button', EdgelessCynefinEstuarineSeniorButton);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementRendererExtension, } from '@formicoidea/labre-core/blocks/surface';
|
|
2
|
-
import { FONT_FAMILY, refScale } from '../utils';
|
|
3
|
-
import { ARROWHEADS, AXIS_LABELS, AXIS_WIDTH, COLORS, COUNTERFACTUAL_PATH, COUNTERFACTUAL_WIDTH, E_AXIS, LABEL_LETTER_SPACING, LABELS, LIMINAL_PATH, LIMINAL_WIDTH, REF_H, REF_W, T_AXIS, VOLATILE_PATH, VOLATILE_WIDTH, } from './consts';
|
|
2
|
+
import { FONT_FAMILY, refScale } from '../utils.js';
|
|
3
|
+
import { ARROWHEADS, AXIS_LABELS, AXIS_WIDTH, COLORS, COUNTERFACTUAL_PATH, COUNTERFACTUAL_WIDTH, E_AXIS, LABEL_LETTER_SPACING, LABELS, LIMINAL_PATH, LIMINAL_WIDTH, REF_H, REF_W, T_AXIS, VOLATILE_PATH, VOLATILE_WIDTH, } from './consts.js';
|
|
4
4
|
/**
|
|
5
5
|
* Canvas renderer for the Estuarine framework map — reproduces the official SVG:
|
|
6
6
|
* the e (vertical, double-headed) / t (horizontal, single-headed) axes and the
|
package/dist/templates/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { makeTemplateSnapshot, surfaceText, } from '@formicoidea/labre-core/gfx/template';
|
|
2
2
|
import { FontFamily, ShapeStyle, TextAlign } from '@formicoidea/labre-core/model';
|
|
3
|
-
import { REF_H as CYN_H, REF_W as CYN_W } from '../cynefin/consts';
|
|
4
|
-
import { HEX_FILL, HEX_SIZE, HEX_STROKE, HEX_VERTICES, REF_H as EST_H, REF_W as EST_W, } from '../estuarine/consts';
|
|
3
|
+
import { REF_H as CYN_H, REF_W as CYN_W } from '../cynefin/consts.js';
|
|
4
|
+
import { HEX_FILL, HEX_SIZE, HEX_STROKE, HEX_VERTICES, REF_H as EST_H, REF_W as EST_W, } from '../estuarine/consts.js';
|
|
5
5
|
function sticky(x, y, text) {
|
|
6
6
|
return {
|
|
7
7
|
type: 'shape',
|
package/dist/toolbar/menu.js
CHANGED
|
@@ -4,9 +4,9 @@ import { ShapeStyle, TextFitMode } from '@formicoidea/labre-core/model';
|
|
|
4
4
|
import { EdgelessToolbarToolMixin } from '@formicoidea/labre-core/widgets/edgeless-toolbar';
|
|
5
5
|
import { Bound } from '@formicoidea/labre-core/global/gfx';
|
|
6
6
|
import { css, html, LitElement } from 'lit';
|
|
7
|
-
import { REF_H as CYN_H, REF_W as CYN_W } from '../cynefin/consts';
|
|
8
|
-
import { HEX_FILL, HEX_SIZE, HEX_STROKE, HEX_VERTICES, REF_H as EST_H, REF_W as EST_W, } from '../estuarine/consts';
|
|
9
|
-
import { cynefinMenuIcon, estuarineMenuIcon, hexagonMenuIcon, } from './icons';
|
|
7
|
+
import { REF_H as CYN_H, REF_W as CYN_W } from '../cynefin/consts.js';
|
|
8
|
+
import { HEX_FILL, HEX_SIZE, HEX_STROKE, HEX_VERTICES, REF_H as EST_H, REF_W as EST_W, } from '../estuarine/consts.js';
|
|
9
|
+
import { cynefinMenuIcon, estuarineMenuIcon, hexagonMenuIcon, } from './icons.js';
|
|
10
10
|
/** Estuarine map default size (REF aspect, scaled up so it reads on canvas). */
|
|
11
11
|
const MAP_SCALE = 1.2;
|
|
12
12
|
/**
|
|
@@ -3,7 +3,7 @@ import { EmptyTool } from '@formicoidea/labre-core/gfx/pointer';
|
|
|
3
3
|
import { EdgelessToolbarToolMixin } from '@formicoidea/labre-core/widgets/edgeless-toolbar';
|
|
4
4
|
import { SignalWatcher } from '@formicoidea/labre-core/global/lit';
|
|
5
5
|
import { css, html, LitElement } from 'lit';
|
|
6
|
-
import { cynefinToolbarIcon } from './icons';
|
|
6
|
+
import { cynefinToolbarIcon } from './icons.js';
|
|
7
7
|
/** Main toolbar button that opens the combined Cynefin / Estuarine sub-menu. */
|
|
8
8
|
export class EdgelessCynefinEstuarineSeniorButton extends EdgelessToolbarToolMixin(SignalWatcher(LitElement)) {
|
|
9
9
|
constructor() {
|
package/dist/view.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ViewExtensionProvider, } from '@formicoidea/labre-core/ext-loader';
|
|
2
2
|
import { extendTemplateCategory } from '@formicoidea/labre-core/gfx/template';
|
|
3
|
-
import { CynefinRendererExtension } from './cynefin/element-renderer';
|
|
4
|
-
import { CynefinInteraction, CynefinView } from './cynefin/element-view';
|
|
5
|
-
import { cynefinToolbarExtension } from './cynefin/toolbar/config';
|
|
6
|
-
import { effects } from './effects';
|
|
7
|
-
import { EstuarineRendererExtension } from './estuarine/element-renderer';
|
|
8
|
-
import { EstuarineInteraction, EstuarineView } from './estuarine/element-view';
|
|
9
|
-
import { estuarineToolbarExtension } from './estuarine/toolbar/config';
|
|
10
|
-
import { cynefinTemplateCategory, estuarineTemplateCategory, } from './templates';
|
|
11
|
-
import { cynefinEstuarineSeniorTool } from './toolbar/senior-tool';
|
|
3
|
+
import { CynefinRendererExtension } from './cynefin/element-renderer.js';
|
|
4
|
+
import { CynefinInteraction, CynefinView } from './cynefin/element-view.js';
|
|
5
|
+
import { cynefinToolbarExtension } from './cynefin/toolbar/config.js';
|
|
6
|
+
import { effects } from './effects.js';
|
|
7
|
+
import { EstuarineRendererExtension } from './estuarine/element-renderer.js';
|
|
8
|
+
import { EstuarineInteraction, EstuarineView } from './estuarine/element-view.js';
|
|
9
|
+
import { estuarineToolbarExtension } from './estuarine/toolbar/config.js';
|
|
10
|
+
import { cynefinTemplateCategory, estuarineTemplateCategory, } from './templates/index.js';
|
|
11
|
+
import { cynefinEstuarineSeniorTool } from './toolbar/senior-tool.js';
|
|
12
12
|
export class CynefinEstuarineViewExtension extends ViewExtensionProvider {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formicoidea/labre-framework-cynefin",
|
|
3
3
|
"description": "Labre cynefin framework for @formicoidea/labre-core.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.31.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"author": "lajola",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@formicoidea/labre-core": "0.
|
|
30
|
+
"@formicoidea/labre-core": "0.31.0",
|
|
31
31
|
"lit": "^3.2.0"
|
|
32
32
|
}
|
|
33
33
|
}
|