New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lucid-extension-sdk

Package Overview
Dependencies
Maintainers
2
Versions
338
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lucid-extension-sdk - npm Package Compare versions

Comparing version 0.0.177 to 0.0.178

19

commandtypes.d.ts

@@ -55,2 +55,3 @@ import { SerializedFieldTypeDefinition } from './core/data/fieldtypedefinition/fieldtypedefinition';

ExecuteFormula = "ef",
FindAvailableSpace = "fas",
GetConnectedLines = "gcl",

@@ -271,2 +272,6 @@ GetCurrentPage = "gcp",

};
[CommandName.FindAvailableSpace]: {
query: FindAvailableSpaceQuery;
result: FindAvailableSpaceResult;
};
[CommandName.GetConnectedLines]: {

@@ -910,2 +915,16 @@ query: GetConnectedLinesQuery;

export type ExecuteFormulaResult = SerializedFieldType | SerializedDataError;
export type FindAvailableSpaceQuery = {
/** Width */
'w': number;
/** Height */
'h': number;
};
export type FindAvailableSpaceResult = {
/** ID of the page you should add content to */
'p': string;
/** Origin of the rectangle of empty space */
'x': number;
/** Origin of the rectangle of empty space */
'y': number;
};
export type AnimateViewportQuery = {

@@ -912,0 +931,0 @@ /** ID of the page to view */

1

commandtypes.js

@@ -36,2 +36,3 @@ "use strict";

["ef" /* CommandName.ExecuteFormula */, 'ExecuteFormula'],
["fas" /* CommandName.FindAvailableSpace */, 'FindAvailableSpace'],
["gcl" /* CommandName.GetConnectedLines */, 'GetConnectedLines'],

@@ -38,0 +39,0 @@ ["gcp" /* CommandName.GetCurrentPage */, 'GetCurrentPage'],

@@ -26,2 +26,6 @@ import { EditorClient } from '../editorclient';

/**
* An iterator over all lines on all pages of the document
*/
allLines(): Generator<import("./lineproxy").LineProxy, void, unknown>;
/**
* Add a new page to the current document

@@ -28,0 +32,0 @@ * @param def Definition of the page to add

@@ -40,2 +40,12 @@ "use strict";

/**
* An iterator over all lines on all pages of the document
*/
*allLines() {
for (const page of this.pages.values()) {
for (const line of page.lines.values()) {
yield line;
}
}
}
/**
* Add a new page to the current document

@@ -42,0 +52,0 @@ * @param def Definition of the page to add

2

document/lineproxy.d.ts

@@ -9,3 +9,3 @@ import { Point } from '../math';

Elbow = "elbow",
Straight = "straight"
Diagonal = "diagonal"
}

@@ -12,0 +12,0 @@ /**

@@ -12,3 +12,3 @@ "use strict";

LineShape["Elbow"] = "elbow";
LineShape["Straight"] = "straight";
LineShape["Diagonal"] = "diagonal";
})(LineShape = exports.LineShape || (exports.LineShape = {}));

@@ -15,0 +15,0 @@ /**

{
"name": "lucid-extension-sdk",
"version": "0.0.177",
"version": "0.0.178",
"description": "Utility classes for writing Lucid Software editor extensions",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -22,2 +22,3 @@ "use strict";

frameClosed() {
this.visible = false;
this.unhookMessages();

@@ -24,0 +25,0 @@ }

@@ -25,2 +25,14 @@ import { BlockDefinition } from '../document/blockdefinition';

/**
* Find available space on the current page for adding new content.
* @param width
* @param height
* @returns a reference to the page and origin (upper-left point) of the space you can add new
* content of the given size to.
*/
findAvailableSpace(width: number, height: number): {
page: PageProxy;
x: number;
y: number;
};
/**
* @returns the page currently being viewed

@@ -27,0 +39,0 @@ */

@@ -27,2 +27,17 @@ "use strict";

/**
* Find available space on the current page for adding new content.
* @param width
* @param height
* @returns a reference to the page and origin (upper-left point) of the space you can add new
* content of the given size to.
*/
findAvailableSpace(width, height) {
const result = this.client.sendCommand("fas" /* CommandName.FindAvailableSpace */, { 'w': width, 'h': height });
return {
page: new pageproxy_1.PageProxy(result['p'], this.client),
x: result['x'],
y: result['y'],
};
}
/**
* @returns the page currently being viewed

@@ -29,0 +44,0 @@ */

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