@nice2dev/ui-graphics 1.1.10 → 1.2.0
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/CHANGELOG.md +70 -0
- package/README.md +60 -63
- package/dist/cjs/animation/AnimationEditor.js +0 -3
- package/dist/cjs/animation/BodyRenderer.js +1 -4
- package/dist/cjs/animation/shapes/heads.js +0 -3
- package/dist/cjs/core/NiceBrushEngine.js +1 -3
- package/dist/cjs/font/NiceFontEditor.js +3 -3
- package/dist/cjs/game/GameAsset2dEditor.js +0 -3
- package/dist/cjs/index.js +0 -11
- package/dist/cjs/nice2dev-ui-graphics.css +1 -1
- package/dist/cjs/photo/NiceAITools.js +2 -2
- package/dist/cjs/photo/PhotoEditorToolbar.js +1 -1
- package/dist/cjs/pixel/PixelEditor.js +0 -3
- package/dist/cjs/pixel/PixelEditor.module.css.js +1 -1
- package/dist/cjs/pixel/SpriteGeneratorPanel.js +3 -3
- package/dist/cjs/texture/Nice3DTexturePainter.js +2 -2
- package/dist/cjs/ui/NiceUIDesigner.js +1 -1
- package/dist/cjs/vector/VectorEditor.js +0 -3
- package/dist/esm/animation/AnimationEditor.js +1 -3
- package/dist/esm/animation/BodyRenderer.js +3 -5
- package/dist/esm/animation/shapes/heads.js +1 -3
- package/dist/esm/core/NiceBrushEngine.js +1 -3
- package/dist/esm/font/NiceFontEditor.js +3 -3
- package/dist/esm/game/GameAsset2dEditor.js +1 -3
- package/dist/esm/index.js +10 -10
- package/dist/esm/nice2dev-ui-graphics.css +1 -1
- package/dist/esm/photo/NiceAITools.js +2 -2
- package/dist/esm/photo/PhotoEditorToolbar.js +1 -1
- package/dist/esm/pixel/PixelEditor.js +1 -3
- package/dist/esm/pixel/PixelEditor.module.css.js +1 -1
- package/dist/esm/pixel/SpriteGeneratorPanel.js +3 -3
- package/dist/esm/texture/Nice3DTexturePainter.js +2 -2
- package/dist/esm/ui/NiceUIDesigner.js +1 -1
- package/dist/esm/vector/VectorEditor.js +1 -3
- package/dist/types/animation/AnimatedPerson.d.ts +0 -4
- package/dist/types/animation/AnimationEditor.d.ts +1 -5
- package/dist/types/animation/Audience.d.ts +0 -4
- package/dist/types/animation/BodyRenderer.d.ts +0 -4
- package/dist/types/animation/rig/RigPlayer.d.ts +0 -7
- package/dist/types/animation/rig/RiggedBody.d.ts +0 -4
- package/dist/types/animation/shapes/heads.d.ts +0 -4
- package/dist/types/game/GameAsset2dEditor.d.ts +0 -4
- package/dist/types/game/index.d.ts +1 -1
- package/dist/types/index.d.ts +9 -19
- package/dist/types/photo/index.d.ts +0 -2
- package/dist/types/pixel/PixelEditor.d.ts +0 -4
- package/dist/types/pixel/SpriteGeneratorPanel.d.ts +0 -4
- package/dist/types/vector/VectorEditor.d.ts +0 -4
- package/package.json +3 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -5,24 +5,18 @@
|
|
|
5
5
|
* import { PixelEditor } from '@nice2dev/ui-graphics';
|
|
6
6
|
* import { NiceI18nProvider } from '@nice2dev/ui-graphics';
|
|
7
7
|
*/
|
|
8
|
-
export { NicePixelEditor,
|
|
9
|
-
export { NiceVectorEditor,
|
|
8
|
+
export { NicePixelEditor, type NicePixelEditorProps } from './pixel/PixelEditor';
|
|
9
|
+
export { NiceVectorEditor, type NiceVectorEditorProps } from './vector/VectorEditor';
|
|
10
10
|
export { default as NicePhotoEditor } from './photo/PhotoEditor';
|
|
11
|
-
/** @deprecated Use NicePhotoEditor */
|
|
12
|
-
export { default as PhotoEditor } from './photo/PhotoEditor';
|
|
13
11
|
export type { PhotoEditorProps } from './photo/photoEditorTypes';
|
|
14
|
-
export { NiceAnimationEditor,
|
|
12
|
+
export { NiceAnimationEditor, type NiceAnimationEditorProps } from './animation/AnimationEditor';
|
|
15
13
|
export { default as NiceAnimatedPerson, type NiceAnimatedPersonProps, } from './animation/AnimatedPerson';
|
|
16
|
-
/** @deprecated Use NiceAnimatedPerson / NiceAnimatedPersonProps */
|
|
17
|
-
export { default as AnimatedPerson, type AnimatedPersonProps } from './animation/AnimatedPerson';
|
|
18
14
|
export { type SpritePart, type SpriteAssembly, type AssembledPart, type SpritePartCategory, type SpriteDirection, type GeneratedSprite, type ProjectionMode, type PartPixelData, ALL_DIRECTIONS, createPartData, mirrorPartH, generateMirroredDirections, renderPart, assembleSprite, generateAllDirections, applyIsometricProjection, render8DirSpriteSheet, shiftHue, generateRecolorMap, registerPart, registerParts, getPart, getPartsByCategory, getPartsBySlot, getAllParts, } from './pixel/spriteGeneratorCore';
|
|
19
15
|
export { SKIN_PALETTES, HAIR_PALETTES, CLOTHING_PALETTES, CHARACTER_PRESETS, initCharacterParts, } from './pixel/characterGeneratorPresets';
|
|
20
16
|
export { WALL_PALETTES, ROOF_PALETTES, BUILDING_PRESETS, assembleBuildingFromConfig, initBuildingParts, type BuildingConfig, type FloorConfig, } from './pixel/buildingGeneratorPresets';
|
|
21
17
|
export { FUR_PALETTES, SCALE_PALETTES, FEATHER_PALETTES, ANIMAL_PRESETS, initAnimalParts, } from './pixel/animalGeneratorPresets';
|
|
22
18
|
export { default as NiceSpriteGeneratorPanel, type NiceSpriteGeneratorPanelProps, } from './pixel/SpriteGeneratorPanel';
|
|
23
|
-
|
|
24
|
-
export { default as SpriteGeneratorPanel, type SpriteGeneratorPanelProps, } from './pixel/SpriteGeneratorPanel';
|
|
25
|
-
export { NiceGameAsset2dEditor, GameAsset2dEditor, type NiceGameAsset2dEditorProps, type GameAsset2dEditorProps, useGameAssetEditor, type GameAssetEditorApi, } from './game';
|
|
19
|
+
export { NiceGameAsset2dEditor, type NiceGameAsset2dEditorProps, useGameAssetEditor, type GameAssetEditorApi, } from './game';
|
|
26
20
|
export type { TileMap, TileLayer, TileDefinition, SpriteSheet, SpriteFrame, SpriteAnimation, AnimationStateMachine, AnimationState, AnimationTransition, GameAssetProject, Effect, EffectType, } from './game';
|
|
27
21
|
export { NiceI18nProvider, useNiceTranslation, type NiceTranslateFn, type NiceI18nProviderProps, } from './core/i18n';
|
|
28
22
|
export type { Layer, Tool as PixelTool, BlendMode } from './pixel/pixelEditorTypes';
|
|
@@ -47,20 +41,16 @@ export { default as NiceRiggedBody } from './animation/rig/RiggedBody';
|
|
|
47
41
|
export { default as RiggedBody } from './animation/rig/RiggedBody';
|
|
48
42
|
export { default as NiceRigPlayer } from './animation/rig/RigPlayer';
|
|
49
43
|
export { default as RigPlayer } from './animation/rig/RigPlayer';
|
|
50
|
-
export type { NiceRigPlayerHandle
|
|
44
|
+
export type { NiceRigPlayerHandle } from './animation/rig/RigPlayer';
|
|
51
45
|
export { rigPoseFor, playRigFromChoreo } from './animation/rig/choreoRigBridge';
|
|
52
46
|
export { ChoreoBuilder, seq, compile, runSeq, runWave, runCannon, runRounds, } from './animation/choreoDSL';
|
|
53
47
|
export { waveScoreChoreo, booChoreo, danceParty, showcaseAll } from './animation/choreography';
|
|
54
48
|
export { default as NiceAudience } from './animation/Audience';
|
|
55
|
-
|
|
56
|
-
export { default as Audience } from './animation/Audience';
|
|
57
|
-
export type { NiceAudienceProps, AudienceProps } from './animation/Audience';
|
|
49
|
+
export type { NiceAudienceProps } from './animation/Audience';
|
|
58
50
|
export { scoreBus, onScore, reactionForScore, playIntro, simulateScore, attachScoreReactions, } from './animation/karaokeIntegration';
|
|
59
|
-
export { NiceBodyRenderer,
|
|
60
|
-
|
|
61
|
-
export {
|
|
62
|
-
export type { NiceBodyRendererProps, BodyRendererProps } from './animation/BodyRenderer';
|
|
63
|
-
export { NiceHead, Head, HEAD_RENDERERS } from './animation/shapes/heads';
|
|
51
|
+
export { NiceBodyRenderer, default as NiceBodyRendererDefault } from './animation/BodyRenderer';
|
|
52
|
+
export type { NiceBodyRendererProps } from './animation/BodyRenderer';
|
|
53
|
+
export { NiceHead, HEAD_RENDERERS } from './animation/shapes/heads';
|
|
64
54
|
export type { HeadProps } from './animation/shapes/heads';
|
|
65
55
|
export { Eyes, EYES_RENDERERS } from './animation/shapes/eyes';
|
|
66
56
|
export type { EyesProps } from './animation/shapes/eyes';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export { default as NicePhotoEditor } from './PhotoEditor';
|
|
2
|
-
/** @deprecated Use NicePhotoEditor */
|
|
3
|
-
export { default as PhotoEditor } from './PhotoEditor';
|
|
4
2
|
export { usePhotoEditor } from './usePhotoEditor';
|
|
5
3
|
export type * from './photoEditorTypes';
|
|
6
4
|
export * from './photoFilters';
|
|
@@ -13,9 +13,5 @@ export interface NicePixelEditorProps {
|
|
|
13
13
|
className?: string;
|
|
14
14
|
onSaveToLibrary?: (dataUrl: string, name: string, mimeType: string) => void;
|
|
15
15
|
}
|
|
16
|
-
/** @deprecated Use NicePixelEditorProps */
|
|
17
|
-
export type PixelEditorProps = NicePixelEditorProps;
|
|
18
16
|
export declare const NicePixelEditor: React.FC<NicePixelEditorProps>;
|
|
19
|
-
/** @deprecated Use NicePixelEditor */
|
|
20
|
-
export declare const PixelEditor: React.FC<NicePixelEditorProps>;
|
|
21
17
|
export default NicePixelEditor;
|
|
@@ -15,9 +15,5 @@ export interface NiceSpriteGeneratorPanelProps {
|
|
|
15
15
|
/** Convenience callback fired whenever a sprite sheet is generated. */
|
|
16
16
|
onGenerate?: (sheet: unknown) => void;
|
|
17
17
|
}
|
|
18
|
-
/** @deprecated Use NiceSpriteGeneratorPanelProps */
|
|
19
|
-
export type SpriteGeneratorPanelProps = NiceSpriteGeneratorPanelProps;
|
|
20
18
|
declare const NiceSpriteGeneratorPanel: React.FC<NiceSpriteGeneratorPanelProps>;
|
|
21
|
-
/** @deprecated Use NiceSpriteGeneratorPanel */
|
|
22
|
-
export declare const SpriteGeneratorPanel: React.FC<NiceSpriteGeneratorPanelProps>;
|
|
23
19
|
export default NiceSpriteGeneratorPanel;
|
|
@@ -43,9 +43,5 @@ export interface NiceVectorEditorProps {
|
|
|
43
43
|
/** Called when the user exports the current canvas as a createIcon snippet. */
|
|
44
44
|
onExportIconSnippet?: (snippet: string, iconName: string, category?: string) => void;
|
|
45
45
|
}
|
|
46
|
-
/** @deprecated Use NiceVectorEditorProps */
|
|
47
|
-
export type VectorEditorProps = NiceVectorEditorProps;
|
|
48
46
|
export declare const NiceVectorEditor: React.FC<NiceVectorEditorProps>;
|
|
49
|
-
/** @deprecated Use NiceVectorEditor */
|
|
50
|
-
export declare const VectorEditor: React.FC<NiceVectorEditorProps>;
|
|
51
47
|
export default NiceVectorEditor;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice2dev/ui-graphics",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Nice2Dev Graphics Editors — Pixel, Vector, Photo and Animation editors for React",
|
|
5
5
|
"author": "NiceToDev <contact@nicetodev.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"react-dom": ">=17.0.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@nice2dev/ui": "^1.
|
|
75
|
-
"@nice2dev/ui-core": "^1.
|
|
74
|
+
"@nice2dev/ui": "^1.2.0",
|
|
75
|
+
"@nice2dev/ui-core": "^1.2.0",
|
|
76
76
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
77
77
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
78
78
|
"@rollup/plugin-typescript": "^12.3.0",
|