type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
ClassDeclaration |
class Polygon implements IModel {
paths: IPathMap;
constructor(numberOfSides: number, radius: number, firstCornerAngleInDegrees?: number, circumscribed?: boolean);
static circumscribedRadius(radius: number, angleInRadians: number): number;
static getPoints(numberOfSides: number, radius:... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
ClassDeclaration |
class BoltCircle implements IModel {
paths: IPathMap;
constructor(boltRadius: number, holeRadius: number, boltCount: number, firstBoltAngleInDegrees?: number);
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
ClassDeclaration |
class BoltRectangle implements IModel {
paths: IPathMap;
constructor(width: number, height: number, holeRadius: number);
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
ClassDeclaration |
class Dome implements IModel {
paths: IPathMap;
constructor(width: number, height: number, radius?: number);
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
ClassDeclaration |
class RoundRectangle implements IModel {
origin: IPoint;
paths: IPathMap;
/**
* Create a round rectangle from width, height, and corner radius.
*
* Example:
* ```
* var r = new makerjs.models.RoundRectangle(100, 50, 5);
* ```
*
... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
ClassDeclaration |
class Oval implements IModel {
paths: IPathMap;
constructor(width: number, height: number);
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
ClassDeclaration |
class OvalArc implements IModel {
paths: IPathMap;
models: IModelMap;
constructor(startAngle: number, endAngle: number, sweepRadius: number, slotRadius: number, selfIntersect?: boolean, isolateCaps?: boolean);
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
ClassDeclaration |
class Rectangle implements IModel {
paths: IPathMap;
origin: IPoint;
/**
* Create a rectangle from width and height.
*
* Example:
* ```
* var r = new makerjs.models.Rectangle(100, 50);
* ```
*
* @param width Width of the re... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
ClassDeclaration |
class Ring implements IModel {
paths: IPathMap;
constructor(outerRadius: number, innerRadius: number);
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
ClassDeclaration |
class SCurve implements IModel {
paths: IPathMap;
constructor(width: number, height: number);
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
ClassDeclaration |
class Slot implements IModel {
paths: IPathMap;
origin: IPoint;
models: IModelMap;
constructor(origin: IPoint, endPoint: IPoint, radius: number, isolateCaps?: boolean);
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
ClassDeclaration |
class Square implements IModel {
paths: IPathMap;
constructor(side: number);
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
ClassDeclaration |
class Star implements IModel {
paths: IPathMap;
constructor(numberOfPoints: number, outerRadius: number, innerRadius?: number, skipPoints?: number);
static InnerRadiusRatio(numberOfPoints: number, skipPoints: number): number;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
ClassDeclaration |
class Text implements IModel {
models: IModelMap;
constructor(font: opentypejs.Font, text: string, fontSize: number, combine?: boolean);
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* An x-y point in a two-dimensional space.
* Implemented as an array with 2 elements. The first element is x, the second element is y.
*
* Examples:
* ```
* var p: IPoint = [0, 0]; //typescript
* var p = [0, 0]; //javascript
* ```
*/
interface IPoint {
[index... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A measurement of extents, the high and low points.
*/
interface IMeasure {
/**
* The point containing both the lowest x and y values of the rectangle containing the item being measured.
*/
low: IPoint;
/**
* The point containing both the highest x and y... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A map of measurements.
*/
interface IMeasureMap {
[key: string]: IMeasure;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A line, curved line or other simple two dimensional shape.
*/
interface IPath {
/**
* The type of the path, e.g. "line", "circle", or "arc". These strings are enumerated in pathType.
*/
"type": string;
/**
* The main point of reference for this path.
... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A line path.
*
* Examples:
* ```
* var line: IPathLine = { type: 'line', origin: [0, 0], end: [1, 1] }; //typescript
* var line = { type: 'line', origin: [0, 0], end: [1, 1] }; //javascript
* ```
*/
interface IPathLine extends IPath {
/**
* The end poin... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A circle path.
*
* Examples:
* ```
* var circle: IPathCircle = { type: 'circle', origin: [0, 0], radius: 7 }; //typescript
* var circle = { type: 'circle', origin: [0, 0], radius: 7 }; //javascript
* ```
*/
interface IPathCircle extends IPath {
/**
* Th... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* An arc path.
*
* Examples:
* ```
* var arc: IPathArc = { type: 'arc', origin: [0, 0], radius: 7, startAngle: 0, endAngle: 45 }; //typescript
* var arc = { type: 'arc', origin: [0, 0], radius: 7, startAngle: 0, endAngle: 45 }; //javascript
* ```
*/
interface IPathArc ext... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A bezier seed defines the endpoints and control points of a bezier curve.
*/
interface IPathBezierSeed extends IPathLine {
/**
* The bezier control points. One point for quadratic, 2 points for cubic.
*/
controls: IPoint[];
/**
* T values of the parent ... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Bezier t values for an arc path segment in a bezier curve.
*/
interface IBezierRange {
/**
* The bezier t-value at the starting point.
*/
startT: number;
/**
* The bezier t-value at the end point.
*/
endT: number;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* An arc path segment in a bezier curve.
*/
interface IPathArcInBezierCurve extends IPathArc {
bezierData: IBezierRange;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A map of functions which accept a path as a parameter.
*/
interface IPathFunctionMap {
/**
* Key is the type of a path, value is a function which accepts a path object as its parameter.
*/
[type: string]: (pathValue: IPath) => void;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A map of functions which accept a path and an origin point as parameters.
*/
interface IPathOriginFunctionMap {
/**
* Key is the type of a path, value is a function which accepts a path object a point object as its parameters.
*/
[type: string]: (id: string, pathValue: ... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Slope and y-intercept of a line.
*/
interface ISlope {
/**
* Boolean to see if line has slope or is vertical.
*/
hasSlope: boolean;
/**
* Optional value of non-vertical slope.
*/
slope?: number;
/**
* Line used to calcu... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Options to pass to path.intersection()
*/
interface IPathIntersectionBaseOptions {
/**
* Optional boolean to only return deep intersections, i.e. not on an end point or tangent.
*/
excludeTangents?: boolean;
/**
* Optional output variable which will be ... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Options to pass to path.intersection()
*/
interface IPathIntersectionOptions extends IPathIntersectionBaseOptions {
/**
* Optional boolean to only return deep intersections, i.e. not on an end point or tangent.
*/
path1Offset?: IPoint;
/**
* Optional ou... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* An intersection of two paths.
*/
interface IPathIntersection {
/**
* Array of points where the two paths intersected. The length of the array may be either 1 or 2 points.
*/
intersectionPoints: IPoint[];
/**
* This Array property will only be defined if... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Options when matching points
*/
interface IPointMatchOptions {
/**
* Max distance to consider two points as the same.
*/
pointMatchingDistance?: number;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Options to pass to model.combine.
*/
interface ICombineOptions extends IPointMatchOptions {
/**
* Flag to remove paths which are not part of a loop.
*/
trimDeadEnds?: boolean;
/**
* Point which is known to be outside of the model.
*/
fa... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Options to pass to model.findLoops.
*/
interface IFindLoopsOptions extends IPointMatchOptions {
/**
* Flag to remove looped paths from the original model.
*/
removeFromOriginal?: boolean;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Options to pass to model.simplify()
*/
interface ISimplifyOptions {
/**
* Optional
*/
pointMatchingDistance?: number;
/**
* Optional
*/
scalarMatchingDistance?: number;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A path that may be indicated to "flow" in either direction between its endpoints.
*/
interface IPathDirectional extends IPath {
/**
* The endpoints of the path.
*/
endPoints: IPoint[];
/**
* Path flows forwards or reverse.
*/
reversed?:... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Path objects by id.
*/
interface IPathMap {
[id: string]: IPath;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Model objects by id.
*/
interface IModelMap {
[id: string]: IModel;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A model is a composite object which may contain an array of paths, or an array of models recursively.
*
* Example:
* ```
* var m = {
* paths: {
* "line1": { type: 'line', origin: [0, 0], end: [1, 1] },
* "line2": { type: 'line', origin: [0, 0], end: [-1, -1] }
... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Callback signature for model.walkPaths().
*/
interface IModelPathCallback {
(modelContext: IModel, pathId: string, pathContext: IPath): void;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Reference to a path id within a model.
*/
interface IRefPathIdInModel {
modelContext: IModel;
pathId: string;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A route to either a path or a model, and the absolute offset of it.
*/
interface IRouteOffset {
layer: string;
offset: IPoint;
route: string[];
routeKey: string;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A path reference in a walk.
*/
interface IWalkPath extends IRefPathIdInModel, IRouteOffset {
pathContext: IPath;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Callback signature for path in model.walk().
*/
interface IWalkPathCallback {
(context: IWalkPath): void;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Callback for returning a boolean from an IWalkPath.
*/
interface IWalkPathBooleanCallback {
(context: IWalkPath): boolean;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A link in a chain, with direction of flow.
*/
interface IChainLink {
/**
* Reference to the path.
*/
walkedPath: IWalkPath;
/**
* Path flows forwards or reverse.
*/
reversed: boolean;
/**
* The endpoints of the path, in... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A chain of paths which connect end to end.
*/
interface IChain {
/**
* The links in this chain.
*/
links: IChainLink[];
/**
* Flag if this chain forms a loop end to end.
*/
endless?: boolean;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Callback to model.findChains() with resulting array of chains and unchained paths.
*/
interface IChainCallback {
(chains: IChain[], loose: IWalkPath[], layer: string): void;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Options to pass to model.findLoops.
*/
interface IFindChainsOptions extends IPointMatchOptions {
/**
* Flag to separate chains by layers.
*/
byLayers?: boolean;
/**
* Flag to not recurse models, look only within current model's immediate paths.
... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Reference to a model within a model.
*/
interface IRefModelInModel {
parentModel: IModel;
childId: string;
childModel: IModel;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A model reference in a walk.
*/
interface IWalkModel extends IRefModelInModel, IRouteOffset {
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Callback signature for model.walk().
*/
interface IWalkModelCallback {
(context: IWalkModel): void;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Callback signature for model.walk(), which may return false to halt any further walking.
*/
interface IWalkModelCancellableCallback {
(context: IWalkModel): boolean;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Options to pass to model.walk().
*/
interface IWalkOptions {
onPath?: IWalkPathCallback;
beforeChildWalk?: IWalkModelCancellableCallback;
afterChildWalk?: IWalkModelCallback;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Describes a parameter and its limits.
*/
interface IMetaParameter {
/**
* Display text of the parameter.
*/
title: string;
/**
* Type of the parameter. Currently supports "range".
*/
type: string;
/**
* Optional minimum... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* An IKit is a model-producing class with some sample parameters. Think of it as a packaged model with instructions on how to best use it.
*/
interface IKit {
/**
* The constructor. The kit must be "new-able" and it must produce an IModel.
* It can have any number of any type of ... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Compare keys to see if they are equal.
*/
interface ICollectionKeyComparer<K> {
(a: K, b: K): boolean;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* A collection for items that share a common key.
*/
interface ICollection<K, T> {
key: K;
items: T[];
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* @private
*/
interface IExportOptions {
/**
* Unit system to embed in exported file.
*/
units?: string;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* DXF rendering options.
*/
interface IDXFRenderOptions extends IExportOptions {
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Attributes for an XML tag.
* @private
*/
interface IXmlTagAttrs {
[name: string]: any;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* OpenJsCad export options.
*/
interface IOpenJsCadOptions extends IFindLoopsOptions {
/**
* Optional depth of 3D extrusion.
*/
extrusion?: number;
/**
* Optional size of curve facets.
*/
facetSize?: number;
/**
* Optiona... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration |
interface IOpenJsCadOptionsMap {
[modelId: string]: IOpenJsCadOptions;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* PDF rendering options.
*/
interface IPDFRenderOptions extends IExportOptions {
/**
* Rendered reference origin.
*/
origin?: IPoint;
/**
* SVG color of the rendered paths.
*/
stroke?: string;
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* Map of MakerJs unit system to SVG unit system
*/
interface svgUnitConversion {
[unitType: string]: {
svgUnitType: string;
scaleConversion: number;
};
} | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
InterfaceDeclaration | /**
* SVG rendering options.
*/
interface ISVGRenderOptions extends IExportOptions {
/**
* Optional attributes to add to the root svg tag.
*/
svgAttrs?: IXmlTagAttrs;
/**
* SVG fill color.
*/
fill?: string;
/**
* SVG font siz... | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration |
addItemToCollection(key: K, item: T): void; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration |
findCollection(key: K, action?: (index: number) => void): T[]; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration |
removeCollection(key: K): boolean; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration |
removeItemFromCollection(key: K, item: T): boolean; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration |
getCollectionsOfMultiple(cb: (key: K, items: T[]) => void): void; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration |
measureModels(): void; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration | /**
* Export a path.
*
* @param pathToExport The path to export.
* @param offset The offset position of the path.
*/
exportPath(id: string, pathToExport: IPath, offset: IPoint, layer: string): void; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration | /**
* Export a model.
*
* @param modelToExport The model to export.
* @param offset The offset position of the model.
*/
exportModel(modelId: string, modelToExport: IModel, offset: IPoint): void; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration | /**
* Export an object.
*
* @param item The object to export. May be a path, an array of paths, a model, or an array of models.
* @param offset The offset position of the object.
*/
exportItem(itemId: string, itemToExport: any, origin: IPoint): void; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration | /**
* Escapes certain characters within a string so that it can appear in a tag or its attribute.
*
* @returns Escaped string.
*/
static escapeString(value: string): string; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration | /**
* Get the opening tag.
*
* @param selfClose Flag to determine if opening tag should be self closing.
*/
getOpeningTag(selfClose: boolean): string; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration | /**
* Get the inner text.
*/
getInnerText(): string; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration | /**
* Get the closing tag.
*/
getClosingTag(): string; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration | /**
* Output the entire tag as a string.
*/
toString(): string; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration |
static getBezierSeeds(curve: BezierCurve, options?: IFindChainsOptions): IPathBezierSeed[]; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration |
static computePoint(seed: IPathBezierSeed, t: number): IPoint; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration |
static circumscribedRadius(radius: number, angleInRadians: number): number; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration |
static getPoints(numberOfSides: number, radius: number, firstCornerAngleInDegrees?: number, circumscribed?: boolean): IPoint[]; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
MethodDeclaration |
static InnerRadiusRatio(numberOfPoints: number, skipPoints: number): number; | HydTechie/DefinitelyTyped | maker.js/makerjs.d.ts | TypeScript |
ClassDeclaration |
export class MultiCompilerMain {
/**
* create a multi-compiler `Compiler` instance.
* @param compilers list of compilers to include.
*/
createCompiler(compilers: Compiler[], options: Partial<CompilerOptions> = {}) {
return new MultiCompiler(MultiCompilerAspect.id, compilers, options, {});
}
stati... | AshanFernando/docs | docs/aspects/teambit.compilation/multi-compiler/multi-compiler.main.runtime.ts | TypeScript |
MethodDeclaration | /**
* create a multi-compiler `Compiler` instance.
* @param compilers list of compilers to include.
*/
createCompiler(compilers: Compiler[], options: Partial<CompilerOptions> = {}) {
return new MultiCompiler(MultiCompilerAspect.id, compilers, options, {});
} | AshanFernando/docs | docs/aspects/teambit.compilation/multi-compiler/multi-compiler.main.runtime.ts | TypeScript |
MethodDeclaration |
static async provider() {
return new MultiCompilerMain();
} | AshanFernando/docs | docs/aspects/teambit.compilation/multi-compiler/multi-compiler.main.runtime.ts | TypeScript |
FunctionDeclaration |
export function Input<
T extends React.ElementType = 'input',
U extends HTMLElement = HTMLInputElement
>({
// @ts-ignore
component = 'input',
className,
invalid = false,
required = false,
variant,
icon,
style,
rightSectionWidth = 36,
rightSection,
rightSectionProps = {},
radius = 'sm',
si... | ghana7989/mantine | src/mantine-core/src/components/Input/Input.tsx | TypeScript |
InterfaceDeclaration |
export interface InputBaseProps {
/** Sets border color to red and aria-invalid=true on input element */
invalid?: boolean;
/** Adds icon on the left side of input */
icon?: React.ReactNode;
/** Right section of input, similar to icon but on the right */
rightSection?: React.ReactNode;
/** Width of ri... | ghana7989/mantine | src/mantine-core/src/components/Input/Input.tsx | TypeScript |
InterfaceDeclaration |
export interface InputProps extends InputBaseProps, DefaultProps<typeof useStyles> {} | ghana7989/mantine | src/mantine-core/src/components/Input/Input.tsx | TypeScript |
TypeAliasDeclaration |
export type InputVariant = typeof INPUT_VARIANTS[number]; | ghana7989/mantine | src/mantine-core/src/components/Input/Input.tsx | TypeScript |
TypeAliasDeclaration |
export type InputStylesNames = Exclude<keyof ReturnType<typeof useStyles>, InputVariant>; | ghana7989/mantine | src/mantine-core/src/components/Input/Input.tsx | TypeScript |
MethodDeclaration |
cx({ [classes.withIcon]: icon }, classes | ghana7989/mantine | src/mantine-core/src/components/Input/Input.tsx | TypeScript |
FunctionDeclaration |
function mockOutputPathFn(locale: string, relativePath: string) {
return `/translations/${locale}/${relativePath}`;
} | 3V3R-3ST/angular | packages/localize/src/tools/test/translate/asset_files/asset_file_translation_handler_spec.ts | TypeScript |
ArrowFunction |
() => {
describe('canTranslate()', () => {
it('should always return true', () => {
const handler = new AssetTranslationHandler();
expect(handler.canTranslate('relative/path', Buffer.from('contents'))).toBe(true);
});
});
describe('translate()', () => {
beforeEach(() => {
spyOn(File... | 3V3R-3ST/angular | packages/localize/src/tools/test/translate/asset_files/asset_file_translation_handler_spec.ts | TypeScript |
ArrowFunction |
() => {
it('should always return true', () => {
const handler = new AssetTranslationHandler();
expect(handler.canTranslate('relative/path', Buffer.from('contents'))).toBe(true);
});
} | 3V3R-3ST/angular | packages/localize/src/tools/test/translate/asset_files/asset_file_translation_handler_spec.ts | TypeScript |
ArrowFunction |
() => {
const handler = new AssetTranslationHandler();
expect(handler.canTranslate('relative/path', Buffer.from('contents'))).toBe(true);
} | 3V3R-3ST/angular | packages/localize/src/tools/test/translate/asset_files/asset_file_translation_handler_spec.ts | TypeScript |
ArrowFunction |
() => {
beforeEach(() => {
spyOn(FileUtils, 'writeFile');
spyOn(FileUtils, 'ensureDir');
});
it('should write the translated file for each translation locale', () => {
const diagnostics = new Diagnostics();
const handler = new AssetTranslationHandler();
const translations = [... | 3V3R-3ST/angular | packages/localize/src/tools/test/translate/asset_files/asset_file_translation_handler_spec.ts | TypeScript |
ArrowFunction |
() => {
spyOn(FileUtils, 'writeFile');
spyOn(FileUtils, 'ensureDir');
} | 3V3R-3ST/angular | packages/localize/src/tools/test/translate/asset_files/asset_file_translation_handler_spec.ts | TypeScript |
ArrowFunction |
() => {
const diagnostics = new Diagnostics();
const handler = new AssetTranslationHandler();
const translations = [
{locale: 'en', translations: {}},
{locale: 'fr', translations: {}},
];
const contents = Buffer.from('contents');
handler.translate(
diagnost... | 3V3R-3ST/angular | packages/localize/src/tools/test/translate/asset_files/asset_file_translation_handler_spec.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.