Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@finos/legend-extension-dsl-diagram

Package Overview
Dependencies
Maintainers
0
Versions
408
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@finos/legend-extension-dsl-diagram - npm Package Compare versions

Comparing version 8.0.189 to 8.0.190

4

lib/components/studio/DiagramEditor.js

@@ -22,3 +22,3 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";

import { DIAGRAM_EDITOR_SIDE_PANEL_TAB, DiagramEditorClassViewEditorSidePanelState, DiagramEditorState, } from '../../stores/studio/DiagramEditorState.js';
import { ContextMenu, getCollapsiblePanelGroupProps, BasePopover, BlankPanelContent, CaretDownIcon, CheckSquareIcon, clsx, createFilter, CustomSelectorInput, KeyboardIcon, DropdownMenu, MenuContent, MenuContentDivider, MenuContentItem, PlusIcon, SquareIcon, ResizablePanelGroup, ResizablePanelSplitter, ResizablePanel, ResizeIcon, MinusIcon, MousePointerIcon, MoveIcon, PlusCircleIcon, SidebarIcon, TriangleIcon, ZoomInIcon, ZoomOutIcon, Dialog, AlignEndIcon, DistributeHorizontalIcon, DistributeVerticalIcon, AlignStartIcon, AlignCenterIcon, AlignTopIcon, AlignMiddleIcon, AlignBottomIcon, useResizeDetector, Modal, ModalBody, ModalHeader, } from '@finos/legend-art';
import { ContextMenu, getCollapsiblePanelGroupProps, BasePopover, BlankPanelContent, CaretDownIcon, CheckSquareIcon, clsx, createFilter, CustomSelectorInput, KeyboardIcon, ControlledDropdownMenu, MenuContent, MenuContentDivider, MenuContentItem, PlusIcon, SquareIcon, ResizablePanelGroup, ResizablePanelSplitter, ResizablePanel, ResizeIcon, MinusIcon, MousePointerIcon, MoveIcon, PlusCircleIcon, SidebarIcon, TriangleIcon, ZoomInIcon, ZoomOutIcon, Dialog, AlignEndIcon, DistributeHorizontalIcon, DistributeVerticalIcon, AlignStartIcon, AlignCenterIcon, AlignTopIcon, AlignMiddleIcon, AlignBottomIcon, useResizeDetector, Modal, ModalBody, ModalHeader, } from '@finos/legend-art';
import { Class, DerivedProperty, Property, ELEMENT_PATH_DELIMITER, MULTIPLICITY_INFINITE, GenericType, createPath, isValidFullPath, isValidPathIdentifier, resolvePackagePathAndElementName, } from '@finos/legend-graph';

@@ -420,3 +420,3 @@ import { guaranteeNonNullable, prettyCONSTName } from '@finos/legend-shared';

const isAlignerDisabled = diagramEditorState.renderer.selectedClasses.length < 2;
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "diagram-editor__header__group", children: [_jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Align left", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.ALIGN_LEFT), children: _jsx(AlignStartIcon, { className: "diagram-editor__icon--aligner" }) }), _jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Align center", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.ALIGN_CENTER), children: _jsx(AlignCenterIcon, { className: "diagram-editor__icon--aligner" }) }), _jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Align right", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.ALIGN_RIGHT), children: _jsx(AlignEndIcon, { className: "diagram-editor__icon--aligner" }) })] }), _jsx("div", { className: "diagram-editor__header__group__separator" }), _jsxs("div", { className: "diagram-editor__header__group", children: [_jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Align top", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.ALIGN_TOP), children: _jsx(AlignTopIcon, { className: "diagram-editor__icon--aligner" }) }), _jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Align middle", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.ALIGN_MIDDLE), children: _jsx(AlignMiddleIcon, { className: "diagram-editor__icon--aligner" }) }), _jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Align bottom", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.ALIGN_BOTTOM), children: _jsx(AlignBottomIcon, { className: "diagram-editor__icon--aligner" }) })] }), _jsx("div", { className: "diagram-editor__header__group__separator" }), _jsxs("div", { className: "diagram-editor__header__group", children: [_jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Space horizontally", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.SPACE_HORIZONTALLY), children: _jsx(DistributeHorizontalIcon, { className: "diagram-editor__icon--aligner" }) }), _jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Space vertically", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.SPACE_VERTICALLY), children: _jsx(DistributeVerticalIcon, { className: "diagram-editor__icon--aligner" }) })] }), _jsxs(DropdownMenu, { className: "diagram-editor__header__dropdown", title: "Zoom...", content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, { className: "diagram-editor__header__zoomer__dropdown__menu__item", onClick: zoomToFit, children: "Fit" }), _jsx(MenuContentDivider, {}), DIAGRAM_ZOOM_LEVELS.map((zoomLevel) => (_jsxs(MenuContentItem, { className: "diagram-editor__header__zoomer__dropdown__menu__item", onClick: createCenterZoomer(zoomLevel), children: [zoomLevel, "%"] }, zoomLevel)))] }), menuProps: {
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "diagram-editor__header__group", children: [_jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Align left", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.ALIGN_LEFT), children: _jsx(AlignStartIcon, { className: "diagram-editor__icon--aligner" }) }), _jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Align center", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.ALIGN_CENTER), children: _jsx(AlignCenterIcon, { className: "diagram-editor__icon--aligner" }) }), _jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Align right", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.ALIGN_RIGHT), children: _jsx(AlignEndIcon, { className: "diagram-editor__icon--aligner" }) })] }), _jsx("div", { className: "diagram-editor__header__group__separator" }), _jsxs("div", { className: "diagram-editor__header__group", children: [_jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Align top", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.ALIGN_TOP), children: _jsx(AlignTopIcon, { className: "diagram-editor__icon--aligner" }) }), _jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Align middle", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.ALIGN_MIDDLE), children: _jsx(AlignMiddleIcon, { className: "diagram-editor__icon--aligner" }) }), _jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Align bottom", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.ALIGN_BOTTOM), children: _jsx(AlignBottomIcon, { className: "diagram-editor__icon--aligner" }) })] }), _jsx("div", { className: "diagram-editor__header__group__separator" }), _jsxs("div", { className: "diagram-editor__header__group", children: [_jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Space horizontally", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.SPACE_HORIZONTALLY), children: _jsx(DistributeHorizontalIcon, { className: "diagram-editor__icon--aligner" }) }), _jsx("button", { className: "diagram-editor__header__action diagram-editor__header__group__action", title: "Space vertically", disabled: isAlignerDisabled, tabIndex: -1, onClick: () => diagramEditorState.renderer.align(DIAGRAM_ALIGNER_OPERATOR.SPACE_VERTICALLY), children: _jsx(DistributeVerticalIcon, { className: "diagram-editor__icon--aligner" }) })] }), _jsxs(ControlledDropdownMenu, { className: "diagram-editor__header__dropdown", title: "Zoom...", content: _jsxs(MenuContent, { children: [_jsx(MenuContentItem, { className: "diagram-editor__header__zoomer__dropdown__menu__item", onClick: zoomToFit, children: "Fit" }), _jsx(MenuContentDivider, {}), DIAGRAM_ZOOM_LEVELS.map((zoomLevel) => (_jsxs(MenuContentItem, { className: "diagram-editor__header__zoomer__dropdown__menu__item", onClick: createCenterZoomer(zoomLevel), children: [zoomLevel, "%"] }, zoomLevel)))] }), menuProps: {
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },

@@ -423,0 +423,0 @@ transformOrigin: { vertical: 'top', horizontal: 'right' },

{
"name": "@finos/legend-extension-dsl-diagram",
"version": "8.0.189",
"version": "8.0.190",
"description": "Legend extension for Diagram DSL",

@@ -57,3 +57,3 @@ "keywords": [

"@types/react": "18.3.3",
"mobx": "6.12.4",
"mobx": "6.12.5",
"mobx-react-lite": "4.0.7",

@@ -60,0 +60,0 @@ "react": "18.3.1",

{
"name": "@finos/legend-extension-dsl-diagram",
"version": "8.0.189",
"version": "8.0.190",
"description": "Legend extension for Diagram DSL",

@@ -49,11 +49,11 @@ "keywords": [

"dependencies": {
"@finos/legend-application": "15.1.12",
"@finos/legend-application-studio": "28.17.16",
"@finos/legend-art": "7.1.40",
"@finos/legend-graph": "31.10.7",
"@finos/legend-lego": "1.2.43",
"@finos/legend-shared": "10.0.42",
"@finos/legend-storage": "3.0.92",
"@finos/legend-application": "15.1.13",
"@finos/legend-application-studio": "28.17.17",
"@finos/legend-art": "7.1.41",
"@finos/legend-graph": "31.10.8",
"@finos/legend-lego": "1.2.44",
"@finos/legend-shared": "10.0.43",
"@finos/legend-storage": "3.0.93",
"@types/react": "18.3.3",
"mobx": "6.12.4",
"mobx": "6.12.5",
"mobx-react-lite": "4.0.7",

@@ -66,3 +66,3 @@ "react": "18.3.1",

"devDependencies": {
"@finos/legend-dev-utils": "2.1.10",
"@finos/legend-dev-utils": "2.1.11",
"@jest/globals": "29.7.0",

@@ -69,0 +69,0 @@ "@testing-library/dom": "10.2.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc