🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@gedit/utils

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gedit/utils - npm Package Compare versions

Comparing version

to
0.2.0

2

lib/common/schema/schema-transform.d.ts

@@ -18,2 +18,4 @@ import { SchemaDecoration } from './schema';

height: number;
changeWidth?: boolean;
changeHeight?: boolean;
locked?: boolean;

@@ -20,0 +22,0 @@ }

@@ -10,3 +10,5 @@ "use strict";

height: { label: '高', default: 0, type: 'float' },
locked: { label: '等比锁', default: false, type: 'boolean' }
locked: { label: '等比锁', default: false, type: 'boolean' },
changeWidth: { label: '宽变更', default: false, type: 'boolean' },
changeHeight: { label: '高变更', default: false, type: 'boolean' },
},

@@ -73,3 +75,9 @@ type: 'object',

position: { x: obj.position.x, y: obj.position.y },
size: { width: obj.size.width, height: obj.size.height, locked: obj.size.locked },
size: {
width: obj.size.width,
height: obj.size.height,
locked: obj.size.locked,
changeWidth: obj.size.changeWidth,
changeHeight: obj.size.changeHeight,
},
origin: { x: obj.origin.x, y: obj.origin.y },

@@ -76,0 +84,0 @@ scale: { x: obj.scale.x, y: obj.scale.y },

2

lib/common/schema/schema.d.ts

@@ -20,3 +20,3 @@ export declare type SchemaType = 'string' | 'integer' | 'float' | 'boolean' | 'enum' | 'object' | 'range' | 'color' | 'array';

disabled?: boolean;
default?: any;
default?: SCHEMA;
type: SchemaType;

@@ -23,0 +23,0 @@ mixinDefaults?: SchemaMixinDefaults;

{
"name": "@gedit/utils",
"version": "0.1.70",
"version": "0.2.0",
"license": "MIT",

@@ -32,3 +32,3 @@ "main": "lib/common/index",

},
"gitHead": "8bdf36b3a3898da871ec15be92760865fc6a182a"
"gitHead": "cc40d9ce45193e6f024f79a94b5d0518325bf3ff"
}

@@ -132,3 +132,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

export function assign<T = any>(target: T, fn: Disposable): Cache<T> {
return Object.assign(target, fn);
return Object.assign(target as any, fn) as any;
}

@@ -135,0 +135,0 @@

@@ -22,3 +22,5 @@ import { Schema, SchemaDecoration } from './schema';

width: number,
height: number
height: number;
changeWidth?: boolean;
changeHeight?: boolean;
locked?: boolean // 是否开启等比锁

@@ -46,3 +48,5 @@ }

height: {label: '高', default: 0, type: 'float'},
locked: {label: '等比锁', default: false, type: 'boolean'}
locked: { label: '等比锁', default: false, type: 'boolean' },
changeWidth: { label: '宽变更', default: false, type: 'boolean' },
changeHeight: { label: '高变更', default: false, type: 'boolean' },
},

@@ -114,3 +118,9 @@ type: 'object',

position: {x: obj.position.x, y: obj.position.y},
size: {width: obj.size.width, height: obj.size.height, locked: obj.size.locked},
size: {
width: obj.size.width,
height: obj.size.height,
locked: obj.size.locked,
changeWidth: obj.size.changeWidth,
changeHeight: obj.size.changeHeight,
},
origin: {x: obj.origin.x, y: obj.origin.y},

@@ -117,0 +127,0 @@ scale: {x: obj.scale.x, y: obj.scale.y},

@@ -22,3 +22,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

disabled?: boolean // 是否屏蔽
default?: any // 默认值
default?: SCHEMA // 默认值
type: SchemaType

@@ -25,0 +25,0 @@ mixinDefaults?: SchemaMixinDefaults

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet