markuno_lib 1.2.28 → 1.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/bus_utils.js +3 -3
- package/bin/markcad.js +11 -11
- package/bin/marked.js +3 -3
- package/bin/markuno.js +30 -37
- package/bin/proto.js +4 -4
- package/package.json +1 -1
- package/types/markcad.d.ts +3 -16
- package/types/marked.d.ts +2 -2
package/package.json
CHANGED
package/types/markcad.d.ts
CHANGED
|
@@ -356,6 +356,7 @@ export function evalcustomfunction(amb: any, code: any, values: any, objects: an
|
|
|
356
356
|
name?: string;
|
|
357
357
|
}>, callback: any): Promise<File[]>;
|
|
358
358
|
export function extractTextures(root: any, baseName: any): Promise<any[]>;
|
|
359
|
+
export function fondilinee(linee: any): any[][];
|
|
359
360
|
export function get3dshape(punti: any, material: any, layer: any): any;
|
|
360
361
|
export function getOggetto(obj: any, exclude?: any[]): any;
|
|
361
362
|
export function getbordi(oggetti: any, bordo: any): {
|
|
@@ -390,7 +391,7 @@ export function getemitter(data: any): any;
|
|
|
390
391
|
* @param {THREE.Material} mat - Materiale da applicare
|
|
391
392
|
* @param {Object} options - Opzioni di configurazione
|
|
392
393
|
* @returns {Promise<THREE.Group>} Gruppo contenente il box
|
|
393
|
-
*/ export function getface(gcad: any, x: number, y: number, mat: THREE.Material,
|
|
394
|
+
*/ export function getface(gcad: any, x: number, y: number, mat: THREE.Material, op?: {}): Promise<THREE.Group>;
|
|
394
395
|
export function getfakeshadow(gcad: any, shape: any, alfa: any): any;
|
|
395
396
|
export function getfakeshadow2(w: any, h: any, map: any): any;
|
|
396
397
|
/**
|
|
@@ -542,21 +543,7 @@ export function infoestrudi(shape: any, hshape: any, pts: any, options: any, sh:
|
|
|
542
543
|
};
|
|
543
544
|
export function isfn(row: any): boolean;
|
|
544
545
|
export function ismacro(row: any): any;
|
|
545
|
-
|
|
546
|
-
* Esegue la semplificazione di un poligono (array di punti) combinando
|
|
547
|
-
* l’algoritmo di distanza radiale e l’algoritmo di Ramer–Douglas–Peucker.
|
|
548
|
-
*
|
|
549
|
-
* @param {Array<{x:number,y:number}>} points - Array di punti {x,y} da semplificare.
|
|
550
|
-
* @param {number} [tolerance=1] - Tolleranza di semplificazione: distanza minima consentita
|
|
551
|
-
* (in unità lineari) tra i punti; internamente usata al quadrato per il calcolo
|
|
552
|
-
* (`sqTolerance = tolerance * tolerance`). Valori più grandi rimuovono più punti.
|
|
553
|
-
* @param {boolean} [highestQuality=false] - Se `true`, salta il passaggio di
|
|
554
|
-
* semplificazione radiale e usa solo Douglas–Peucker per massima qualità.
|
|
555
|
-
* @returns {Array<{x:number,y:number}>} Nuovo array di punti semplificato.
|
|
556
|
-
*/ export function mapvertices(pat1: any, pat2: any): Array<{
|
|
557
|
-
x: number;
|
|
558
|
-
y: number;
|
|
559
|
-
}>;
|
|
546
|
+
export function mapvertices(pat1: any, pat2: any): number[][];
|
|
560
547
|
export let materialline1: any;
|
|
561
548
|
export let materialline2: any;
|
|
562
549
|
export const mblack: any;
|
package/types/marked.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export const aliasInfo: {
|
|
|
37
37
|
removeAll(): any;
|
|
38
38
|
setmappa(mappa: any): void;
|
|
39
39
|
parse(data: any, info: any, mappa: any): {
|
|
40
|
-
comments: any[];
|
|
41
40
|
info: boolean;
|
|
41
|
+
comments: any[];
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
export function elang(str: any, lang: any, punct: any, codes: any): string;
|
|
@@ -49,8 +49,8 @@ export function mark(xx: any, baseurl: any, notitle: boolean, parsedlist: boolea
|
|
|
49
49
|
export function markeasy(xx: any, maxlen?: number, notitle?: boolean): any;
|
|
50
50
|
export function markunoFormatCodeMirror(CodeMirror: any): void;
|
|
51
51
|
export function parseinfomd(data: any, info: any, mappa: any): {
|
|
52
|
-
comments: any[];
|
|
53
52
|
info: boolean;
|
|
53
|
+
comments: any[];
|
|
54
54
|
};
|
|
55
55
|
export function parselist(text: any, title?: string): {
|
|
56
56
|
txt: string;
|