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

@tldraw/tlschema

Package Overview
Dependencies
Maintainers
4
Versions
2213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tldraw/tlschema - npm Package Compare versions

Comparing version 3.8.0-canary.1918a14afd3e to 3.8.0-canary.1a9d6883dd94

dist-cjs/shapes/ShapeWithCrop.js

23

dist-cjs/index.d.ts

@@ -367,3 +367,3 @@ import { BaseRecord } from '@tldraw/store';

/** @public */
export declare const ImageShapeCrop: T.ObjectValidator<TLImageShapeCrop>;
export declare const ImageShapeCrop: T.ObjectValidator<TLShapeCrop>;

@@ -616,2 +616,9 @@ /** @public */

/** @public */
export declare type ShapeWithCrop = TLBaseShape<string, {
crop: null | TLShapeCrop;
h: number;
w: number;
}>;
/**

@@ -1192,8 +1199,2 @@ * A `StyleProp` is a property of a shape that follows some special rules.

/** @public */
export declare interface TLImageShapeCrop {
topLeft: VecModel;
bottomRight: VecModel;
}
/** @public */
export declare interface TLImageShapeProps {

@@ -1205,3 +1206,3 @@ w: number;

assetId: null | TLAssetId;
crop: null | TLImageShapeCrop;
crop: null | TLShapeCrop;
flipX: boolean;

@@ -1485,2 +1486,8 @@ flipY: boolean;

/** @public */
export declare interface TLShapeCrop {
topLeft: VecModel;
bottomRight: VecModel;
}
/** @public */
export declare type TLShapeId = RecordId<TLUnknownShape>;

@@ -1487,0 +1494,0 @@

@@ -19,4 +19,4 @@ "use strict";

var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var src_exports = {};
__export(src_exports, {
var index_exports = {};
__export(index_exports, {
ArrowShapeArrowheadEndStyle: () => import_TLArrowShape.ArrowShapeArrowheadEndStyle,

@@ -123,3 +123,3 @@ ArrowShapeArrowheadStartStyle: () => import_TLArrowShape.ArrowShapeArrowheadStartStyle,

});
module.exports = __toCommonJS(src_exports);
module.exports = __toCommonJS(index_exports);
var import_utils = require("@tldraw/utils");

@@ -174,5 +174,5 @@ var import_TLBaseAsset = require("./assets/TLBaseAsset");

"@tldraw/tlschema",
"3.8.0-canary.1918a14afd3e",
"3.8.0-canary.1a9d6883dd94",
"cjs"
);
//# sourceMappingURL=index.js.map
{
"name": "@tldraw/tlschema",
"description": "A tiny little drawing app (schema).",
"version": "3.8.0-canary.1918a14afd3e",
"version": "3.8.0-canary.1a9d6883dd94",
"author": {

@@ -56,9 +56,10 @@ "name": "tldraw Inc.",

"dependencies": {
"@tldraw/state": "3.8.0-canary.1918a14afd3e",
"@tldraw/store": "3.8.0-canary.1918a14afd3e",
"@tldraw/utils": "3.8.0-canary.1918a14afd3e",
"@tldraw/validate": "3.8.0-canary.1918a14afd3e"
"@tldraw/state": "3.8.0-canary.1a9d6883dd94",
"@tldraw/store": "3.8.0-canary.1a9d6883dd94",
"@tldraw/utils": "3.8.0-canary.1a9d6883dd94",
"@tldraw/validate": "3.8.0-canary.1a9d6883dd94"
},
"peerDependencies": {
"react": "^18.2.0"
"react": "^18.2.0 || ^19.0.0",
"react-dom": "^18.2.0 || ^19.0.0"
},

@@ -65,0 +66,0 @@ "module": "dist-esm/index.mjs",

@@ -136,2 +136,3 @@ import { registerTldrawLibraryVersion } from '@tldraw/utils'

} from './recordsWithProps'
export { type ShapeWithCrop, type TLShapeCrop } from './shapes/ShapeWithCrop'
export {

@@ -202,3 +203,2 @@ ArrowShapeArrowheadEndStyle,

type TLImageShape,
type TLImageShapeCrop,
type TLImageShapeProps,

@@ -205,0 +205,0 @@ } from './shapes/TLImageShape'

import { T } from '@tldraw/validate'
import { assetIdValidator } from '../assets/TLBaseAsset'
import { VecModel, vecModelValidator } from '../misc/geometry-types'
import { vecModelValidator } from '../misc/geometry-types'
import { TLAssetId } from '../records/TLAsset'
import { createShapePropsMigrationIds, createShapePropsMigrationSequence } from '../records/TLShape'
import { RecordProps } from '../recordsWithProps'
import { TLShapeCrop } from './ShapeWithCrop'
import { TLBaseShape } from './TLBaseShape'
/** @public */
export interface TLImageShapeCrop {
topLeft: VecModel
bottomRight: VecModel
}
/** @public */
export const ImageShapeCrop: T.ObjectValidator<TLImageShapeCrop> = T.object({
export const ImageShapeCrop: T.ObjectValidator<TLShapeCrop> = T.object({
topLeft: vecModelValidator,

@@ -28,3 +23,3 @@ bottomRight: vecModelValidator,

assetId: TLAssetId | null
crop: TLImageShapeCrop | null
crop: TLShapeCrop | null
flipX: boolean

@@ -31,0 +26,0 @@ flipY: boolean

@@ -15,3 +15,3 @@ import { LANGUAGES } from './languages'

export function getDefaultTranslationLocale(): TLLanguage['locale'] {
const locales = typeof window !== 'undefined' ? window.navigator.languages ?? ['en'] : ['en']
const locales = typeof window !== 'undefined' ? (window.navigator.languages ?? ['en']) : ['en']
return _getDefaultTranslationLocale(locales)

@@ -18,0 +18,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

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

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