Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@accurat/acc-data-portrait

Package Overview
Dependencies
Maintainers
6
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accurat/acc-data-portrait - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

dist/lib/index.d.ts
import { DataPortraitAnswer, DataPortraitMetadata, DataPortraitInterpolationType } from './models/types';
export declare function createDataPortrait(originalSvg: string, metadata: DataPortraitMetadata, answer: DataPortraitAnswer, options?: {
export declare function createDataPortrait(originalSvg: string, metadata: DataPortraitMetadata, userAnswer: DataPortraitAnswer, options?: {
interpolationAlgorithm: DataPortraitInterpolationType;
}): string;
import { createDataPortrait } from './index';
import type { DataPortraitPointTuple } from './models/geometry';
import type { DataPortraitQuestionType, DataPortraitInterpolationType, DataPortraitAnswer, DataPortraitQuestion, DataPortraitQuestionAnswer, DataPortraitTextualQuestionAnswer, DataPortraitCategorigalQuestionAnswer, DataPortraitContinuousQuestionAnswer, DataPortraitBooleanQuestionAnswer, DataPortraitMetadataQuestion, DataPortraitMetadataTextualQuestion, DataPortraitMetadataCategoricalQuestion, DataPortraitMetadataContinuousQuestion, DataPortraitMetadataBooleanQuestion, DataPortraitMetadata } from './models/types';
import type { DataPortraitQuestionType, DataPortraitInterpolationType, DataPortraitAnswer, DataPortraitQuestion, DataPortraitQuestionAnswer, DataPortraitTextualQuestionAnswer, DataPortraitCategoricalQuestionAnswer, DataPortraitContinuousQuestionAnswer, DataPortraitBooleanQuestionAnswer, DataPortraitMetadataQuestion, DataPortraitMetadataTextualQuestion, DataPortraitMetadataCategoricalQuestion, DataPortraitMetadataContinuousQuestion, DataPortraitMetadataBooleanQuestion, DataPortraitMetadata } from './models/types';
import { DATA_PORTRAIT_QUESTION_TYPE_TEXT, DATA_PORTRAIT_QUESTION_TYPE_CATEGORICAL, DATA_PORTRAIT_QUESTION_TYPE_CONTINUOUS, DATA_PORTRAIT_QUESTION_TYPE_BOOLEAN, DATA_PORTRAIT_INTERPOLATION_TYPE_FLUBBER, DATA_PORTRAIT_INTERPOLATION_TYPE_SVG_PATH_MORPH, DATA_PORTRAIT_INTERPOLATION_TYPE_D3_INTERPOLATE_PATH } from './constants';
import { fromStringToSvgNode } from './utils/conversion-utils';
import { getAllQuestionsNodes, getAllAnswersNodes } from './utils/svg-selector-utils';
export { createDataPortrait, DataPortraitPointTuple, DataPortraitQuestionType, DataPortraitInterpolationType, DataPortraitAnswer, DataPortraitQuestion, DataPortraitQuestionAnswer, DataPortraitTextualQuestionAnswer, DataPortraitCategorigalQuestionAnswer, DataPortraitContinuousQuestionAnswer, DataPortraitBooleanQuestionAnswer, DataPortraitMetadataQuestion, DataPortraitMetadataTextualQuestion, DataPortraitMetadataCategoricalQuestion, DataPortraitMetadataContinuousQuestion, DataPortraitMetadataBooleanQuestion, DataPortraitMetadata, DATA_PORTRAIT_QUESTION_TYPE_TEXT, DATA_PORTRAIT_QUESTION_TYPE_CATEGORICAL, DATA_PORTRAIT_QUESTION_TYPE_CONTINUOUS, DATA_PORTRAIT_QUESTION_TYPE_BOOLEAN, DATA_PORTRAIT_INTERPOLATION_TYPE_FLUBBER, DATA_PORTRAIT_INTERPOLATION_TYPE_SVG_PATH_MORPH, DATA_PORTRAIT_INTERPOLATION_TYPE_D3_INTERPOLATE_PATH, fromStringToSvgNode, getAllQuestionsNodes, getAllAnswersNodes, };
export { createDataPortrait, DataPortraitPointTuple, DataPortraitQuestionType, DataPortraitInterpolationType, DataPortraitAnswer, DataPortraitQuestion, DataPortraitQuestionAnswer, DataPortraitTextualQuestionAnswer, DataPortraitCategoricalQuestionAnswer, DataPortraitContinuousQuestionAnswer, DataPortraitBooleanQuestionAnswer, DataPortraitMetadataQuestion, DataPortraitMetadataTextualQuestion, DataPortraitMetadataCategoricalQuestion, DataPortraitMetadataContinuousQuestion, DataPortraitMetadataBooleanQuestion, DataPortraitMetadata, DATA_PORTRAIT_QUESTION_TYPE_TEXT, DATA_PORTRAIT_QUESTION_TYPE_CATEGORICAL, DATA_PORTRAIT_QUESTION_TYPE_CONTINUOUS, DATA_PORTRAIT_QUESTION_TYPE_BOOLEAN, DATA_PORTRAIT_INTERPOLATION_TYPE_FLUBBER, DATA_PORTRAIT_INTERPOLATION_TYPE_SVG_PATH_MORPH, DATA_PORTRAIT_INTERPOLATION_TYPE_D3_INTERPOLATE_PATH, fromStringToSvgNode, getAllQuestionsNodes, getAllAnswersNodes, };

@@ -13,3 +13,3 @@ import { DATA_PORTRAIT_INTERPOLATION_TYPES, DATA_PORTRAIT_QUESTION_TYPES } from '../constants';

};
export type DataPortraitQuestionAnswer = DataPortraitTextualQuestionAnswer | DataPortraitCategorigalQuestionAnswer | DataPortraitContinuousQuestionAnswer | DataPortraitBooleanQuestionAnswer;
export type DataPortraitQuestionAnswer = DataPortraitTextualQuestionAnswer | DataPortraitCategoricalQuestionAnswer | DataPortraitContinuousQuestionAnswer | DataPortraitBooleanQuestionAnswer;
export type DataPortraitBaseQuestionAnswer = {

@@ -21,3 +21,3 @@ id: string;

};
export type DataPortraitCategorigalQuestionAnswer = DataPortraitBaseQuestionAnswer & {
export type DataPortraitCategoricalQuestionAnswer = DataPortraitBaseQuestionAnswer & {
text: string;

@@ -24,0 +24,0 @@ };

import { DataPortraitAnswer, DataPortraitMetadata, DataPortraitQuestion } from '../models/types';
export declare function addAnswerIdToNodes(idSuffix: DataPortraitAnswer['id'], svgNode: SVGElement): void;
export declare function getQuestionMetadataById(metadata: DataPortraitMetadata, id: DataPortraitQuestion['id']): import("../models/types").DataPortraitMetadataQuestion | undefined;
export declare function selectMirrorChildNode(userAnswer: DataPortraitAnswer, rootNode: SVGElement, questionId: DataPortraitQuestion['id']): void;

@@ -12,3 +12,3 @@ {

],
"version": "0.0.7",
"version": "0.0.8",
"repository": {

@@ -15,0 +15,0 @@ "type": "git",

Sorry, the diff of this file is too big to display

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